Section 1
//_-64 (_-9-._-64)
package _-9- {
public class _-64 {
static const _-N5:Array;
static const _-JE:Array;
public function _-64(){
var _local1:Boolean;
//unresolved jump
//unresolved jump
var _local2 = -();
_local2 = ((typeof(!(-((((((false % !NULL!) % !NULL!) + 1) >= !NULL!) <= !NULL!)))) + !NULL!) + !NULL!);
if (((_local1) || (_local1))){
super();
};
}
public static function _-Au(_arg1:int, _arg2:int):String{
var _local10:Boolean;
//unresolved jump
var _local9:Boolean;
_local7++;
var _local11 = -(true);
var _local3:String;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:*;
_local9 = undefined;
if (!((_local11) && (_local3))){
_local3 = "";
if (!((_local11) && (_arg1))){
//unresolved if
_local4 = 0;
//unresolved if
};
};
if (!_local11){
};
_local5 = _-N5[_arg1].length;
while (_local4 < _local5) {
if (_local10){
_local6 = int(_-N5[((_arg1 - 5) ^ -495)][_local4]);
//unresolved if
//unresolved if
if (_local10){
//unresolved if
};
};
_local4 = int(_-N5[((_arg1 - 5) ^ -495)][_local4]);
//unresolved if
//unresolved if
_local7 = int(_-N5[((_arg1 - 5) ^ -495)][_local4]);
//unresolved if
_local8 = 2654435769;
_local9 = 84941944608;
if (_local10){
for (;_local9 != 0;if (!_local11){
//unresolved if
_local7 = ((((((!NULL! >= !NULL!) >>> null) & 3)[!NULL!].int(!NULL!) + !NULL!) ^ !NULL!) - !NULL!);
//unresolved if
}, (_local9 = ((((((!NULL! >= !NULL!) >>> null) & 3)[!NULL!].int(!NULL!) + !NULL!) ^ !NULL!) - !NULL!)), if (((_local10) || (_local3))){
if (((_local10) || (_local3))){
if (((_local10) || (_arg1))){
//unresolved if
//unresolved if
};
if (((_local10) || (_arg2))){
//unresolved if
};
};
}) {
//unresolved if
//unresolved if
if (!_local11){
//unresolved if
//unresolved if
};
//unresolved if
continue;
_local8++;
var _temp2 = _local9;
_local9 = _-JE[((_arg2 + 3) ^ 236)];
_local5--;
};
if (_local10){
if (!((_local11) && (_-64))){
};
if (!_local11){
if (!((_local11) && (_arg2))){
if (!_local11){
};
};
};
};
};
};
if (((_local10) || (_-64))){
//unresolved if
//unresolved if
//unresolved if
};
if (!_local11){
//unresolved jump
_local6++;
_local6++;
_arg2++;
_local8++;
//unresolved if
};
return (_local3);
}
var _local1:Boolean;
//unresolved jump
!ERROR! if (!((_local2) && (_local1))){
_-JE = new Array([-1330199981, 1780987483, 2104498313, -1355851714], [51495152, -1066308582, 1824256346, 604892004], [-1520935360, 282421827, 488484415, -967158512]);
//unresolved if
};
//unresolved jump
//unresolved jump
_-N5 = new -1239847761.Array(-306805303, 1186183161, [[-1602672651, 2041011872, 952941624, 713446214, -1526930538, -1253993015, -1311085549, -641681104, 1223473869, -1734782210, -1864658287, 13159242, -1535341970, -492984119, -1026261201, 1473511881, -368952859, 200734987, ((-1479941668 > -1479941668) ^ _local1), _-64, _local3, _local3, -1247354116, -1463370616, 929480281, 703973077], [-757505707, 636843778, -33917719, -1919106851, 606062826, -673331681, -731497296, 787955670, 1861450435, -2000426448, -35651077, 333930286, 1973150243, -1933616862, 2140233763, 1817385507, -1604403018, 1778525992, -1085156060, -1357291819, 1191988759, 1710181932, -833173283, 135909865, 817816797, 1431899307, 1367100230, -1942039822, 1461758233, -286824801, 388991653, -666907758], 1183889537, -2114635530, 1430750176, 1598765044, 1466704103, 809102611, 1017011625, 1408316348, -332082311, -259653203, 847567676, -674063595, 1135400801, -1472004122, 1976283427, 1202656475, -2070791222, -130669797, -1081847709, 872823966, 603770022, -1241620572, 1430750176, ((1598765044 === (typeof((-1565119978 >= -1537413035)) > undefined)) <= null), 647340956, 1792918045, -715204893, 456231434, 299273845, 1650614461]);
}
}//package _-9-
Section 2
//_-57 (_-A3._-57)
package _-A3 {
import flash.display.*;
import flash.events.*;
import gos.common.*;
import _-M9.*;
import flash.text.*;
public class _-57 extends _-Q1 {
public function _-57(_arg1:String, _arg2:String, _arg3:Object){
super(_arg1, _arg2, _arg3);
}
override protected function createPanelAssets():void{
_-DP = new _-Jv();
this.initBigScorePanel();
this.addChild(_-DP);
_-DP.x = 0;
_-DP.y = 2;
}
protected function initBigScorePanel():void{
_-DP.stop();
(_-DP["scoreText"] as TextField).text = (_-J5.score + "");
_-Kk.add((_-DP["okButton"] as SimpleButton), MouseEvent.CLICK, this.onOkButtonClicked);
_-Kk.add((_-DP["skipButton"] as SimpleButton), MouseEvent.CLICK, this.onSkipButtonClicked);
}
protected function onOkButtonClicked(_arg1:MouseEvent):void{
var e = _arg1;
_-Dm.debug("onOkButtonClicked", this);
submitScoreOutsideFacebook(function ():void{
changePanel();
});
}
protected function onSkipButtonClicked(_arg1:MouseEvent):void{
_-Dm.debug("onSkipButtonClicked", this);
this.changePanel();
}
protected function changePanel():void{
_-Kk.remove((_-DP["okButton"] as SimpleButton), MouseEvent.CLICK, this.onOkButtonClicked);
_-Kk.remove((_-DP["skipButton"] as SimpleButton), MouseEvent.CLICK, this.onSkipButtonClicked);
this.removeChild(_-DP);
var _local1:MovieClip = new _-46();
(_local1["scoreText"] as TextField).text = (_-J5.score + "");
this.addChild(_local1);
_local1.y = 0;
_-60 = new _-GB();
initButtonList();
this.addChild(_-60);
_-60.y = ((_local1.y + _local1.height) + 8);
}
}
}//package _-A3
Section 3
//_-Fd (_-A3._-Fd)
package _-A3 {
import flash.display.*;
public class _-Fd extends MovieClip {
public static const _-4u:String = "close";
public function close():void{
}
}
}//package _-A3
Section 4
//_-Q1 (_-A3._-Q1)
package _-A3 {
import flash.display.*;
import flash.events.*;
import gos.serviceAPI.*;
import gos.common.*;
import com.adobe.serialization.json.*;
import gos.obyoAPI.*;
import _-M9.*;
import _-PA.*;
import flash.external.*;
import flash.text.*;
public class _-Q1 extends _-Fd {
protected var _-Kk:EventTracker;
protected var _gameId:String;
protected var _gameKey:String;
protected var _-J5:Object;
protected var _gsess:String;// = null
protected var _fbuser:String;
protected var _fbuname:String;
protected var _fbsess:String;
protected var _-DP:MovieClip;
protected var _-60:MovieClip;
private var _autoSubmit:Boolean;// = true
public function _-Q1(_arg1:String, _arg2:String, _arg3:Object){
this._-Kk = new EventTracker();
this._-J5 = _arg3;
this._gameId = _arg1;
this._gameKey = _arg2;
this._-Kk.add(this, Event.ADDED_TO_STAGE, this.init);
}
protected function init(_arg1:Event):void{
this._-Kk.remove(this, Event.ADDED_TO_STAGE, this.init);
this._-GQ();
this._gsess = _-Ne._-MX(this._gameKey);
this.createPanelAssets();
if (((this._autoSubmit) && ((_-CJ._-7U == _-Mz._-0Q)))){
this.submitScore();
};
}
protected function createPanelAssets():void{
this._-DP = new _-41();
this._-60 = new _-GB();
this.initScorePanel();
this.initButtonList();
addChild(this._-DP);
addChild(this._-60);
this._-DP.x = 0;
this._-DP.y = 0;
this._-60.y = ((this._-DP.y + this._-DP.height) + 8);
}
protected function initScorePanel():void{
this._-DP.stop();
(this._-DP["scoreText"] as TextField).text = (this._-J5.score + "");
if (_-CJ._-7U == _-Mz._-0Q){
_-LE.removeChild(this._-DP, (this._-DP["submitToFacebookButton"] as MovieClip));
if (this._autoSubmit){
_-LE.removeChild(this._-DP, (this._-DP["submitButton"] as MovieClip));
this._-Kk.add((this._-DP["shareButton"] as MovieClip), MouseEvent.CLICK, this.onShareClicked);
} else {
_-LE.removeChild(this._-DP, (this._-DP["shareButton"] as MovieClip));
this._-Kk.add((this._-DP["submitButton"] as MovieClip), MouseEvent.CLICK, this.onSubmitClicked);
};
this.jsEventCall("score", _-08.encode({score:this._-J5.score}));
} else {
_-LE.removeChild(this._-DP, (this._-DP["shareButton"] as MovieClip));
_-LE.removeChild(this._-DP, (this._-DP["submitButton"] as MovieClip));
this._-Kk.add((this._-DP["submitToFacebookButton"] as MovieClip), MouseEvent.CLICK, this.onSubmitToFacebookClicked);
};
}
protected function initButtonList():void{
this._-Kk.add((this._-60["playAgainButton"] as MovieClip), MouseEvent.CLICK, this.onReplayClicked);
this._-Kk.add((this._-60["backToMenuButton"] as MovieClip), MouseEvent.CLICK, this.onBackToMenuClicked);
if (_-CJ._-7U == _-Mz._-Jr){
this._-Kk.add((this._-60["moreGamesButton"] as MovieClip), MouseEvent.CLICK, this.onMoreGamesClicked);
} else {
(this._-60["moreGamesButton"] as MovieClip).visible = false;
};
}
protected function _-GQ():void{
var loa:LoaderInfo = LoaderInfo(parent.root.loaderInfo);
try {
this._fbuser = loa.parameters["fbu"];
this._fbuname = loa.parameters["fbn"];
this._fbsess = loa.parameters["sess"];
_-Dm.debug(((("parseFlashVars: user:" + this._fbuser) + ", name:") + this._fbuname), this);
} catch(e:Error) {
_-Dm.error(("error in parseFlahsVars:" + e.message));
};
}
override public function close():void{
this._-Kk.removeAll();
_-LE.removeChild(this, this._-DP);
_-LE.removeChild(this, this._-60);
_-LE.removeChild(parent, this);
this._-J5 = null;
this._gameId = null;
this._gameKey = null;
this._gsess = null;
this._fbsess = null;
this._fbuser = null;
this._fbuname = null;
this._-DP = null;
this._-60 = null;
}
protected function submitScore():void{
_-Dm.debug("submitScore", this);
if (!this._autoSubmit){
this._-DP.gotoAndStop("submitting");
};
_-CJ._-4M.scoreService.submit(this._fbuname, this._-J5.score, {channel:_-CJ.channel, user:this._fbuser, misc:{gsess:this._gsess, sess:this._fbsess}, onError:this.onApiError, onComplete:function (_arg1:_-7k):void{
var _local2:*;
if (((((!(_-LE.isEmpty(_arg1.data))) && (!(_-LE.isEmpty(_arg1.data.code))))) && ((_arg1.data.code == "1")))){
_-Dm.debug(("score is submitted: " + _arg1.data), this);
if (!_autoSubmit){
_-DP.gotoAndStop("submitted");
};
_local2 = (_arg1.data.js) ? _-08.encode(_arg1.data.js) : "{}";
jsEventCall("submitScore", _local2);
} else {
onApiError(new _-7k({error:_-7k.INVALID_DATA_RETURNED, errorMessage:_arg1.data}));
};
}});
}
protected function submitScoreOutsideFacebookWithToken():void{
_-Dm.debug("submitScoreOutsideFacebook", "GosDashboard");
this._-DP.gotoAndStop("submitting");
_-CJ._-4M.scoreService.getSubmitToken(this._-J5.score, {channel:_-CJ.channel, onError:this.onApiError, onComplete:function (_arg1:_-7k):void{
if (((((!((_arg1.resultCode == "1"))) || (_-LE.isEmpty(_arg1.data)))) || (_-LE.isEmpty(_arg1.data.token)))){
onApiError(new _-7k({error:_-7k.INVALID_DATA_RETURNED, errorMessage:"no token returned"}));
} else {
_-Dm.debug(("token: " + _arg1.data.token), this);
_-DP.gotoAndStop("submitted");
_-BP.facebookGameLink(_gameId, {token:_arg1.data.token}, true);
};
}});
}
protected function submitScoreOutsideFacebook(_arg1:Function):void{
var _local2:Object = _-CJ._-4M.scoreService.getURLSubmitVariables(this._gsess, this._-J5.score);
if (!_local2){
this.onApiError(new _-7k().initError(_-7k.SYSTEM_ERROR, "cannot create url variables"));
};
_-Dm.debug(("submitScoreOutsideFacebook vars are being send: " + _-08.encode(_local2)), this);
_-BP.facebookGameLink(this._gameId, _local2, true);
_arg1();
}
protected function shareScore():void{
this._-DP.gotoAndStop("submitting");
_-CJ._-4M.scoreService._-Mr(this._fbuname, this._-J5.score, {channel:_-CJ.channel, user:this._fbuser, misc:{gsess:this._gsess, sess:this._fbsess}, onError:this.onApiError, onComplete:function (_arg1:_-7k):void{
var _local2:*;
var _local3:*;
if (((((!(_-LE.isEmpty(_arg1.data))) && (!(_-LE.isEmpty(_arg1.data.code))))) && ((_arg1.data.code == "1")))){
_-DP.gotoAndStop("submitted");
_local2 = (_arg1.data.js) ? _-08.encode(_arg1.data.js) : "{}";
jsEventCall("shareScore", _local2);
} else {
_local3 = "";
if (_-LE.isEmpty(_arg1.data)){
_local3 = ("data doesn't exist: " + _arg1.data);
} else {
if (((_-LE.isEmpty(_arg1.data.code)) || (!((_arg1.data.code == "1"))))){
_local3 = (((("data code: " + _arg1.data.code) + " (") + _-08.encode(_arg1.data)) + ")");
};
};
onApiError(new _-7k({errorCode:_-7k.INVALID_DATA_RETURNED, errorMessage:_local3}));
};
}});
}
protected function onApiError(_arg1:_-7k):void{
_-Dm.error(((("api error : " + _arg1.errorMessage) + ", event:") + _arg1.event));
this._-DP.gotoAndPlay("error");
}
protected function jsEventCall(_arg1:String, _arg2:String){
var name = _arg1;
var params = _arg2;
if (ExternalInterface.available){
_-Dm.debug(((("jsEventCall " + name) + ", ") + params), "GosDashboard");
try {
return (ExternalInterface.call(_-4a._-J0, name, params));
} catch(e:Error) {
_-Dm.error(("error in jsEventCall: " + e.message));
};
};
}
protected function onSubmitClicked(_arg1:Event):void{
this.submitScore();
}
protected function onSubmitToFacebookClicked(_arg1:Event):void{
var e = _arg1;
this.submitScoreOutsideFacebook(function ():void{
_-DP.gotoAndStop("submitted");
});
}
protected function onShareClicked(_arg1:Event):void{
this.shareScore();
}
protected function onReplayClicked(_arg1:Event):void{
if (this._-J5.onReplay){
this._-J5.onReplay(new _-7k({input:this._-J5, event:_arg1}));
};
dispatchEvent(new Event(_-4u));
}
protected function onBackToMenuClicked(_arg1:Event):void{
if (this._-J5.onBackToMenu){
this._-J5.onBackToMenu(new _-7k({input:this._-J5, event:_arg1}));
};
dispatchEvent(new Event(_-4u));
}
protected function onMoreGamesClicked(_arg1:Event):void{
_-BP._-0a({ref:this._gameId, refex:_-4a._-8I}, true);
if (this._-J5.onMoreGames){
this._-J5.onMoreGames(new _-7k({input:this._-J5, event:_arg1}));
};
}
protected function onError(_arg1:_-7k):void{
if ((this._-J5.onError is Function)){
this._-J5.onError(_arg1);
};
}
}
}//package _-A3
Section 5
//MD5 (_-Cb.MD5)
package _-Cb {
public class MD5 {
public function calculate(_arg1:String):String{
return (hex_md5(_arg1));
}
private static function hex_md5(_arg1:String):String{
return (binl2hex(core_md5(str2binl(_arg1), (_arg1.length * 8))));
}
private static function core_md5(_arg1:Array, _arg2:Number):Array{
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32)));
_arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2;
var _local3:Number = 1732584193;
var _local4:Number = -271733879;
var _local5:Number = -1732584194;
var _local6:Number = 271733878;
var _local7:Number = 0;
while (_local7 < _arg1.length) {
_local8 = _local3;
_local9 = _local4;
_local10 = _local5;
_local11 = _local6;
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, -680876936);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, -389564586);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, -1044525330);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, -176418897);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, -1473231341);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, -45705983);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, -1958414417);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, -42063);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, -1990404162);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, -40341101);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, -1502002290);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, -165796510);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, -1069501632);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, -373897302);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, -701558691);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, -660478335);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, -405537848);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, -1019803690);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, -187363961);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, -1444681467);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, -51403784);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, -1926607734);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, -378558);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, -2022574463);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, -35309556);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, -1530992060);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, -155497632);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, -1094730640);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, -358537222);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, -722521979);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, -640364487);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, -421815835);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, -995338651);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, -198630844);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, -1416354905);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, -57434055);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, -1894986606);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, -1051523);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, -2054922799);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, -30611744);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, -1560198380);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, -145523070);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, -1120210379);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, -343485551);
_local3 = _-Mp(_local3, _local8);
_local4 = _-Mp(_local4, _local9);
_local5 = _-Mp(_local5, _local10);
_local6 = _-Mp(_local6, _local11);
_local7 = (_local7 + 16);
};
return (new Array(_local3, _local4, _local5, _local6));
}
private static function md5_cmn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
return (_-Mp(_-1P(_-Mp(_-Mp(_arg2, _arg1), _-Mp(_arg4, _arg6)), _arg5), _arg3));
}
private static function md5_ff(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
}
private static function md5_gg(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
private static function md5_hh(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
}
private static function md5_ii(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
private static function _-1P(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
private static function _-Mp(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
var _local4:Number = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
private static function str2binl(_arg1:String):Array{
var _local2:Array = new Array();
var _local3:Number = ((1 << 8) - 1);
var _local4:Number = 0;
while (_local4 < (_arg1.length * 8)) {
_local2[(_local4 >> 5)] = (_local2[(_local4 >> 5)] | ((_arg1.charCodeAt((_local4 / 8)) & _local3) << (_local4 % 32)));
_local4 = (_local4 + 8);
};
return (_local2);
}
private static function binl2hex(_arg1:Array):String{
var _local2:String = new String("");
var _local3:String = new String("0123456789abcdef");
var _local4:Number = 0;
while (_local4 < (_arg1.length * 4)) {
_local2 = (_local2 + (_local3.charAt(((_arg1[(_local4 >> 2)] >> (((_local4 % 4) * 8) + 4)) & 15)) + _local3.charAt(((_arg1[(_local4 >> 2)] >> ((_local4 % 4) * 8)) & 15))));
_local4++;
};
return (_local2);
}
}
}//package _-Cb
Section 6
//_-1q (_-Ea._-1q)
package _-Ea {
import com.novelgames.flashgames.common.*;
public dynamic class _-1q extends _-Pv {
}
}//package _-Ea
Section 7
//_-3j (_-Ea._-3j)
package _-Ea {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import gos.serviceAPI.*;
import _-9-.*;
import gos.obyoAPI.*;
public class _-3j extends MovieClip {
private var _-3b:_-P9;
private var messageLevel:_-CE;
public function _-3j(){
gotoAndStop("hide");
}
public function hide():void{
if (_-3b){
this.removeChild(_-3b);
_-3b = null;
};
gotoAndStop("hide");
}
public function _-CL(_arg1:int):void{
var levelNo = _arg1;
gotoAndStop("hide");
messageLevel = new _-CE();
messageLevel.levelText.text = (levelNo + "");
this.addChild(messageLevel);
setTimeout(function ():void{
removeChild(messageLevel);
messageLevel = null;
}, _-Fz._-03);
}
public function _-3q():void{
gotoAndStop("gameOver");
}
public function _-BM():void{
gotoAndStop("gameWin");
}
public function showPlayAgain(_arg1:Object=null):void{
var args = _arg1;
_-CJ.showEndScreen(parent.parent, _-Fz._-LX, _-64._-Au(-491, 234), {title:_-Fz._-7z, score:args.score, onError:function (_arg1:_-7k){
homeButtonClicked(null);
}, onReplay:function (_arg1:_-7k){
playAgainButtonClicked(null);
}, onBackToMenu:function (_arg1:_-7k){
homeButtonClicked(null);
}});
}
private function playAgainButtonClicked(_arg1:MouseEvent):void{
Object(parent.parent).gotoGamePage();
}
private function homeButtonClicked(_arg1:MouseEvent):void{
Object(parent.parent).gotoTitlePage();
}
private function _-Lw(_arg1:MouseEvent):void{
Object(parent).restart(null);
}
}
}//package _-Ea
Section 8
//_-7f (_-Ea._-7f)
package _-Ea {
import flash.display.*;
import com.novelgames.flashgames.common.*;
import flash.media.*;
public class _-7f extends _-Ef {
public var title:_-FM;
override protected function getTitle():_-FM{
return (_-FM(this["title"]));
}
override public function getGameId():String{
return (_-Fz._-LX);
}
override protected function getGame():Game{
return (new Game());
}
override protected function getMusicGame():Sound{
return (new _-1q());
}
override public function startIntroMusic():void{
stopIntroMusic();
_-Ht = _-7b();
_-9o = _-Ht.play(0, 1);
}
}
}//package _-Ea
Section 9
//_-AO (_-Ea._-AO)
package _-Ea {
import flash.display.*;
public class _-AO extends MovieClip {
public var selectButton0:SimpleButton;
public var selectButton1:SimpleButton;
}
}//package _-Ea
Section 10
//_-BA (_-Ea._-BA)
package _-Ea {
import com.novelgames.flashgames.common.*;
public dynamic class _-BA extends _-6P {
}
}//package _-Ea
Section 11
//_-Bs (_-Ea._-Bs)
package _-Ea {
import com.novelgames.flashgames.common.*;
public dynamic class _-Bs extends _-6P {
}
}//package _-Ea
Section 12
//_-CE (_-Ea._-CE)
package _-Ea {
import flash.display.*;
import flash.text.*;
public dynamic class _-CE extends MovieClip {
public var levelText:TextField;
}
}//package _-Ea
Section 13
//_-Fz (_-Ea._-Fz)
package _-Ea {
public class _-Fz {
public static var _-LX:String = "mahjong-fun";
public static var _-7z:String = "Mahjong Fun";
public static var _-7v:int = 1;
public static var _-Qw:Number = 41;
public static var _-1u:Number = 56;
public static var _-79:Number = 9;
public static var _-N7:Array = [[1, 1, 1, 1], [2, 2, 2, 2], [3, 3, 3, 3], [4, 4, 4, 4], [5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8], [9, 9, 9, 9], [10, 10, 10, 10], [11, 11, 11, 11], [12, 12, 12, 12], [13, 13, 13, 13], [14, 14, 14, 14], [15, 15, 15, 15], [16, 16, 16, 16], [17, 17, 17, 17], [18, 18, 18, 18], [19, 19, 19, 19], [20, 20, 20, 20], [21, 21, 21, 21], [22, 22, 22, 22], [23, 23, 23, 23], [24, 24, 24, 24], [25, 25, 25, 25], [26, 26, 26, 26], [27, 27, 27, 27], [28, 28, 28, 28], [29, 29, 29, 29], [30, 30, 30, 30], [31, 31, 31, 31], [32, 32, 32, 32], [33, 33, 33, 33], [34, 34, 34, 34], [35, 35, 35, 35], [39, 39, 39, 39]];
public static var _-OQ:Number = 15;
public static var _-DL:Number = 8;
public static var _-NJ:Number = 5;
public static var _-Mi:Array = ["011111111111100000111111110000001111111111000111111111111100011111111111111001111111111000000111111110000011111111111100", "000000000000000000011111100000000011111100000000011111100000000011111100000000011111100000000011111100000000000000000000", "000000000000000000000000000000000001111000000000001111000000000001111000000000001111000000000000000000000000000000000000", "000000000000000000000000000000000000000000000000000110000000000000110000000000000000000000000000000000000000000000000000", "000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000"];
public static var _-OT:Number = _-4;
public static var _-4:Number = 20000;
public static var _-HI:Number = 5;
public static var _-Ma:Number = 0;
public static var _-Hq:Number = 200;
public static var _-I:Number = 1500;
public static var _-03:Number = 1500;
}
}//package _-Ea
Section 14
//_-Ge (_-Ea._-Ge)
package _-Ea {
import com.novelgames.flashgames.common.*;
public class _-Ge extends _-OO {
override public function getGameId():String{
return (_-Fz._-LX);
}
}
}//package _-Ea
Section 15
//_-HZ (_-Ea._-HZ)
package _-Ea {
import com.novelgames.flashgames.common.*;
public dynamic class _-HZ extends _-6P {
}
}//package _-Ea
Section 16
//_-JT (_-Ea._-JT)
package _-Ea {
import com.novelgames.flashgames.common.*;
public dynamic class _-JT extends _-6P {
}
}//package _-Ea
Section 17
//_-Ou (_-Ea._-Ou)
package _-Ea {
import com.novelgames.flashgames.common.*;
public dynamic class _-Ou extends _-6P {
}
}//package _-Ea
Section 18
//_-P9 (_-Ea._-P9)
package _-Ea {
import flash.display.*;
public dynamic class _-P9 extends MovieClip {
public var playAgainSameTilesButton:SimpleButton;
public var playAgainButton:SimpleButton;
public var homeButton:SimpleButton;
}
}//package _-Ea
Section 19
//_-Ri (_-Ea._-Ri)
package _-Ea {
import flash.display.*;
import flash.events.*;
public class _-Ri extends MovieClip {
public var _-JA:MovieClip;
public var button:SimpleButton;
public var index:Number;
public var type:Number;
public var _-EK:MovieClip;
public function _-Ri(){
addFrameScript(24, frame25);
this["cacheAsBitmap"] = true;
stop();
button.addEventListener(MouseEvent.CLICK, _-9l);
this.width = 50;
this.height = 65;
}
public function setTileSet(_arg1:Number):void{
_-EK = ((_arg1 == 0)) ? new TileGraphics0() : new TileGraphics1();
_-JA.addChild(_-EK);
}
public function _-31():void{
gotoAndStop("selected");
}
public function _-H():void{
gotoAndPlay("hint");
}
private function hintAnimationFinished():void{
gotoAndStop("normal");
}
private function _-9l(_arg1:MouseEvent):void{
Object(parent.parent).clickTile(this);
}
function frame25(){
hintAnimationFinished();
}
}
}//package _-Ea
Section 20
//Game (_-Ea.Game)
package _-Ea {
import flash.display.*;
import com.novelgames.flashgames.common.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
public class Game extends Game {
public var bottomObyoButton:SimpleButton;
public var hintButton:SimpleButton;
public var restartButton:SimpleButton;
public var _-L4:MovieClip;
public var scoreText:TextField;
public var _-Of:TextField;
public var endDialog:_-3j;
public var _-0M:TextField;
private var tiles:Array;
private var _-7K:Array;
private var _-MQ:Array;
private var selectedTile:_-Ri;
private var gameStarted:Boolean;
private var _-M2:Number;
private var __minutes:_-G1;
private var _-8U:_-G1;
private var __score:_-G1;
private var _-BD:Boolean;
private var timer:Timer;
private var _-I9:Sound;
private var _-N-:Sound;
private var _-4n:Sound;
private var soundGameOver:Sound;
private var soundWin:Sound;
public function Game(){
super();
_-I9 = new _-Bs();
_-N- = new _-HZ();
_-4n = new _-BA();
soundGameOver = new _-Ou();
soundWin = new _-JT();
timer = new _-CQ(1, 0);
timer.addEventListener(TimerEvent.TIMER, onTime);
timer.start();
_-Eq.x = endDialog.x;
_-Eq.y = (endDialog.y + 275);
bottomObyoButton.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
_-7f(parent)._-1k("3");
}, false, 0, true);
restartButton.visible = false;
_-Rb();
}
public function _-Rb():void{
startPlay(0);
if (_-Fz._-7v != 1){
endDialog._-CL(_-Fz._-7v);
};
}
public function clickTile(_arg1:_-Ri):void{
if (!gameStarted){
return;
};
if (!_-Nv(_arg1)){
_-4n.play();
return;
};
if (selectedTile == null){
selectedTile = _arg1;
selectedTile.gotoAndStop("selected");
_-I9.play();
} else {
if (selectedTile == _arg1){
selectedTile.gotoAndStop("normal");
selectedTile = null;
_-I9.play();
} else {
if (selectedTile.type != _arg1.type){
selectedTile.gotoAndStop("normal");
selectedTile = _arg1;
selectedTile.gotoAndStop("selected");
_-I9.play();
} else {
_-0w(selectedTile);
_-0w(_arg1);
selectedTile = null;
_-N-.play();
if (!checkWin()){
_-Hi();
};
};
};
};
}
public function startPlay(_arg1:Number):void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local2:Number = 0;
tiles = new Array();
_-7K = new Array();
_-MQ = new Array();
selectedTile = null;
gameStarted = false;
_-M2 = 0;
minutes = 0;
_-1U = 0;
score = _-Fz._-OT;
_local5 = 0;
_local3 = 0;
while (_local3 < _-Fz._-NJ) {
_local4 = 0;
while (_local4 < _-Fz._-Mi[_local3].length) {
if (_-Fz._-Mi[_local3].substr(_local4, 1) == "1"){
tiles[_local2] = new _-Ri();
tiles[_local2].x = (((_local4 % _-Fz._-OQ) * _-Fz._-Qw) - (_local3 * _-Fz._-79));
tiles[_local2].y = ((Math.floor((_local4 / _-Fz._-OQ)) * _-Fz._-1u) - (_local3 * _-Fz._-79));
tiles[_local2].index = _local2;
tiles[_local2].type = -1;
tiles[_local2].setTileSet(_arg1);
_-L4.addChild(tiles[_local2]);
_-7K[_local5] = tiles[_local2];
_local5++;
};
_local2++;
_local4++;
};
_local3++;
};
tiles[45].y = (tiles[45].y + (_-Fz._-1u / 2));
tiles[73].y = (tiles[73].y - (_-Fz._-1u / 2));
tiles[74].y = (tiles[74].y - (_-Fz._-1u / 2));
tiles[547].x = (tiles[547].x - (_-Fz._-Qw / 2));
tiles[547].y = (tiles[547].y - (_-Fz._-1u / 2));
restartButton.addEventListener(MouseEvent.CLICK, restart);
hintButton.addEventListener(MouseEvent.CLICK, _-H);
_-OV();
}
private function onTime(_arg1:TimerEvent):void{
var _local2:Number;
if (!gameStarted){
return;
};
_local2 = (_-CQ.getTimer() - _-M2);
minutes = Math.floor((_local2 / 60000));
_-1U = Math.floor(((_local2 % 60000) / 1000));
score = ((_-Fz._-OT - ((minutes * 60) * _-Fz._-HI)) - (_-1U * _-Fz._-HI));
if (score < 0){
score = 0;
};
}
private function _-OV():void{
var _local1:Number;
_local1 = 0;
while (_local1 < _-7K.length) {
_-7K[_local1].visible = true;
_-7K[_local1].type = -1;
_local1++;
};
putTiles();
restart(null);
}
public function restart(_arg1:MouseEvent):void{
var _local2:Number;
_local2 = 0;
while (_local2 < _-7K.length) {
_-7K[_local2].visible = true;
_-7K[_local2].gotoAndStop("normal");
_local2++;
};
minutes = 0;
_-1U = 0;
selectedTile = null;
gameStarted = true;
_-M2 = _-CQ.getTimer();
endDialog.hide();
}
private function putTiles():void{
var _local1:Number;
var _local2:Array;
var _local3:Array;
while (true) {
_-My();
_local2 = _-3d();
_local1 = 0;
while (_local1 < _local2.length) {
_local3 = _-LT();
if (_local3 == null){
break;
};
_-S5(_local3[0], _local2[_local1].type, _local2[_local1].index0);
_-S5(_local3[1], _local2[_local1].type, _local2[_local1].index1);
_-0w(_local3[0]);
_-0w(_local3[1]);
_local1++;
};
if (_local1 >= _local2.length){
break;
};
_local1 = 0;
while (_local1 < _-7K.length) {
_-7K[_local1].visible = true;
_local1++;
};
};
}
private function _-My():void{
var _local1:Number;
_-MQ = new Array();
_local1 = 0;
while (_local1 < _-7K.length) {
if (_-Nv(_-7K[_local1])){
_-MQ.push(_-7K[_local1]);
};
_local1++;
};
}
private function _-3d():Array{
var _local1:Number;
var _local2:Number;
var _local3:Object;
var _local5:Object;
var _local4:Array = new Array();
_local1 = 0;
while (_local1 < _-Fz._-N7.length) {
_local2 = 0;
while (_local2 < _-Fz._-N7[_local1].length) {
_local5 = {type:_local1, index0:_local2, index1:(_local2 + 1)};
_local4.push(_local5);
_local2 = (_local2 + 2);
};
_local1++;
};
_local1 = 0;
while (_local1 < _local4.length) {
_local2 = Math.floor((Math.random() * _local4.length));
_local3 = _local4[_local1];
_local4[_local1] = _local4[_local2];
_local4[_local2] = _local3;
_local1++;
};
return (_local4);
}
private function _-LT():Array{
var _local1:Array;
var _local2:int;
if (_-MQ.length < 2){
return (null);
};
_local1 = new Array();
_local1[0] = _-MQ[Math.floor((Math.random() * _-MQ.length))];
do {
_local1[1] = _-MQ[Math.floor((Math.random() * _-MQ.length))];
} while (_local1[0] == _local1[1]);
return (_local1);
}
private function _-S5(_arg1:_-Ri, _arg2:Number, _arg3:Number):void{
_arg1.type = _arg2;
_arg1._-EK.gotoAndStop(_-Fz._-N7[_arg2][_arg3]);
}
private function _-0w(_arg1:_-Ri):void{
var _local4:Number;
var _local2:Number = _arg1.index;
var _local3:Number = (_local2 % _-Fz._-OQ);
_local4 = 0;
while (_local4 < _-MQ.length) {
if (_-MQ[_local4] == _arg1){
_-MQ.splice(_local4, 1);
break;
};
_local4++;
};
_arg1.visible = false;
if ((((((_local3 > 0)) && (tiles[(_local2 - 1)]))) && (_-Nv(tiles[(_local2 - 1)])))){
_-IR(tiles[(_local2 - 1)]);
};
if ((((((_local3 < (_-Fz._-OQ - 1))) && (tiles[(_local2 + 1)]))) && (_-Nv(tiles[(_local2 + 1)])))){
_-IR(tiles[(_local2 + 1)]);
};
if ((((((_local2 >= (_-Fz._-OQ * _-Fz._-DL))) && (tiles[(_local2 - (_-Fz._-OQ * _-Fz._-DL))]))) && (_-Nv(tiles[(_local2 - (_-Fz._-OQ * _-Fz._-DL))])))){
_-IR(tiles[(_local2 - (_-Fz._-OQ * _-Fz._-DL))]);
};
if (_local2 == 45){
if (_-Nv(tiles[61])){
_-IR(tiles[61]);
};
} else {
if (_local2 == 73){
if (_-Nv(tiles[57])){
_-IR(tiles[57]);
};
} else {
if (_local2 == 57){
if (_-Nv(tiles[73])){
_-IR(tiles[73]);
};
} else {
if (_local2 == 547){
_-IR(tiles[411]);
_-IR(tiles[412]);
_-IR(tiles[426]);
};
};
};
};
}
private function _-IR(_arg1:_-Ri):void{
var _local2:Number;
_local2 = 0;
while (_local2 < _-MQ.length) {
if (_-MQ[_local2] == _arg1){
return;
};
_local2++;
};
_-MQ.push(_arg1);
}
private function _-Nv(_arg1):Boolean{
var _local2:Number = _arg1.index;
var _local3:Number = (_local2 % _-Fz._-OQ);
if (!_arg1.visible){
return (false);
};
if ((((((((((((_local3 > 0)) && ((_local3 < (_-Fz._-OQ - 1))))) && (tiles[(_local2 - 1)]))) && (tiles[(_local2 - 1)].visible))) && (tiles[(_local2 + 1)]))) && (tiles[(_local2 + 1)].visible))){
return (false);
};
if ((((((_local2 < ((_-Fz._-OQ * _-Fz._-DL) * (_-Fz._-NJ - 1)))) && (tiles[(_local2 + (_-Fz._-OQ * _-Fz._-DL))]))) && (tiles[(_local2 + (_-Fz._-OQ * _-Fz._-DL))].visible))){
return (false);
};
if ((((((_local2 == 61)) && (tiles[45].visible))) && (tiles[62].visible))){
return (false);
};
if ((((((_local2 == 73)) && (tiles[74].visible))) && (((tiles[57].visible) || (tiles[72].visible))))){
return (false);
};
if ((((((_local2 == 57)) && (tiles[56].visible))) && (tiles[73].visible))){
return (false);
};
if ((((_local2 == 411)) && (tiles[547].visible))){
return (false);
};
if ((((_local2 == 412)) && (tiles[547].visible))){
return (false);
};
if ((((_local2 == 426)) && (tiles[547].visible))){
return (false);
};
return (true);
}
private function _-H(_arg1:MouseEvent):void{
var _local2:Array;
if (score > (_-Fz._-Hq * _-Fz._-HI)){
_local2 = _-5U();
if (_local2){
_-M2 = (_-M2 - (_-Fz._-Hq * 1000));
_local2[0].gotoAndPlay("hint");
_local2[1].gotoAndPlay("hint");
};
};
}
private function _-5U():Array{
var _local1:Number;
var _local2:Number;
var _local3:Array = new Array();
var _local4:Array = new Array(2);
_local1 = 0;
while (_local1 < _-7K.length) {
if (_-Nv(_-7K[_local1])){
_local3.push(_-7K[_local1]);
_local2 = 0;
while (_local2 < (_local3.length - 1)) {
if (_-7K[_local1].type == _local3[_local2].type){
_local4[0] = _-7K[_local1];
_local4[1] = _local3[_local2];
return (_local4);
};
_local2++;
};
};
_local1++;
};
return (null);
}
private function checkWin():Boolean{
var _local1:Number;
_local1 = 0;
while (_local1 < _-7K.length) {
if (_-7K[_local1].visible){
return (false);
};
_local1++;
};
gameWin();
return (true);
}
private function _-Hi():Boolean{
var _local1:Number;
var _local2:Number;
var _local3:Array = new Array();
if (score > 0){
_local1 = 0;
while (_local1 < _-7K.length) {
if (_-Nv(_-7K[_local1])){
_local3.push(_-7K[_local1]);
_local2 = 0;
while (_local2 < (_local3.length - 1)) {
if (_-7K[_local1].type == _local3[_local2].type){
return (false);
};
_local2++;
};
};
_local1++;
};
};
gameOver();
return (true);
}
private function gameWin():void{
var _local1:Timer;
_-BD = true;
score = (score + _-Fz._-Ma);
_-Fz._-OT = (_-Fz._-OT + score);
_-Fz._-7v++;
soundWin.play();
_-Rb();
}
private function gameOver():void{
var _local1:Timer;
_-BD = false;
_-Fz._-OT = _-Fz._-4;
_-Fz._-7v = 1;
gameStarted = false;
endDialog._-3q();
soundGameOver.play();
_local1 = new _-CQ(_-Fz._-I, 1);
_local1.addEventListener(TimerEvent.TIMER, showPlayAgain);
_local1.start();
}
private function showPlayAgain(_arg1:TimerEvent):void{
if (_-BD == true){
_-Fz._-OT = (_-Fz._-OT + score);
} else {
_-Fz._-OT = _-Fz._-4;
};
endDialog.showPlayAgain({score:score, win:_-BD, time:(((minutes * 60) + _-1U) * 1000)});
}
override public function destroyGame():void{
score = _-Fz._-4;
_-Fz._-OT = score;
timer.stop();
}
public function set score(_arg1:Number):void{
if (__score == null){
__score = new _-G1();
};
__score.value = _arg1;
if (__score.value < 0){
__score.value = 0;
};
scoreText.text = __score.value.toString();
if (__score.value <= 0){
_-Hi();
};
}
public function get score():Number{
if (__score == null){
__score = new _-G1();
};
return (__score.value);
}
public function set minutes(_arg1:Number):void{
if (__minutes == null){
__minutes = new _-G1();
};
__minutes.value = _arg1;
_-0M.text = _arg1.toString();
}
public function get minutes():Number{
if (__minutes == null){
__minutes = new _-G1();
};
return (__minutes.value);
}
public function set _-1U(_arg1:Number):void{
if (_-8U == null){
_-8U = new _-G1();
};
_-8U.value = _arg1;
_-Of.text = (((_arg1 < 10)) ? "0" : "" + _arg1.toString());
}
public function get _-1U():Number{
if (_-8U == null){
_-8U = new _-G1();
};
return (_-8U.value);
}
}
}//package _-Ea
Section 21
//TileGraphics0 (_-Ea.TileGraphics0)
package _-Ea {
import flash.display.*;
public dynamic class TileGraphics0 extends MovieClip {
}
}//package _-Ea
Section 22
//TileGraphics1 (_-Ea.TileGraphics1)
package _-Ea {
import flash.display.*;
public dynamic class TileGraphics1 extends MovieClip {
}
}//package _-Ea
Section 23
//_-41 (_-M9._-41)
package _-M9 {
import flash.display.*;
import flash.text.*;
public dynamic class _-41 extends MovieClip {
public var scoreInfoText:TextField;
public var submitButton:SubmitScoreButton;
public var submitToFacebookButton:SubmitToFacebookButton;
public var scoreText:TextField;
public var shareButton:ShareScoreButton;
public var _-F;
public function _-41(){
addFrameScript(0, this.frame1, 1, this.frame2, 2, this.frame3, 3, this.frame4, 5, this.frame6);
}
function frame1(){
this._-F = 0;
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame6(){
stop();
}
}
}//package _-M9
Section 24
//_-46 (_-M9._-46)
package _-M9 {
import flash.display.*;
import flash.text.*;
public dynamic class _-46 extends MovieClip {
public var scoreInfoText:TextField;
public var scoreText:TextField;
}
}//package _-M9
Section 25
//_-CC (_-M9._-CC)
package _-M9 {
import flash.display.*;
public dynamic class _-CC extends MovieClip {
public var obyoAddress:SimpleButton;
public var overlay:MovieClip;
public var obyoLogo:SimpleButton;
}
}//package _-M9
Section 26
//_-GB (_-M9._-GB)
package _-M9 {
import flash.display.*;
public dynamic class _-GB extends MovieClip {
public var backToMenuButton:BackToMenuButton;
public var moreGamesButton:MoreGamesButton;
public var playAgainButton:ReplayButton;
}
}//package _-M9
Section 27
//_-Jv (_-M9._-Jv)
package _-M9 {
import flash.display.*;
import flash.text.*;
public dynamic class _-Jv extends MovieClip {
public var scoreInfoText:TextField;
public var okButton:SimpleButton;
public var scoreText:TextField;
public var skipButton:SimpleButton;
public var _-F;
public function _-Jv(){
addFrameScript(0, this.frame1);
}
function frame1(){
this._-F = 0;
stop();
}
}
}//package _-M9
Section 28
//_-Ro (_-M9._-Ro)
package _-M9 {
import flash.display.*;
public dynamic class _-Ro extends MovieClip {
public var homeButton:SimpleButton;
public var intro:MovieClip;
public var preloaderBar:MovieClip;
}
}//package _-M9
Section 29
//BackToMenuButton (_-M9.BackToMenuButton)
package _-M9 {
import flash.display.*;
public dynamic class BackToMenuButton extends MovieClip {
}
}//package _-M9
Section 30
//MoreGamesButton (_-M9.MoreGamesButton)
package _-M9 {
import flash.display.*;
public dynamic class MoreGamesButton extends MovieClip {
}
}//package _-M9
Section 31
//ReplayButton (_-M9.ReplayButton)
package _-M9 {
import flash.display.*;
public dynamic class ReplayButton extends MovieClip {
}
}//package _-M9
Section 32
//ShareScoreButton (_-M9.ShareScoreButton)
package _-M9 {
import flash.display.*;
public dynamic class ShareScoreButton extends MovieClip {
}
}//package _-M9
Section 33
//SubmitScoreButton (_-M9.SubmitScoreButton)
package _-M9 {
import flash.display.*;
public dynamic class SubmitScoreButton extends MovieClip {
}
}//package _-M9
Section 34
//SubmitToFacebookButton (_-M9.SubmitToFacebookButton)
package _-M9 {
import flash.display.*;
public dynamic class SubmitToFacebookButton extends MovieClip {
}
}//package _-M9
Section 35
//_-4a (_-PA._-4a)
package _-PA {
public class _-4a {
public static const _-R-:String = "2.0.0";
public static const _-5N:String = "http://www.obyo.com";
public static const _-6x:String = "http://www.obyo.com";
public static const _-2k:String = "http://apps.facebook.com/obyogames/";
public static const _-QL:String = "20";
public static const _-8I:String = "11";
public static const _-Fw:String = "12";
public static const _-F0:String = "13";
public static const _-6Q:Number = 0.7;
public static const _-J0:String = "gosFlashEvent";
}
}//package _-PA
Section 36
//_-4T (_-PA._-4T)
package _-PA {
import gos.serviceAPI.*;
import gos.obyoAPI.serviceAPIImpl.services.*;
public class _-4T extends _-Nf {
override public function init(_arg1:String, _arg2:String, _arg3:Object=null):void{
if (_arg3 == null){
_arg3 = {};
};
_arg3.language = Languages._-DJ;
_arg3.libraryLoader = new _-2p(ObyoServiceClasses._-2o);
var _local4:ObyoServiceFactory = new ObyoServiceFactory();
super.init(_arg1, _arg2, _arg3);
}
public function get scoreService():_-3l{
return (_-3l(_-Dl.getObject(ObyoServiceClasses._-l)));
}
}
}//package _-PA
Section 37
//_-BP (_-PA._-BP)
package _-PA {
import gos.common.*;
public class _-BP {
public static function _-0a(_arg1=null, _arg2:Boolean=true):String{
return (_-F6._-8o("http://www.obyo.com/", _arg1, _arg2));
}
public static function _-SF(_arg1:String, _arg2=null, _arg3:Boolean=true):String{
return (_-F6._-8o(("http://www.obyo.com/game/" + _arg1), _arg2, _arg3));
}
public static function facebookLink(_arg1=null, _arg2:Boolean=true):String{
return (_-F6._-8o("http://apps.facebook.com/obyogames/", _arg1, _arg2));
}
public static function facebookGameLink(_arg1:String, _arg2=null, _arg3:Boolean=true):String{
return (_-F6._-8o(("http://apps.facebook.com/obyogames/game/" + _arg1), _arg2, _arg3));
}
}
}//package _-PA
Section 38
//_-Mz (_-PA._-Mz)
package _-PA {
public class _-Mz {
public static const _-6p:String = "obyo";
public static const _-0Q:String = "facebook";
public static const _-Jr:String = "others";
public static const _-Ic:String = "local";
}
}//package _-PA
Section 39
//_-Ne (_-PA._-Ne)
package _-PA {
import flash.display.*;
import gos.serviceAPI.*;
import gos.common.*;
public class _-Ne {
public static function _-9u(_arg1:DisplayObjectContainer):String{
var _local2:String = _-7U(_arg1);
if (_local2 == _-Mz._-0Q){
return (_-GG._-0Q);
};
if (_local2 == _-Mz._-6p){
return (_-GG._-9K);
};
return (_-GG._-8h);
}
public static function _-7U(_arg1:DisplayObjectContainer):String{
var _local4:Object;
var _local2:LoaderInfo = LoaderInfo(_arg1.root.loaderInfo);
var _local3:String = _local2.url;
if (_-F6._-2b(_local3, "obyo.com")){
_local4 = _local2.parameters;
if (!_-LE.isEmpty(_local4["fbu"])){
return (_-Mz._-0Q);
};
return (_-Mz._-6p);
};
return (_-Mz._-Jr);
}
public static function _-MX(_arg1:String):String{
var _local2:String = _-Ac.md5((("xx" + _arg1) + new Date().getTime()));
var _local3:int = (Math.random() * 16);
var _local4:String = (("" + _local2.substr(_local3, 14)) + (int((Math.random() * 80)) + 10));
return (_local4);
}
}
}//package _-PA
Section 40
//ObyoServiceClasses (_-PA.ObyoServiceClasses)
package _-PA {
public class ObyoServiceClasses {
public static const _-2o:String = "gos.obyoAPI.serviceAPIImpl.services.ObyoServiceFactory";
public static const _-l:String = "gos.obyoAPI.serviceAPIImpl.services.ObyoScoreService";
}
}//package _-PA
Section 41
//_-08 (com.adobe.serialization.json._-08)
package com.adobe.serialization.json {
public class _-08 {
public static function encode(_arg1:Object):String{
var _local2:_-B1 = new _-B1(_arg1);
return (_local2._-Ph());
}
public static function decode(_arg1:String){
var _local2:_-6B = new _-6B(_arg1);
return (_local2.getValue());
}
}
}//package com.adobe.serialization.json
Section 42
//_-6B (com.adobe.serialization.json._-6B)
package com.adobe.serialization.json {
public class _-6B {
private var value;
private var tokenizer:_-BY;
private var token:JSONToken;
public function _-6B(_arg1:String){
this.tokenizer = new _-BY(_arg1);
this.nextToken();
this.value = this._-RK();
}
public function getValue(){
return (this.value);
}
private function nextToken():JSONToken{
return ((this.token = this.tokenizer.getNextToken()));
}
private function _-G5():Array{
var _local1:Array = new Array();
this.nextToken();
if (this.token.type == _-w._-Jd){
return (_local1);
};
while (true) {
_local1.push(this._-RK());
this.nextToken();
if (this.token.type == _-w._-Jd){
return (_local1);
};
if (this.token.type == _-w._-Fp){
this.nextToken();
} else {
this.tokenizer._-LV(("Expecting ] or , but found " + this.token.value));
};
};
return (null);
}
private function parseObject():Object{
var _local2:String;
var _local1:Object = new Object();
this.nextToken();
if (this.token.type == _-w._-LP){
return (_local1);
};
while (true) {
if (this.token.type == _-w._-8e){
_local2 = String(this.token.value);
this.nextToken();
if (this.token.type == _-w._-6c){
this.nextToken();
_local1[_local2] = this._-RK();
this.nextToken();
if (this.token.type == _-w._-LP){
return (_local1);
};
if (this.token.type == _-w._-Fp){
this.nextToken();
} else {
this.tokenizer._-LV(("Expecting } or , but found " + this.token.value));
};
} else {
this.tokenizer._-LV(("Expecting : but found " + this.token.value));
};
} else {
this.tokenizer._-LV(("Expecting string but found " + this.token.value));
};
};
return (null);
}
private function _-RK():Object{
if (this.token == null){
this.tokenizer._-LV("Unexpected end of input");
};
switch (this.token.type){
case _-w._-6d:
return (this.parseObject());
case _-w._-4B:
return (this._-G5());
case _-w._-8e:
case _-w._-2i:
case _-w._-S2:
case _-w._-DH:
case _-w._-1z:
return (this.token.value);
default:
this.tokenizer._-LV(("Unexpected " + this.token.value));
};
return (null);
}
}
}//package com.adobe.serialization.json
Section 43
//_-B1 (com.adobe.serialization.json._-B1)
package com.adobe.serialization.json {
import flash.utils.*;
public class _-B1 {
private var jsonString:String;
public function _-B1(_arg1){
this.jsonString = this._-ID(_arg1);
}
public function _-Ph():String{
return (this.jsonString);
}
private function _-ID(_arg1):String{
if ((_arg1 is String)){
return (this.escapeString((_arg1 as String)));
};
if ((_arg1 is Number)){
return ((isFinite((_arg1 as Number))) ? _arg1.toString() : "null");
} else {
if ((_arg1 is Boolean)){
return ((_arg1) ? "true" : "false");
} else {
if ((_arg1 is Array)){
return (this._-LH((_arg1 as Array)));
};
if ((((_arg1 is Object)) && (!((_arg1 == null))))){
return (this.objectToString(_arg1));
};
};
};
return ("null");
}
private function escapeString(_arg1:String):String{
var _local3:String;
var _local6:String;
var _local7:String;
var _local2 = "";
var _local4:Number = _arg1.length;
var _local5:int;
while (_local5 < _local4) {
_local3 = _arg1.charAt(_local5);
switch (_local3){
case "\"":
_local2 = (_local2 + "\\\"");
break;
case "\\":
_local2 = (_local2 + "\\\\");
break;
case "\b":
_local2 = (_local2 + "\\b");
break;
case "\f":
_local2 = (_local2 + "\\f");
break;
case "\n":
_local2 = (_local2 + "\\n");
break;
case "\r":
_local2 = (_local2 + "\\r");
break;
case "\t":
_local2 = (_local2 + "\\t");
break;
default:
if (_local3 < " "){
_local6 = _local3.charCodeAt(0).toString(16);
_local7 = ((_local6.length == 2)) ? "00" : "000";
_local2 = (_local2 + (("\\u" + _local7) + _local6));
} else {
_local2 = (_local2 + _local3);
};
};
_local5++;
};
return ((("\"" + _local2) + "\""));
}
private function _-LH(_arg1:Array):String{
var _local2 = "";
var _local3:int;
while (_local3 < _arg1.length) {
if (_local2.length > 0){
_local2 = (_local2 + ",");
};
_local2 = (_local2 + this._-ID(_arg1[_local3]));
_local3++;
};
return ((("[" + _local2) + "]"));
}
private function objectToString(_arg1:Object):String{
var value:Object;
var key:String;
var v:XML;
var o = _arg1;
var s = "";
var classInfo:XML = describeType(o);
if (classInfo.@name.toString() == "Object"){
for (key in o) {
value = o[key];
if ((value is Function)){
} else {
if (s.length > 0){
s = (s + ",");
};
s = (s + ((this.escapeString(key) + ":") + this._-ID(value)));
};
};
} else {
for each (v in classInfo..*.(((name() == "variable")) || ((name() == "accessor")))) {
if (s.length > 0){
s = (s + ",");
};
s = (s + ((this.escapeString(v.@name.toString()) + ":") + this._-ID(o[v.@name])));
};
};
return ((("{" + s) + "}"));
}
}
}//package com.adobe.serialization.json
Section 44
//_-BY (com.adobe.serialization.json._-BY)
package com.adobe.serialization.json {
public class _-BY {
private var obj:Object;
private var jsonString:String;
private var _-Gy:int;
private var ch:String;
public function _-BY(_arg1:String){
this.jsonString = _arg1;
this._-Gy = 0;
this._-21();
}
public function getNextToken():JSONToken{
var _local2:String;
var _local3:String;
var _local4:String;
var _local1:JSONToken = new JSONToken();
this._-HN();
switch (this.ch){
case "{":
_local1.type = _-w._-6d;
_local1.value = "{";
this._-21();
break;
case "}":
_local1.type = _-w._-LP;
_local1.value = "}";
this._-21();
break;
case "[":
_local1.type = _-w._-4B;
_local1.value = "[";
this._-21();
break;
case "]":
_local1.type = _-w._-Jd;
_local1.value = "]";
this._-21();
break;
case ",":
_local1.type = _-w._-Fp;
_local1.value = ",";
this._-21();
break;
case ":":
_local1.type = _-w._-6c;
_local1.value = ":";
this._-21();
break;
case "t":
_local2 = ((("t" + this._-21()) + this._-21()) + this._-21());
if (_local2 == "true"){
_local1.type = _-w._-S2;
_local1.value = true;
this._-21();
} else {
this._-LV(("Expecting 'true' but found " + _local2));
};
break;
case "f":
_local3 = (((("f" + this._-21()) + this._-21()) + this._-21()) + this._-21());
if (_local3 == "false"){
_local1.type = _-w._-DH;
_local1.value = false;
this._-21();
} else {
this._-LV(("Expecting 'false' but found " + _local3));
};
break;
case "n":
_local4 = ((("n" + this._-21()) + this._-21()) + this._-21());
if (_local4 == "null"){
_local1.type = _-w._-1z;
_local1.value = null;
this._-21();
} else {
this._-LV(("Expecting 'null' but found " + _local4));
};
break;
case "\"":
_local1 = this._-5S();
break;
default:
if (((this.isDigit(this.ch)) || ((this.ch == "-")))){
_local1 = this._-7s();
} else {
if (this.ch == ""){
return (null);
};
this._-LV((("Unexpected " + this.ch) + " encountered"));
};
};
return (_local1);
}
private function _-5S():JSONToken{
var _local3:String;
var _local4:int;
var _local1:JSONToken = new JSONToken();
_local1.type = _-w._-8e;
var _local2 = "";
this._-21();
while (((!((this.ch == "\""))) && (!((this.ch == ""))))) {
if (this.ch == "\\"){
this._-21();
switch (this.ch){
case "\"":
_local2 = (_local2 + "\"");
break;
case "/":
_local2 = (_local2 + "/");
break;
case "\\":
_local2 = (_local2 + "\\");
break;
case "b":
_local2 = (_local2 + "\b");
break;
case "f":
_local2 = (_local2 + "\f");
break;
case "n":
_local2 = (_local2 + "\n");
break;
case "r":
_local2 = (_local2 + "\r");
break;
case "t":
_local2 = (_local2 + "\t");
break;
case "u":
_local3 = "";
_local4 = 0;
while (_local4 < 4) {
if (!this.isHexDigit(this._-21())){
this._-LV((" Excepted a hex digit, but found: " + this.ch));
};
_local3 = (_local3 + this.ch);
_local4++;
};
_local2 = (_local2 + String.fromCharCode(parseInt(_local3, 16)));
break;
default:
_local2 = (_local2 + ("\\" + this.ch));
};
} else {
_local2 = (_local2 + this.ch);
};
this._-21();
};
if (this.ch == ""){
this._-LV("Unterminated string literal");
};
this._-21();
_local1.value = _local2;
return (_local1);
}
private function _-7s():JSONToken{
var _local1:JSONToken = new JSONToken();
_local1.type = _-w._-2i;
var _local2 = "";
if (this.ch == "-"){
_local2 = (_local2 + "-");
this._-21();
};
if (!this.isDigit(this.ch)){
this._-LV("Expecting a digit");
};
if (this.ch == "0"){
_local2 = (_local2 + this.ch);
this._-21();
if (this.isDigit(this.ch)){
this._-LV("A digit cannot immediately follow 0");
};
} else {
while (this.isDigit(this.ch)) {
_local2 = (_local2 + this.ch);
this._-21();
};
};
if (this.ch == "."){
_local2 = (_local2 + ".");
this._-21();
if (!this.isDigit(this.ch)){
this._-LV("Expecting a digit");
};
while (this.isDigit(this.ch)) {
_local2 = (_local2 + this.ch);
this._-21();
};
};
if ((((this.ch == "e")) || ((this.ch == "E")))){
_local2 = (_local2 + "e");
this._-21();
if ((((this.ch == "+")) || ((this.ch == "-")))){
_local2 = (_local2 + this.ch);
this._-21();
};
if (!this.isDigit(this.ch)){
this._-LV("Scientific notation number needs exponent value");
};
while (this.isDigit(this.ch)) {
_local2 = (_local2 + this.ch);
this._-21();
};
};
var _local3:Number = Number(_local2);
if (((isFinite(_local3)) && (!(isNaN(_local3))))){
_local1.value = _local3;
return (_local1);
};
this._-LV((("Number " + _local3) + " is not valid!"));
return (null);
}
private function _-21():String{
return ((this.ch = this.jsonString.charAt(this._-Gy++)));
}
private function _-HN():void{
var _local1:int;
do {
_local1 = this._-Gy;
this._-Ll();
this._-RE();
} while (_local1 != this._-Gy);
}
private function _-RE():void{
if (this.ch == "/"){
this._-21();
switch (this.ch){
case "/":
do {
this._-21();
} while (((!((this.ch == "\n"))) && (!((this.ch == "")))));
this._-21();
break;
case "*":
this._-21();
while (true) {
if (this.ch == "*"){
this._-21();
if (this.ch == "/"){
this._-21();
break;
};
} else {
this._-21();
};
if (this.ch == ""){
this._-LV("Multi-line comment not closed");
};
};
break;
default:
this._-LV((("Unexpected " + this.ch) + " encountered (expecting '/' or '*' )"));
};
};
}
private function _-Ll():void{
while (this.isWhiteSpace(this.ch)) {
this._-21();
};
}
private function isWhiteSpace(_arg1:String):Boolean{
return ((((((((_arg1 == " ")) || ((_arg1 == "\t")))) || ((_arg1 == "\n")))) || ((_arg1 == "\r"))));
}
private function isDigit(_arg1:String):Boolean{
return ((((_arg1 >= "0")) && ((_arg1 <= "9"))));
}
private function isHexDigit(_arg1:String):Boolean{
var _local2:String = _arg1.toUpperCase();
return (((this.isDigit(_arg1)) || ((((_local2 >= "A")) && ((_local2 <= "F"))))));
}
public function _-LV(_arg1:String):void{
throw (new JSONParseError(_arg1, this._-Gy, this.jsonString));
}
}
}//package com.adobe.serialization.json
Section 45
//_-w (com.adobe.serialization.json._-w)
package com.adobe.serialization.json {
public class _-w {
public static const _-Lu:int = -1;
public static const _-Fp:int = 0;
public static const _-6d:int = 1;
public static const _-LP:int = 2;
public static const _-4B:int = 3;
public static const _-Jd:int = 4;
public static const _-6c:int = 6;
public static const _-S2:int = 7;
public static const _-DH:int = 8;
public static const _-1z:int = 9;
public static const _-8e:int = 10;
public static const _-2i:int = 11;
}
}//package com.adobe.serialization.json
Section 46
//JSONParseError (com.adobe.serialization.json.JSONParseError)
package com.adobe.serialization.json {
public class JSONParseError extends Error {
private var _location:int;
private var _text:String;
public function JSONParseError(_arg1:String="", _arg2:int=0, _arg3:String=""){
super(_arg1);
name = "JSONParseError";
this._location = _arg2;
this._text = _arg3;
}
public function get location():int{
return (this._location);
}
public function get text():String{
return (this._text);
}
}
}//package com.adobe.serialization.json
Section 47
//JSONToken (com.adobe.serialization.json.JSONToken)
package com.adobe.serialization.json {
public class JSONToken {
private var _type:int;
private var _-8u:Object;
public function JSONToken(_arg1:int=-1, _arg2:Object=null){
this._type = _arg1;
this._-8u = _arg2;
}
public function get type():int{
return (this._type);
}
public function set type(_arg1:int):void{
this._type = _arg1;
}
public function get value():Object{
return (this._-8u);
}
public function set value(_arg1:Object):void{
this._-8u = _arg1;
}
}
}//package com.adobe.serialization.json
Section 48
//_-1g (com.novelgames.flashgames.common._-1g)
package com.novelgames.flashgames.common {
import flash.events.*;
import flash.utils.*;
public class _-1g {
private var parent:_-1g;
private var __speed:Number;
private var _-AQ:Number;
private var _-3M:Number;
private var _-PR:Number;
private var children:Array;
private var timers:Array;
private static var _-Jg:_-1g = new (_-1g);
;
public function _-1g(){
parent = null;
__speed = 1;
_-AQ = 1;
_-3M = getTimer();
_-PR = _-3M;
children = new Array();
timers = new Array();
}
public function _-98():_-1g{
var _local1:_-1g = new _-1g();
_local1.parent = this;
_local1._-3M = getTime();
_local1.updateRealSpeed();
children.push(_local1);
return (_local1);
}
public function _-2E(_arg1:Number, _arg2:int=0):_-CQ{
return (new _-CQ(_arg1, _arg2, this));
}
public function _-8r(_arg1:_-CQ):void{
timers.push(_arg1);
}
public function getTime():Number{
return ((_-3M + (_-CP * (getTimer() - _-PR))));
}
public function pause():void{
speed = 0;
}
public function unpause():void{
speed = 1;
}
public function set speed(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
__speed = _arg1;
updateRealSpeed();
}
public function get speed():Number{
return (__speed);
}
public function get _-CP():Number{
return (_-AQ);
}
public function updateRealSpeed():void{
var _local1:int;
if (_-AQ == (_-Ns() * speed)){
return;
};
_-3M = getTime();
_-PR = getTimer();
_-AQ = (_-Ns() * speed);
_local1 = 0;
while (_local1 < timers.length) {
timers[_local1].speedUpdated();
_local1++;
};
_local1 = 0;
while (_local1 < children.length) {
children[_local1].updateRealSpeed();
_local1++;
};
}
private function _-Ns():Number{
if (parent){
return (parent.speed);
};
return (1);
}
public static function get _-DR():_-1g{
return (_-Jg);
}
}
}//package com.novelgames.flashgames.common
Section 49
//_-6P (com.novelgames.flashgames.common._-6P)
package com.novelgames.flashgames.common {
import flash.media.*;
import flash.net.*;
public class _-6P extends Sound {
public static var volume:Number = _-HS();
private static var allSoundChannels:Array = new Array();
override public function play(_arg1:Number=0, _arg2:int=0, _arg3:SoundTransform=null):SoundChannel{
var _local4:SoundChannel = super.play(_arg1, _arg2, new SoundTransform(volume));
allSoundChannels.push(_local4);
return (_local4);
}
private static function _-HS():Number{
var _local1:SharedObject = SharedObject.getLocal("gameOptions", "/");
_local1.objectEncoding = ObjectEncoding.AMF0;
if (isNaN(_local1.data.soundVolume)){
_local1.data.soundVolume = 1;
};
return (_local1.data.soundVolume);
}
public static function saveVolume():void{
var _local1:SharedObject = SharedObject.getLocal("gameOptions", "/");
_local1.objectEncoding = ObjectEncoding.AMF0;
_local1.data.soundVolume = volume;
}
public static function _-Gz(_arg1:Number):void{
var _local2:int;
_-6P.volume = _arg1;
_local2 = 0;
while (_local2 < allSoundChannels.length) {
allSoundChannels[_local2].soundTransform = new SoundTransform(_arg1);
_local2++;
};
}
}
}//package com.novelgames.flashgames.common
Section 50
//_-90 (com.novelgames.flashgames.common._-90)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
public class _-90 extends MovieClip {
public var okButton:SimpleButton;
public var sound:MovieClip;
public var fullScreen:MovieClip;
public var _-JO:MovieClip;
public var separator0:MovieClip;
public var separator1:MovieClip;
private var soundOnX:Number;
private var soundOnY:Number;
private var soundOffX:Number;
private var soundOffY:Number;
private var _-4r:Number;
private var _-2G:Number;
private var _-AV:Number;
private var _-Cc:Number;
private var soundSlider:MovieClip;
private var _-RH:MovieClip;
public function _-90(){
this.addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
}
private function onAddedToStage(_arg1:Event):void{
soundOnX = sound.onSlider.x;
soundOnY = sound.onSlider.y;
soundOffX = sound.offSlider.x;
soundOffY = sound.offSlider.y;
_-4r = _-JO.onSlider.x;
_-2G = _-JO.onSlider.y;
_-AV = _-JO.offSlider.x;
_-Cc = _-JO.offSlider.y;
sound.offSlider.visible = false;
soundSlider = sound.onSlider;
_-JO.offSlider.visible = false;
_-RH = _-JO.onSlider;
updateSoundSlider(_-6P.volume);
updateMusicSlider(_-Pv.volume);
soundSlider.addEventListener(MouseEvent.MOUSE_DOWN, onSoundSliderMouseDown);
soundSlider.buttonMode = true;
_-RH.addEventListener(MouseEvent.MOUSE_DOWN, onMusicSliderMouseDown);
_-RH.buttonMode = true;
okButton.addEventListener(MouseEvent.CLICK, okButtonClicked);
updateFullScreenButtons();
}
private function updateSoundSlider(_arg1:Number):void{
soundSlider.x = ((soundOnX * _arg1) + (soundOffX * (1 - _arg1)));
soundSlider.y = ((soundOnY * _arg1) + (soundOffY * (1 - _arg1)));
}
private function updateMusicSlider(_arg1:Number):void{
_-RH.x = ((_-4r * _arg1) + (_-AV * (1 - _arg1)));
_-RH.y = ((_-2G * _arg1) + (_-Cc * (1 - _arg1)));
}
private function onSoundSliderMouseDown(_arg1:MouseEvent):void{
soundSlider.removeEventListener(MouseEvent.MOUSE_DOWN, onSoundSliderMouseDown);
this.addEventListener(MouseEvent.MOUSE_MOVE, onSoundSliderMouseMove);
this.addEventListener(MouseEvent.MOUSE_UP, onSoundSliderMouseUp);
}
private function onSoundSliderMouseMove(_arg1:MouseEvent):void{
var _local2:Number;
_arg1.updateAfterEvent();
_local2 = ((sound.mouseX - soundOffX) / (soundOnX - soundOffX));
if (_local2 < 0){
_local2 = 0;
};
if (_local2 > 1){
_local2 = 1;
};
updateSoundSlider(_local2);
_-6P._-Gz(_local2);
}
private function onSoundSliderMouseUp(_arg1:MouseEvent):void{
this.removeEventListener(MouseEvent.MOUSE_MOVE, onSoundSliderMouseMove);
this.removeEventListener(MouseEvent.MOUSE_UP, onSoundSliderMouseUp);
soundSlider.addEventListener(MouseEvent.MOUSE_DOWN, onSoundSliderMouseDown);
}
private function onMusicSliderMouseDown(_arg1:MouseEvent):void{
_-RH.removeEventListener(MouseEvent.MOUSE_DOWN, onMusicSliderMouseDown);
this.addEventListener(MouseEvent.MOUSE_MOVE, onMusicSliderMouseMove);
this.addEventListener(MouseEvent.MOUSE_UP, onMusicSliderMouseUp);
}
private function onMusicSliderMouseMove(_arg1:MouseEvent):void{
var _local2:Number;
_arg1.updateAfterEvent();
_local2 = ((_-JO.mouseX - _-AV) / (soundOnX - _-AV));
if (_local2 < 0){
_local2 = 0;
};
if (_local2 > 1){
_local2 = 1;
};
updateMusicSlider(_local2);
_-Pv._-Gz(_local2);
}
private function onMusicSliderMouseUp(_arg1:MouseEvent):void{
this.removeEventListener(MouseEvent.MOUSE_MOVE, onMusicSliderMouseMove);
this.removeEventListener(MouseEvent.MOUSE_UP, onMusicSliderMouseUp);
_-RH.addEventListener(MouseEvent.MOUSE_DOWN, onMusicSliderMouseDown);
}
private function okButtonClicked(_arg1:MouseEvent):void{
_-6P.saveVolume();
_-Pv.saveVolume();
Object(parent).hideOptions();
}
private function updateFullScreenButtons():void{
if (stage.displayState == StageDisplayState.FULL_SCREEN){
fullScreen.onButton.gotoAndStop("on");
fullScreen.onButton.removeEventListener(MouseEvent.CLICK, onFullScreenOnClicked);
fullScreen.onButton.buttonMode = false;
fullScreen.offButton.gotoAndStop("off");
fullScreen.offButton.addEventListener(MouseEvent.CLICK, onFullScreenOffClicked);
fullScreen.offButton.buttonMode = true;
} else {
fullScreen.onButton.gotoAndStop("off");
fullScreen.onButton.addEventListener(MouseEvent.CLICK, onFullScreenOnClicked);
fullScreen.onButton.buttonMode = true;
fullScreen.offButton.gotoAndStop("on");
fullScreen.offButton.removeEventListener(MouseEvent.CLICK, onFullScreenOffClicked);
fullScreen.offButton.buttonMode = false;
};
}
private function onFullScreenOnClicked(_arg1:MouseEvent):void{
stage.displayState = StageDisplayState.FULL_SCREEN;
updateFullScreenButtons();
}
private function onFullScreenOffClicked(_arg1:MouseEvent):void{
stage.displayState = StageDisplayState.NORMAL;
updateFullScreenButtons();
}
}
}//package com.novelgames.flashgames.common
Section 51
//_-BJ (com.novelgames.flashgames.common._-BJ)
package com.novelgames.flashgames.common {
public dynamic class _-BJ extends _-Pv {
}
}//package com.novelgames.flashgames.common
Section 52
//_-CQ (com.novelgames.flashgames.common._-CQ)
package com.novelgames.flashgames.common {
import flash.events.*;
import flash.utils.*;
public class _-CQ extends Timer {
private var _-2c:Number;
private var _-Mg:Function;
private var timerFactory:_-1g;
private var isRunning:Boolean;
private var _-0y:Number;
private var currentDelay:Number;
public function _-CQ(_arg1:Number, _arg2:int=0, _arg3:_-1g=null):void{
if (_arg3 == null){
_arg3 = _-1g._-DR;
};
super(((_arg3._-CP == 0)) ? 2147483647 : (_arg1 / _arg3._-CP), _arg2);
_-2c = _arg1;
currentDelay = _-2c;
_arg3._-8r(this);
this.timerFactory = _arg3;
isRunning = false;
}
override public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
this._-Mg = _arg2;
super.addEventListener(_arg1, timerEventListener, _arg3, _arg4, _arg5);
}
override public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
super.removeEventListener(_arg1, timerEventListener, _arg3);
if (_arg2 == this._-Mg){
this._-Mg = null;
};
}
override public function start():void{
_-0y = timerFactory.getTime();
if (timerFactory._-CP == 0){
return;
};
super.start();
isRunning = true;
}
override public function stop():void{
super.stop();
isRunning = false;
}
public function speedUpdated():void{
var _local1:Number;
if (_-Mg == null){
return;
};
if (!isRunning){
return;
};
super.stop();
_local1 = timerFactory.getTime();
currentDelay = (_-2c - (_local1 - _-0y));
if (currentDelay <= 0){
currentDelay = _-2c;
};
if (timerFactory._-CP == 0){
return;
};
delay = (currentDelay / timerFactory._-CP);
super.start();
}
private function timerEventListener(_arg1:TimerEvent):void{
if (_arg1.type != TimerEvent.TIMER){
return;
};
_-0y = timerFactory.getTime();
_-Mg(_arg1);
if (!isRunning){
return;
};
if (((!((repeatCount == 0))) && ((currentCount >= repeatCount)))){
isRunning = false;
return;
};
if (currentDelay != _-2c){
super.stop();
currentDelay = _-2c;
delay = (currentDelay / timerFactory._-CP);
super.start();
};
}
public static function getTimer():int{
return (_-1g._-DR.getTime());
}
public static function pause():void{
_-1g._-DR.pause();
}
public static function unpause():void{
_-1g._-DR.unpause();
}
}
}//package com.novelgames.flashgames.common
Section 53
//_-Ef (com.novelgames.flashgames.common._-Ef)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.geom.*;
import flash.external.*;
public class _-Ef extends MovieClip {
private var title:_-FM;
protected var _-Gf:_-Gd;
protected var _-Ms:_-P1;
protected var messageClose:MessageClose;
protected var game:Game;
protected var _-QU:_-90;
protected var _-81:Sound;
protected var _-CW:SoundChannel;
protected var _-Ht:Sound;
protected var _-9o:SoundChannel;
public var buttonSoundOver:Sound;
public var buttonSoundClick:Sound;
private var titleX:Number;
private var titleY:Number;
private var titleIndex:int;
public function _-Ef(){
runConsole();
stop();
checkTitle();
}
public function runConsole():void{
}
public function gotoTitlePage():void{
removePage();
title = new _-FM();
title.x = titleX;
title.y = titleY;
this.addChildAt(title, titleIndex);
startIntroMusic();
}
public function gotoTitlePageAndClose():void{
game.destroyGame();
game.unpause();
this.removeChild(messageClose);
messageClose = null;
removePage();
title = new _-FM();
title.x = titleX;
title.y = titleY;
this.addChildAt(title, titleIndex);
startIntroMusic();
}
public function gotoInstructionsPage():void{
_-Gf = new _-Gd();
_-Gf.x = titleX;
_-Gf.y = titleY;
this.addChildAt(_-Gf, (titleIndex + 1));
}
public function _-5b():void{
removePage();
_-Ms = new _-P1();
_-Ms.x = titleX;
_-Ms.y = titleY;
this.addChildAt(_-Ms, titleIndex);
}
public function gotoGamePage():void{
Game._-CH = stage;
Game._-7R = this;
removePage();
_-81 = getMusicGame();
_-CW = _-81.play(0, int.MAX_VALUE);
game = getGame();
game.x = titleX;
game.y = titleY;
this.addChildAt(game, titleIndex);
}
public function showInstructionsFromGame():void{
game.pause();
_-Gf = new _-Gd(true);
_-Gf.x = titleX;
_-Gf.y = titleY;
this.addChildAt(_-Gf, (titleIndex + 1));
}
public function hideInstructionsFromGame():void{
this.removeChild(_-Gf);
_-Gf = null;
game.unpause();
}
public function showMessagePauseFromGame():void{
game.pause();
_-Ms = new _-P1(true);
_-Ms.x = game._-Eq.x;
_-Ms.y = game._-Eq.y;
this.addChildAt(_-Ms, (titleIndex + 1));
}
public function hideMessagePauseFromGame():void{
this.removeChild(_-Ms);
_-Ms = null;
game.visible = true;
game.unpause();
}
public function showMessageCloseFromGame():void{
game.pause();
messageClose = new MessageClose(true);
messageClose.x = game._-Eq.x;
messageClose.y = game._-Eq.y;
this.addChildAt(messageClose, (titleIndex + 1));
}
public function hideMessageCloseFromGame():void{
this.removeChild(messageClose);
messageClose = null;
game.visible = true;
game.unpause();
}
public function showOptions():void{
game.pause();
_-QU = new _-90();
_-QU.x = titleX;
_-QU.y = titleY;
this.addChildAt(_-QU, (titleIndex + 1));
}
public function hideOptions():void{
game.unpause();
this.removeChild(_-QU);
_-QU = null;
}
public function startGameMusic():void{
stopGameMusic();
_-81 = getMusicGame();
_-CW = _-81.play(0, int.MAX_VALUE);
}
public function stopGameMusic():void{
if (_-81){
_-CW.stop();
_-81 = null;
_-CW = null;
};
}
public function startIntroMusic():void{
stopIntroMusic();
_-Ht = _-7b();
_-9o = _-Ht.play(0, int.MAX_VALUE);
}
public function stopIntroMusic():void{
if (_-Ht){
_-9o.stop();
_-Ht = null;
_-9o = null;
};
}
public function showHighScores():void{
}
public function showEnterHighScore(_arg1:int):void{
}
public function gameEnded(_arg1:Object):void{
var _local3:String;
var _local2:Array = new Array();
for (_local3 in _arg1) {
_local2.push(((_local3 + ": ") + _arg1[_local3]));
};
showEnterHighScore(_arg1["score"]);
}
public function gotoMoreGamesURL(_arg1:String=""):void{
_-1k(_arg1);
}
public function _-1k(_arg1:String=""):void{
navigateToURL(new URLRequest(_-40(true, _arg1)), "_blank");
}
public function getGameId():String{
return ("");
}
public function _-40(_arg1:Boolean=true, _arg2:String=""):String{
if (_arg2 != ""){
_arg2 = ("&refex=" + _arg2);
};
if (_arg1){
return ((("http://www.obyo.com/?ref=" + getGameId()) + _arg2));
};
return ((("http://www.obyo.com/" + ((_arg2)!="") ? "?" : "") + _arg2));
}
protected function getTitle():_-FM{
return (null);
}
protected function getGame():Game{
return (null);
}
protected function getMusicGame():Sound{
return (null);
}
protected function _-7b():Sound{
return (new _-BJ());
}
protected function getButtonSoundOver():Sound{
return (null);
}
protected function getButtonSoundClick():Sound{
return (null);
}
private function checkTitle(_arg1:Event=null):void{
if (!(title = getTitle())){
return;
};
titleX = title.x;
titleY = title.y;
this.removeEventListener(Event.ENTER_FRAME, checkTitle);
stop();
titleIndex = this.getChildIndex(title);
buttonSoundOver = getButtonSoundOver();
buttonSoundClick = getButtonSoundClick();
startIntroMusic();
}
private function removePage():void{
if (title){
removeChild(title);
title = null;
};
if (_-Gf){
removeChild(_-Gf);
_-Gf = null;
};
if (game){
removeChild(game);
game = null;
};
if (_-81){
_-CW.stop();
_-81 = null;
_-CW = null;
};
if (_-Ht){
_-9o.stop();
_-Ht = null;
_-9o = null;
};
}
}
}//package com.novelgames.flashgames.common
Section 54
//_-FM (com.novelgames.flashgames.common._-FM)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class _-FM extends MovieClip {
public var helpButton:SimpleButton;
public var obyoLogoButton:SimpleButton;
public var moreGamesButton:SimpleButton;
public var startButton:SimpleButton;
public function _-FM(){
startButton.addEventListener(MouseEvent.ROLL_OVER, startButtonOvered);
startButton.addEventListener(MouseEvent.CLICK, startButtonClicked);
helpButton.addEventListener(MouseEvent.ROLL_OVER, helpButtonOvered);
helpButton.addEventListener(MouseEvent.CLICK, helpButtonClicked);
moreGamesButton.addEventListener(MouseEvent.ROLL_OVER, moreGamesButtonOvered);
moreGamesButton.addEventListener(MouseEvent.CLICK, moreGamesButtonClicked);
obyoLogoButton.addEventListener(MouseEvent.ROLL_OVER, moreGamesButtonOvered);
obyoLogoButton.addEventListener(MouseEvent.CLICK, _-6j);
}
private function startButtonOvered(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundOver){
Object(parent).buttonSoundOver.play();
};
}
private function startButtonClicked(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundClick){
Object(parent).buttonSoundClick.play();
};
Object(parent).gotoGamePage();
}
private function highScoresButtonOvered(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundOver){
Object(parent).buttonSoundOver.play();
};
}
private function highScoresButtonClicked(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundClick){
Object(parent).buttonSoundClick.play();
};
Object(parent).showHighScores();
}
private function moreGamesButtonOvered(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundOver){
Object(parent).buttonSoundOver.play();
};
}
private function _-6j(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundClick){
Object(parent).buttonSoundClick.play();
};
Object(parent).gotoMoreGamesURL("1");
}
private function moreGamesButtonClicked(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundClick){
Object(parent).buttonSoundClick.play();
};
Object(parent).gotoMoreGamesURL("2");
}
private function helpButtonOvered(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundOver){
Object(parent).buttonSoundOver.play();
};
}
private function helpButtonClicked(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundClick){
Object(parent).buttonSoundClick.play();
};
Object(parent).gotoInstructionsPage();
}
}
}//package com.novelgames.flashgames.common
Section 55
//_-G1 (com.novelgames.flashgames.common._-G1)
package com.novelgames.flashgames.common {
public class _-G1 {
private var values:Array;
public function _-G1(){
this.value = 0;
}
public function set value(_arg1:Number):void{
var _local4:int;
var _local5:int;
var _local2:int = (2 + Math.floor((Math.random() * 9)));
var _local3:Number = _arg1;
values = new Array();
_local5 = 0;
while (_local5 < (_local2 - 1)) {
_local4 = ((-10000 + _arg1) + Math.floor((Math.random() * 20000)));
_local3 = (_local3 - _local4);
values.push(_local4);
_local5++;
};
values.push(_local3);
}
public function get value():Number{
var _local2:int;
var _local1:Number = 0;
_local2 = 0;
while (_local2 < values.length) {
_local1 = (_local1 + values[_local2]);
_local2++;
};
return (_local1);
}
public function toString():String{
return (this.value.toString());
}
}
}//package com.novelgames.flashgames.common
Section 56
//_-Gd (com.novelgames.flashgames.common._-Gd)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
public class _-Gd extends MovieClip {
public var startButton:SimpleButton;
private var shownFromGame:Boolean;
public function _-Gd(_arg1:Boolean=false){
this.shownFromGame = _arg1;
startButton.addEventListener(MouseEvent.ROLL_OVER, startButtonOvered);
startButton.addEventListener(MouseEvent.CLICK, startButtonClicked);
}
private function startButtonOvered(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundOver){
Object(parent).buttonSoundOver.play();
};
}
private function startButtonClicked(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundClick){
Object(parent).buttonSoundClick.play();
};
if (!shownFromGame){
Object(parent).gotoGamePage();
} else {
Object(parent).hideInstructionsFromGame();
};
}
}
}//package com.novelgames.flashgames.common
Section 57
//_-OO (com.novelgames.flashgames.common._-OO)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
import gos.obyoAPI.*;
import flash.media.*;
import flash.net.*;
import flash.external.*;
import flash.geom.*;
public class _-OO extends MovieClip {
private var title:_-FM;
protected var _-Gf:_-Gd;
protected var _-Ms:_-P1;
protected var messageClose:MessageClose;
protected var game:Game;
protected var _-QU:_-90;
protected var _-81:Sound;
protected var _-CW:SoundChannel;
protected var _-Ht:Sound;
protected var _-9o:SoundChannel;
public var buttonSoundOver:Sound;
public var buttonSoundClick:Sound;
private var titleX:Number;
private var titleY:Number;
private var titleIndex:int;
public function _-OO(){
super();
stage.scaleMode = StageScaleMode.SHOW_ALL;
try {
ExternalInterface.addCallback("onRightMouseDown", onRightMouseDown);
ExternalInterface.addCallback("onRightMouseUp", onRightMouseUp);
ExternalInterface.addCallback("onMiddleMouseDown", onMiddleMouseDown);
ExternalInterface.addCallback("onMiddleMouseUp", onMiddleMouseUp);
} catch(e) {
};
Sprite.prototype.startDragNew = function (_arg1:Boolean=false, _arg2:Rectangle=null):void{
Sprite.prototype.draggingSprite = this;
Sprite.prototype.draggingSpriteLockCenter = _arg1;
Sprite.prototype.draggingSpriteBounds = _arg2;
Sprite.prototype.draggingSpriteMouseX = this.mouseX;
Sprite.prototype.draggingSpriteMouseY = this.mouseY;
this.startDrag(_arg1, _arg2);
};
Sprite.prototype.stopDragNew = function ():void{
Sprite.prototype.draggingSprite = null;
this.stopDrag();
};
this.addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
this.addEventListener(Event.ENTER_FRAME, onFirstFrame);
stop();
}
private function onAddedToStage(_arg1:Event):void{
this.removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
stage.stageFocusRect = false;
}
public function onFirstFrame(_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, onFirstFrame);
stop();
showPreloader();
}
public function showPreloader():void{
_-CJ.showPreloader(this, getGameId(), function ():void{
gotoAndStop(2);
});
}
public function getGameId():String{
return ("");
}
public function onRightMouseDown():void{
if (game){
game.onRightMouseDown();
};
}
public function onRightMouseUp():void{
if (game){
game.onRightMouseUp();
};
}
public function onMiddleMouseDown():void{
if (game){
game.onMiddleMouseDown();
};
}
public function onMiddleMouseUp():void{
if (game){
game.onMiddleMouseUp();
};
}
}
}//package com.novelgames.flashgames.common
Section 58
//_-P1 (com.novelgames.flashgames.common._-P1)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
public class _-P1 extends MovieClip {
public var startButton:SimpleButton;
private var shownFromGame:Boolean;
public function _-P1(_arg1:Boolean=false){
this.shownFromGame = _arg1;
startButton.addEventListener(MouseEvent.ROLL_OVER, startButtonOvered);
startButton.addEventListener(MouseEvent.CLICK, startButtonClicked);
}
private function startButtonOvered(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundOver){
Object(parent).buttonSoundOver.play();
};
}
private function startButtonClicked(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundClick){
Object(parent).buttonSoundClick.play();
};
if (!shownFromGame){
Object(parent).gotoGamePage();
} else {
Object(parent).hideMessagePauseFromGame();
};
}
}
}//package com.novelgames.flashgames.common
Section 59
//_-Pv (com.novelgames.flashgames.common._-Pv)
package com.novelgames.flashgames.common {
import flash.media.*;
import flash.net.*;
public class _-Pv extends Sound {
public static var volume:Number = _-HS();
private static var allSoundChannels:Array = new Array();
override public function play(_arg1:Number=0, _arg2:int=0, _arg3:SoundTransform=null):SoundChannel{
var _local4:SoundChannel = super.play(_arg1, _arg2, new SoundTransform(volume));
allSoundChannels.push(_local4);
return (_local4);
}
private static function _-HS():Number{
var _local1:SharedObject = SharedObject.getLocal("gameOptions", "/");
_local1.objectEncoding = ObjectEncoding.AMF0;
if (isNaN(_local1.data.musicVolume)){
_local1.data.musicVolume = 1;
};
return (_local1.data.musicVolume);
}
public static function saveVolume():void{
var _local1:SharedObject = SharedObject.getLocal("gameOptions", "/");
_local1.objectEncoding = ObjectEncoding.AMF0;
_local1.data.musicVolume = volume;
}
public static function _-Gz(_arg1:Number):void{
var _local2:int;
_-Pv.volume = _arg1;
_local2 = 0;
while (_local2 < allSoundChannels.length) {
allSoundChannels[_local2].soundTransform = new SoundTransform(_arg1);
_local2++;
};
}
}
}//package com.novelgames.flashgames.common
Section 60
//CloseButton (com.novelgames.flashgames.common.CloseButton)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
public class CloseButton extends MovieClip {
public function CloseButton(){
super();
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, function ():void{
Object(parent.parent).showMessageCloseFromGame();
});
}
}
}//package com.novelgames.flashgames.common
Section 61
//Game (com.novelgames.flashgames.common.Game)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
import flash.geom.*;
public class Game extends MovieClip {
public var _-Eq;
private var mouseHidden:Boolean;
public static var _-CH:Stage;
public static var _-7R:MovieClip;
public function Game(){
_-Eq = {x:0, y:0};
super();
}
public function pause():void{
_-CQ.pause();
_-CH.addEventListener(KeyboardEvent.KEY_DOWN, onKeyEventDuringPause, false, 2147483647);
_-CH.addEventListener(KeyboardEvent.KEY_UP, onKeyEventDuringPause, false, 2147483647);
this.mouseEnabled = false;
this.mouseChildren = false;
if (mouseHidden){
Mouse.show();
};
if (Sprite.prototype.draggingSprite){
Sprite.prototype.draggingSprite.stopDrag();
};
}
public function unpause():void{
_-CQ.unpause();
_-CH.focus = _-CH;
_-CH.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyEventDuringPause);
_-CH.removeEventListener(KeyboardEvent.KEY_UP, onKeyEventDuringPause);
this.mouseEnabled = true;
this.mouseChildren = true;
if (mouseHidden){
Mouse.hide();
};
if (Sprite.prototype.draggingSprite){
Sprite.prototype.draggingSprite.x = (Sprite.prototype.draggingSprite.x + (Sprite.prototype.draggingSprite.mouseX - Sprite.prototype.draggingSpriteMouseX));
Sprite.prototype.draggingSprite.y = (Sprite.prototype.draggingSprite.y + (Sprite.prototype.draggingSprite.mouseY - Sprite.prototype.draggingSpriteMouseY));
Sprite.prototype.draggingSprite.startDrag(Sprite.prototype.draggingSpriteLockCenter, Sprite.prototype.draggingSpriteBounds);
};
}
public function destroyGame():void{
trace("destroy...");
}
public function hideMouse():void{
mouseHidden = true;
Mouse.hide();
}
public function showMouse():void{
mouseHidden = false;
Mouse.show();
}
public function onRightMouseDown():void{
var _local1:DisplayObject = _-Cd();
if (!_local1){
return;
};
_local1.dispatchEvent(new MouseEvent("mouseRightDown"));
}
public function onRightMouseUp():void{
var _local1:DisplayObject = _-Cd();
if (!_local1){
return;
};
_local1.dispatchEvent(new MouseEvent("mouseRightUp"));
}
public function onMiddleMouseDown():void{
var _local1:DisplayObject = _-Cd();
if (!_local1){
return;
};
_local1.dispatchEvent(new MouseEvent("mouseMiddleDown"));
}
public function onMiddleMouseUp():void{
var _local1:DisplayObject = _-Cd();
if (!_local1){
return;
};
_local1.dispatchEvent(new MouseEvent("mouseMiddleUp"));
}
private function _-Cd():DisplayObject{
var _local3:int;
var _local1:Point = this.localToGlobal(new Point(mouseX, mouseY));
var _local2:Array = this.getObjectsUnderPoint(_local1);
_local3 = (_local2.length - 1);
while (_local3 >= 0) {
if (!_local2[_local3].parent.mouseEnabled){
} else {
if (((_local2[_local3].parent.parent) && (!(_local2[_local3].parent.parent.mouseChildren)))){
} else {
return (_local2[_local3]);
};
};
_local3--;
};
return (null);
}
private function onKeyEventDuringPause(_arg1:KeyboardEvent):void{
_arg1.stopImmediatePropagation();
}
}
}//package com.novelgames.flashgames.common
Section 62
//InstructionsButton (com.novelgames.flashgames.common.InstructionsButton)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
public class InstructionsButton extends MovieClip {
public function InstructionsButton(){
super();
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, function ():void{
Object(parent.parent).showInstructionsFromGame();
});
}
}
}//package com.novelgames.flashgames.common
Section 63
//MessageClose (com.novelgames.flashgames.common.MessageClose)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
public class MessageClose extends MovieClip {
public var startButton:SimpleButton;
public var gotoHomeButton:SimpleButton;
private var shownFromGame:Boolean;
public function MessageClose(_arg1:Boolean=false){
this.shownFromGame = _arg1;
startButton.addEventListener(MouseEvent.ROLL_OVER, startButtonOvered);
startButton.addEventListener(MouseEvent.CLICK, startButtonClicked);
gotoHomeButton.addEventListener(MouseEvent.ROLL_OVER, _-0Y);
gotoHomeButton.addEventListener(MouseEvent.CLICK, _-PP);
}
private function startButtonOvered(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundOver){
Object(parent).buttonSoundOver.play();
};
}
private function startButtonClicked(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundClick){
Object(parent).buttonSoundClick.play();
};
if (!shownFromGame){
Object(parent).gotoGamePage();
} else {
Object(parent).hideMessageCloseFromGame();
};
}
private function _-0Y(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundOver){
Object(parent).buttonSoundOver.play();
};
}
private function _-PP(_arg1:MouseEvent):void{
if (Object(parent).buttonSoundClick){
Object(parent).buttonSoundClick.play();
};
if (!shownFromGame){
Object(parent).gotoGamePage();
} else {
Object(parent).gotoTitlePageAndClose();
};
}
}
}//package com.novelgames.flashgames.common
Section 64
//OptionsButton (com.novelgames.flashgames.common.OptionsButton)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
public class OptionsButton extends MovieClip {
public function OptionsButton(){
super();
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, function ():void{
Object(parent.parent).showOptions();
});
}
}
}//package com.novelgames.flashgames.common
Section 65
//PauseButton (com.novelgames.flashgames.common.PauseButton)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
public class PauseButton extends MovieClip {
public function PauseButton(){
super();
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, function ():void{
Object(parent.parent).showMessagePauseFromGame();
});
}
}
}//package com.novelgames.flashgames.common
Section 66
//SoundButton (com.novelgames.flashgames.common.SoundButton)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
public class SoundButton extends MovieClip {
public var soundOnButton:SimpleButton;
public var soundOffButton:SimpleButton;
private var isSounOpen:Boolean;// = true
public function SoundButton(){
super();
addFrameScript(0, frame1, 1, frame2);
this.buttonMode = true;
if ((((_-Pv.volume == 0)) && ((_-6P.volume == 0)))){
isSounOpen = false;
};
if (isSounOpen){
gotoAndStop("soundOn");
} else {
gotoAndStop("soundOff");
};
this.addEventListener(MouseEvent.CLICK, function ():void{
changeSoundState();
});
}
public function changeSoundState():void{
isSounOpen = !(isSounOpen);
if (isSounOpen == true){
gotoAndStop("soundOn");
_-6P._-Gz(1);
_-Pv._-Gz(1);
} else {
if (isSounOpen == false){
gotoAndStop("soundOff");
_-6P._-Gz(0);
_-Pv._-Gz(0);
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package com.novelgames.flashgames.common
Section 67
//_-Ac (gos.common._-Ac)
package gos.common {
import _-Cb.*;
public class _-Ac {
public static function md5(_arg1:String):String{
return (new MD5().calculate(_arg1));
}
public static function rc4EncryptHex(_arg1:String, _arg2:String):String{
return (hexEncode(rc4Encrypt(_arg1, _arg2)));
}
public static function rc4DecryptHex(_arg1:String, _arg2:String):String{
return (rc4Encrypt(_arg1, hexDecode(_arg2)));
}
public static function rc4Encrypt(_arg1:String, _arg2:String):String{
var _local4:int;
var _local6:int;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < 0x0100) {
_local3[_local4] = _local4;
_local4++;
};
var _local5:int;
_local4 = 0;
while (_local4 < 0x0100) {
_local5 = (((_local5 + _local3[_local4]) + _arg1.charCodeAt((_local4 % _arg1.length))) % 0x0100);
_local6 = _local3[_local4];
_local3[_local4] = _local3[_local5];
_local3[_local5] = _local6;
_local4++;
};
_local4 = 0;
_local5 = 0;
var _local7 = "";
var _local8:int;
while (_local8 < _arg2.length) {
_local4 = ((_local4 + 1) % 0x0100);
_local5 = ((_local5 + _local3[_local4]) % 0x0100);
_local6 = _local3[_local4];
_local3[_local4] = _local3[_local5];
_local3[_local5] = _local6;
_local7 = (_local7 + String.fromCharCode((_arg2.charCodeAt(_local8) ^ _local3[((_local3[_local4] + _local3[_local5]) % 0x0100)])));
_local8++;
};
return (_local7);
}
public static function rc4Decrypt(_arg1:String, _arg2:String):String{
return (rc4Encrypt(_arg1, _arg2));
}
public static function hexEncode(_arg1:String):String{
var _local4:int;
var _local2 = "0123456789abcdef";
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < 0x0100) {
_local3[_local4] = (_local2.charAt((_local4 >> 4)) + _local2.charAt((_local4 & 15)));
_local4++;
};
var _local5:Array = new Array();
_local4 = 0;
while (_local4 < _arg1.length) {
_local5[_local4] = _local3[_arg1.charCodeAt(_local4)];
_local4++;
};
return (_local5.join(""));
}
public static function hexDecode(_arg1:String):String{
var _local4:int;
var _local2 = "0123456789abcdef";
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < 0x0100) {
_local3[(_local2.charAt((_local4 >> 4)) + _local2.charAt((_local4 & 15)))] = String.fromCharCode(_local4);
_local4++;
};
if (!_arg1.match(/^[a-f0-9]*$/i)){
return (null);
};
if ((_arg1.length % 2)){
_arg1 = ("0" + _arg1);
};
var _local5:Array = new Array();
var _local6:int;
_local4 = 0;
while (_local4 < _arg1.length) {
var _temp1 = _local6;
_local6 = (_local6 + 1);
var _local7 = _temp1;
_local5[_local7] = _local3[_arg1.substr(_local4, 2)];
_local4 = (_local4 + 2);
};
return (_local5.join(""));
}
}
}//package gos.common
Section 68
//_-Dm (gos.common._-Dm)
package gos.common {
import flash.display.*;
import flash.utils.*;
import flash.text.*;
public class _-Dm {
public static var _-PE:Boolean = false;
public static var _-An:Boolean = false;
public static var _-7p:Boolean = false;
private static var _-QN:Stage = null;
private static var _-6s:MovieClip = null;
private static var textBox:TextField = null;
public static function set stage(_arg1:Stage):void{
_-QN = _arg1;
}
private static function _-N(_arg1:String):void{
trace(_arg1);
if (_-QN != null){
initMessageBox();
textBox.appendText((_arg1 + "\n"));
};
}
private static function initMessageBox():void{
var _local1:TextFormat;
if (_-6s == null){
_local1 = new TextFormat();
_local1.color = 0;
_local1.font = "Tahoma";
_local1.size = 12;
textBox = new TextField();
textBox.text = "";
textBox.x = 0;
textBox.y = 0;
textBox.width = 500;
textBox.height = 400;
textBox.scrollH = textBox.maxScrollH;
textBox.setTextFormat(_local1);
_-6s = new MovieClip();
_-6s.addChild(textBox);
_-QN.addChild(_-6s);
};
_-QN.addChildAt(_-6s, _-QN.numChildren);
}
public static function debug(_arg1:String, _arg2:Object=null):void{
if (_-PE){
_-N((("d| " + _arg1) + (_arg2) ? objectName(_arg2) : ""));
};
}
public static function _-QK(_arg1:String, _arg2:Object=null):void{
if (_-An){
_-N((("i| " + _arg1) + (_arg2) ? objectName(_arg2) : ""));
};
}
public static function error(_arg1:String, _arg2:Object=null):void{
if (_-7p){
_-N((("e! " + _arg1) + (_arg2) ? objectName(_arg2) : ""));
};
}
public static function _-EE(_arg1:String, _arg2:Object=null):void{
_-N((("f! " + _arg1) + (_arg2) ? objectName(_arg2) : ""));
}
private static function objectName(_arg1):String{
return (((_arg1 is String)) ? ((" (" + _arg1) + ")") : ((" (" + getQualifiedClassName(_arg1)) + ")"));
}
public static function closeTrace():void{
debugLevel(false, false, false);
}
public static function debugLevel(_arg1:Boolean=false, _arg2:Boolean=false, _arg3:Boolean=false):void{
_-An = _arg1;
_-7p = _arg2;
_-PE = _arg3;
}
}
}//package gos.common
Section 69
//_-F6 (gos.common._-F6)
package gos.common {
import flash.net.*;
public class _-F6 {
public static function _-49(_arg1:String):String{
var urlParts:Array;
var url = _arg1;
try {
urlParts = url.split(/\/+/g);
if (urlParts.length > 1){
return (urlParts[1]);
} else {
urlParts[0];
};
} catch(e:Error) {
};
return (null);
}
public static function _-2b(_arg1:String, _arg2:Object):Boolean{
var _local4:int;
var _local3:String = _-49(_arg1);
if (_local3 == null){
return (false);
};
if (_arg2 == null){
return (false);
};
if ((_arg2 is String)){
_arg2 = [_arg2];
};
while (_local4 < _arg2.length) {
if ((((_local3 == _arg2[_local4])) || (_local3.match(new RegExp((("." + _arg2[_local4]) + "$")))))){
return (true);
};
_local4++;
};
return (false);
}
public static function _-8o(_arg1:String, _arg2=null, _arg3:Boolean=true):String{
var i:int;
var k:String;
var url = _arg1;
var params = _arg2;
var go = _arg3;
if (params){
url = (url + ((url.indexOf("?"))>0) ? "&" : "?");
};
if ((((params is String)) && (!((params == ""))))){
url = (url + params);
} else {
if (params != null){
i = 0;
for (k in params) {
i = (i + 1);
if (i > 0){
url = (url + "&");
};
url = (url + ((k + "=") + escape((params[k] + ""))));
};
};
};
if (go){
try {
navigateToURL(new URLRequest(url), "_blank");
} catch(e:Error) {
};
};
return (url);
}
}
}//package gos.common
Section 70
//_-Fu (gos.common._-Fu)
package gos.common {
import flash.display.*;
public class _-Fu {
public static function _-Ex(_arg1:MovieClip, _arg2:String, _arg3:String=null):int{
var _local6:FrameLabel;
var _local4:Array = _arg1.currentLabels;
var _local5:uint;
while (_local5 < _local4.length) {
_local6 = _local4[_local5];
if (_local6.name == _arg2){
return (_local6.frame);
};
_local5++;
};
return (-1);
}
public static function addFrameScript(_arg1:MovieClip, _arg2:String, _arg3:Function):Boolean{
var _local4:int = _-Ex(_arg1, _arg2);
if (_local4 >= 0){
_arg1.addFrameScript((_-Ex(_arg1, _arg2) - 1), _arg3);
return (true);
};
return (false);
}
}
}//package gos.common
Section 71
//_-LE (gos.common._-LE)
package gos.common {
import flash.display.*;
public class _-LE {
public static function callFunction(_arg1:Function, _arg2:Object):Boolean{
if (((!((_arg1 == null))) && ((_arg1 is Function)))){
_arg1(_arg2);
return (true);
};
return (false);
}
public static function isEmpty(_arg1):Boolean{
return ((((((_arg1 == null)) || ((_arg1 == undefined)))) || ((((_arg1 is String)) && ((_arg1 == ""))))));
}
public static function objectToArray(_arg1:Object):Array{
var res:Array;
var o:Object;
var obj = _arg1;
try {
res = new Array();
for (o in obj) {
res.push(obj[o]);
};
return (res);
} catch(err:Error) {
};
return (null);
}
public static function removeChild(_arg1:DisplayObjectContainer, _arg2:DisplayObject):Boolean{
var parent = _arg1;
var child = _arg2;
try {
parent.removeChild(child);
return (true);
} catch(e:Error) {
};
return (false);
}
}
}//package gos.common
Section 72
//EventTracker (gos.common.EventTracker)
package gos.common {
import flash.events.*;
public class EventTracker {
protected var _-Kk:Array;
protected var _-Dv:Array;
public function EventTracker(){
this._-Kk = new Array();
this._-Dv = new Array();
}
public function add(_arg1:EventDispatcher, _arg2:String, _arg3:Function, _arg4:Boolean=false, _arg5:Boolean=false, _arg6:int=0):void{
_arg1.addEventListener(_arg2, _arg3, _arg5, _arg6, _arg4);
this._-Kk.push({owner:_arg1, type:_arg2, func:_arg3});
}
public function removeAll():void{
while (this._-Kk.length > 0) {
this.removeEvent(this._-Kk.pop());
};
}
public function removeAllListenersOf(_arg1:EventDispatcher):void{
var _local5:*;
var _local2:Array = new Array();
var _local3:int;
while (_local3 < this._-Kk.length) {
_local5 = this._-Kk[_local3];
if (_local5["owner"] == _arg1){
this.removeEvent(_local5);
_local2.push(_local3);
};
_local3++;
};
var _local4:int = (_local2.length - 1);
while (_local4 >= 0) {
this._-Kk.splice(_local2[_local4], 1);
_local4--;
};
}
public function remove(_arg1:EventDispatcher, _arg2:String, _arg3:Function=null):Boolean{
var _local5:*;
var _local4:int;
while (_local4 < this._-Kk.length) {
_local5 = this._-Kk[_local4];
if ((((((_local5["owner"] == _arg1)) && ((_local5["type"] == _arg2)))) && ((((_arg3 == null)) || ((_local5["func"] == _arg3)))))){
this.removeEvent(_local5);
this._-Kk.splice(_local4, 1);
return (true);
};
_local4++;
};
return (false);
}
protected function removeEvent(_arg1):Boolean{
(_arg1["owner"] as EventDispatcher).removeEventListener((_arg1["type"] as String), (_arg1["func"] as Function));
return (true);
}
public function pauseAll():Boolean{
var _local1:*;
while (this._-Kk.length > 0) {
_local1 = this._-Kk.pop();
this.removeEvent(_local1);
this._-Dv.push(_local1);
};
return (true);
}
public function pauseAllListenersOf(_arg1:EventDispatcher):Boolean{
var _local5:*;
var _local2:Array = new Array();
var _local3:int;
while (_local3 < this._-Kk.length) {
_local5 = this._-Kk[_local3];
if (_local5["owner"] == _arg1){
this.removeEvent(_local5);
this._-Dv.push(_local5);
_local2.push(_local3);
};
_local3++;
};
var _local4:int = (_local2.length - 1);
while (_local4 >= 0) {
this._-Kk.splice(_local2[_local4], 1);
_local4--;
};
return (true);
}
public function resumeAll():Boolean{
var _local1:*;
while (this._-Dv.length > 0) {
_local1 = this._-Dv.pop();
this.add((_local1["owner"] as EventDispatcher), (_local1["type"] as String), (_local1["func"] as Function));
};
return (false);
}
public function resumeAllListenersOf(_arg1:EventDispatcher):Boolean{
var _local5:*;
var _local2:Array = new Array();
var _local3:int;
while (_local3 < this._-Dv.length) {
_local5 = this._-Dv[_local3];
if (_local5["owner"] == _arg1){
this.add((_local5["owner"] as EventDispatcher), (_local5["type"] as String), (_local5["func"] as Function));
_local2.push(_local3);
};
_local3++;
};
var _local4:int = (_local2.length - 1);
while (_local4 >= 0) {
this._-Dv.splice(_local2[_local4], 1);
_local4--;
};
return (true);
}
}
}//package gos.common
Section 73
//ObyoScoreService (gos.obyoAPI.serviceAPIImpl.services.ObyoScoreService)
package gos.obyoAPI.serviceAPIImpl.services {
import gos.obyoAPI.*;
import gos.serviceAPI.services.*;
import _-9-.*;
public class ObyoScoreService extends _-2U {
override public function getURLSubmitVariables(_arg1:String, _arg2:Number, _arg3:Object=null):Object{
var _local4:Object = super.getURLSubmitVariables(_arg1, _arg2, _arg3);
_local4.version = _-CJ._-4M.version;
return (_local4);
}
override protected function getURLSubmitKey():String{
return (((_-CJ._-4M.version + _-64._-Au(-488, 235)) + _-CJ._-4M.gameKey));
}
}
}//package gos.obyoAPI.serviceAPIImpl.services
Section 74
//ObyoServiceFactory (gos.obyoAPI.serviceAPIImpl.services.ObyoServiceFactory)
package gos.obyoAPI.serviceAPIImpl.services {
import gos.serviceAPI.services.*;
import _-9-.*;
public class ObyoServiceFactory extends _-7l {
public static const _-IK:String = "http://www.obyo.com";
public function ObyoServiceFactory(){
_-4p = (_-IK + "/service/gameapi.php");
_-9g = this._-Mq();
var _local1:ObyoScoreService = new ObyoScoreService();
}
private function _-Mq():String{
return (_-64._-Au(-490, 233));
}
}
}//package gos.obyoAPI.serviceAPIImpl.services
Section 75
//_-Ao (gos.obyoAPI._-Ao)
package gos.obyoAPI {
import flash.display.*;
import flash.events.*;
import gos.serviceAPI.*;
import gos.common.*;
import _-M9.*;
import flash.net.*;
import _-PA.*;
import flash.utils.*;
public class _-Ao {
protected var _-2w:DisplayObjectContainer;
protected var _gameId:String;
protected var _-84:Function;
protected var _-34:Object;
protected var _debug:Boolean;// = false
protected var _-Ax:_-9R;
protected var _-8Q:MovieClip;
protected var _-Kk:EventTracker;
protected var _animationComplete:Boolean;
protected var _-8R:Boolean;
protected var _-5J:Boolean;
protected var _-6V:Number;
protected var _-LL:Timer;
protected static var _-5H:int = 8000;
protected static var _-E-:Number = 800;
protected static var _-s:Number = 600;
public function start(_arg1:DisplayObjectContainer, _arg2:String, _arg3:Function, _arg4:Object=null):MovieClip{
var temp:Number;
var parent = _arg1;
var gameId = _arg2;
var onCompleteCallBack = _arg3;
var args = _arg4;
if (this._-Ax != null){
throw (new Error("Already showing preloader"));
};
this._-34 = ((args)==null) ? {} : args;
this._-2w = parent;
this._gameId = gameId;
this._-84 = onCompleteCallBack;
this._debug = this._-34.debug;
this._-Kk = new EventTracker();
this._animationComplete = false;
this._-8R = false;
this._-5J = false;
this._-6V = 0;
try {
temp = this._-2w.loaderInfo.width;
this.init();
} catch(e:Error) {
_-2w.addEventListener(Event.ENTER_FRAME, function (_arg1:Event):void{
_arg1.currentTarget.removeEventListener(_arg1.type, arguments.callee);
init();
});
};
return (this._-8Q);
}
protected function init():void{
this.initAssets();
this.startPreloader();
this.startTimer();
}
protected function initAssets():void{
this._-8Q = new _-Ro();
this._-2w.addChild(this._-8Q);
this._-8Q.x = (this._-2w.loaderInfo.width / 2);
this._-8Q.y = (this._-2w.loaderInfo.height / 2);
this._-HL();
this.initLoadedBar();
this._-Kk.add(this._-8Q.homeButton, MouseEvent.CLICK, this.onHomeButtonClicked);
_-Fu.addFrameScript(this._-8Q.intro, "startTransition", function ():void{
_-5J = true;
if (_debug){
trace(("entered frame 'startTransition', _loadComplete=" + _-Ax.isLoadingCompleted));
};
if (!_-Ax.isLoadingCompleted){
_-8Q.intro.stop();
};
});
_-Fu.addFrameScript(this._-8Q.intro, "end", function ():void{
if (_debug){
trace(((("entered frame 'end', _animationComplete=" + _animationComplete) + ", _timerComplete=") + _-8R));
};
_-8Q.intro.stop();
_animationComplete = true;
if (_-8R){
end();
};
});
}
private function _-HL(_arg1:Object=null):void{
var _local3:Number;
var _local4:Number;
if (_arg1 == null){
_arg1 = {};
};
var _local2:Number = (_-E- / _-s);
if (!(_arg1.width > 0)){
_arg1.width = this._-2w.loaderInfo.width;
};
if (!(_arg1.height > 0)){
_arg1.height = this._-2w.loaderInfo.height;
};
if (this._debug){
trace(((("destinationw:" + _arg1.width) + ", destinationh:") + _arg1.height));
};
_local3 = ((_arg1.height * _-E-) / _-s);
_local4 = ((_local3 * _-s) / _-E-);
if (this._debug){
trace(((("resultw1:" + _local3) + ", resulth1:") + _local4));
};
if (_local3 < _arg1.width){
_local4 = ((_arg1.width * _-s) / _-E-);
_local3 = ((_local4 * _-E-) / _-s);
};
if (this._debug){
trace(((("resultw:" + _local3) + ", resulth:") + _local4));
};
if (this._debug){
trace(((("originalw:" + this._-8Q.width) + ", originalh:") + this._-8Q.height));
};
this._-8Q.height = ((this._-8Q.height * _local4) / _-s);
this._-8Q.width = ((this._-8Q.width * _local3) / _-E-);
if (this._debug){
trace(((("finalw:" + this._-8Q.width) + ", finalh:") + this._-8Q.height));
};
}
protected function initLoadedBar():void{
this._-6V = this._-8Q.preloaderBar.loadedBar.width;
this._-8Q.preloaderBar.loadedBar.width = 0;
}
protected function startTimer():void{
var _local1:int = ((this._-34.minDuration)>0) ? this._-34.minDuration : _-5H;
this._-LL = new Timer(_local1, 1);
this._-Kk.add(this._-LL, TimerEvent.TIMER_COMPLETE, this.onTimerComplete);
this._-LL.start();
}
protected function startPreloader():void{
try {
this._-Ax = new _-9R();
this._-Ax.start(this._-2w, this.onLoadComplete, this.onLoadProgress, {debug:this._debug});
} catch(e:Error) {
if (_-34.onError){
_-34.onError();
};
onLoadComplete();
};
}
protected function startCloseKeyListener():void{
if (this._-34.closeKeyCode > 0){
this._-Kk.add(this._-2w.stage, KeyboardEvent.KEY_DOWN, function (_arg1:KeyboardEvent):void{
if (_debug){
trace(("close key code is pressed: " + _-34.closeKeyCode));
};
_-Kk.remove(_-2w.stage, KeyboardEvent.KEY_DOWN, arguments.callee);
if (_arg1.keyCode == _-34.closeKeyCode){
end();
};
});
};
}
protected function onLoadProgress(_arg1:Number, _arg2:Number, _arg3:Number):void{
if (this._debug){
trace(("onProgress loadPercent:" + _arg3));
};
this._-8Q.preloaderBar.loadedBar.width = (this._-6V * _arg3);
}
protected function onLoadComplete():void{
if (this._debug){
trace("load complete");
};
this._-Ax.destroy();
this._-8Q.preloaderBar.visible = false;
if (this._-5J){
this._-8Q.intro.play();
};
this.startCloseKeyListener();
}
protected function onTimerComplete(_arg1:Event):void{
if (this._debug){
trace("timer complete");
};
this._-Kk.remove(this._-LL, TimerEvent.TIMER_COMPLETE, this.onTimerComplete);
this._-8R = true;
if (this._animationComplete){
this.end();
};
}
protected function onHomeButtonClicked(_arg1:MouseEvent):void{
var urlRequest:URLRequest;
var e = _arg1;
try {
urlRequest = new URLRequest(((((_-4a._-6x + "/?ref=") + this._gameId) + "&refEx=") + _-4a._-QL));
navigateToURL(urlRequest, "_blank");
} catch(e:Error) {
};
}
protected function removeAssets():void{
try {
this._-8Q.intro.gotoAndStop("end");
this._-2w.removeChild(this._-8Q);
this._-8Q = null;
} catch(e:Error) {
};
}
public function end():void{
if (this._debug){
trace("close");
};
this._-84();
this.destroy();
}
protected function destroy():void{
this._-Kk.removeAll();
this.removeAssets();
this._-2w = null;
this._-34 = null;
this._gameId = null;
this._debug = false;
}
}
}//package gos.obyoAPI
Section 76
//_-CJ (gos.obyoAPI._-CJ)
package gos.obyoAPI {
import flash.display.*;
import gos.serviceAPI.*;
import _-PA.*;
public class _-CJ {
private static var _-Ax:_-Ao;
private static var _endScreen:ObyoEndScreen;
private static var _-9H:_-4T = new _-4T();
private static var _-7a:String;
private static var _channel:String;
public static function showPreloader(_arg1:DisplayObjectContainer, _arg2:String, _arg3:Function, _arg4:Object=null):_-Ao{
if (!_-Ax){
_-Ax = new _-Ao();
};
_-Ax.start(_arg1, _arg2, _arg3, _arg4);
return (_-Ax);
}
public static function closePreloader():void{
if (_-Ax){
_-Ax.end();
};
}
public static function showEndScreen(_arg1:DisplayObjectContainer, _arg2:String, _arg3:String, _arg4:Object):ObyoEndScreen{
var displayObject = _arg1;
var gameId = _arg2;
var gameKey = _arg3;
var options = _arg4;
if (!_endScreen){
_endScreen = new ObyoEndScreen();
};
init(displayObject, gameId, gameKey, function (_arg1:_-7k):void{
if ((options.onError is Function)){
options.onError(_arg1);
};
}, function (_arg1:_-7k):void{
_endScreen.show(displayObject, gameId, gameKey, options);
});
return (_endScreen);
}
public static function closeEndScreen():void{
_endScreen.close();
}
private static function init(_arg1:DisplayObjectContainer, _arg2:String, _arg3:String, _arg4:Function, _arg5:Function):void{
if (!_-7a){
_-7a = _-Ne._-7U(_arg1);
};
if (!_channel){
_channel = _-Ne._-9u(_arg1);
};
_-9H.init(_arg2, _arg3, {channel:_channel, onLoad:_arg5, onError:_arg4});
}
public static function get _-7U():String{
return (_-7a);
}
public static function get channel():String{
return (_channel);
}
public static function get _-4M():_-4T{
return (_-9H);
}
}
}//package gos.obyoAPI
Section 77
//ObyoEndScreen (gos.obyoAPI.ObyoEndScreen)
package gos.obyoAPI {
import flash.display.*;
import flash.events.*;
import gos.serviceAPI.*;
import gos.common.*;
import _-A3.*;
import _-M9.*;
import _-PA.*;
public class ObyoEndScreen {
private var _-Kk:EventTracker;
private var _gameId:String;
private var _gameKey:String;
private var _-J5:Object;
private var _displayObject:DisplayObjectContainer;// = null
private var _mainPanel:_-CC;
private var _-1x:Number;// = 7
private var _-3n:Number;
private var _-6o:Number;
private var _-2g:_-Fd;
public function ObyoEndScreen(){
this._-Kk = new EventTracker();
}
public function show(_arg1:DisplayObjectContainer, _arg2:String, _arg3:String, _arg4:Object):MovieClip{
if (_-LE.isEmpty(_arg4)){
_arg4 = {};
};
_arg4["gameId"] = _arg2;
_arg4["gameKey"] = _arg3;
(((_arg1 == null)) || (_-LE.isEmpty(_arg2)));
if (_-LE.isEmpty(_arg3)){
if ((_arg4.onError is Function)){
_arg4.onError(new _-7k({errorCode:_-7k.INVALID_INPUT, errorMessage:"invalid parameters", input:_arg4}));
};
return (null);
};
this._displayObject = _arg1;
this._-J5 = _arg4;
this._gameId = _arg2;
this._gameKey = _arg3;
this._-C5();
this._displayObject.root.stage.addChild(this._mainPanel);
this._mainPanel.x = (this._displayObject.loaderInfo.width / 2);
this._mainPanel.y = (this._displayObject.loaderInfo.height / 2);
return (this._mainPanel);
}
private function _-C5():void{
this._mainPanel = new _-CC();
var mainPanelOverlay:MovieClip = (this._mainPanel["overlay"] as MovieClip);
var mainPanelLogo:SimpleButton = (this._mainPanel["obyoLogo"] as SimpleButton);
var mainPanelAddress:SimpleButton = (this._mainPanel["obyoAddress"] as SimpleButton);
this._-Kk.add(mainPanelLogo, MouseEvent.CLICK, function (_arg1:MouseEvent):void{
_-BP._-0a({ref:_gameId, refex:_-4a._-Fw}, true);
});
this._-Kk.add(mainPanelAddress, MouseEvent.CLICK, function (_arg1:MouseEvent):void{
_-BP._-0a({ref:_gameId, refex:_-4a._-F0}, true);
});
if (((_-LE.isEmpty(this._-J5.overlay)) || (!((this._-J5.overlay === false))))){
this._-J5.overlayOpacity = (((!(_-LE.isEmpty(this._-J5.overlayOpacity))) && ((this._-J5.overlayOpacity is Number)))) ? this._-J5.overlayOpacity : _-4a._-6Q;
mainPanelOverlay.alpha = this._-J5.overlayOpacity;
} else {
mainPanelOverlay.alpha = 0;
_-LE.removeChild(this._mainPanel, mainPanelOverlay);
};
this._-1x = 7;
this._-3n = 0;
this._-6o = ((mainPanelLogo.y + (mainPanelLogo.height * 0.5)) + 3);
if (_-CJ._-7U == _-Mz._-0Q){
this._-2g = new _-Q1(this._gameId, this._gameKey, this._-J5);
} else {
this._-2g = new _-57(this._gameId, this._gameKey, this._-J5);
};
this._mainPanel.addChild(this._-2g);
this._-2g.x = this._-3n;
this._-2g.y = this._-6o;
this._-Kk.add(this._-2g, _-Fd._-4u, function (_arg1:Event):void{
close();
});
}
public function close():void{
this._-Kk.removeAll();
_-LE.removeChild(this._displayObject.root.stage, this._mainPanel);
this._-2g.close();
this._-J5 = null;
this._gameId = null;
this._gameKey = null;
this._displayObject = null;
this._-2g = null;
this._mainPanel = null;
}
private function onError(_arg1:_-7k):void{
if ((this._-J5.onError is Function)){
this._-J5.onError(_arg1);
};
}
}
}//package gos.obyoAPI
Section 78
//_-2U (gos.serviceAPI.services._-2U)
package gos.serviceAPI.services {
import gos.serviceAPI.*;
import gos.common.*;
import com.adobe.serialization.json.*;
import _-9-.*;
public class _-2U implements _-3l {
protected var _-FG:Object;
protected var _-3P:Object;
protected var _-Hn:Array;
public function _-Ep(_arg1:Object):void{
var options = _arg1;
this.submit(this._-FG.name, this._-FG.score, {extra:this._-FG.extra, leaderBoard:this._-3P.showLeaderBoard, numScores:this._-3P.numScores, onError:options.onError, onComplete:function (_arg1:_-7k):void{
if (_-3P.showLeaderBoard){
_-Hn = _-LE.objectToArray(_arg1.data);
};
if ((options.onComplete is Function)){
options.onComplete(_arg1);
};
}});
}
public function submit(_arg1:String, _arg2:Number, _arg3:Object):void{
var name = _arg1;
var score = _arg2;
var options = _arg3;
if (options == null){
options = {};
};
if (((!(_-LE.isEmpty(options.leaderBoard))) && (!((options.leaderBoard === true))))){
options.leaderBoard = false;
};
this._-FG = {name:name, score:score, extra:options.extra};
this._-3P = options;
_-Hr.send("submitScore", {name:encodeURIComponent(name), score:score, extra:options.extra, leaderboard:options.leaderBoard, numScores:options.numScores, channel:options.channel, user:options.user, misc:options.misc}, {onComplete:function (_arg1:_-7k):void{
if ((options.onComplete is Function)){
options.onComplete(_arg1);
};
}, onError:options.onError});
}
public function _-Mr(_arg1:String, _arg2:Number, _arg3:Object):void{
var name = _arg1;
var score = _arg2;
var options = _arg3;
if (options == null){
options = {};
};
this._-FG = {name:name, score:score, extra:options.extra};
this._-3P = options;
_-Hr.send("shareScore", {name:encodeURIComponent(name), score:score, extra:options.extra, channel:options.channel, user:options.user, misc:options.misc}, {onComplete:function (_arg1:_-7k):void{
_-Dm.debug("shareScore success!");
if ((options.onComplete is Function)){
options.onComplete(_arg1);
};
}, onError:options.onError});
}
public function getSubmitToken(_arg1:Number, _arg2:Object):void{
var score = _arg1;
var options = _arg2;
if (options == null){
options = {};
};
_-Hr.send("getSubmitScoreToken", {score:score, extra:options.extra, channel:options.channel, misc:options.misc}, {onComplete:function (_arg1:_-7k):void{
if ((options.onComplete is Function)){
options.onComplete(_arg1);
};
}, onError:options.onError});
}
public function getURLSubmitVariables(_arg1:String, _arg2:Number, _arg3:Object=null):Object{
var _local4:String = this.getURLSubmitKey();
var _local5:String = _-08.encode({gsess:_arg1, score:_arg2, extra:_arg3});
var _local6:Object = new Object();
_local6.submit = (_-Ac.rc4EncryptHex(_local4, _local5) + _-Ac.md5(((_arg1 + _local4) + _local5)));
return (_local6);
}
protected function getURLSubmitKey():String{
return (_-64._-Au(-488, 235));
}
public function _-OZ(_arg1:Object):void{
var options = _arg1;
_-Hr.send("leaderBoard", {numScores:options.numScores}, {json:true, encryptedResult:true, onComplete:function (_arg1:_-7k):void{
_-Hn = _-LE.objectToArray(_arg1.data);
_arg1.data = _-Hn;
if ((options.onComplete is Function)){
options.onComplete(_arg1);
};
}});
}
public function get currentScoreData():Object{
return (this._-FG);
}
public function get currentOptions():Object{
return (this._-3P);
}
public function get currentLeaderBoardData():Array{
return (this._-Hn);
}
}
}//package gos.serviceAPI.services
Section 79
//_-7l (gos.serviceAPI.services._-7l)
package gos.serviceAPI.services {
import gos.serviceAPI.*;
import gos.common.*;
import flash.utils.*;
public class _-7l implements _-Q8 {
private var _-R9:Boolean;// = false
protected var _clientVersion:String;
protected var _gameId:String;
protected var _gameKey:String;
private var _-7n:String;
private var _-Rc:String;
public static const _-R-:String = "2.0.0";
public function init(_arg1:String, _arg2:String, _arg3:String):void{
if (((!(this._-7n)) || (!(this._-Rc)))){
throw (new Error("protected connectionURL and salt properties must be set by extending class to use ServiceLibraryMng"));
};
this._gameId = _arg1;
this._gameKey = _arg2;
this._clientVersion = _arg3;
this.initTransmitter();
this._-R9 = true;
}
protected function initTransmitter():void{
_-Hr.init(this._-7n, this._gameId, this._gameKey, this._-Rc, _-R-, this._clientVersion);
}
protected function checkIfInitialized():void{
if (!this._-R9){
throw (new Error("init method must be called to use ServiceLibraryMng"));
};
}
public function _-5p(_arg1:String):Class{
this.checkIfInitialized();
_-Dm.debug(("requested class name: " + _arg1));
return ((getDefinitionByName(_arg1) as Class));
}
public function getObject(_arg1:String){
this.checkIfInitialized();
var _local2:Class = this._-5p(_arg1);
var _local3:_-Bv = (new (_local2) as _-Bv);
return (_local3);
}
public function set _-4p(_arg1:String):void{
this._-7n = _arg1;
}
public function set _-9g(_arg1:String):void{
this._-Rc = _arg1;
}
}
}//package gos.serviceAPI.services
Section 80
//_-Hr (gos.serviceAPI.services._-Hr)
package gos.serviceAPI.services {
import flash.events.*;
import gos.serviceAPI.*;
import gos.common.*;
import com.adobe.serialization.json.*;
import flash.net.*;
public class _-Hr {
public static const _-R-:String = "1.2";
private static const _-SE:int = 0;
private static const _-MG:int = 1;
private static const _-Nn:int = 2;
private static var _-Nb:String = "";
private static var _-3L:String = "";
private static var _serviceVersion:String = "";
private static var _clientVersion:String = "";
private static var _-Rc:String = "";
private static var _gameId:String = "";
private static var _gameKey:String = "";
private static var _-R9:Boolean = false;
public static function init(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String):void{
if (((((((((((_-LE.isEmpty(_arg1)) || (_-LE.isEmpty(_arg2)))) || (_-LE.isEmpty(_arg3)))) || (_-LE.isEmpty(_arg4)))) || (_-LE.isEmpty(_arg5)))) || (_-LE.isEmpty(_arg6)))){
throw (new Error("Transmitter.init: one of the parameters is empty "));
};
_-Nb = _arg1;
_gameId = _arg2;
_gameKey = _arg3;
_-Rc = (_arg4 + _-3L);
_serviceVersion = _arg5.replace(/\./g, "x");
_clientVersion = _arg6.replace(/\./g, "x");
_-R9 = true;
}
public static function send(_arg1:String, _arg2:Object, _arg3:Object):URLLoader{
var loader:URLLoader;
var dataToSendJSON:String;
var request:URLRequest;
var vars:URLVariables;
var command = _arg1;
var data = _arg2;
var options = _arg3;
if (_-LE.isEmpty(_-Nb)){
errorCall(options, new _-7k({input:options, data:data, errorCode:_-7k.INVALID_INPUT, errorMessage:"_connectUrl is null. you have initialize GosTransmitter with init method."}));
return (null);
};
loader = null;
var dataToSend:Object = {};
if (options == null){
options = {};
};
if (_-LE.isEmpty(options.json)){
options.json = true;
};
try {
dataToSend = data;
dataToSendJSON = _-08.encode(dataToSend);
request = new URLRequest(_-Nb);
vars = new URLVariables();
vars.cmd = command;
vars.g = _-Ac.rc4EncryptHex(((_clientVersion + _serviceVersion) + _-Rc), _gameId);
vars.d = (_-Ac.rc4EncryptHex(((_serviceVersion + _-Rc) + _gameKey), dataToSendJSON) + _-Ac.md5((((_clientVersion + _-Rc) + _gameKey) + dataToSendJSON)));
vars.s = _serviceVersion;
vars.c = _clientVersion;
request.data = vars;
loader = new URLLoader();
loader.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{
errorCall(options, new _-7k({input:data, errorCode:_-7k.CONNECTION_ERROR, errorMessage:"[can not connect to server (GosTransmitter.send)]"}));
});
loader.addEventListener(Event.COMPLETE, function (_arg1:Event):void{
onComplete(loader, command, data, options, _arg1);
});
loader.load(request);
} catch(error:Error) {
errorCall(options, new _-7k({input:data, errorCode:_-7k.SYSTEM_ERROR, errorMessage:(("[exception in GosTransmitter.send: " + error.message) + "]")}));
};
return (loader);
}
private static function onComplete(_arg1:URLLoader, _arg2:String, _arg3:Object, _arg4:Object, _arg5:Event):Boolean{
var loader = _arg1;
var command = _arg2;
var data = _arg3;
var options = _arg4;
var event = _arg5;
var responseText:* = loader.data;
var responseObj:Object = {result:0, enc:_-SE, data:responseText, json:false, text:responseText};
var isJson:Boolean;
if ((((responseText == null)) && ((responseText == "")))){
errorCall(options, new _-7k({input:data, errorCode:_-7k.EMPTY_RESPONSE, errorMessage:"response is empty"}));
return (false);
};
if (!options.json){
responseObj.result = 1;
if ((options.onComplete is Function)){
options.onComplete(new _-7k({input:data, event:event, data:responseObj.data, response:responseObj}));
};
return (true);
};
try {
responseObj = _-08.decode(responseText);
if (responseObj.result == undefined){
errorCall(options, new _-7k({input:data, errorCode:_-7k.INVALID_DATA_RETURNED, errorMessage:"response is not a valid gos response object"}));
return (false);
};
} catch(e:Error) {
errorCall(options, new _-7k({input:data, errorCode:_-7k.INVALID_DATA_RETURNED, errorMessage:"response is not a valid json string"}));
return (false);
};
try {
if (responseObj.enc == _-MG){
responseObj.data = _-Ac.rc4DecryptHex(((_serviceVersion + _clientVersion) + _-Rc), responseObj.data);
} else {
if (responseObj.enc == _-Nn){
responseObj.data = _-Ac.rc4DecryptHex((((_serviceVersion + _clientVersion) + _-Rc) + _gameKey), responseObj.data);
};
};
if (responseObj.json){
responseObj.data = _-08.decode(responseObj.data);
};
if ((options.onComplete is Function)){
options.onComplete(new _-7k({input:data, event:event, data:responseObj.data, resultCode:responseObj.result, response:responseObj}));
};
} catch(e:Error) {
errorCall(options, new _-7k({input:data, errorCode:_-7k.SYSTEM_ERROR, errorMessage:("error in GosTransmitter: " + e.message)}));
return (false);
};
return (true);
}
private static function errorCall(_arg1:Object, _arg2:_-7k):void{
if ((_arg1.onError is Function)){
_arg1.onError(_arg2);
};
}
public static function get _-9Z():Boolean{
return (_-R9);
}
}
}//package gos.serviceAPI.services
Section 81
//_-1F (gos.serviceAPI._-1F)
package gos.serviceAPI {
public class _-1F {
public static const _-1t:uint = 1;
public static const _-2R:uint = 2;
public static const _-9C:uint = 3;
}
}//package gos.serviceAPI
Section 82
//_-2p (gos.serviceAPI._-2p)
package gos.serviceAPI {
import gos.common.*;
import flash.utils.*;
public class _-2p implements _-5G {
protected var _-Dl:_-Q8;// = null
protected var _-J6:String;// = null
public static const _-R8:String = "gos.serviceAPI.services.ServiceFactory";
public function _-2p(_arg1:String=null){
this._-J6 = (_arg1) ? _arg1 : _-R8;
}
public function load(_arg1:Function, _arg2:Function=null):void{
_-Dm.debug("loading local service", this);
if ((_arg1 is Function)){
_arg1(new _-7k());
};
}
public function get _-AJ():_-Q8{
if (this._-Dl == null){
this._-Dl = this._-EM(this._-J6);
};
return (this._-Dl);
}
private function _-EM(_arg1:String):_-Q8{
_-Dm.debug(("getServiceFactoryByName: " + _arg1), this);
var _local2:Class = (getDefinitionByName(_arg1) as Class);
return ((new (_local2) as _-Q8));
}
}
}//package gos.serviceAPI
Section 83
//_-3l (gos.serviceAPI._-3l)
package gos.serviceAPI {
public interface _-3l extends _-Bv {
"gos.serviceAPI:IScoreService"?? function _-Ep(_arg1:Object):void;
"gos.serviceAPI:IScoreService"?? function submit(_arg1:String, _arg2:Number, _arg3:Object):void;
"gos.serviceAPI:IScoreService"?? function _-Mr(_arg1:String, _arg2:Number, _arg3:Object):void;
"gos.serviceAPI:IScoreService"?? function getSubmitToken(_arg1:Number, _arg2:Object):void;
"gos.serviceAPI:IScoreService"?? function getURLSubmitVariables(_arg1:String, _arg2:Number, _arg3:Object=null):Object;
"gos.serviceAPI:IScoreService"?? function _-OZ(_arg1:Object):void;
"gos.serviceAPI:IScoreService"?? function get currentScoreData():Object;
"gos.serviceAPI:IScoreService"?? function get currentOptions():Object;
"gos.serviceAPI:IScoreService"?? function get currentLeaderBoardData():Array;
}
}//package gos.serviceAPI
Section 84
//_-5G (gos.serviceAPI._-5G)
package gos.serviceAPI {
public interface _-5G {
"gos.serviceAPI:ILibraryLoader"?? function load(_arg1:Function, _arg2:Function=null):void;
"gos.serviceAPI:ILibraryLoader"?? function get _-AJ():_-Q8;
}
}//package gos.serviceAPI
Section 85
//_-7k (gos.serviceAPI._-7k)
package gos.serviceAPI {
import flash.events.*;
import gos.common.*;
public dynamic class _-7k {
public var resultCode:String;// = null
public var errorCode:String;// = null
public var errorMessage:String;// = null
public var event:Event;// = null
public var input;// = null
public var data;// = null
public var response;// = null
public static const EMPTY_RESPONSE:String = "EMPTY_RESPONSE";
public static const INVALID_OPERATION:String = "INVALID_OPERATION";
public static const INVALID_INPUT:String = "INVALID_INPUT";
public static const INVALID_DATA_RETURNED:String = "INVALID_DATA_RETURNED";
public static const SERVICE_CANNOT_BE_LOADED:String = "SERVICE_CANNOT_BE_LOADED";
public static const IO_ERROR:String = "IO_ERROR";
public static const CONNECTION_ERROR:String = "CONNECTION_ERROR";
public static const SECURITY_ERROR:String = "SECURITY_ERROR";
public static const SYSTEM_ERROR:String = "SYSTEM_ERROR";
public static const CONNECTION_IS_ALREADY_INITIALIZED:String = "CONNECTION_IS_ALREADY_INITIALIZED";
public function _-7k(_arg1:Object=null){
this.init(_arg1);
}
public function init(_arg1:Object):_-7k{
this._- = _arg1;
return (this);
}
public function set _-(_arg1:Object):void{
var _local2:String;
if (!_-LE.isEmpty(_arg1)){
for (_local2 in _arg1) {
this[_local2] = _arg1[_local2];
};
};
}
public function _-Rt():Boolean{
return (_-LE.isEmpty(this.errorCode));
}
public function initError(_arg1:String, _arg2:String, _arg3:Event=null, _arg4=null):_-7k{
return (this.init({errorCode:_arg1, errorMessage:_arg2, event:_arg3, input:_arg4}));
}
}
}//package gos.serviceAPI
Section 86
//_-9R (gos.serviceAPI._-9R)
package gos.serviceAPI {
import flash.display.*;
import flash.events.*;
import gos.common.*;
public class _-9R {
protected var _-Kk:EventTracker;
protected var _-2w:DisplayObjectContainer;
protected var _onComplete:Function;
protected var _-0U:Function;
protected var _-PT:Boolean;
protected var _-34:Object;
public function _-9R(){
this._-Kk = new EventTracker();
}
public function start(_arg1:DisplayObjectContainer, _arg2:Function, _arg3:Function, _arg4:Object=null):void{
var temp:Number;
var parent = _arg1;
var onComplete = _arg2;
var onProgress = _arg3;
var args = _arg4;
this._-PT = false;
this._-2w = parent;
this._onComplete = onComplete;
this._-0U = onProgress;
this._-34 = args;
if (!this._-34){
this._-34 = {};
};
try {
temp = this._-2w.loaderInfo.width;
this._-2V();
} catch(e:Error) {
_-2w.addEventListener(Event.ENTER_FRAME, function (_arg1:Event):void{
_arg1.currentTarget.removeEventListener(_arg1.type, arguments.callee);
_-2V();
});
};
}
protected function _-2V():void{
if (this._-2w.loaderInfo.bytesLoaded >= this._-2w.loaderInfo.bytesTotal){
this.onLoadComplete(null);
} else {
this._-Kk.add(this._-2w.loaderInfo, ProgressEvent.PROGRESS, this.onProgress);
this._-Kk.add(this._-2w.loaderInfo, Event.COMPLETE, this.onLoadComplete);
};
}
protected function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
this._-0U(_local2, _local3, _local4);
}
protected function onLoadComplete(_arg1:Event):void{
this._-Kk.removeAll();
this._-PT = true;
this._onComplete();
this.destroy();
}
public function destroy():void{
this._-Kk.removeAll();
this._-2w = null;
this._onComplete = null;
this._-0U = null;
this._-34 = null;
}
public function get isLoadingCompleted():Boolean{
return (this._-PT);
}
}
}//package gos.serviceAPI
Section 87
//_-Bv (gos.serviceAPI._-Bv)
package gos.serviceAPI {
public interface _-Bv {
}
}//package gos.serviceAPI
Section 88
//_-GG (gos.serviceAPI._-GG)
package gos.serviceAPI {
public class _-GG {
public static const _-9K:String = "own";
public static const _-0Q:String = "facebook";
public static const _-8h:String = "other";
}
}//package gos.serviceAPI
Section 89
//_-Nf (gos.serviceAPI._-Nf)
package gos.serviceAPI {
import gos.common.*;
public class _-Nf {
protected var _gameId:String;// = ""
protected var _gameKey:String;// = ""
protected var _channel:String;// = ""
protected var _-44:uint;// = 3
protected var _-BG:String;
protected var _-2D:Object;// = null
protected var _-H8:EventTracker;
protected var _-A7:_-5G;
protected var _-Dl:_-Q8;
private static const _-7T:String = "2.0.0";
public function _-Nf(){
this._-BG = Languages._-DJ;
this._-H8 = new EventTracker();
super();
}
public function init(_arg1:String, _arg2:String, _arg3:Object=null):void{
_-Dm._-QK(("version:" + _-7T), this);
if (_-LE.isEmpty(_arg3)){
_arg3 = {};
};
if (this._-44 == _-1F._-2R){
if ((_arg3.onError is Function)){
_arg3.onError(new _-7k({errorCode:_-7k.CONNECTION_IS_ALREADY_INITIALIZED, errorMessage:("connect method already has been called. current status:" + this._-44), input:_arg3}));
};
} else {
if (this._-44 == _-1F._-1t){
if ((_arg3.onLoad is Function)){
_arg3.onLoad(new _-7k({input:_arg3}));
};
} else {
if (_-LE.isEmpty(_arg1)){
if ((_arg3.onError is Function)){
_arg3.onError(new _-7k({errorCode:_-7k.INVALID_INPUT, errorMessage:"game id is null", input:_arg3}));
};
} else {
this._-44 = _-1F._-2R;
this._gameId = _arg1;
this._gameKey = _arg2;
this._-2D = _arg3;
this._-HB(this._-2D.libraryLoader);
this._channel = (this._-2D.channel) ? this._-2D.channel : _-GG._-8h;
this._-Fm();
};
};
};
}
protected function _-HB(_arg1):void{
if ((_arg1 is _-5G)){
this._-A7 = _arg1;
} else {
this._-A7 = new _-2p();
};
}
protected function _-Fm():void{
this._-A7.load(this.onLibraryLoaded, this.onLibraryLoadingError);
}
protected function onLibraryLoaded(_arg1:_-7k):Boolean{
var result = _arg1;
var emsg = "";
try {
this._-Dl = this._-A7._-AJ;
_-Dm.debug("service is loaded successfully", this);
return (this.initServiceFactory());
} catch(e:Error) {
emsg = e.message;
};
this.callConnectErrorFunction(_-7k.SERVICE_CANNOT_BE_LOADED, (("Can not load the service. " + emsg) + ""));
return (false);
}
protected function initServiceFactory():Boolean{
this._-Dl.init(this.gameId, this.gameKey, this.version);
this._-44 = _-1F._-1t;
_-Dm.debug("service is initialized successfully.", this);
if ((this._-2D.onLoad is Function)){
this._-2D.onLoad(new _-7k({input:this._-2D}));
};
return (true);
}
protected function onLibraryLoadingError(_arg1:_-7k):void{
this._-44 = _-1F._-9C;
this.callConnectErrorFunction(_arg1.errorCode, _arg1.errorMessage);
}
protected function callConnectErrorFunction(_arg1:String, _arg2:String):Boolean{
if ((this._-2D.onError is Function)){
this._-2D.onError(new _-7k({input:this._-2D, errorCode:_arg1, errorMessage:_arg2}));
return (true);
};
return (false);
}
public function get channel():String{
return (this._channel);
}
public function set channel(_arg1:String):void{
this._channel = _arg1;
}
public function get language():String{
return (this._-BG);
}
public function set language(_arg1:String):void{
this._-BG = _arg1;
}
public function get isReady():Boolean{
return ((this._-44 == _-1F._-1t));
}
public function get _-Ay():uint{
return (this._-44);
}
public function get gameId():String{
return (this._gameId);
}
public function get gameKey():String{
return (this._gameKey);
}
public function get version():String{
return (_-7T);
}
public function get _-AJ():_-Q8{
return (this._-Dl);
}
}
}//package gos.serviceAPI
Section 90
//_-Q8 (gos.serviceAPI._-Q8)
package gos.serviceAPI {
public interface _-Q8 {
"gos.serviceAPI:IServiceFactory"?? function _-5p(_arg1:String):Class;
"gos.serviceAPI:IServiceFactory"?? function getObject(_arg1:String);
"gos.serviceAPI:IServiceFactory"?? function init(_arg1:String, _arg2:String, _arg3:String):void;
"gos.serviceAPI:IServiceFactory"?? function set _-4p(_arg1:String):void;
"gos.serviceAPI:IServiceFactory"?? function set _-9g(_arg1:String):void;
}
}//package gos.serviceAPI
Section 91
//Languages (gos.serviceAPI.Languages)
package gos.serviceAPI {
public class Languages {
public static const _-DJ:String = "en";
public static const _-Qo:String = "tr";
public static const _-5o:String = "es";
public static const _-1Y:String = "de";
public static const _-8y:String = "fr";
public static const _-3D:String = "pt";
}
}//package gos.serviceAPI
Section 92
//cycle1_stage_70 (obyoapi_lib_fla.cycle1_stage_70)
package obyoapi_lib_fla {
import flash.display.*;
public dynamic class cycle1_stage_70 extends MovieClip {
public function cycle1_stage_70(){
addFrameScript(14, this.frame15);
}
function frame15(){
gotoAndPlay("loop");
}
}
}//package obyoapi_lib_fla
Section 93
//intro_2 (obyoapi_lib_fla.intro_2)
package obyoapi_lib_fla {
import flash.display.*;
public dynamic class intro_2 extends MovieClip {
public function intro_2(){
addFrameScript(0, this.frame1, 99, this.frame100, 274, this.frame275);
}
function frame1(){
}
function frame100(){
}
function frame275(){
stop();
}
}
}//package obyoapi_lib_fla
Section 94
//ObyoIntro_30 (obyoapi_lib_fla.ObyoIntro_30)
package obyoapi_lib_fla {
import flash.display.*;
public dynamic class ObyoIntro_30 extends MovieClip {
public function ObyoIntro_30(){
addFrameScript(26, this.frame27);
}
function frame27(){
stop();
}
}
}//package obyoapi_lib_fla
Section 95
//Waves_27 (obyoapi_lib_fla.Waves_27)
package obyoapi_lib_fla {
import flash.display.*;
public dynamic class Waves_27 extends MovieClip {
public var i:int;
public function Waves_27(){
addFrameScript(0, this.frame1);
}
function frame1(){
this.i = 0;
if (this.i++ <= 0){
gotoAndPlay(uint(((Math.random() * this.totalFrames) - 1)));
};
}
}
}//package obyoapi_lib_fla
Section 96
//Waves2_28 (obyoapi_lib_fla.Waves2_28)
package obyoapi_lib_fla {
import flash.display.*;
public dynamic class Waves2_28 extends MovieClip {
public var i:int;
public function Waves2_28(){
addFrameScript(0, this.frame1);
}
function frame1(){
this.i = 0;
if (this.i++ <= 0){
gotoAndPlay(uint(((Math.random() * this.totalFrames) - 1)));
};
}
}
}//package obyoapi_lib_fla