Section 1
//_-12 (_-1y._-12)
package _-1y {
import com.novelgames.flashgames.common.*;
public dynamic class _-12 extends _-6P {
}
}//package _-1y
Section 2
//_-1q (_-1y._-1q)
package _-1y {
import com.novelgames.flashgames.common.*;
public dynamic class _-1q extends _-Pv {
}
}//package _-1y
Section 3
//_-3F (_-1y._-3F)
package _-1y {
import com.novelgames.flashgames.common.*;
public dynamic class _-3F extends _-6P {
}
}//package _-1y
Section 4
//_-5y (_-1y._-5y)
package _-1y {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import gos.serviceAPI.*;
import _-9-.*;
import gos.obyoAPI.*;
public class _-5y extends MovieClip {
private var _-6E:_-Nx;
private var _-2d:_-g;
private var _-3b:_-P9;
private var score;
public function _-5y(){
stop();
}
public function _-LQ(_arg1:Number):void{
gotoAndStop("hide");
this.score = (_-Fz._-0D + _arg1);
_-6E = new _-Nx();
_-6E.scoreText.text = _arg1.toString();
this.addChild(_-6E);
}
public function showNoMoreMoves():void{
gotoAndStop("noMoreMoves");
}
public function _-3q():void{
gotoAndStop("gameOver");
}
public function showPlayAgain(_arg1:Object=null):void{
var args = _arg1;
if (args == null){
args = {};
};
gotoAndStop("hide");
_-CJ.showEndScreen(parent.parent, _-Fz._-LX, _-64._-Au(62, 624), {title:_-Fz._-7z, score:args.score, onError:function (_arg1:_-7k){
homeButtonClicked(null);
}, onReplay:function (_arg1:_-7k){
playAgainButtonClicked(null);
}, onBackToMenu:function (_arg1:_-7k){
homeButtonClicked(null);
}});
}
public function hide():void{
if (_-6E){
this.removeChild(_-6E);
_-6E = null;
};
gotoAndStop("hide");
}
private function playAgainButtonClicked(_arg1:MouseEvent):void{
Object(parent.parent).gotoGamePage();
}
private function homeButtonClicked(_arg1:MouseEvent):void{
Object(parent.parent).gotoTitlePage();
}
}
}//package _-1y
Section 5
//_-7f (_-1y._-7f)
package _-1y {
import flash.display.*;
import com.novelgames.flashgames.common.*;
import flash.media.*;
public class _-7f extends _-Ef {
public var title:_-FM;
override protected function getTitle():_-FM{
return (_-FM(this["title"]));
}
override protected function getGame():Game{
return (new Game());
}
override protected function getMusicGame():Sound{
return (new _-1q());
}
override public function getGameId():String{
return (_-Fz._-LX);
}
}
}//package _-1y
Section 6
//_-7S (_-1y._-7S)
package _-1y {
import flash.display.*;
public dynamic class _-7S extends MovieClip {
}
}//package _-1y
Section 7
//_-BA (_-1y._-BA)
package _-1y {
import com.novelgames.flashgames.common.*;
public dynamic class _-BA extends _-6P {
}
}//package _-1y
Section 8
//_-CE (_-1y._-CE)
package _-1y {
import flash.display.*;
import flash.text.*;
public dynamic class _-CE extends MovieClip {
public var levelText:TextField;
}
}//package _-1y
Section 9
//_-CG (_-1y._-CG)
package _-1y {
import flash.display.*;
public class _-CG {
public static function _-Dc(_arg1:Array, _arg2:Number, _arg3:Number):void{
var _local4:* = _arg1[_arg2];
_arg1[_arg2] = _arg1[_arg3];
_arg1[_arg3] = _local4;
}
}
}//package _-1y
Section 10
//_-D (_-1y._-D)
package _-1y {
import com.novelgames.flashgames.common.*;
public dynamic class _-D extends _-6P {
}
}//package _-1y
Section 11
//_-E4 (_-1y._-E4)
package _-1y {
import com.novelgames.flashgames.common.*;
public dynamic class _-E4 extends _-6P {
}
}//package _-1y
Section 12
//_-Ft (_-1y._-Ft)
package _-1y {
import flash.display.*;
import flash.geom.*;
public class _-Ft extends MovieClip {
public var colour:MovieClip;
private var _-3p:Number;
private var fullGreen:Number;
private var _-18:Number;
private var _-BB:Number;
private var emptyGreen:Number;
private var _-7i:Number;
public function _-Ft(){
initialize();
}
public function initialize():void{
_-3p = ((_-Fz._-JZ >> 16) & 0xFF);
fullGreen = ((_-Fz._-JZ >> 8) & 0xFF);
_-18 = (_-Fz._-JZ & 0xFF);
_-BB = ((_-Fz._-6L >> 16) & 0xFF);
emptyGreen = ((_-Fz._-6L >> 8) & 0xFF);
_-7i = (_-Fz._-6L & 0xFF);
}
public function _-4y(_arg1:Number):void{
var _local2:Number = (((_arg1 * _-3p) + ((_-Fz._-BC - _arg1) * _-BB)) / _-Fz._-BC);
var _local3:Number = (((_arg1 * fullGreen) + ((_-Fz._-BC - _arg1) * emptyGreen)) / _-Fz._-BC);
var _local4:Number = (((_arg1 * _-18) + ((_-Fz._-BC - _arg1) * _-7i)) / _-Fz._-BC);
var _local5:ColorTransform = new ColorTransform();
this.width = _arg1;
_local5.color = (((_local2 << 16) | (_local3 << 8)) | _local4);
colour.transform.colorTransform = _local5;
}
}
}//package _-1y
Section 13
//_-Fz (_-1y._-Fz)
package _-1y {
public class _-Fz {
public static var _-LX:String = "shell-zone";
public static var _-7z:String = "Shell Zone";
public static var _-Da:Number = 3;
public static var _-LZ:Number = 7;
public static var _-Fv:Number = 8;
public static var _-39:Number = 8;
public static var _-E5:Number = 45;
public static var _-IB:Number = 500;
public static var _-8-:Number = 30;
public static var _-5r:Number = 300;
public static var _-RX:Number = 100;
public static var _-53:Number = 10;
public static var _-P2:Number = 500;
public static var _-1H:Number = 1800;
public static var _-35:Number = 500;
public static var _-KM:Number = 300;
public static var _-ET:Number = 50;
public static var _-0D:String = "";
public static var _-Q0:Number = 800;
public static var _-Ag:Number = 100;
public static var _-Kt:Number = 70;
public static var _-0c:Number = 80;
public static var _-Hv:Number = 90;
public static var _-1e:Number = 5000;
public static var _-6L:Number = 0xFF0000;
public static var _-JZ:Number = 0xFFFF00;
public static var _-2v:Number = 180;
public static var _-BC:Number = 360;
public static var _-EZ:Number = 20;
public static var _-9D:Number = 4;
public static var _-HO:Number = 1;
public static var _-5-:Number = 500;
public static var _-Eh:Number = 50;
public static var _-I:Number = 1000;
}
}//package _-1y
Section 14
//_-g (_-1y._-g)
package _-1y {
import flash.display.*;
public dynamic class _-g extends MovieClip {
}
}//package _-1y
Section 15
//_-Ge (_-1y._-Ge)
package _-1y {
import com.novelgames.flashgames.common.*;
public class _-Ge extends _-OO {
public function _-Ge(){
addFrameScript(0, frame1, 1, frame2);
}
override public function getGameId():String{
return (_-Fz._-LX);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package _-1y
Section 16
//_-IE (_-1y._-IE)
package _-1y {
import flash.display.*;
import com.novelgames.flashgames.common.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
public class _-IE extends MovieClip {
public var scoreText:TextField;
private var __score:String;
private var _-F2:Timer;
public function set score(_arg1:String):void{
__score = _arg1;
scoreText.text = _arg1;
}
public function get score():String{
return (__score);
}
public function initialize(_arg1:Number, _arg2:Number, _arg3:Number):void{
this.x = _arg1;
this.y = _arg2;
this.score = (_-Fz._-0D + _arg3);
_-F2 = new _-CQ(_-Fz._-Q0, 0);
_-F2.addEventListener(TimerEvent.TIMER, destroy);
_-F2.start();
this.addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
var _local4:Number = (_arg3 / 500);
this.width = (this.width * (1 + _local4));
this.height = (this.height * (1 + _local4));
}
private function onEnterFrame(_arg1:Event):void{
this.y = (this.y - 1);
this.alpha = (this.alpha - 0.02);
}
private function destroy(_arg1:TimerEvent):void{
_-F2.stop();
parent.removeChild(this);
}
}
}//package _-1y
Section 17
//_-J4 (_-1y._-J4)
package _-1y {
import flash.display.*;
import flash.events.*;
public class _-J4 extends MovieClip {
public var button6:SimpleButton;
public var button0:SimpleButton;
public var button1:SimpleButton;
public var button2:SimpleButton;
public var button3:SimpleButton;
public var button4:SimpleButton;
public var button5:SimpleButton;
public var type:Number;
public var indexX:Number;
public var indexY:Number;
public var targetX:Number;
public var targetY:Number;
public function _-J4(){
stop();
}
public function initialize(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:SimpleButton;
var _local5:*;
this.indexX = _arg1;
this.indexY = _arg2;
this.type = _arg3;
this.x = ((_arg1 * _-Fz._-E5) + (_-Fz._-E5 / 2));
this.y = ((_arg2 * _-Fz._-E5) + (_-Fz._-E5 / 2));
_local5 = 0;
while (_local5 < _-Fz._-LZ) {
this[("button" + _local5)].visible = false;
_local5++;
};
_local4 = this[("button" + _arg3)];
_local4.visible = true;
_local4.addEventListener(MouseEvent.MOUSE_DOWN, buttonPressed);
_local4.addEventListener(MouseEvent.MOUSE_UP, buttonReleased);
this["cacheAsBitmap"] = true;
}
public function doCreateDropMove(_arg1:Number):Boolean{
this.y = (((indexY * (_-Fz._-E5 + _-Fz._-8-)) + (_-Fz._-E5 / 2)) + ((_-Fz._-35 * _arg1) / 1000));
if (this.y >= ((targetY * _-Fz._-E5) + (_-Fz._-E5 / 2))){
this.y = ((targetY * _-Fz._-E5) + (_-Fz._-E5 / 2));
return (true);
};
return (false);
}
public function _-71(_arg1:Number):void{
if (targetX > indexX){
this.x = (((indexX * _-Fz._-E5) + (_-Fz._-E5 / 2)) + ((_-Fz._-5r * _arg1) / 1000));
} else {
if (targetX < indexX){
this.x = (((indexX * _-Fz._-E5) + (_-Fz._-E5 / 2)) - ((_-Fz._-5r * _arg1) / 1000));
} else {
if (targetY > indexY){
this.y = (((indexY * _-Fz._-E5) + (_-Fz._-E5 / 2)) + ((_-Fz._-5r * _arg1) / 1000));
} else {
this.y = (((indexY * _-Fz._-E5) + (_-Fz._-E5 / 2)) - ((_-Fz._-5r * _arg1) / 1000));
};
};
};
}
public function doDropMove(_arg1:Number):Boolean{
this.y = (((indexY * _-Fz._-E5) + (_-Fz._-E5 / 2)) + ((_-Fz._-35 * _arg1) / 1000));
if (this.y >= ((targetY * _-Fz._-E5) + (_-Fz._-E5 / 2))){
this.y = ((targetY * _-Fz._-E5) + (_-Fz._-E5 / 2));
return (true);
};
return (false);
}
private function buttonPressed(_arg1:MouseEvent):void{
Object(parent.parent).gemPressed(this);
}
private function buttonReleased(_arg1:MouseEvent):void{
Object(parent.parent).gemReleasedOutside();
}
}
}//package _-1y
Section 18
//_-NE (_-1y._-NE)
package _-1y {
import flash.display.*;
public dynamic class _-NE extends BitmapData {
public function _-NE(_arg1:int=113, _arg2:int=109){
super(_arg1, _arg2);
}
}
}//package _-1y
Section 19
//_-NG (_-1y._-NG)
package _-1y {
import flash.display.*;
import flash.events.*;
public class _-NG extends MovieClip {
public var hintAnimation:MovieClip;
public function initialize(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
hintAnimation.addEventListener(Event.ENTER_FRAME, onFrame);
}
private function onFrame(_arg1:Event):void{
}
}
}//package _-1y
Section 20
//_-Nx (_-1y._-Nx)
package _-1y {
import flash.display.*;
import flash.text.*;
public dynamic class _-Nx extends MovieClip {
public var scoreText:TextField;
}
}//package _-1y
Section 21
//_-Ou (_-1y._-Ou)
package _-1y {
import com.novelgames.flashgames.common.*;
public dynamic class _-Ou extends _-6P {
}
}//package _-1y
Section 22
//_-P9 (_-1y._-P9)
package _-1y {
import flash.display.*;
public dynamic class _-P9 extends MovieClip {
public var playAgainButton:SimpleButton;
public var homeButton:SimpleButton;
}
}//package _-1y
Section 23
//Game (_-1y.Game)
package _-1y {
import flash.display.*;
import com.novelgames.flashgames.common.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import _-FZ.*;
import _-JY.*;
public class Game extends Game {
public var bottomObyoButton:SimpleButton;
public var scoresHolder:MovieClip;
public var _-It:MovieClip;
public var _-Go:MovieClip;
public var levelText:TextField;
public var lifeBar:_-Ft;
public var scoreText:TextField;
public var message:_-5y;
public var _-A6:MovieClip;
private var _-7y:Array;
private var chosenGem1:_-J4;
private var chosenGem2:_-J4;
private var _-1A:Boolean;
private var _-BU:Number;
private var _-F2:Timer;
private var _-Qh:Timer;
private var showingNoMoreMoves:Boolean;
private var destroyingGems:Array;
private var _-4U:Array;
private var _-6g:Number;
private var __level:_-G1;
private var __score:_-G1;
private var life:Number;
private var _-RV:Number;
private var levelStarted:Boolean;
private var _-C3:Number;
private var _-3y:Boolean;
private var gameOver:Boolean;
private var soundSwap:Sound;
private var _-Hy:Sound;
private var _-1E:Sound;
private var soundGameOver:Sound;
private var _-4n:Sound;
private var soundNoMoreMoves:Sound;
private var _-0g:Sound;
private var _-6k:Timer;
private var _-72:Number;// = 0
private var _-8n:Boolean;// = false
private var _-Rn:_-J4;
private var hint:_-NG;
public function Game(){
super();
chosenGem1 = null;
chosenGem2 = null;
_-1A = false;
showingNoMoreMoves = false;
_-6g = 0;
level = 1;
score = 0;
hideHighlight();
life = _-Fz._-2v;
_-RV = _-Fz._-9D;
lifeBar.initialize();
lifeBar._-4y(life);
levelStarted = false;
_-3y = false;
gameOver = false;
_-Qh = new _-CQ(1, 0);
_-Qh.addEventListener(TimerEvent.TIMER, onLifeTime);
_-Qh.start();
_-6k = new Timer(1, 0);
_-6k.addEventListener(TimerEvent.TIMER, onWaitingTime);
_-6k.start();
soundSwap = new _-D();
_-Hy = new _-E4();
_-1E = new _-12();
soundGameOver = new _-Ou();
_-4n = new _-BA();
soundNoMoreMoves = new SoundNoMoreMoves();
_-0g = new _-3F();
_-Eq.x = message.x;
_-Eq.y = message.y;
bottomObyoButton.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
_-7f(parent)._-1k("3");
}, false, 0, true);
_-Hu();
createBubbles();
}
private function createBubbles():void{
_-Re._-LK.root = _-A6;
SimpleParticles._-Ra({pps:2, x:0, y:400, width:600, height:1, size:5, color:13434879, movement:true, speed:[50, 400], angle:[270, 270], startScale:[0.3, 1.25], xOscillate:[1, 400], lifespan:5000});
_-A6.alpha = 0.5;
}
private function onWaitingTime(_arg1:TimerEvent):void{
_-72++;
if ((((_-72 >= (_-Fz._-RX * (_-Fz._-53 * level)))) && ((_-8n == false)))){
hint = new _-NG();
hint.initialize((_-Rn.x * 45), (_-Rn.y * 45));
_-It.addChild(hint);
_-8n = true;
};
}
private function _-RO():void{
if (hint != null){
_-It.removeChild(hint);
hint = null;
};
}
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);
}
public function set level(_arg1:Number):void{
if (__level == null){
__level = new _-G1();
};
__level.value = _arg1;
levelText.text = _arg1.toString();
}
public function get level():Number{
if (__level == null){
__level = new _-G1();
};
return (__level.value);
}
public function gemPressed(_arg1:_-J4):void{
if (gameOver){
return;
};
if (!levelStarted){
return;
};
if (_-1A){
return;
};
_-6g = 0;
if (chosenGem1 == null){
chosenGem1 = _arg1;
_-Oy(_arg1.x, _arg1.y);
} else {
if (chosenGem1 == _arg1){
chosenGem1 = null;
hideHighlight();
} else {
if (!_-Rk(_arg1, chosenGem1)){
chosenGem1 = _arg1;
_-Oy(_arg1.x, _arg1.y);
} else {
chosenGem2 = _arg1;
startSwapGems();
};
};
};
}
public function gemReleasedOutside():void{
var _local1:Number;
var _local2:Number;
if (gameOver){
return;
};
if (!levelStarted){
return;
};
if (_-1A){
return;
};
if (chosenGem1 == null){
return;
};
_local1 = Math.floor(((this.mouseX - _-It.x) / _-Fz._-E5));
_local2 = Math.floor(((this.mouseY - _-It.y) / _-Fz._-E5));
if (!_-Rk(chosenGem1, _-7y[((_local2 * _-Fz._-Fv) + _local1)])){
return;
};
chosenGem2 = _-7y[((_local2 * _-Fz._-Fv) + _local1)];
startSwapGems();
}
private function onLifeTime(_arg1:TimerEvent):void{
var _local2:Number = _-CQ.getTimer();
if (gameOver){
return;
};
if (!levelStarted){
return;
};
if (_-3y){
return;
};
if (showingNoMoreMoves){
return;
};
life = (life - (((_local2 - _-C3) * _-RV) / 1000));
if (life < 0){
life = 0;
};
lifeBar._-4y(life);
_-C3 = _local2;
if (life == 0){
_-3q();
};
}
private function _-Hu():void{
var _local2:Number;
var _local3:*;
var _local4:_-J4;
var _local5:*;
var _local6:*;
var _local1:Array = generateTypes();
_-7y = new Array();
_local5 = 0;
while (_local5 < _-Fz._-39) {
_local6 = 0;
while (_local6 < _-Fz._-Fv) {
_local4 = new _-J4();
_local4.initialize(_local6, (_local5 - _-Fz._-39), _local1[((_local5 * _-Fz._-Fv) + _local6)]);
_local4.targetY = _local5;
_-It.addChild(_local4);
_-7y[((_local5 * _-Fz._-Fv) + _local6)] = _local4;
_local6++;
};
_local5++;
};
_-0g.play();
startCreateDropGems();
}
private function generateTypes():Array{
var _local2:*;
var _local1:Array = new Array((_-Fz._-Fv * _-Fz._-39));
do {
_local2 = 0;
while (_local2 < _local1.length) {
_local1[_local2] = Math.floor((Math.random() * _-Fz._-LZ));
_local2++;
};
} while (!(_-Bq(_local1)));
return (_local1);
}
private function _-Bq(_arg1:Array):Boolean{
var _local2:*;
var _local3:*;
_local2 = 0;
while (_local2 < _-Fz._-39) {
_local3 = 0;
while (_local3 <= (_-Fz._-Fv - _-Fz._-Da)) {
if (_-QQ(_arg1, _local3, _local2, 1, 0)){
return (false);
};
_local3++;
};
_local2++;
};
_local2 = 0;
while (_local2 < _-Fz._-Fv) {
_local3 = 0;
while (_local3 <= (_-Fz._-39 - _-Fz._-Da)) {
if (_-QQ(_arg1, _local2, _local3, 0, 1)){
return (false);
};
_local3++;
};
_local2++;
};
return (_-QF(_arg1));
}
private function _-QF(_arg1:Array):Boolean{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = 0;
while (_local3 < _-Fz._-39) {
_local4 = 0;
while (_local4 < (_-Fz._-Fv - 1)) {
_-CG._-Dc(_arg1, ((_local3 * _-Fz._-Fv) + _local4), (((_local3 * _-Fz._-Fv) + _local4) + 1));
if (_-H4(_arg1, _local4, _local3)){
_-CG._-Dc(_arg1, ((_local3 * _-Fz._-Fv) + _local4), (((_local3 * _-Fz._-Fv) + _local4) + 1));
_-Rn = new _-J4();
_-Rn.x = (_local4 + 1);
_-Rn.y = _local3;
return (true);
};
if (_-H4(_arg1, (_local4 + 1), _local3)){
_-CG._-Dc(_arg1, ((_local3 * _-Fz._-Fv) + _local4), (((_local3 * _-Fz._-Fv) + _local4) + 1));
_-Rn = new _-J4();
_-Rn.x = _local4;
_-Rn.y = _local3;
return (true);
};
_-CG._-Dc(_arg1, ((_local3 * _-Fz._-Fv) + _local4), (((_local3 * _-Fz._-Fv) + _local4) + 1));
_local4++;
};
_local3++;
};
_local3 = 0;
while (_local3 < _-Fz._-Fv) {
_local4 = 0;
while (_local4 < (_-Fz._-39 - 1)) {
_-CG._-Dc(_arg1, ((_local4 * _-Fz._-Fv) + _local3), (((_local4 + 1) * _-Fz._-Fv) + _local3));
if (_-H4(_arg1, _local3, _local4)){
_-CG._-Dc(_arg1, ((_local4 * _-Fz._-Fv) + _local3), (((_local4 + 1) * _-Fz._-Fv) + _local3));
_-Rn = new _-J4();
_-Rn.x = _local3;
_-Rn.y = (_local4 + 1);
return (true);
};
if (_-H4(_arg1, _local3, (_local4 + 1))){
_-CG._-Dc(_arg1, ((_local4 * _-Fz._-Fv) + _local3), (((_local4 + 1) * _-Fz._-Fv) + _local3));
_-Rn = new _-J4();
_-Rn.x = _local3;
_-Rn.y = _local4;
return (true);
};
_-CG._-Dc(_arg1, ((_local4 * _-Fz._-Fv) + _local3), (((_local4 + 1) * _-Fz._-Fv) + _local3));
_local4++;
};
_local3++;
};
return (false);
}
private function _-H4(_arg1:Array, _arg2:Number, _arg3:Number):Boolean{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:*;
var _local8:*;
_local4 = Math.max(0, ((_arg2 - _-Fz._-Da) - 1));
_local5 = Math.min((_-Fz._-Fv - _-Fz._-Da), _arg2);
_local7 = _local4;
while (_local7 <= _local5) {
if (_-QQ(_arg1, _local7, _arg3, 1, 0)){
return (true);
};
_local7++;
};
_local4 = Math.max(0, ((_arg3 - _-Fz._-Da) - 1));
_local5 = Math.min((_-Fz._-39 - _-Fz._-Da), _arg3);
_local7 = _local4;
while (_local7 <= _local5) {
if (_-QQ(_arg1, _arg2, _local7, 0, 1)){
return (true);
};
_local7++;
};
return (false);
}
private function _-QQ(_arg1:Array, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Boolean{
return ((_-Ig(_arg1, _arg2, _arg3, _arg4, _arg5) >= _-Fz._-Da));
}
private function _-Ig(_arg1:Array, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Number{
var _local7:*;
var _local6:Number = _arg1[((_arg3 * _-Fz._-Fv) + _arg2)];
_local7 = 1;
while (true) {
_arg2 = (_arg2 + _arg4);
_arg3 = (_arg3 + _arg5);
if ((((_arg2 >= _-Fz._-Fv)) || ((_arg3 >= _-Fz._-39)))){
return (_local7);
};
if (_arg1[((_arg3 * _-Fz._-Fv) + _arg2)] != _local6){
return (_local7);
};
_local7++;
};
return (0);
}
private function startCreateDropGems():void{
_-1A = true;
_-BU = _-CQ.getTimer();
_-F2 = new _-CQ(1, 0);
_-F2.addEventListener(TimerEvent.TIMER, _-BT);
_-F2.start();
}
private function _-BT(_arg1:TimerEvent):void{
var _local4:*;
var _local2:Number = (_-CQ.getTimer() - _-BU);
var _local3:Boolean;
_local4 = 0;
while (_local4 < _-7y.length) {
if (!_-7y[_local4].doCreateDropMove(_local2)){
_local3 = false;
};
_local4++;
};
if (_local3){
_local4 = 0;
while (_local4 < _-7y.length) {
_-7y[_local4].indexY = _-7y[_local4].targetY;
_local4++;
};
_-1A = false;
_-F2.stop();
if (!levelStarted){
levelStarted = true;
_-C3 = _-CQ.getTimer();
};
if (showingNoMoreMoves){
showingNoMoreMoves = false;
_-C3 = _-CQ.getTimer();
};
};
_arg1.updateAfterEvent();
}
private function _-Rk(_arg1:_-J4, _arg2:_-J4):Boolean{
if ((((_arg1.indexX == _arg2.indexX)) && ((Math.abs((_arg1.indexY - _arg2.indexY)) == 1)))){
return (true);
};
if ((((_arg1.indexY == _arg2.indexY)) && ((Math.abs((_arg1.indexX - _arg2.indexX)) == 1)))){
return (true);
};
return (false);
}
private function _-Oy(_arg1:Number, _arg2:Number):void{
_-Go.x = (_-It.x + _arg1);
_-Go.y = (_-It.y + _arg2);
_-Go.visible = true;
}
private function hideHighlight():void{
_-Go.visible = false;
}
private function startSwapGems():void{
_-RO();
chosenGem1.targetX = chosenGem2.indexX;
chosenGem1.targetY = chosenGem2.indexY;
chosenGem2.targetX = chosenGem1.indexX;
chosenGem2.targetY = chosenGem1.indexY;
soundSwap.play();
_-1A = true;
_-BU = _-CQ.getTimer();
_-F2 = new _-CQ(1, 0);
_-F2.addEventListener(TimerEvent.TIMER, _-BZ);
_-F2.start();
}
private function startUnswapGems():void{
chosenGem1.targetX = chosenGem2.indexX;
chosenGem1.targetY = chosenGem2.indexY;
chosenGem2.targetX = chosenGem1.indexX;
chosenGem2.targetY = chosenGem1.indexY;
_-4n.play();
_-1A = true;
_-BU = _-CQ.getTimer();
_-F2 = new _-CQ(1, 0);
_-F2.addEventListener(TimerEvent.TIMER, _-8X);
_-F2.start();
}
private function _-BZ(_arg1:TimerEvent):void{
var _local2:Number = (_-CQ.getTimer() - _-BU);
if (_local2 < ((_-Fz._-E5 / _-Fz._-5r) * 1000)){
chosenGem1._-71(_local2);
chosenGem2._-71(_local2);
} else {
_-4W();
if (_-Iu()){
chosenGem1 = null;
chosenGem2 = null;
hideHighlight();
_-1A = false;
_-F2.stop();
_-72 = 0;
_-8n = false;
startDestroyGems();
} else {
_-F2.stop();
startUnswapGems();
};
};
_arg1.updateAfterEvent();
}
private function _-8X(_arg1:TimerEvent):void{
var _local2:Number = (_-CQ.getTimer() - _-BU);
if (_local2 < ((_-Fz._-E5 / _-Fz._-5r) * 1000)){
chosenGem1._-71(_local2);
chosenGem2._-71(_local2);
} else {
_-4W();
chosenGem1 = null;
chosenGem2 = null;
hideHighlight();
_-1A = false;
_-F2.stop();
};
_arg1.updateAfterEvent();
}
private function _-4W():void{
_-7y[((chosenGem1.targetY * _-Fz._-Fv) + chosenGem1.targetX)] = chosenGem1;
_-7y[((chosenGem2.targetY * _-Fz._-Fv) + chosenGem2.targetX)] = chosenGem2;
chosenGem1.indexX = chosenGem1.targetX;
chosenGem1.indexY = chosenGem1.targetY;
chosenGem2.indexX = chosenGem2.targetX;
chosenGem2.indexY = chosenGem2.targetY;
chosenGem1.x = ((chosenGem1.indexX * _-Fz._-E5) + (_-Fz._-E5 / 2));
chosenGem1.y = ((chosenGem1.indexY * _-Fz._-E5) + (_-Fz._-E5 / 2));
chosenGem2.x = ((chosenGem2.indexX * _-Fz._-E5) + (_-Fz._-E5 / 2));
chosenGem2.y = ((chosenGem2.indexY * _-Fz._-E5) + (_-Fz._-E5 / 2));
}
private function _-Iu():Boolean{
var _local2:Number;
var _local6:_-J4;
var _local11:*;
var _local12:*;
var _local13:*;
var _local1:Array = new Array(_-7y.length);
var _local3:Number = 0;
var _local4:Number = 0;
var _local5:Number = 0;
var _local7:Number = Number.POSITIVE_INFINITY;
var _local8:Number = Number.NEGATIVE_INFINITY;
var _local9:Number = Number.POSITIVE_INFINITY;
var _local10:Number = Number.NEGATIVE_INFINITY;
_local11 = 0;
while (_local11 < _local1.length) {
_local1[_local11] = _-7y[_local11].type;
_local11++;
};
destroyingGems = new Array();
_local11 = 0;
while (_local11 < _-Fz._-39) {
_local12 = 0;
while (_local12 <= (_-Fz._-Fv - _-Fz._-Da)) {
_local2 = _-Ig(_local1, _local12, _local11, 1, 0);
if (_local2 >= _-Fz._-Da){
_local13 = 0;
while (_local13 < _local2) {
_local6 = _-7y[((_local11 * _-Fz._-Fv) + (_local12 + _local13))];
if (_local6.x < _local7){
_local7 = _local6.x;
};
if (_local6.x > _local8){
_local8 = _local6.x;
};
if (_local6.y < _local9){
_local9 = _local6.y;
};
if (_local6.y > _local10){
_local10 = _local6.y;
};
destroyingGems.push(_local6);
_local13++;
};
_local4 = (_local4 + _-Fz._-Ag);
if (_local2 > _-Fz._-Da){
_local4 = (_local4 + ((_local2 - _-Fz._-Da) * _-Fz._-Kt));
};
_local3++;
_local5 = (_local5 + _-Fz._-EZ);
};
_local12 = (_local12 + _local2);
};
_local11++;
};
_local11 = 0;
while (_local11 < _-Fz._-Fv) {
_local12 = 0;
while (_local12 <= (_-Fz._-39 - _-Fz._-Da)) {
_local2 = _-Ig(_local1, _local11, _local12, 0, 1);
if (_local2 >= _-Fz._-Da){
_local13 = 0;
while (_local13 < _local2) {
_local6 = _-7y[(((_local12 + _local13) * _-Fz._-Fv) + _local11)];
if (_local6.x < _local7){
_local7 = _local6.x;
};
if (_local6.x > _local8){
_local8 = _local6.x;
};
if (_local6.y < _local9){
_local9 = _local6.y;
};
if (_local6.y > _local10){
_local10 = _local6.y;
};
destroyingGems.push(_local6);
_local13++;
};
_local4 = (_local4 + _-Fz._-Ag);
if (_local2 > _-Fz._-Da){
_local4 = (_local4 + ((_local2 - _-Fz._-Da) * _-Fz._-Kt));
};
_local3++;
_local5 = (_local5 + _-Fz._-EZ);
};
_local12 = (_local12 + _local2);
};
_local11++;
};
if (destroyingGems.length > 0){
_local4 = (_local4 + ((_local3 - 1) * _-Fz._-0c));
_local4 = (_local4 + (_-6g * _-Fz._-Hv));
_-Gr(((_local7 + _local8) / 2), ((_local9 + _local10) / 2), _local4);
score = (score + _local4);
life = (life + _local5);
if (life > _-Fz._-BC){
life = _-Fz._-BC;
};
lifeBar._-4y(life);
if (life >= _-Fz._-BC){
_-3y = true;
};
_-6g++;
_-Hy.play();
return (true);
};
return (false);
}
private function _-Gr(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:_-IE;
_local4 = new _-IE();
_local4.initialize(_arg1, _arg2, _arg3);
scoresHolder.addChild(_local4);
}
private function startDestroyGems():void{
_-1A = true;
_-BU = _-CQ.getTimer();
_-F2 = new _-CQ(1, 0);
_-F2.addEventListener(TimerEvent.TIMER, destroyGems);
_-F2.start();
}
private function destroyGems(_arg1:TimerEvent):void{
var _local5:Number;
var _local6:_-J4;
var _local7:*;
var _local8:*;
var _local2:Number = ((_-CQ.getTimer() - _-BU) / 1000);
var _local3:Number = (100 - (_-Fz._-P2 * _local2));
var _local4:Number = (_-Fz._-1H * _local2);
if (_local3 < 0){
_local3 = 0;
};
_local7 = 0;
while (_local7 < destroyingGems.length) {
destroyingGems[_local7].scaleX = (_local3 / 100);
destroyingGems[_local7].scaleY = (_local3 / 100);
destroyingGems[_local7].rotation = _local4;
_local7++;
};
if (_local3 <= 0){
_-F2.stop();
_local7 = 0;
while (_local7 < destroyingGems.length) {
if (!destroyingGems[_local7]){
} else {
_-7y[((destroyingGems[_local7].indexY * _-Fz._-Fv) + destroyingGems[_local7].indexX)] = null;
if (destroyingGems[_local7].parent == _-It){
_-It.removeChild(destroyingGems[_local7]);
};
};
_local7++;
};
_-4U = new Array();
_local7 = 0;
while (_local7 < _-Fz._-Fv) {
_local5 = 0;
_local8 = (_-Fz._-39 - 1);
while (_local8 >= 0) {
if (_-7y[((_local8 * _-Fz._-Fv) + _local7)] == null){
_local5++;
} else {
if (_local5 > 0){
_-7y[((_local8 * _-Fz._-Fv) + _local7)].targetY = (_-7y[((_local8 * _-Fz._-Fv) + _local7)].indexY + _local5);
_-4U.push(_-7y[((_local8 * _-Fz._-Fv) + _local7)]);
};
};
_local8--;
};
_local8 = 0;
while (_local8 < _local5) {
_local6 = _-5n(_local7, (-(_local8) - 1));
_-5n(_local7, (-(_local8) - 1)).targetY = (_local6.indexY + _local5);
_-4U.push(_local6);
_local8++;
};
_local7++;
};
startDropGems();
};
_arg1.updateAfterEvent();
}
private function _-5n(_arg1:Number, _arg2:Number):_-J4{
var _local3:_-J4 = new _-J4();
var _local4:Number = Math.floor((Math.random() * _-Fz._-LZ));
_local3.initialize(_arg1, _arg2, _local4);
_-It.addChild(_local3);
return (_local3);
}
private function startDropGems():void{
_-1A = true;
_-BU = _-CQ.getTimer();
_-F2 = new _-CQ(1, 0);
_-F2.addEventListener(TimerEvent.TIMER, _-8f);
_-F2.start();
}
private function _-8f(_arg1:TimerEvent):void{
var _local3:Array;
var _local4:*;
var _local2:Number = (_-CQ.getTimer() - _-BU);
_local4 = 0;
while (_local4 < _-4U.length) {
if (!_-4U[_local4].doDropMove(_local2)){
} else {
_-4U[_local4].indexY = _-4U[_local4].targetY;
_-7y[((_-4U[_local4].indexY * _-Fz._-Fv) + _-4U[_local4].indexX)] = _-4U[_local4];
_-4U.splice(_local4, 1);
_local4--;
};
_local4++;
};
if (_-4U.length == 0){
_-F2.stop();
if (_-Iu()){
startDestroyGems();
} else {
if (_-3y){
levelUp();
} else {
_local3 = new Array(_-7y.length);
_local4 = 0;
while (_local4 < _local3.length) {
_local3[_local4] = _-7y[_local4].type;
_local4++;
};
if (!_-QF(_local3)){
startNoMoreMoves();
} else {
_-1A = false;
};
};
};
};
_arg1.updateAfterEvent();
}
private function startNoMoreMoves():void{
showingNoMoreMoves = true;
_-1A = true;
_-BU = _-CQ.getTimer();
message.showNoMoreMoves();
soundNoMoreMoves.play();
_-F2 = new _-CQ(1, 0);
_-F2.addEventListener(TimerEvent.TIMER, destroyNoMoreMoveGems);
_-F2.start();
}
private function destroyNoMoreMoveGems(_arg1:TimerEvent):void{
var _local3:Number;
var _local4:*;
var _local5:*;
_-RO();
var _local2:Number = (100 - (((_-CQ.getTimer() - _-BU) * _-Fz._-KM) / 1000));
_local4 = _-Fz._-39;
while (_local4 >= 0) {
_local3 = (_local2 + (_-Fz._-ET * (_-Fz._-39 - _local4)));
_local5 = 0;
while (_local5 < _-Fz._-Fv) {
if (!_-7y[((_local4 * _-Fz._-Fv) + _local5)]){
} else {
if (_local3 < 0){
if (_-7y[((_local4 * _-Fz._-Fv) + _local5)].parent){
_-It.removeChild(_-7y[((_local4 * _-Fz._-Fv) + _local5)]);
};
} else {
if (_local3 < 100){
_-7y[((_local4 * _-Fz._-Fv) + _local5)].scaleX = (_local3 / 100);
_-7y[((_local4 * _-Fz._-Fv) + _local5)].scaleY = (_local3 / 100);
};
};
};
_local5++;
};
_local4--;
};
if ((_local2 + (_-Fz._-ET * _-Fz._-39)) <= 0){
_-F2.stop();
message.hide();
_-Hu();
};
_arg1.updateAfterEvent();
}
private function levelUp():void{
_-RO();
score = (score + _-Fz._-1e);
message._-LQ(_-Fz._-1e);
_-1E.play();
_-1A = true;
_-BU = _-CQ.getTimer();
_-F2.stop();
_-F2 = new _-CQ(1, 0);
_-F2.addEventListener(TimerEvent.TIMER, destroyLevelUpGems);
_-F2.start();
}
private function destroyLevelUpGems(_arg1:TimerEvent):void{
var _local4:*;
_-RO();
var _local2:Number = ((_-CQ.getTimer() - _-BU) / 1000);
var _local3:Number = (100 - (_-Fz._-5- * _local2));
_local4 = 0;
while (_local4 < _-7y.length) {
if (_local3 < 0){
if (((_-7y[_local4]) && (_-7y[_local4].parent))){
_-It.removeChild(_-7y[_local4]);
};
} else {
_-7y[_local4].scaleX = (_local3 / 100);
_-7y[_local4].scaleY = (_local3 / 100);
};
_local4++;
};
life = (_-Fz._-BC - (_-Fz._-Eh * _local2));
if (life < _-Fz._-2v){
life = _-Fz._-2v;
};
lifeBar._-4y(life);
if (life <= _-Fz._-2v){
_-F2.stop();
level++;
_-RV = (_-RV + _-Fz._-HO);
levelStarted = false;
_-3y = false;
message.hide();
_-Hu();
};
}
private function _-3q():void{
_-RO();
gameOver = true;
_-F2.stop();
message._-3q();
Object(parent).stopGameMusic();
_-F2 = new _-CQ(_-Fz._-I, 1);
_-F2.addEventListener(TimerEvent.TIMER, showPlayAgain);
_-F2.start();
soundGameOver.play();
}
private function showPlayAgain(_arg1:TimerEvent):void{
_-RO();
message.showPlayAgain({score:score, level:level});
}
override public function destroyGame():void{
_-Qh.stop();
_-6k.stop();
_-F2.stop();
}
}
}//package _-1y
Section 24
//SoundNoMoreMoves (_-1y.SoundNoMoreMoves)
package _-1y {
import com.novelgames.flashgames.common.*;
public dynamic class SoundNoMoreMoves extends _-6P {
}
}//package _-1y
Section 25
//_-S (_-4-._-S)
package _-4- {
public class _-S {
public static function linearEaseNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function _-K9(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function _-Ff(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function _-Fo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function _-JC(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function _-Ql(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function _-H-(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function _-By(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2));
}
public static function _-M6(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) + _arg3) + _arg2));
}
public static function _-Nq(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * (0.3 * 1.5));
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) * 0.5) + _arg3) + _arg2));
}
public static function _-75(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg1)==0) ? _arg2 : ((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2));
}
public static function _-2H(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : ((_arg3 * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function _-OA(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2));
};
--_arg1;
return ((((_arg3 / 2) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function _-Dx(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function _-2h(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function _-JM(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function _-P6(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function _-Ho(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function _-Ki(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function _-OI(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function _-F9(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function _-FE(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function _-Ct(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function _-9n(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function _-Aw(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function _-4A(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function _-0J(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 - _-4A((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function _-EX(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (((_-0J((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((_-4A(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function _-Gt(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function _-GI(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function _-K6(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package _-4-
Section 26
//_-6b (_-5i._-6b)
package _-5i {
import flash.display.*;
import _-8H.*;
public class _-6b implements _-7F {
public function init(_arg1:_-Li):void{
var mc:MovieClip;
var particle = _arg1;
if ((particle is MovieClip)){
mc = (particle as MovieClip);
mc.gotoAndStop(Math.round((Math.random() * mc.totalFrames)));
} else {
if ((particle is Sprite)){
try {
mc = ((particle as Sprite).getChildAt(0) as MovieClip);
if (mc != null){
mc.gotoAndStop(Math.round((Math.random() * mc.totalFrames)));
};
} catch(e:Error) {
};
};
};
}
}
}//package _-5i
Section 27
//_-7F (_-5i._-7F)
package _-5i {
import _-8H.*;
public interface _-7F {
"com.roguedevelopment.pulse.initializers:IPulseInitializer"?? function init(_arg1:_-Li):void;
}
}//package _-5i
Section 28
//_-9d (_-5i._-9d)
package _-5i {
import _-8H.*;
public class _-9d implements _-7F {
protected var _-Kq:Number;
protected var _-H7:Number;
public function _-9d(_arg1:Number, _arg2:Number){
this._-Kq = _arg1;
this._-H7 = _arg2;
}
public function init(_arg1:_-Li):void{
var _local2:Object = _arg1;
var _local3:Number = (_-Kq + (Math.random() * (_-H7 - _-Kq)));
_local2["scaleX"] = _local3;
_local2["scaleY"] = _local3;
}
}
}//package _-5i
Section 29
//_-As (_-5i._-As)
package _-5i {
import _-8H.*;
public class _-As implements _-7F {
protected var propName:String;
protected var value:Object;
public function _-As(_arg1:String, _arg2:Object){
this.propName = _arg1;
this.value = _arg2;
}
public function init(_arg1:_-Li):void{
var _local2:Object = (_arg1 as Object);
if (_local2.hasOwnProperty(propName)){
_local2[propName] = value;
} else {
if (_local2.hasOwnProperty("params")){
_local2.params[propName] = value;
};
};
}
}
}//package _-5i
Section 30
//_-OM (_-5i._-OM)
package _-5i {
import _-8H.*;
public class _-OM implements _-7F {
protected var propName:String;
protected var _-Kq:Number;
protected var _-H7:Number;
protected var round:Boolean;
public function _-OM(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false){
this._-Kq = _arg2;
this._-H7 = _arg3;
this.propName = _arg1;
this.round = _arg4;
}
public function init(_arg1:_-Li):void{
var _local2:Object = _arg1;
var _local3:Number = (_-Kq + (Math.random() * (_-H7 - _-Kq)));
if (round){
_local3 = Math.round(_local3);
};
if (_local2.hasOwnProperty(propName)){
_local2[propName] = _local3;
} else {
if (_local2.hasOwnProperty("params")){
_local2.params[propName] = _local3;
};
};
}
}
}//package _-5i
Section 31
//_-Z (_-5i._-Z)
package _-5i {
public class _-Z extends _-OM {
public function _-Z(_arg1:Number, _arg2:Number){
super("angle", ((_arg1 * Math.PI) / 180), ((_arg2 * Math.PI) / 180), round);
}
}
}//package _-5i
Section 32
//_-0q (_-8H._-0q)
package _-8H {
public interface _-0q {
"com.roguedevelopment.pulse.particle:IParticleFactory"?? function _-Dn():_-Li;
"com.roguedevelopment.pulse.particle:IParticleFactory"?? function recycle(_arg1:_-Li):void;
"com.roguedevelopment.pulse.particle:IParticleFactory"?? function set rules(_arg1:Array):void;
"com.roguedevelopment.pulse.particle:IParticleFactory"?? function set initializers(_arg1:Array):void;
"com.roguedevelopment.pulse.particle:IParticleFactory"?? function _-Md():void;
}
}//package _-8H
Section 33
//_-2P (_-8H._-2P)
package _-8H {
public class _-2P extends _-88 {
protected var _size:Number;// = 1
protected var _color:uint;// = 0xFFFFFF
public function _-2P(){
_-Kn();
}
protected function _-Kn():void{
graphics.clear();
graphics.beginFill(_color, 1);
graphics.drawCircle(0, 0, _size);
graphics.endFill();
}
public function set color(_arg1:uint):void{
_color = _arg1;
_-Kn();
}
public function set size(_arg1:Number):void{
_size = _arg1;
_-Kn();
}
}
}//package _-8H
Section 34
//_-88 (_-8H._-88)
package _-8H {
import flash.display.*;
import flash.geom.*;
public class _-88 extends Sprite implements _-CM {
protected var _rules:Array;
protected var _-y:Number;
protected var _params:Object;
protected var _-7u:_-0q;
public function _-88(){
_params = {angle:0, speed:0};
super();
_-y = new Date().time;
}
public function get params():Object{
return (_params);
}
public function get _-Dr():Number{
return (_-y);
}
public function get rules():Array{
return (_rules);
}
public function set rules(_arg1:Array):void{
_rules = _arg1;
}
public function get factory():_-0q{
return (_-7u);
}
public function set factory(_arg1:_-0q):void{
_-7u = _arg1;
}
public function recycle():void{
_-y = new Date().time;
scaleX = 1;
rotation = 0;
scaleY = 1;
alpha = 1;
visible = true;
transform.colorTransform = new ColorTransform();
}
public function remove():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package _-8H
Section 35
//_-Ch (_-8H._-Ch)
package _-8H {
import flash.display.*;
import flash.geom.*;
public final class _-Ch extends _-88 implements _-CM {
protected var imaged:Boolean;// = false
public function set image(_arg1:Class):void{
if (imaged){
return;
};
imaged = true;
var _local2:Bitmap = new (_arg1);
addChild(_local2);
}
override public function recycle():void{
_-y = new Date().time;
scaleX = 1;
rotation = 0;
scaleY = 1;
alpha = 1;
visible = true;
transform.colorTransform = new ColorTransform();
}
}
}//package _-8H
Section 36
//_-CM (_-8H._-CM)
package _-8H {
public interface _-CM extends _-Li {
"com.roguedevelopment.pulse.particle:IRecyleableParticle"?? function get factory():_-0q;
"com.roguedevelopment.pulse.particle:IRecyleableParticle"?? function set factory(_arg1:_-0q):void;
"com.roguedevelopment.pulse.particle:IRecyleableParticle"?? function recycle():void;
}
}//package _-8H
Section 37
//_-FW (_-8H._-FW)
package _-8H {
import flash.display.*;
import _-5i.*;
public final class _-FW implements _-0q {
protected var _-Ju:Class;
protected var _rules:Array;
protected var _-9Y:Array;
protected var _-Es:Array;
public var isRunning:Boolean;// = true
public function _-FW(_arg1:Class, _arg2:Array, _arg3:Array){
_-Es = [];
super();
this._-Ju = _arg1;
_rules = _arg2;
this.initializers = _arg3;
}
public function set initializers(_arg1:Array):void{
_-9Y = _arg1;
}
public function _-Dn():_-Li{
var _local1:_-Li;
var _local2:_-7F;
var _local3:Object;
isRunning = true;
if (_-Es.length > 0){
_local1 = (_-Es.shift() as _-Li);
(_local1 as _-CM).recycle();
} else {
_local3 = new _-Ju();
if ((_local3 is _-Li)){
_local1 = (_local3 as _-Li);
} else {
if ((_local3 is Sprite)){
_local1 = new _-88();
(_local1 as _-88).addChild((_local3 as Sprite));
};
};
if ((_local1 is _-CM)){
(_local1 as _-CM).factory = this;
};
};
_local1.rules = _rules.concat();
for each (_local2 in _-9Y) {
_local2.init(_local1);
};
return (_local1);
}
public function set rules(_arg1:Array):void{
_rules = _arg1;
}
public function recycle(_arg1:_-Li):void{
if (isRunning){
_arg1.visible = false;
_-Es.push(_arg1);
} else {
_arg1.remove();
};
}
public function _-Md():void{
var _local1:_-Li;
isRunning = false;
for each (_local1 in _-Es) {
_local1.remove();
};
_-Es = [];
}
}
}//package _-8H
Section 38
//_-KT (_-8H._-KT)
package _-8H {
public class _-KT extends _-88 {
protected var _size:Number;// = 1
protected var _color:uint;// = 0xFFFFFF
public function _-KT(){
_-Kn();
}
protected function _-Kn():void{
graphics.clear();
graphics.lineStyle(1, _color);
graphics.moveTo(0, 0);
graphics.lineTo(_size, 0);
}
public function set color(_arg1:uint):void{
_color = _arg1;
_-Kn();
}
public function set size(_arg1:Number):void{
_size = _arg1;
_-Kn();
}
}
}//package _-8H
Section 39
//_-Li (_-8H._-Li)
package _-8H {
public interface _-Li {
"com.roguedevelopment.pulse.particle:IParticle"?? function get params():Object;
"com.roguedevelopment.pulse.particle:IParticle"?? function get x():Number;
"com.roguedevelopment.pulse.particle:IParticle"?? function get y():Number;
"com.roguedevelopment.pulse.particle:IParticle"?? function set x(_arg1:Number):void;
"com.roguedevelopment.pulse.particle:IParticle"?? function set y(_arg1:Number):void;
"com.roguedevelopment.pulse.particle:IParticle"?? function get _-Dr():Number;
"com.roguedevelopment.pulse.particle:IParticle"?? function get scaleX():Number;
"com.roguedevelopment.pulse.particle:IParticle"?? function set scaleX(_arg1:Number):void;
"com.roguedevelopment.pulse.particle:IParticle"?? function get scaleY():Number;
"com.roguedevelopment.pulse.particle:IParticle"?? function set scaleY(_arg1:Number):void;
"com.roguedevelopment.pulse.particle:IParticle"?? function get rules():Array;
"com.roguedevelopment.pulse.particle:IParticle"?? function set rules(_arg1:Array):void;
"com.roguedevelopment.pulse.particle:IParticle"?? function get visible():Boolean;
"com.roguedevelopment.pulse.particle:IParticle"?? function set visible(_arg1:Boolean):void;
"com.roguedevelopment.pulse.particle:IParticle"?? function set alpha(_arg1:Number):void;
"com.roguedevelopment.pulse.particle:IParticle"?? function get alpha():Number;
"com.roguedevelopment.pulse.particle:IParticle"?? function get rotation():Number;
"com.roguedevelopment.pulse.particle:IParticle"?? function set rotation(_arg1:Number):void;
"com.roguedevelopment.pulse.particle:IParticle"?? function remove():void;
}
}//package _-8H
Section 40
//_-64 (_-9-._-64)
package _-9- {
public class _-64 {
static const _-N5:Array;
static const _-JE:Array;
public function _-64(){
var _local1:Boolean;
//unresolved jump
//unresolved jump
var _local3 = -(((((??hasnext
& !NULL!) == !NULL!) * !NULL!) * !NULL!));
var _local2 = null;
if (!((_local2) && (this))){
super();
};
}
public static function _-Au(_arg1:int, _arg2:int):String{
//unresolved jump
_local6--;
_local7++;
var _local8:String = (((true <= false) >= null) / !NULL!);
!ERROR! !ERROR! var _local3:String;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
_local8 = undefined;
var _local9:*;
if (_local11){
_local3 = "";
//unresolved if
//unresolved if
_local4 = 0;
//unresolved if
};
if (((_local11) || (_local3))){
};
_local5 = _-N5[_arg1].length;
for (;_local4 < _local5;//unresolved if
, if (!_local10){
if (!_local10){
};
if (!((_local10) && (_arg2))){
if (!((_local10) && (_arg1))){
if (!_local10){
};
};
};
}) {
if (!_local10){
_local6 = int(_-N5[((_arg1 - 5) ^ 59)][_local4]);
//unresolved if
//unresolved if
//unresolved if
};
if (!((_local10) && (_-64))){
_local4 = int(_-N5[((_arg1 - 5) ^ 59)][_local4]);
//unresolved if
//unresolved if
};
_local7 = int(_-N5[((_arg1 - 5) ^ 59)][_local4]);
//unresolved if
_local8 = 2654435769;
_local9 = 84941944608;
if (_local11){
continue;
//unresolved if
if (((_local11) || (_local3))){
//unresolved if
//unresolved if
};
if (!_local10){
//unresolved if
};
//unresolved if
//unresolved if
_local7 = (_local7 - ((_local6 + _local6) ^ (_local9 + int(_-JE[((_arg2 + 3) ^ 625)][((_local9 >>> 11) & 3)]))));
//unresolved if
};
_local9 = (_local9 - _local8);
if (!_local10){
if (((_local11) || (_local3))){
if (_local11){
if (_local11){
//unresolved if
//unresolved if
};
if (!_local10){
};
};
};
};
};
if (((_local11) || (_arg2))){
if (!((_local10) && (_arg1))){
//unresolved if
//unresolved if
//unresolved if
//unresolved jump
_local5--;
_local6--;
_local4 = (_local3 > 0);
_local7++;
_local5 = !NULL!;
_local9++;
_local5--;
//unresolved if
};
};
return (_local3);
}
//unresolved jump
var _local1 = -(typeof((!(true) + 1)));
var _local2 = ((true === (false + 1)) > !NULL!);
if (!((_local1) && (_local1))){
_-JE = new Array([-2069677185, -1281893017, -1144808349, 2104414664], [-2020082634, 2116699936, 772736999, -1069179635], [-352095296, -2029331832, -1038742261, -51393562]);
if (!((_local1) && (_local1))){
//unresolved jump
//unresolved jump
_local2--;
new [, , -1854535677, -301603375, 1874718546, -1407893695, 2000393442, -892720011, -510598534, -1358887311, 1269040929, -808717114, -485041683, -2137441047, -1629721763, -646453039, -613698361, 1208587586, -285465223, 508903980, (-848411858 & -1449899359), -773282492, -2125524416, -969584068, -1831909672, !NULL!].Array([[1770964614, 2057701455, -431881482, 2085669603, 1591583401, -1371700837, 1555035673, -1701949499, -2033876914, -1689906383, -711034764, -486794330, -1785598688, 148062262, 492898142, 665737353, 1347370616, 1796459165, 213035040, 1269833911, 1299174205, 734667022, -431881482, 2085669603, 358660482, 475819735, 1985490020, 1091171579, 2134396749, 973260843, 2069183140, 50574651], 1170240586, 885738946, -1443175766, -443833423, 952837258, 125143315, -1125236706, 1883396458, 182811044, 325703200, -326083354, -937125226, 365728429, -1900601832, -542101037, -515597763, -1436859289, -1661972176, 738969594, 591945215, -2108064674, -2118890760, 2131311080, typeof((-2090641883 - (345005283 instanceof 1468627929))), -(true), 2086583862, -665589546, 16377188, 1744483079, -1290267161, -731340424], !NULL!, !NULL!)._-N5 = !NULL!;
};
};
}
}//package _-9-
Section 41
//_-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 42
//_-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 43
//_-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 44
//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 45
//_-1n (_-Ci._-1n)
package _-Ci {
import _-8H.*;
public interface _-1n {
"com.roguedevelopment.pulse.emitter:IParticleEmitter"?? function set x(_arg1:Number):void;
"com.roguedevelopment.pulse.emitter:IParticleEmitter"?? function set y(_arg1:Number):void;
"com.roguedevelopment.pulse.emitter:IParticleEmitter"?? function get x():Number;
"com.roguedevelopment.pulse.emitter:IParticleEmitter"?? function get y():Number;
"com.roguedevelopment.pulse.emitter:IParticleEmitter"?? function start():void;
"com.roguedevelopment.pulse.emitter:IParticleEmitter"?? function stop():void;
"com.roguedevelopment.pulse.emitter:IParticleEmitter"?? function _-Cx(_arg1:_-0q):void;
}
}//package _-Ci
Section 46
//_-Ee (_-Ci._-Ee)
package _-Ci {
import flash.display.*;
import flash.events.*;
import _-8H.*;
import flash.utils.*;
import _-JY.*;
public class _-Ee implements _-1n {
protected var _-Ck:Number;// = 10
protected var _-0P:Number;// = 10
protected var timer:Timer;
protected var factory:_-0q;
public var width:Number;// = 1
public var height:Number;// = 1
public var _-CB:uint;// = 0
protected var _-2j:uint;// = 0
public var root:DisplayObjectContainer;// = null
public var _-IV:Boolean;// = true
public function _-Ee(_arg1:Number){
pps = _arg1;
root = _-Re._-LK.root;
}
public function set pps(_arg1:Number):void{
if (timer != null){
timer.stop();
};
timer = new Timer((1000 / _arg1));
timer.addEventListener(TimerEvent.TIMER, _-8a);
timer.start();
}
public function get pps():Number{
return (10);
}
public function _-KE():_-0q{
return (factory);
}
public function _-Cx(_arg1:_-0q):void{
this.factory = _arg1;
}
public function set x(_arg1:Number):void{
_-Ck = _arg1;
}
public function set y(_arg1:Number):void{
_-0P = _arg1;
}
public function get x():Number{
return (_-Ck);
}
public function get y():Number{
return (_-0P);
}
protected function _-8a(_arg1:TimerEvent):void{
if (factory == null){
return;
};
if (_-CB > 0){
_-2j++;
if (_-2j > _-CB){
timer.stop();
return;
};
};
var _local2:_-Li = factory._-Dn();
_local2.x = (x + (Math.random() * width));
_local2.y = (y + (Math.random() * height));
if ((_local2 is DisplayObject)){
if (_-IV){
root.addChild((_local2 as DisplayObject));
} else {
root.addChildAt((_local2 as DisplayObject), 0);
};
};
_-Re._-LK._-Fq(_local2);
}
public function start():void{
_-2j = 0;
timer.start();
}
public function stop():void{
if (factory != null){
factory._-Md();
};
timer.stop();
}
}
}//package _-Ci
Section 47
//_-FP (_-Ci._-FP)
package _-Ci {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import _-JY.*;
import flash.filters.*;
public class _-FP extends _-Ee {
protected var _-Ds:BitmapData;
protected var _-8c:Rectangle;
protected var _-Bi:Point;
protected var fader:ColorMatrixFilter;
public function _-FP(_arg1:Number, _arg2:BitmapData, _arg3:Number=0.85){
_-Bi = new Point(0, 0);
fader = new ColorMatrixFilter([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, _arg3, 0]);
super(_arg1);
this._-Ds = _arg2;
_-8c = new Rectangle(0, 0, _arg2.width, _arg2.height);
root = new Sprite();
}
protected function onEnterFrame(_arg1:Event):void{
_-Ds.applyFilter(_-Ds, _-8c, _-Bi, fader);
var _local2:Matrix = new Matrix();
_local2.rotate(((root.rotation * Math.PI) / 180));
_local2.translate(root.x, root.y);
_local2.scale(root.scaleX, root.scaleY);
_-Ds.draw(root, _local2);
}
override public function stop():void{
super.stop();
}
override public function start():void{
_-Re._-LK.root.addEventListener(Event.ENTER_FRAME, onEnterFrame);
super.start();
}
}
}//package _-Ci
Section 48
//SimpleParticles (_-FZ.SimpleParticles)
package _-FZ {
import flash.display.*;
import _-II.*;
import _-8H.*;
import _-5i.*;
import _-Ci.*;
import _-JY.*;
import com.adobe.serialization.json.*;
public class SimpleParticles {
protected static var rules:Object = {scale:_-I2, fade:_-56, gravity:_-ED, movement:_-0B, lifespan:_-Gc, mouseSwarm:_-Fe, rotateToAngle:_-L-, xOscillate:_-Gu, tween:_-Bh, pointSwarm:_-Oq, rotate:_-CF, accel:_-AC, bound:_-At, stop:_-AY, colorTransform:_-n};
public static function _-Ra(_arg1:Object):_-1n{
var _local2:_-Ee;
var _local4:BitmapData;
var _local5:Bitmap;
var _local3 = 10;
if (_arg1.hasOwnProperty("pps")){
_local3 = _arg1.pps;
};
if (((_arg1.hasOwnProperty("bme")) && (_arg1.bme))){
_local4 = new BitmapData(_-Re._-LK.root.stage.width, _-Re._-LK.root.stage.height, true, 0);
_local5 = new Bitmap(_local4);
_-Re._-LK.root.addChild(_local5);
_local2 = new _-FP(_local3, _local4);
} else {
_local2 = new _-Ee(_local3);
};
configureEmitterByObject(_local2, _arg1);
return (_local2);
}
public static function _-Ru(_arg1:_-Ee, _arg2:String):_-1n{
var r:RegExp;
var d:_-6B;
var o:Object;
var emitter = _arg1;
var params = _arg2;
try {
r = /([a-zA-Z0-9_]+):/g;
params = params.replace(r, "\"$1\":");
d = new _-6B(params);
o = d.getValue();
} catch(e:Error) {
return (emitter);
};
return (configureEmitterByObject(emitter, o));
}
public static function configureEmitterByObject(_arg1:_-Ee, _arg2:Object):_-1n{
var _local7:String;
var _local8:Array;
var _local3:Boolean;
var _local4:_-0q = _arg1._-KE();
var _local5:Array = [];
var _local6:Array = [];
if (((_arg2.hasOwnProperty("minSpeed")) && (_arg2.hasOwnProperty("maxSpeed")))){
_local6.push(new _-OM("speed", _arg2.minSpeed, _arg2.maxSpeed, true));
};
if (((_arg2.hasOwnProperty("minAngle")) && (_arg2.hasOwnProperty("maxAngle")))){
_local6.push(new _-Z(_arg2.minAngle, _arg2.maxAngle));
};
if (((_arg2.hasOwnProperty("minScale")) && (_arg2.hasOwnProperty("maxScale")))){
_local6.push(new _-9d(_arg2.minScale, _arg2.maxScale));
};
for (_local7 in _arg2) {
switch (_local7){
case "start":
_local3 = _arg2.start;
break;
case "x":
_arg1.x = _arg2.x;
break;
case "y":
_arg1.y = _arg2.y;
break;
case "dot":
_local4 = _-In(_arg2[_local7], _local5, _local6);
break;
case "line":
_local4 = _-78(_arg2[_local7], _local5, _local6);
break;
case "image":
_local6.push(new _-As("image", _arg2[_local7]));
_local4 = _-Fc(_arg2[_local7], _local5, _local6);
break;
case "width":
_arg1.width = (_arg2[_local7] as Number);
break;
case "height":
_arg1.height = (_arg2[_local7] as Number);
break;
case "limit":
_arg1._-CB = (_arg2[_local7] as Number);
break;
default:
if (((!(_-NY(_local7, _arg2[_local7], _local5))) && (!(_-I7(_local7, _arg2[_local7], _local6))))){
if ((_arg2[_local7] is Array)){
_local8 = (_arg2[_local7] as Array);
_local6.push(new _-OM(_local7, _local8[0], _local8[1], true));
};
if ((_arg2[_local7] is Number)){
_local6.push(new _-As(_local7, (_arg2[_local7] as Number)));
};
};
break;
};
};
if (_local4 == null){
_local4 = _-In(null, _local5, _local6);
} else {
_local4.rules = _local5;
_local4.initializers = _local6;
};
_arg1._-Cx(_local4);
if (_local3){
_arg1.start();
};
return (_arg1);
}
protected static function _-I7(_arg1:String, _arg2:Object, _arg3:Array):Boolean{
var _local4:Array = (_arg2 as Array);
switch (_arg1){
case "startScale":
_arg3.push(new _-9d(_local4[0], _local4[1]));
return (true);
case "angle":
_arg3.push(new _-Z(_local4[0], _local4[1]));
return (true);
case "randomFrame":
_arg3.push(new _-6b());
return (true);
};
return (false);
}
protected static function _-NY(_arg1:String, _arg2:Object, _arg3:Array):Boolean{
if (!rules.hasOwnProperty(_arg1)){
return (false);
};
var _local4:Class = rules[_arg1];
var _local5:_-9p = new (_local4);
if ((_arg2 is Array)){
_local5._-7B((_arg2 as Array));
} else {
_local5._-7B([_arg2]);
};
_arg3.push(_local5);
return (true);
}
protected static function _-In(_arg1:Object, _arg2:Array, _arg3:Array):_-0q{
return (new _-FW(_-2P, _arg2, _arg3));
}
protected static function _-78(_arg1:Object, _arg2:Array, _arg3:Array):_-0q{
return (new _-FW(_-KT, _arg2, _arg3));
}
protected static function _-Fc(_arg1:Object, _arg2:Array, _arg3:Array):_-0q{
return (new _-FW(_-Ch, _arg2, _arg3));
}
}
}//package _-FZ
Section 49
//_-0B (_-II._-0B)
package _-II {
import _-8H.*;
import _-JY.*;
public final class _-0B implements _-9p {
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
var _local4:Number = 1;
var _local5:Number = 0;
if (_arg1.params.hasOwnProperty("speed")){
_local4 = _arg1.params["speed"];
};
if (_arg1.params.hasOwnProperty("angle")){
_local5 = _arg1.params["angle"];
};
var _local6:Number = ((_-Re._-PO / 1000) * _local4);
var _local7:Number = (Math.cos(_local5) * _local6);
var _local8:Number = (Math.sin(_local5) * _local6);
_arg1.x = (_arg1.x + _local7);
_arg1.y = (_arg1.y + _local8);
}
public function _-7B(_arg1:Array):void{
}
}
}//package _-II
Section 50
//_-56 (_-II._-56)
package _-II {
import _-8H.*;
public final class _-56 implements _-9p {
protected var _-Pp:Number;
public function _-56(_arg1:Number=3000){
this._-Pp = _arg1;
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
if (_arg2 == _arg1._-Dr){
return;
};
var _local4:Number = (_arg2 - _arg1._-Dr);
if (_local4 > _-Pp){
_arg1.rules.splice(_arg1.rules.indexOf(this), 1);
return;
};
_arg1.alpha = (1 - (_local4 / _-Pp));
}
public function _-7B(_arg1:Array):void{
_-Pp = (_arg1[0] as Number);
}
}
}//package _-II
Section 51
//_-9p (_-II._-9p)
package _-II {
import _-8H.*;
public interface _-9p {
"com.roguedevelopment.pulse.rule:IPulseRule"?? function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void;
"com.roguedevelopment.pulse.rule:IPulseRule"?? function _-7B(_arg1:Array):void;
}
}//package _-II
Section 52
//_-AC (_-II._-AC)
package _-II {
import _-8H.*;
public final class _-AC implements _-9p {
protected var amount:Number;// = 1
public function _-AC(_arg1:Number=1){
this.amount = _arg1;
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
var _local4:Number;
if (_arg1.params.hasOwnProperty("speed")){
_local4 = _arg1.params["speed"];
_local4 = (_local4 + amount);
if ((((amount < 0)) && ((_local4 < 0)))){
_local4 = 0;
};
};
_arg1.params["speed"] = _local4;
}
public function _-7B(_arg1:Array):void{
amount = _arg1[0];
}
}
}//package _-II
Section 53
//_-At (_-II._-At)
package _-II {
import _-8H.*;
import flash.geom.*;
public final class _-At implements _-9p {
protected var _-0O:Rectangle;
public function _-At(_arg1:Rectangle=null){
this._-0O = _arg1;
}
public function _-7B(_arg1:Array):void{
if (_arg1.length != 4){
return;
};
_-0O = new Rectangle(_arg1[0], _arg1[1], _arg1[2], _arg1[3]);
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local4:Number = _arg1.params.angle;
if ((((((((_arg1.x <= _-0O.x)) && ((_local4 > (Math.PI / 2))))) && ((_local4 < ((3 * Math.PI) / 2))))) || ((((_arg1.x >= _-0O.right)) && ((((_local4 > ((3 * Math.PI) / 2))) || ((_local4 < (Math.PI / 2))))))))){
_local5 = _arg1.params.speed;
_local6 = (Math.cos(_local4) * _local5);
_local7 = (Math.sin(_local4) * _local5);
_local6 = (_local6 * -1);
_local4 = Math.atan2(_local7, _local6);
if (_local4 < 0){
_local4 = (_local4 + (2 * Math.PI));
};
if (_local4 > (2 * Math.PI)){
_local4 = (_local4 - (2 * Math.PI));
};
_arg1.params.angle = _local4;
};
if ((((((((_arg1.y <= _-0O.y)) && ((_local4 > Math.PI)))) && ((_local4 < (2 * Math.PI))))) || ((((((_arg1.y >= _-0O.bottom)) && ((_local4 > 0)))) && ((_local4 < Math.PI)))))){
_local5 = _arg1.params.speed;
_local6 = (Math.cos(_local4) * _local5);
_local7 = (Math.sin(_local4) * _local5);
_local7 = (_local7 * -1);
_local4 = Math.atan2(_local7, _local6);
if (_local4 < 0){
_local4 = (_local4 + (2 * Math.PI));
};
if (_local4 > 360){
_local4 = (_local4 - (2 * Math.PI));
};
_arg1.params.angle = _local4;
};
}
}
}//package _-II
Section 54
//_-AY (_-II._-AY)
package _-II {
import _-8H.*;
import flash.geom.*;
public final class _-AY implements _-9p {
protected var _-0O:Rectangle;
public function _-AY(_arg1:Rectangle=null){
this._-0O = _arg1;
}
public function _-7B(_arg1:Array):void{
if (_arg1.length != 4){
return;
};
_-0O = new Rectangle(_arg1[0], _arg1[1], _arg1[2], _arg1[3]);
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
var _local4:_-9p;
var _local5:int;
if (_-0O.contains(_arg1.x, _arg1.y)){
for each (_local4 in _arg1.rules) {
if ((_local4 is _-0B)){
_local5 = _arg1.rules.lastIndexOf(_local4);
_arg1.rules.splice(_local5, 1);
};
};
_arg1.params.speed = 0;
};
}
}
}//package _-II
Section 55
//_-Bh (_-II._-Bh)
package _-II {
import _-8H.*;
import _-4-.*;
public final class _-Bh implements _-9p {
protected var _-7o:String;
protected var start:Number;
protected var end:Number;
protected var _-Pp:Number;
protected var ease:Function;
public function _-Bh(_arg1:String="", _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Function=null){
this._-7o = _arg1;
this.start = _arg2;
this.end = _arg3;
this._-Pp = _arg4;
this.ease = _arg5;
if (this.ease == null){
this.ease = _-S.linearEaseNone;
};
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
var _local4:Number = (_arg2 - _arg1._-Dr);
if (_local4 > _-Pp){
_arg1.rules.splice(_arg1.rules.indexOf(this), 1);
return;
};
var _local5:Object = _arg1;
if (end > start){
_local5[_-7o] = ease(_local4, start, end, _-Pp);
} else {
_local5[_-7o] = (start - ease(_local4, end, start, _-Pp));
};
}
public function _-7B(_arg1:Array):void{
_-7o = _arg1[0];
start = _arg1[1];
end = _arg1[2];
_-Pp = _arg1[3];
}
}
}//package _-II
Section 56
//_-CF (_-II._-CF)
package _-II {
import _-8H.*;
public final class _-CF implements _-9p {
protected var min:Number;
protected var max:Number;
public function _-CF(_arg1:Number=1, _arg2:Number=3){
this.min = _arg1;
this.max = _arg2;
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
if (!_arg1.params.hasOwnProperty("rotationSpeed")){
_arg1.params["rotationSpeed"] = (min + (Math.random() * (max - min)));
};
_arg1.rotation = (_arg1.rotation + _arg1.params["rotationSpeed"]);
}
public function _-7B(_arg1:Array):void{
min = (_arg1[0] as Number);
max = (_arg1[1] as Number);
}
}
}//package _-II
Section 57
//_-ED (_-II._-ED)
package _-II {
import _-8H.*;
public final class _-ED implements _-9p {
protected var gravityAmount:Number;
public function _-ED(_arg1:Number=5){
this.gravityAmount = _arg1;
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
var _local4:Number = _arg1.params.speed;
var _local5:Number = _arg1.params.angle;
var _local6:Number = (Math.cos(_local5) * _local4);
var _local7:Number = ((Math.sin(_local5) * _local4) + gravityAmount);
_local5 = Math.atan2(_local7, _local6);
if (_local5 < 0){
_local5 = (_local5 + (2 * Math.PI));
};
if (_local5 > (2 * Math.PI)){
_local5 = (_local5 - (2 * Math.PI));
};
_arg1.params.angle = _local5;
_arg1.params.speed = Math.sqrt(((_local6 * _local6) + (_local7 * _local7)));
}
public function _-7B(_arg1:Array):void{
gravityAmount = (_arg1[0] as Number);
}
}
}//package _-II
Section 58
//_-Fe (_-II._-Fe)
package _-II {
import flash.display.*;
import flash.events.*;
import _-8H.*;
import flash.geom.*;
public final class _-Fe implements _-9p {
protected var _-8g:Point;
public function _-Fe(_arg1:Stage=null){
_-8g = new Point();
super();
if (_arg1 != null){
_arg1.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
};
}
protected function onMouseMove(_arg1:MouseEvent):void{
_-8g.x = _arg1.stageX;
_-8g.y = _arg1.stageY;
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
var _local4:Number = Math.atan2((_-8g.y - _arg1.y), (_-8g.x - _arg1.x));
if (_local4 < 0){
_local4 = (_local4 + (2 * Math.PI));
};
if (_arg1.params.angle < 0){
_arg1.params.angle = (_arg1.params.angle + (2 * Math.PI));
};
if (_arg1.params.angle > (2 * Math.PI)){
_arg1.params.angle = (_arg1.params.angle - (2 * Math.PI));
};
var _local5:Number = (_arg1.params.angle - _local4);
if ((((((_local5 > 0)) && ((_local5 <= Math.PI)))) || ((_local5 < -(Math.PI))))){
_arg1.params.angle = (_arg1.params.angle - Math.min(0.1, Math.abs(_local5)));
} else {
if ((((((_local5 >= -(Math.PI))) && ((_local5 < 0)))) || ((_local5 > Math.PI)))){
_arg1.params.angle = (_arg1.params.angle + Math.min(0.1, Math.abs(_local5)));
};
};
}
public function _-7B(_arg1:Array):void{
(_arg1[0] as Stage).addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
}
}
}//package _-II
Section 59
//_-Gc (_-II._-Gc)
package _-II {
import _-8H.*;
import _-JY.*;
public final class _-Gc implements _-9p {
protected var _-Pp:Number;
public function _-Gc(_arg1:Number=3000){
this._-Pp = _arg1;
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
if (_arg2 > (_-Pp + _arg1._-Dr)){
_-Re._-LK.removeParticle(_arg1);
_arg1.rules.splice(_arg1.rules.indexOf(this), 1);
};
}
public function _-7B(_arg1:Array):void{
_-Pp = (_arg1[0] as Number);
}
}
}//package _-II
Section 60
//_-Gu (_-II._-Gu)
package _-II {
import _-8H.*;
public final class _-Gu implements _-9p {
protected var amount:Number;// = 5
protected var dampen:Number;// = 100
public function _-Gu(_arg1:Number=1, _arg2:Number=100){
this.amount = _arg1;
this.dampen = _arg2;
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
_arg1.x = (_arg1.x + (Math.cos(((_arg2 - _arg1._-Dr) / dampen)) * amount));
}
public function _-7B(_arg1:Array):void{
amount = (_arg1[0] as Number);
dampen = (_arg1[1] as Number);
}
}
}//package _-II
Section 61
//_-I2 (_-II._-I2)
package _-II {
import _-8H.*;
import _-4-.*;
public final class _-I2 implements _-9p {
protected var _-Pp:Number;
protected var startScale:Number;
protected var _-ON:Number;
public function _-I2(_arg1:Number=3000, _arg2:Number=1, _arg3:Number=5){
this._-Pp = _arg1;
this._-ON = _arg3;
this.startScale = _arg2;
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
var _local4:Number = (_arg2 - _arg1._-Dr);
if (_local4 > _-Pp){
_arg1.rules.splice(_arg1.rules.indexOf(this), 1);
return;
};
if (startScale > _-ON){
_arg1.scaleX = (startScale - _-S._-Aw(_local4, _-ON, startScale, _-Pp));
} else {
_arg1.scaleX = _-S._-Aw(_local4, startScale, _-ON, _-Pp);
};
_arg1.scaleY = _arg1.scaleX;
}
public function _-7B(_arg1:Array):void{
_-Pp = (_arg1[0] as Number);
startScale = (_arg1[1] as Number);
_-ON = (_arg1[2] as Number);
}
}
}//package _-II
Section 62
//_-L- (_-II._-L-)
package _-II {
import _-8H.*;
public final class _-L- implements _-9p {
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
_arg1.rotation = ((_arg1.params.angle * 180) / Math.PI);
}
public function _-7B(_arg1:Array):void{
}
}
}//package _-II
Section 63
//_-n (_-II._-n)
package _-II {
import flash.display.*;
import _-8H.*;
import flash.geom.*;
public class _-n implements _-9p {
public var startTime:Number;
public var endTime:Number;
public var _-AU:Number;// = 1
public var _-5v:Number;// = 1
public var _-L9:Number;// = 1
public var _-2F:Number;// = 0
public var _-3m:Number;// = 0
public var _-2O:Number;// = 0
public function _-n(){
var _local1:ColorTransform = new ColorTransform();
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
var _local4:Number = (_arg2 - _arg1._-Dr);
if ((((_local4 < startTime)) || ((_local4 > endTime)))){
return;
};
var _local5:DisplayObject = (_arg1 as DisplayObject);
if (_local5 == null){
return;
};
var _local6:Number = ((_local4 - startTime) / (endTime - startTime));
_local5.transform.colorTransform = new ColorTransform((1 + ((_-AU - 1) * _local6)), (1 + ((_-5v - 1) * _local6)), (1 + ((_-L9 - 1) * _local6)), 1, (_-2F * _local6), (_-3m * _local6), (_-2O * _local6), 0);
}
public function _-7B(_arg1:Array):void{
if (_arg1.length != 8){
return;
};
startTime = (_arg1.shift() as Number);
endTime = (_arg1.shift() as Number);
_-AU = (_arg1.shift() as Number);
_-5v = (_arg1.shift() as Number);
_-L9 = (_arg1.shift() as Number);
_-2F = (_arg1.shift() as Number);
_-3m = (_arg1.shift() as Number);
_-2O = (_arg1.shift() as Number);
}
}
}//package _-II
Section 64
//_-Oq (_-II._-Oq)
package _-II {
import _-8H.*;
import flash.geom.*;
public final class _-Oq implements _-9p {
protected var dest:Point;
public function _-Oq(_arg1:Point=null){
dest = new Point();
super();
if (_arg1 != null){
dest = _arg1;
};
}
public function _-3i(_arg1:_-Li, _arg2:Number, _arg3:Number):void{
var _local4:Number = Math.atan2((dest.y - _arg1.y), (dest.x - _arg1.x));
if (_local4 < 0){
_local4 = (_local4 + (2 * Math.PI));
};
if (_arg1.params.angle < 0){
_arg1.params.angle = (_arg1.params.angle + (2 * Math.PI));
};
if (_arg1.params.angle > (2 * Math.PI)){
_arg1.params.angle = (_arg1.params.angle - (2 * Math.PI));
};
var _local5:Number = (_arg1.params.angle - _local4);
if ((((((_local5 > 0)) && ((_local5 <= Math.PI)))) || ((_local5 < -(Math.PI))))){
_arg1.params.angle = (_arg1.params.angle - Math.min(0.1, Math.abs(_local5)));
} else {
if ((((((_local5 >= -(Math.PI))) && ((_local5 < 0)))) || ((_local5 > Math.PI)))){
_arg1.params.angle = (_arg1.params.angle + Math.min(0.1, Math.abs(_local5)));
};
};
}
public function _-7B(_arg1:Array):void{
if ((_arg1[0] is Point)){
dest = (_arg1[0] as Point);
} else {
dest.x = (_arg1[0] as Number);
dest.y = (_arg1[1] as Number);
};
}
}
}//package _-II
Section 65
//_-Re (_-JY._-Re)
package _-JY {
import flash.display.*;
import flash.events.*;
import _-II.*;
import _-8H.*;
import flash.utils.*;
public final class _-Re {
protected var timer:Timer;
protected var _-Fa:Number;
protected var _-OD:Array;
protected var particles:Array;
public var _-QB:Boolean;// = false
public var root:DisplayObjectContainer;
public static const _-PO:Number = 30;
protected static var _-9t:_-Re;
public function _-Re(){
_-OD = [];
particles = [];
super();
if (_-9t != null){
throw (new Error("only one engine allowed"));
};
timer = new Timer(_-PO);
timer.addEventListener(TimerEvent.TIMER, onTime);
timer.start();
_-Fa = new Date().time;
}
public function _-No(_arg1:_-0q):void{
_-OD.push(_arg1);
}
public function _-Fq(_arg1:_-Li):void{
_arg1.visible = false;
particles.push(_arg1);
}
public function removeParticle(_arg1:_-Li):void{
particles.splice(particles.indexOf(_arg1), 1);
if ((_arg1 is _-CM)){
(_arg1 as _-CM).factory.recycle(_arg1);
} else {
_arg1.remove();
};
}
protected function onTime(_arg1:TimerEvent):void{
var _local3:_-Li;
var _local4:_-9p;
var _local2:Date = new Date();
for each (_local3 in particles) {
_local3.visible = true;
for each (_local4 in _local3.rules) {
_local4._-3i(_local3, _local2.time, _-Fa);
};
};
_-Fa = _local2.time;
if (_-QB){
_arg1.updateAfterEvent();
};
}
public function stopAndRemoveAllParticles():void{
var _local1:_-Li;
for each (_local1 in particles) {
_local1.remove();
};
particles = [];
}
public static function get _-LK():_-Re{
if (_-9t == null){
_-9t = new (_-Re);
};
return (_-9t);
}
}
}//package _-JY
Section 66
//_-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 67
//_-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 68
//_-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 69
//_-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 70
//_-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 71
//_-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 72
//BackToMenuButton (_-M9.BackToMenuButton)
package _-M9 {
import flash.display.*;
public dynamic class BackToMenuButton extends MovieClip {
}
}//package _-M9
Section 73
//MoreGamesButton (_-M9.MoreGamesButton)
package _-M9 {
import flash.display.*;
public dynamic class MoreGamesButton extends MovieClip {
}
}//package _-M9
Section 74
//ReplayButton (_-M9.ReplayButton)
package _-M9 {
import flash.display.*;
public dynamic class ReplayButton extends MovieClip {
}
}//package _-M9
Section 75
//ShareScoreButton (_-M9.ShareScoreButton)
package _-M9 {
import flash.display.*;
public dynamic class ShareScoreButton extends MovieClip {
}
}//package _-M9
Section 76
//SubmitScoreButton (_-M9.SubmitScoreButton)
package _-M9 {
import flash.display.*;
public dynamic class SubmitScoreButton extends MovieClip {
}
}//package _-M9
Section 77
//SubmitToFacebookButton (_-M9.SubmitToFacebookButton)
package _-M9 {
import flash.display.*;
public dynamic class SubmitToFacebookButton extends MovieClip {
}
}//package _-M9
Section 78
//_-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 79
//_-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 80
//_-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 81
//_-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 82
//_-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 83
//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 84
//_-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 85
//_-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 86
//_-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 87
//_-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 88
//_-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 89
//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 90
//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 91
//_-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 92
//_-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 93
//_-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 94
//_-BJ (com.novelgames.flashgames.common._-BJ)
package com.novelgames.flashgames.common {
public dynamic class _-BJ extends _-Pv {
}
}//package com.novelgames.flashgames.common
Section 95
//_-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 96
//_-Ef (com.novelgames.flashgames.common._-Ef)
package com.novelgames.flashgames.common {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
import flash.net.*;
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 97
//_-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 98
//_-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 99
//_-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 100
//_-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 101
//_-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 102
//_-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 103
//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 104
//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 105
//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 106
//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 107
//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 108
//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 109
//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 110
//_-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 111
//_-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 112
//_-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 113
//_-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 114
//_-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 115
//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 116
//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(63, 621)) + _-CJ._-4M.gameKey));
}
}
}//package gos.obyoAPI.serviceAPIImpl.services
Section 117
//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(64, 622));
}
}
}//package gos.obyoAPI.serviceAPIImpl.services
Section 118
//_-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 119
//_-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 120
//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 121
//_-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(63, 621));
}
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 122
//_-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 123
//_-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 124
//_-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 125
//_-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 126
//_-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 127
//_-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 128
//_-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 129
//_-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 130
//_-Bv (gos.serviceAPI._-Bv)
package gos.serviceAPI {
public interface _-Bv {
}
}//package gos.serviceAPI
Section 131
//_-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 132
//_-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 133
//_-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 134
//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 135
//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 136
//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 137
//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 138
//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 139
//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