Section 1
//_-0C (_-82._-0C)
package _-82 {
public class _-0C {
public var number:Number;
public var suit:Number;
public function _-0C(_arg1:Number, _arg2:Number){
this.number = _arg1;
this.suit = _arg2;
}
}
}//package _-82
Section 2
//_-1q (_-82._-1q)
package _-82 {
import com.novelgames.flashgames.common.*;
public dynamic class _-1q extends _-Pv {
}
}//package _-82
Section 3
//_-43 (_-82._-43)
package _-82 {
import com.novelgames.flashgames.common.*;
public dynamic class _-43 extends _-6P {
}
}//package _-82
Section 4
//_-5y (_-82._-5y)
package _-82 {
import flash.display.*;
import flash.events.*;
import gos.serviceAPI.*;
import gos.obyoAPI.*;
import _-9-.*;
public class _-5y extends MovieClip {
private var _-U:_-7h;
private var _-3b:_-P9;
private var messageLevel:_-CE;
public var level:Number;
public function _-5y(){
stop();
}
public function _-CL(_arg1:Number):void{
this.level = _arg1;
messageLevel = new _-CE();
messageLevel.levelText.text = _arg1.toString();
this.addChild(messageLevel);
visible = true;
}
public function _-Ry():void{
gotoAndStop("hide");
_-U = new _-7h();
_-U.yesButton.addEventListener(MouseEvent.CLICK, _-Ie);
_-U.noButton.addEventListener(MouseEvent.CLICK, _-Gv);
addChild(_-U);
}
public function _-3q():void{
hide();
gotoAndStop("gameOver");
}
public function showWin():void{
hide();
gotoAndStop("win");
}
public function showPlayAgain(_arg1:Object=null):void{
var args = _arg1;
if (((args.score) && ((args.score > 0)))){
_-CJ.showEndScreen(parent.parent, _-Fz._-LX, _-64._-Au(-430, 901), {title:_-Fz._-7z, score:args.score, onError:function (_arg1:_-7k){
homeButtonClicked(null);
}, onReplay:function (_arg1:_-7k){
playAgainButtonClicked(null);
}, onBackToMenu:function (_arg1:_-7k){
homeButtonClicked(null);
}});
} else {
gotoAndStop("hide");
_-3b = new _-P9();
_-3b.playAgainButton.addEventListener(MouseEvent.CLICK, playAgainButtonClicked);
_-3b.homeButton.addEventListener(MouseEvent.CLICK, homeButtonClicked);
addChild(_-3b);
};
}
public function hide():void{
if (messageLevel){
this.removeChild(messageLevel);
messageLevel = null;
};
if (_-U){
this.removeChild(_-U);
_-U = null;
};
gotoAndStop("hide");
}
private function _-Ie(_arg1:MouseEvent):void{
Object(parent).giveUpConfirmed();
}
private function _-Gv(_arg1:MouseEvent):void{
Object(parent).giveUpCancelled();
}
private function playAgainButtonClicked(_arg1:MouseEvent):void{
Object(parent.parent).gotoGamePage();
}
private function homeButtonClicked(_arg1:MouseEvent):void{
Object(parent.parent).gotoTitlePage();
}
}
}//package _-82
Section 5
//_-6h (_-82._-6h)
package _-82 {
import com.novelgames.flashgames.common.*;
public dynamic class _-6h extends _-6P {
}
}//package _-82
Section 6
//_-7f (_-82._-7f)
package _-82 {
import com.novelgames.flashgames.common.*;
import flash.display.*;
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{
_-Fz._-5t = 0;
return (new Game());
}
override protected function getMusicGame():Sound{
return (new _-1q());
}
override protected function getButtonSoundOver():Sound{
return (new _-KS());
}
override protected function getButtonSoundClick():Sound{
return (new _-KY());
}
}
}//package _-82
Section 7
//_-7h (_-82._-7h)
package _-82 {
import flash.display.*;
public dynamic class _-7h extends MovieClip {
public var noButton:SimpleButton;
public var yesButton:SimpleButton;
}
}//package _-82
Section 8
//_-8K (_-82._-8K)
package _-82 {
import com.novelgames.flashgames.common.*;
public dynamic class _-8K extends _-6P {
}
}//package _-82
Section 9
//_-CE (_-82._-CE)
package _-82 {
import flash.display.*;
import flash.text.*;
public dynamic class _-CE extends MovieClip {
public var levelText:TextField;
}
}//package _-82
Section 10
//_-EC (_-82._-EC)
package _-82 {
import com.novelgames.flashgames.common.*;
public dynamic class _-EC extends _-6P {
}
}//package _-82
Section 11
//_-Fz (_-82._-Fz)
package _-82 {
public class _-Fz {
public static var _-LX:String = "spider-solitaire";
public static var _-7z:String = "Spider Solitaire";
public static var _-Pw:Number = 13;
public static var _-QM:Number = 4;
public static var _-3o:Number = (_-Pw * _-QM);
public static var _-MY:Number = 2;
public static var _-Aa:Number = 1;
public static var _-S4:Number = 10;
public static var _-JQ:Number = 44;
public static var _-Om:Number = 0;
public static var _-Jj:Number = 600;
public static var _-9X:Number = 10;
public static var _-N9:Number = 320;
public static var _-Rd:Number = 20;
public static var _-JK:Number = 450;
public static var _-Nw:Number = 360;
public static var _-BN:Number = 20;
public static var _-Pq:Number = 300;
public static var _-2S:Number = 360;
public static var _-3s:Number = 1000;
public static var _-2K:Number = 50;
public static var _-HP:Number = 200;
public static var _-S7:Number = 1000;
public static var _-FY:Number = 50;
public static var _-4v:Number = 500;
public static var _-IT:Number = 2000;
public static var _-1:Number = 10;
public static var _-5t:int = 0;
public static var _-7v:Number = 1;
public static var _-Ma:Number = 10000;
public static var _-I:Number = 1500;
public static var _-m:Number = 1500;
}
}//package _-82
Section 12
//_-Ge (_-82._-Ge)
package _-82 {
import com.novelgames.flashgames.common.*;
public class _-Ge extends _-OO {
override public function getGameId():String{
return (_-Fz._-LX);
}
}
}//package _-82
Section 13
//_-JT (_-82._-JT)
package _-82 {
import com.novelgames.flashgames.common.*;
public dynamic class _-JT extends _-6P {
}
}//package _-82
Section 14
//_-K (_-82._-K)
package _-82 {
import com.novelgames.flashgames.common.*;
public dynamic class _-K extends _-6P {
}
}//package _-82
Section 15
//_-KS (_-82._-KS)
package _-82 {
import com.novelgames.flashgames.common.*;
public dynamic class _-KS extends _-6P {
}
}//package _-82
Section 16
//_-KY (_-82._-KY)
package _-82 {
import com.novelgames.flashgames.common.*;
public dynamic class _-KY extends _-6P {
}
}//package _-82
Section 17
//_-L8 (_-82._-L8)
package _-82 {
import com.novelgames.flashgames.common.*;
public dynamic class _-L8 extends _-6P {
}
}//package _-82
Section 18
//_-NT (_-82._-NT)
package _-82 {
import flash.display.*;
public class _-NT extends MovieClip {
public var number:Number;
public var suit:Number;
public var pile:Number;
public var pileIndex:Number;
public var opened:Boolean;
public var fromX:Number;
public var fromY:Number;
public var _-6R:Number;
public var _-GR:Number;
public var moveTime:Number;
public var moveDuration:Number;
public static var _-17:Number = 1;
public static var _-1T:Number = 2;
public static var _-Og:Number = 3;
public static var _-O-:Number = 4;
public function _-NT(){
stop();
this["cacheAsBitmap"] = true;
}
public function initialize(_arg1:Number, _arg2:Number):void{
this.number = _arg1;
this.suit = _arg2;
opened = false;
}
public function show():void{
gotoAndStop(((1 + ((suit - 1) * _-Fz._-Pw)) + number));
opened = true;
this["cacheAsBitmap"] = true;
}
public function _-F5(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
fromX = this.x;
fromY = this.y;
_-6R = _arg1;
_-GR = _arg2;
moveTime = _arg4;
_local5 = (_arg1 - fromX);
_local6 = (_arg2 - fromY);
_local7 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
moveDuration = ((_local7 * 1000) / _arg3);
}
public function move(_arg1:Number):Boolean{
var _local2:Number;
if (_arg1 < moveTime){
return (false);
};
if ((_arg1 - moveTime) >= moveDuration){
this.x = _-6R;
this.y = _-GR;
return (true);
};
_local2 = ((_arg1 - moveTime) / moveDuration);
this.x = ((fromX * (1 - _local2)) + (_-6R * _local2));
this.y = ((fromY * (1 - _local2)) + (_-GR * _local2));
return (false);
}
}
}//package _-82
Section 19
//_-Ou (_-82._-Ou)
package _-82 {
import com.novelgames.flashgames.common.*;
public dynamic class _-Ou extends _-6P {
}
}//package _-82
Section 20
//_-P9 (_-82._-P9)
package _-82 {
import flash.display.*;
public dynamic class _-P9 extends MovieClip {
public var playAgainButton:SimpleButton;
public var homeButton:SimpleButton;
}
}//package _-82
Section 21
//Game (_-82.Game)
package _-82 {
import com.novelgames.flashgames.common.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
public class Game extends Game {
public var bottomObyoButton:SimpleButton;
public var scoreText:TextField;
public var giveUpButton:SimpleButton;
public var scoreTitleText:MovieClip;
public var scoreBackground:MovieClip;
public var message:_-5y;
public var _-2l:MovieClip;
private var __score:_-G1;
private var _-4z:Number;
private var _-JX:Number;
private var _-3v:Array;
private var _-KF:Array;
private var _-A0:Array;
private var _-AR:Array;
private var _-BD:Boolean;
private var startTime:Number;
private var _-PH:Number;
private var _-F2:Timer;
private var _-1N:Sound;
private var _-0b:Sound;
private var _-0F:Sound;
private var soundWin:Sound;
private var soundGameOver:Sound;
private var _-K0:Sound;
public function Game(){
super();
score = _-Fz._-5t;
scoreTitleText.visible = false;
scoreBackground.visible = false;
scoreText.visible = false;
giveUpButton.visible = false;
_-1N = new _-EC();
_-0b = new _-8K();
_-0F = new _-43();
soundWin = new _-JT();
soundGameOver = new _-Ou();
_-K0 = new _-6h();
_-Eq.x = message.x;
_-Eq.y = message.y;
bottomObyoButton.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
_-7f(parent)._-1k("3");
}, false, 0, true);
_-Rb();
}
public function _-Rb():void{
_-Km();
_-Gp();
if (_-Fz._-7v != 1){
message._-CL(_-Fz._-7v);
};
}
public function set score(_arg1:Number):void{
if (__score == null){
__score = new _-G1();
};
__score.value = _arg1;
scoreText.text = _arg1.toString();
}
public function get score():Number{
if (__score == null){
__score = new _-G1();
};
return (__score.value);
}
private function _-Km():void{
var _local2:_-0C;
var _local3:*;
var _local4:_-NT;
var _local5:*;
var _local6:*;
var _local7:*;
var _local1:Array = new Array();
_local5 = 0;
while (_local5 < _-Fz._-MY) {
_local6 = 0;
while (_local6 < _-Fz._-Pw) {
_local7 = 0;
while (_local7 < _-Fz._-QM) {
_local2 = new _-0C((_local6 + 1), (_-NT._-O- - (_local7 % _-Fz._-Aa)));
_local1.push(_local2);
_local7++;
};
_local6++;
};
_local5++;
};
_-H9(_local1);
_-3v = new Array();
_local5 = 0;
while (_local5 < _local1.length) {
_local4 = new _-NT();
_local4.initialize(_local1[_local5].number, _local1[_local5].suit);
_local4.x = _-Fz._-Pq;
_local4.y = _-Fz._-2S;
_-3v.push(_local4);
_-2l.addChild(_local4);
_local5++;
};
_-4z = _local4.width;
_-JX = _local4.height;
_-KF = new Array(_-Fz._-S4);
_local5 = 0;
while (_local5 < _-KF.length) {
_-KF[_local5] = new Array();
_local5++;
};
}
private function _-H9(_arg1:Array):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = 0;
while (_local2 < _arg1.length) {
_local3 = Math.floor((Math.random() * _arg1.length));
_local4 = _arg1[_local3];
_arg1[_local3] = _arg1[_local2];
_arg1[_local2] = _local4;
_local2++;
};
}
private function _-Gp():void{
startTime = _-CQ.getTimer();
_-PH = 0;
_-F2 = new _-CQ(1, 0);
_-F2.addEventListener(TimerEvent.TIMER, onInitialDealTime);
_-F2.start();
}
private function onInitialDealTime(_arg1:TimerEvent):void{
var _local7:Number;
var _local8:_-NT;
var _local9:Number;
var _local10:Number;
var _local11:*;
var _local2:Number = _-CQ.getTimer();
var _local3:Number = (((_-Fz._-Jj - _-Fz._-Om) / _-Fz._-S4) / 2);
var _local4:Number = (_-Fz._-9X + (_-4z / 2));
var _local5:Number = ((_-Fz._-Jj - _-Fz._-Om) / _-Fz._-S4);
var _local6:Number = _-Fz._-Rd;
_arg1.updateAfterEvent();
_local11 = 0;
while (_local11 < _-Fz._-JQ) {
_local7 = (startTime + (_local11 * _-Fz._-2K));
if (_local7 > _local2){
break;
};
_local8 = _-3v[((_-3v.length - _local11) - 1)];
if (_-PH < _local7){
_local9 = (_local3 + ((_local11 % _-Fz._-S4) * _local5));
_local10 = (_local4 + (Math.floor((_local11 / _-Fz._-S4)) * _local6));
_local8._-F5(_local9, _local10, _-Fz._-3s, _local7);
_-2l.setChildIndex(_local8, (_-2l.numChildren - 1));
if (_local11 >= (_-Fz._-JQ - _-Fz._-S4)){
_local8.show();
};
_-KF[(_local11 % _-Fz._-S4)].push(_local8);
_local8.pile = (_local11 % _-Fz._-S4);
_local8.pileIndex = (_-KF[(_local11 % _-Fz._-S4)].length - 1);
_-1N.play();
};
_local8.move(_local2);
_local11++;
};
_-PH = _local2;
if (_local11 < _-Fz._-JQ){
return;
};
if (_local2 < (_local7 + _local8.moveDuration)){
return;
};
_-3v.splice((_-3v.length - _-Fz._-JQ));
_-F2.stop();
message.hide();
startTime = _-CQ.getTimer();
_-F2 = new _-CQ(1, 0);
_-F2.addEventListener(TimerEvent.TIMER, onFinishedDealTime);
_-F2.start();
}
private function onFinishedDealTime(_arg1:TimerEvent):void{
var _local3:Number;
var _local4:Number;
var _local5:_-NT;
var _local6:*;
var _local2:Number = _-CQ.getTimer();
_arg1.updateAfterEvent();
_local6 = 0;
while (_local6 < _-3v.length) {
_local5 = _-3v[((_-3v.length - _local6) - 1)];
_local3 = Math.floor((_local6 / _-Fz._-S4));
_local4 = (_-Fz._-JK + (_local3 * _-Fz._-BN));
_local5.x = (_-Fz._-Pq + ((_-Fz._-HP * (_local2 - startTime)) / 1000));
if (_local5.x > _local4){
_local5.x = _local4;
};
_local6++;
};
if (_local5.x < _local4){
return;
};
scoreTitleText.visible = true;
scoreBackground.visible = true;
scoreText.visible = true;
giveUpButton.visible = true;
giveUpButton.addEventListener(MouseEvent.CLICK, _-Ol);
_-F2.stop();
_-Mh();
}
private function _-Mh():void{
var _local1:*;
_local1 = 0;
while (_local1 < _-KF.length) {
_-L2(_-KF[_local1]);
_local1++;
};
giveUpButton.enabled = true;
_local1 = 0;
while (_local1 < _-KF.length) {
if (_-KF[_local1].length == 0){
return;
};
_local1++;
};
if (_-3v.length > 0){
_-3v[(_-3v.length - 1)].addEventListener(MouseEvent.CLICK, _-j);
_-3v[(_-3v.length - 1)].buttonMode = true;
};
}
private function _-L2(_arg1:Array):void{
var _local2:*;
_local2 = 0;
while (_local2 < _arg1.length) {
if (!_arg1[_local2].opened){
} else {
_arg1[_local2].addEventListener(MouseEvent.ROLL_OVER, _-Pk);
_arg1[_local2].addEventListener(MouseEvent.ROLL_OUT, _-0e);
if (!_-0W(_arg1[_local2])){
_arg1[_local2].buttonMode = false;
} else {
_arg1[_local2].addEventListener(MouseEvent.MOUSE_DOWN, _-16);
_arg1[_local2].buttonMode = true;
};
};
_local2++;
};
}
private function _-0W(_arg1:_-NT):Boolean{
var _local4:*;
var _local2:Array = _-KF[_arg1.pile];
var _local3:Number = _arg1.number;
_local4 = (_arg1.pileIndex + 1);
while (_local4 < _local2.length) {
if (_local2[_local4].number != (_local3 - 1)){
return (false);
};
_local3--;
_local4++;
};
return (true);
}
private function _-Pk(_arg1:MouseEvent):void{
var _local2:_-NT = _-NT(_arg1.currentTarget);
_-HE(_local2.pile);
}
private function _-0e(_arg1:MouseEvent):void{
var _local2:_-NT = _-NT(_arg1.currentTarget);
_-HE(_local2.pile);
}
private function _-16(_arg1:MouseEvent):void{
var _local4:*;
var _local2:_-NT = _-NT(_arg1.currentTarget);
var _local3:Array = _-KF[_local2.pile];
_-8t();
_-A0 = new Array();
_local4 = _local2.pileIndex;
while (_local4 < _local3.length) {
_-2l.setChildIndex(_local3[_local4], (_-2l.numChildren - 1));
_-A0.push(_local3[_local4]);
_local4++;
};
_local3.splice(_local2.pileIndex);
_-HE(_local2.pile);
var _local5 = _local2;
_local5["startDragNew"](false);
this.addEventListener(MouseEvent.MOUSE_MOVE, onDragCardMouseMove);
_local2.addEventListener(MouseEvent.MOUSE_UP, onDragCardReleased);
onDragCardMouseMove(null);
_-0b.play();
}
private function _-j(_arg1:MouseEvent):void{
_-8t();
startTime = _-CQ.getTimer();
_-PH = 0;
_-F2 = new _-CQ(1, 0);
_-F2.addEventListener(TimerEvent.TIMER, onDealTime);
_-F2.start();
}
private function _-HE(_arg1:Number):void{
var _local6:*;
var _local2:Array = _-KF[_arg1];
var _local3:Number = ((((_-Fz._-Jj - _-Fz._-Om) / _-Fz._-S4) / 2) + ((_arg1 * (_-Fz._-Jj - _-Fz._-Om)) / _-Fz._-S4));
var _local4:Number = (_-Fz._-9X + (_-4z / 2));
var _local5:Number = _-9Q(_arg1);
_local6 = 0;
while (_local6 < _local2.length) {
_local2[_local6].x = _local3;
_local2[_local6].y = (_local4 + (_local6 * _local5));
_local6++;
};
}
private function _-8t():void{
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 < _-KF.length) {
_local2 = 0;
while (_local2 < _-KF[_local1].length) {
_-KF[_local1][_local2].removeEventListener(MouseEvent.ROLL_OVER, _-Pk);
_-KF[_local1][_local2].removeEventListener(MouseEvent.ROLL_OUT, _-0e);
_-KF[_local1][_local2].removeEventListener(MouseEvent.MOUSE_DOWN, _-16);
_-KF[_local1][_local2].removeEventListener(MouseEvent.MOUSE_UP, onDragCardReleased);
_-KF[_local1][_local2].buttonMode = false;
_local2++;
};
_local1++;
};
giveUpButton.enabled = false;
if (_-3v.length > 0){
_-3v[(_-3v.length - 1)].removeEventListener(MouseEvent.CLICK, _-j);
_-3v[(_-3v.length - 1)].buttonMode = false;
};
}
private function onDealTime(_arg1:TimerEvent):void{
var _local6:Number;
var _local7:_-NT;
var _local8:Number;
var _local9:Number;
var _local11:*;
var _local2:Number = _-CQ.getTimer();
var _local3:Number = (((_-Fz._-Jj - _-Fz._-Om) / _-Fz._-S4) / 2);
var _local4:Number = (_-Fz._-9X + (_-4z / 2));
var _local5:Number = ((_-Fz._-Jj - _-Fz._-Om) / _-Fz._-S4);
var _local10:Boolean;
_arg1.updateAfterEvent();
_local11 = 0;
while ((((_local11 < _-Fz._-S4)) && ((_local11 < _-3v.length)))) {
_local6 = (startTime + (_local11 * _-Fz._-FY));
if (_local6 > _local2){
break;
};
_local7 = _-3v[((_-3v.length - _local11) - 1)];
if (_-PH < _local6){
_local8 = (_local3 + (_local11 * _local5));
_local9 = (_local4 + (_-KF[_local11].length * _-9Q(_local11)));
_local7._-F5(_local8, _local9, _-Fz._-S7, _local6);
_-2l.setChildIndex(_local7, (_-2l.numChildren - 1));
_local7.show();
_-KF[_local11].push(_local7);
_local7.pile = _local11;
_local7.pileIndex = (_-KF[_local11].length - 1);
_-1N.play();
};
_local7.move(_local2);
if (_local2 < (_local6 + _local7.moveDuration)){
_local10 = false;
};
_local11++;
};
_-PH = _local2;
if ((((_local11 < _-Fz._-S4)) && ((_local11 < _-3v.length)))){
return;
};
if (!_local10){
return;
};
_-3v.splice((_-3v.length - _local11));
_-F2.stop();
_local11 = 0;
while (_local11 < _-KF.length) {
_-HE(_local11);
_local11++;
};
_-Mh();
}
private function _-9Q(_arg1:Number):Number{
var _local3:Number;
var _local2:Number = _-KF[_arg1].length;
if (_local2 <= 1){
return (_-Fz._-Rd);
};
_local3 = (((_-Fz._-N9 - _-Fz._-9X) - _-JX) / (_local2 - 1));
return (Math.min(_local3, _-Fz._-Rd));
}
private function onDragCardMouseMove(_arg1:MouseEvent):void{
var _local2:*;
if (_arg1){
_arg1.updateAfterEvent();
};
_local2 = 1;
while (_local2 < _-A0.length) {
_-A0[_local2].x = _-A0[0].x;
_-A0[_local2].y = (_-A0[0].y + (_local2 * _-Fz._-Rd));
_local2++;
};
}
private function onDragCardReleased(_arg1:MouseEvent):void{
var _local3:Array;
var _local4:*;
var _local2:Number = Math.floor((_-A0[0].x / ((_-Fz._-Jj - _-Fz._-Om) / _-Fz._-S4)));
var _local5 = _-A0[0];
_local5["stopDragNew"]();
this.removeEventListener(MouseEvent.MOUSE_MOVE, onDragCardMouseMove);
_-A0[0].removeEventListener(MouseEvent.MOUSE_UP, onDragCardReleased);
if (!_-Fg(_local2)){
_local2 = _-A0[0].pile;
} else {
_-RY(_-A0[0].pile);
};
_local3 = _-KF[_local2];
_local4 = 0;
while (_local4 < _-A0.length) {
_-A0[_local4].pile = _local2;
_-A0[_local4].pileIndex = _local3.length;
_local3.push(_-A0[_local4]);
_local4++;
};
_-HE(_local2);
score = (score - _-Fz._-1);
if (!_-Af(_local2)){
_-Mh();
};
_-0b.play();
}
private function _-Fg(_arg1:Number):Boolean{
var _local2:Array = _-KF[_arg1];
if (!_local2){
return (false);
};
if (_local2.length == 0){
return (true);
};
if (!_local2[(_local2.length - 1)].opened){
return (false);
};
if (_local2[(_local2.length - 1)].number == (_-A0[0].number + 1)){
return (true);
};
return (false);
}
private function _-RY(_arg1:Number):void{
var _local2:Array = _-KF[_arg1];
if (_local2.length == 0){
return;
};
_local2[(_local2.length - 1)].show();
}
private function _-Af(_arg1:Number):Boolean{
var _local3:Number;
var _local4:*;
var _local2:Array = _-KF[_arg1];
if (_local2.length < _-Fz._-Pw){
return (false);
};
_local3 = _local2[(_local2.length - 1)].suit;
_local4 = 0;
while (_local4 < _-Fz._-Pw) {
if (_local2[((_local2.length - _local4) - 1)].suit != _local3){
return (false);
};
if (_local2[((_local2.length - _local4) - 1)].number != (_local4 + 1)){
return (false);
};
_local4++;
};
score = (score + _-Fz._-IT);
_-AR = _-KF[_arg1];
_-0F.play();
startTime = _-CQ.getTimer();
_-F2 = new _-CQ(1, 0);
_-F2.addEventListener(TimerEvent.TIMER, onDisappearTime);
_-F2.start();
return (true);
}
private function onDisappearTime(_arg1:TimerEvent):void{
var _local4:*;
var _local2:Number = _-CQ.getTimer();
var _local3:Number = ((_local2 - startTime) / _-Fz._-4v);
_arg1.updateAfterEvent();
if (_local3 > 1){
_local3 = 1;
};
_local4 = 0;
while (_local4 < _-Fz._-Pw) {
_-AR[((_-AR.length - _local4) - 1)].alpha = (1 - _local3);
_local4++;
};
if (_local3 < 1){
return;
};
_local4 = 0;
while (_local4 < _-Fz._-Pw) {
_-2l.removeChild(_-AR[((_-AR.length - _local4) - 1)]);
_local4++;
};
_-AR.splice((_-AR.length - _-Fz._-Pw));
if ((((_-AR.length > 0)) && (!(_-AR[(_-AR.length - 1)].opened)))){
_-AR[(_-AR.length - 1)].show();
};
if (_-AR.length > 0){
_-HE(_-AR[0].pile);
};
_-F2.stop();
if (!checkWin()){
_-Mh();
};
}
private function checkWin():Boolean{
var _local1:*;
trace("checkWin");
trace(("unusedCards.length : " + _-3v.length));
if (_-3v.length > 0){
return (false);
};
_local1 = 0;
while (_local1 < _-KF.length) {
if (_-KF[_local1].length > 0){
return (false);
};
_local1++;
};
trace(("isWin : " + _-BD));
_-BD = true;
trace(("isWin2 : " + _-BD));
_-Fz._-7v++;
Object(parent).stopGameMusic();
soundWin.play();
clear();
_-Rb();
return (true);
}
public function clear():void{
_-3v = null;
_-KF = null;
_-A0 = null;
_-AR = null;
_-Fz._-7v = 1;
}
private function _-Ol(_arg1:MouseEvent):void{
_-8t();
message._-Ry();
_-K0.play();
}
public function giveUpCancelled():void{
message.hide();
_-Mh();
}
public function giveUpConfirmed():void{
trace("giveUpConfirmed");
_-BD = false;
message._-3q();
Object(parent).stopGameMusic();
soundGameOver.play();
_-F2 = new _-CQ(_-Fz._-I, 0);
_-F2.addEventListener(TimerEvent.TIMER, showPlayAgain);
_-F2.start();
}
private function showPlayAgain(_arg1:TimerEvent):void{
trace("showPlayAgain");
_-F2.stop();
if (_-BD == true){
score = (score + _-Fz._-Ma);
};
_-Fz._-5t = (_-Fz._-5t + score);
Object(parent).gameEnded({score:_-Fz._-5t, win:_-BD});
message.showPlayAgain({score:score});
}
override public function destroyGame():void{
if (_-F2){
_-F2.stop();
};
}
}
}//package _-82
Section 22
//_-64 (_-9-._-64)
package _-9- {
public class _-64 {
static const _-N5:Array;
static const _-JE:Array;
public function _-64(){
var _local1:Boolean;
//unresolved jump
var _local2 = ((((false - !NULL!) < !NULL!) - 1) is !NULL!);
if (_local1){
super();
};
}
public static function _-Au(_arg1:int, _arg2:int):String{
//unresolved jump
_local10++;
_local4++;
arguments++;
false;
_local3++;
_local9--;
_local3++;
var _local10:Number = true;
!ERROR! var _local3:String;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:*;
var _local9:*;
if (((_local11) || (_-64))){
_local3 = "";
if (!_local10){
//unresolved if
_local4 = 0;
//unresolved if
};
if (!((_local10) && (_arg1))){
};
_local5 = _-N5[_arg1].length;
};
for (;_local4 < _local5;//unresolved if
, if (!((_local10) && (_arg1))){
if (((_local11) || (_arg1))){
};
//unresolved if
}, if (!((_local10) && (_arg2))){
//unresolved if
}, (_local4 = _local4)) {
if (_local11){
_local6 = int(_-N5[((_arg1 - 5) ^ -436)][_local4]);
//unresolved if
//unresolved if
if (!((_local10) && (_local3))){
//unresolved if
_local4++;
//unresolved if
//unresolved if
};
};
_local7 = int(_-N5[((_arg1 - 5) ^ -436)][_local4]);
//unresolved if
_local8 = 2654435769;
_local9 = 84941944608;
if (!_local10){
continue;
//unresolved if
if (!((_local10) && (_arg2))){
//unresolved if
//unresolved if
};
if (!_local10){
//unresolved if
};
//unresolved jump
_arg2--;
_arg2--;
_local8--;
_local5++;
//unresolved if
//unresolved if
var _temp2 = _local7;
_local7 = (int(_-JE[((_arg2 + 3) ^ 905)][((_local9 >>> 11) & 3)]) - (_local6 ^ (false + _local9)));
//unresolved if
};
_local9 = (_local9 - _local8);
if (!((_local10) && (_arg2))){
if (((_local11) || (_-64))){
if (_local11){
if (((_local11) || (_arg1))){
//unresolved if
//unresolved if
};
//unresolved if
};
};
};
};
if (_local11){
//unresolved if
//unresolved if
//unresolved if
};
if (!((_local10) && (_arg1))){
//unresolved jump
_local10++;
_local7 = ??getglobalscope
;
_local6++;
_local6++;
_local6++;
_arg2++;
//unresolved if
};
return (_local3);
}
var _local1:Boolean;
//unresolved jump
var _local2 = (((true / false) instanceof !NULL!) * false);
if (!((_local2) && (_-64))){
_-JE = new Array([-1163686770, -715689967, -1524194303, 1153598508], [-1459854542, 1305863359, -1938606359, -1387761669], [-1735886828, -1426495525, 1313036128, -1951250361]);
//unresolved if
};
//unresolved jump
//unresolved jump
new [[, , 1639014406, 1156547258, -809296535, -1856052140, -1122835693, 2053770363, 1103482971, 920698163, 617350273, 365765333, 598255838, 1352343100, 81825252, -1218306925, -1885191620, -360702931, 416022837, 915910865, ((500700460 << (-2003462880 / (173525936 - ??hasnext
))) & NaN), -1162872072, !NULL!, !NULL!, !NULL!, !NULL!], [-1692714673, -1460911136, 183883015, -549098696, 867257075, 443863383, -1308456188, 1927216989, -77705230, -1433801033, -1426675960, 199508618, -518221146, -1741761675, 565003746, 1876274588, -1702271946, 514217394, 1479190808, -870028334, 1123520570, -1030643395, -1204585010, -121184259, 1907529614, 2141640309, -1982440241, -227559541, 565003746, 1876274588, 45734421, 1832798361], 1148005420, 2078143040, -1363730050, 374993044, -267480344, -19203190, 509736051, 1218726260, 1796120557, 386504226, 1084979000, 1985682327, 1088237582, 1311857149, -768720741, 1347574448, -1441555416, 1377002081, 43014053, 1956492173, 249473326, (-1177448178 >> (-1363730050 + (374993044 - (825256658 * (!(556995934) < ~(_-64)))))), 1965962616, 2032572646, -400299008, 337337397, 1052495784, -752892079, !NULL!, !NULL!].Array(!NULL!, !NULL!, !NULL!)._-N5 = !NULL!;
}
}//package _-9-
Section 23
//_-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 24
//_-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 25
//_-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 26
//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 27
//_-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 28
//_-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 29
//_-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 30
//_-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 31
//_-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 32
//_-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 33
//BackToMenuButton (_-M9.BackToMenuButton)
package _-M9 {
import flash.display.*;
public dynamic class BackToMenuButton extends MovieClip {
}
}//package _-M9
Section 34
//MoreGamesButton (_-M9.MoreGamesButton)
package _-M9 {
import flash.display.*;
public dynamic class MoreGamesButton extends MovieClip {
}
}//package _-M9
Section 35
//ReplayButton (_-M9.ReplayButton)
package _-M9 {
import flash.display.*;
public dynamic class ReplayButton extends MovieClip {
}
}//package _-M9
Section 36
//ShareScoreButton (_-M9.ShareScoreButton)
package _-M9 {
import flash.display.*;
public dynamic class ShareScoreButton extends MovieClip {
}
}//package _-M9
Section 37
//SubmitScoreButton (_-M9.SubmitScoreButton)
package _-M9 {
import flash.display.*;
public dynamic class SubmitScoreButton extends MovieClip {
}
}//package _-M9
Section 38
//SubmitToFacebookButton (_-M9.SubmitToFacebookButton)
package _-M9 {
import flash.display.*;
public dynamic class SubmitToFacebookButton extends MovieClip {
}
}//package _-M9
Section 39
//_-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 40
//_-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 41
//_-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 42
//_-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 43
//_-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 44
//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 45
//_-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 46
//_-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 47
//_-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 48
//_-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 49
//_-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 50
//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 51
//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 52
//_-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 53
//_-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 54
//_-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 55
//_-BJ (com.novelgames.flashgames.common._-BJ)
package com.novelgames.flashgames.common {
public dynamic class _-BJ extends _-Pv {
}
}//package com.novelgames.flashgames.common
Section 56
//_-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 57
//_-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 58
//_-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 59
//_-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 60
//_-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 61
//_-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 62
//_-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 63
//_-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 64
//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 65
//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 66
//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 67
//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 68
//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 69
//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 70
//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 71
//_-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 72
//_-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 73
//_-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 74
//_-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 75
//_-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 76
//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 77
//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(-429, 904)) + _-CJ._-4M.gameKey));
}
}
}//package gos.obyoAPI.serviceAPIImpl.services
Section 78
//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(-431, 902));
}
}
}//package gos.obyoAPI.serviceAPIImpl.services
Section 79
//_-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 80
//_-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 81
//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 82
//_-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(-429, 904));
}
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 83
//_-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 84
//_-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 85
//_-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 86
//_-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 87
//_-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 88
//_-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 89
//_-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 90
//_-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 91
//_-Bv (gos.serviceAPI._-Bv)
package gos.serviceAPI {
public interface _-Bv {
}
}//package gos.serviceAPI
Section 92
//_-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 93
//_-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 94
//_-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 95
//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 96
//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 97
//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 98
//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 99
//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 100
//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