Section 1
//Ball (Balls.Ball)
package Balls {
import flash.display.*;
class Ball extends MovieClip {
public var vx:Number;
public var vy:Number;
function Ball(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number=0){
this.x = _arg1;
this.y = _arg2;
this.scaleX = _arg3;
this.scaleY = _arg4;
this.vx = _arg6;
this.vy = _arg5;
}
}
}//package Balls
Section 2
//BallCreator (Balls.BallCreator)
package Balls {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import Splash.*;
import flash.filters.*;
public class BallCreator {
public var destroyedArr:Array;
private var bonuses:Array;
private var target:Main;
private var
:uint;
private var bonusRate:Number;
private var :int;
public var puzzleBalls:Array;
private var
:uint;
private var
:uint;
public var isGemsJoining:Boolean;
public var timeChangesArr:Array;
public var
:Lightning;
private var
:uint;
public var maxColor:int;
public var colorChangesArr:Array;
private var blackRate:Number;
public function BallCreator(_arg1:Main){
= BoardVars.ALL_ROWS;
= BoardVars.COLUMNS;
= BoardVars.START_X;
= BoardVars.START_Y;
super();
this.target = _arg1;
bonuses = _arg1.getBonuses();
}
private function (_arg1:String):Array{
var _local2:Array;
_local2 = (_arg1, true);
return (_local2);
}
private function (_arg1:ColorBall):void{
_arg1.filters = [new GlowFilter(0xFFFFFF, 0.6, 7, 7, 2, 1)];
}
public function throwBall(_arg1:Number, _arg2:Number, _arg3:int):Object{
var _local4:Object;
_local4 = {};
target.getCannon().cannon2.gotoAndPlay(2);
if (Main.currentBonus == 0){
_local4.type = 0;
_local4.ref =
(_arg3, _arg1, _arg2, BoardVars.BALL_SCALE_X, BoardVars.BALL_SCALE_Y, -40, 0);
();
} else {
if (Main.currentBonus == 1){
Main.currentBonus = 0;
target.getCannon().cannon2.bonusIndicator.gotoAndStop(1);
_local4.type = 1;
var _local5 = Main.bonusesUsed;
var _local6:int;
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
} else {
if (Main.currentBonus == 2){
Main.currentBonus = 0;
_local4.type = 2;
_local4.ref =
(BoardVars.BOMB_COLOR, _arg1, _arg2, BoardVars.BALL_SCALE_X, BoardVars.BALL_SCALE_Y, -40, 0);
_local5 = Main.bonusesUsed;
_local6 = 1;
_local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
();
} else {
if (Main.currentBonus == 3){
Main.currentBonus = 0;
target.getCannon().cannon2.bonusIndicator.gotoAndStop(1);
_local4.type = 3;
_local4.ref =
(_arg3, _arg1, _arg2, BoardVars.BALL_SCALE_X, BoardVars.BALL_SCALE_Y, -40, 0);
_local5 = Main.bonusesUsed;
_local6 = 2;
_local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
_local4.ref.fireBall.gotoAndStop((_arg3 + 1));
();
} else {
if (Main.currentBonus == 4){
Main.currentBonus = 0;
target.getCannon().cannon2.bonusIndicator.gotoAndStop(1);
_local4.type = 4;
_local4.ref =
(_arg3, _arg1, _arg2, BoardVars.BALL_SCALE_X, BoardVars.BALL_SCALE_Y, -40, 0);
_local5 = Main.bonusesUsed;
_local6 = 3;
_local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
();
};
};
};
};
};
return (_local4);
}
private function (_arg1:String, _arg2:Boolean=false):Array{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:Array;
var _local7:Array;
var _local8:uint;
var _local9:int;
var _local10:String;
var _local11:*;
var _local12:Number;
var _local13:uint;
var _local14:Number;
var _local15:Number;
var _local16:Bonus;
_local3 = _arg1.length;
_local4 = 0;
_local5 = 0;
_local6 = [];
_local8 = 0;
if (!_arg2){
_local7 = ();
} else {
_local7 = [[]];
};
_local9 = 0;
while (_local9 < _local3) {
_local10 = _arg1.charAt(_local9);
if (_local10 == ";"){
if (_local6[0]){
if (!_arg2){
_local11 = _local7[_local5][_local4].pos.x;
_local12 = _local7[_local5][_local4].pos.y;
} else {
_local11 = BoardVars.PUZZLE_POINTS[_local8];
_local12 = BoardVars.PUZZLE_POINTS[(_local8 + 1)];
_local8 = (_local8 + 2);
_local7[_local5][_local4] = {};
};
if (_local6[0] != "r"){
_local13 = _local6[0];
_local7[_local5][_local4].ref =
(_local13, _local11, _local12, BoardVars.BALL_SCALE_X, BoardVars.BALL_SCALE_Y, 0);
if (_local6[1]){
if (target.typeLevel == "puzzle"){
_local7[_local5][_local4].bonusType = _local6[1];
};
if (_local6[2]){
Main.bonusesArr[(_local6[1] - 1)] = _local6[2];
} else {
Main.bonusesArr[(_local6[1] - 1)] = 1;
};
_local14 = ((Math.random() * 2) * Math.PI);
_local15 = (Math.sin(_local14) * 0.5);
_local16 = new Bonus(_local6[1], 0, 0, 1, 1, -5, _local15);
_local7[_local5][_local4].ref.addChild(_local16);
_local7[_local5][_local4].ref.bonus = _local16;
};
} else {
_local7[_local5][_local4].ref = addRandomBall(maxColor, _local11, _local12, BoardVars.BALL_SCALE_X, BoardVars.BALL_SCALE_Y, 0);
};
_local7[_local5][_local4].ref.setPositionVars(_local4, _local5);
};
_local4++;
_local6.splice(0, _local6.length);
} else {
if (_local10 == "-"){
_local5++;
_local4 = 0;
} else {
_local6.push(_local10);
};
};
_local9++;
};
return (_local7);
}
public function cancelOtherBonus():void{
if (target.getCannon().cannon2.colorBall.colorIndicator.currentFrame == 6){
target.getCannon().cannon2.colorBall.colorIndicator.gotoAndStop(target.getRandomColor());
};
if (target.getCannon().cannon2.bonusIndicator.currentFrame > 0){
target.getCannon().cannon2.bonusIndicator.gotoAndStop(1);
};
}
public function throwCoin(_arg1:Number, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
var _local5:Coin;
_local3 = ((Math.random() * 2) * Math.PI);
_local4 = (Math.sin(_local3) * 0.5);
_local5 = new Coin(_arg1, _arg2, _local4, -3);
_local5.type = 6;
target.addChild(_local5);
bonuses.push(_local5);
}
private function (){
new Splash(target.getCannon(), smog, 0, 0, 1.2, 1, 12, 0.05, 4, 0.044, 1, 100);
}
public function removePuzzleBall():void{
if (puzzleBalls[0][1]){
puzzleBalls[0][1].ref.filters = [new GlowFilter(0xFFCC00, 1, 8, 8, 4)];
};
target.theGame.removeChild(puzzleBalls[0][0].ref);
puzzleBalls[0].splice(0, 1);
}
private function (_arg1:uint):void{
target.getCannon().cannon2.bonusIndicator.typeBonus.gotoAndStop(Main.bonusesArr[(_arg1 - 1)]);
}
public function removeLightning():void{
.remove();
= null;
}
public function ():void{
var _local1:Array;
var _local2:int;
var _local3:*;
_local1 = [];
_local2 = 1;
while (_local2 <= 100) {
_local1.push(_local2);
_local2++;
};
_local2 = 1;
while (_local2 <= bonusRate) {
_local3 = getRandomInteger(_local1.length);
Main.bonusesBalls.push(_local1[_local3]);
_local1.splice(_local3, 1);
_local2++;
};
}
public function createLightning(_arg1:Sprite, _arg2:Array):void{
= new Lightning(target, _arg1, _arg2);
}
public function setCurrentBonus(_arg1:uint):void{
if (_arg1 == 2){
target.getCannon().cannon2.colorBall.colorIndicator.gotoAndStop(6);
} else {
if (_arg1 == 3){
target.getCannon().cannon2.bonusIndicator.gotoAndStop(4);
} else {
if (_arg1 == 1){
target.getCannon().cannon2.bonusIndicator.gotoAndStop(2);
target.getCannon().cannon2.bonusIndicator.addFrameScript(1, Delegate.create(, 1));
} else {
if (_arg1 == 4){
target.getCannon().cannon2.bonusIndicator.gotoAndStop(5);
target.getCannon().cannon2.bonusIndicator.addFrameScript(4, Delegate.create(, 4));
};
};
};
};
}
private function
(_arg1:uint, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number=0):ColorBall{
var _local8:ColorBall;
_local8 = new ColorBall(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
_local8.cacheAsBitmap = true;
_local8.filters = [new GlowFilter(0, 0.5, 6, 6, 0.5)];
target.theGame.addChild(_local8);
return (_local8);
}
public function getRandomInteger(_arg1):int{
return ((Math.floor((Math.random() * _arg1)) + 1));
}
public function generateLightnings(_arg1:Event):void{
.generateThunders();
}
public function createPuzzleLevel(_arg1:String, _arg2:String):Array{
puzzleBalls = (_arg2);
return ((_arg1));
}
public function throwBonus(_arg1:Bonus, _arg2:Number, _arg3:Number){
_arg1.filters = [new GlowFilter(16777164, 1, 8, 8, 2.1)];
_arg1.x = _arg2;
_arg1.y = _arg3;
bonuses.push(_arg1);
target.addChild(_arg1);
}
public function clearLevelProperties():void{
colorChangesArr = null;
timeChangesArr = null;
isGemsJoining = false;
puzzleBalls = null;
maxColor = 0;
bonusRate = 0;
blackRate = 0;
= 0;
Main.bonusesBalls = [];
}
public function addRandomBall(_arg1:uint, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false):ColorBall{
var _local8:uint;
var _local9:ColorBall;
var _local10:int;
var _local11:uint;
var _local12:Bonus;
var _local13:Number;
var _local14:Number;
if (((isGemsJoining) && (_arg7))){
_local8 = BoardVars.GEM_COLOR;
} else {
if ((((Math.random() < blackRate)) && (!(_arg7)))){
_local8 = BoardVars.SPECIAL_COLOR;
} else {
_local8 = (Math.floor((Math.random() * _arg1)) + 1);
};
};
_local9 = new ColorBall(_local8, _arg2, _arg3, _arg4, _arg5, _arg6, 0);
_local9.cacheAsBitmap = true;
++;
_local10 = Main.bonusesBalls.indexOf();
if ((((((_local10 >= 0)) && (!(_arg7)))) && (!((_local8 == BoardVars.SPECIAL_COLOR))))){
Main.bonusesBalls.splice(_local10, 1);
_local11 = ();
_local13 = ((Math.random() * 2) * Math.PI);
_local14 = (Math.sin(_local13) * 0.5);
_local12 = new Bonus(_local11, 0, 0, _arg4, _arg5, -5, _local14);
_local12.cacheAsBitmap = true;
(_local9);
_local9.bonusRing.gotoAndPlay(2);
_local9.addChild(_local12);
_local9.bonus = _local12;
} else {
if (_arg7){
if (_local10 >= 0){
var _local15 = Main.bonusesBalls;
var _local16 = _local10;
var _local17 = (_local15[_local16] + 1);
_local15[_local16] = _local17;
};
_local12 = new Bonus(5, 0, 0, _arg4, _arg5, 0, 0, target.getLevel());
(_local9);
_local9.gemRing.gotoAndPlay(2);
_local9.addChild(_local12);
_local9.bonus = _local12;
} else {
if (_local10 >= 0){
_local15 = Main.bonusesBalls;
_local16 = _local10;
_local17 = (_local15[_local16] + 1);
_local15[_local16] = _local17;
};
_local9.filters = [new GlowFilter(0, 0.5, 6, 6, 0.5)];
};
};
if ( == 100){
= 0;
();
};
target.theGame.addChild(_local9);
return (_local9);
}
private function ():uint{
var _local1:Array;
var _local2:*;
var _local3:uint;
_local1 = [];
for (_local2 in Main.bonusesArr) {
if (((Main.bonusesArr[_local2]) && ((_local2 <= 3)))){
_local1.push((_local2 + 1));
};
};
_local3 = (Math.floor((Math.random() * _local1.length)) + 1);
return (_local1[(_local3 - 1)]);
}
public function createLevel(_arg1:String, _arg2:uint, _arg3:Number, _arg4:Number, _arg5:Array, _arg6:Array=null, _arg7:Array=null, _arg8:Boolean=false):Array{
var _local9:*;
this.isGemsJoining = _arg8;
this.bonusRate = _arg3;
();
if (_arg5){
this.destroyedArr = [];
for (_local9 in _arg5) {
this.destroyedArr[_local9] = _arg5[_local9];
};
};
if (_arg2){
this.maxColor = _arg2;
};
if (_arg7){
timeChangesArr = [];
for (_local9 in _arg7) {
timeChangesArr[_local9] = _arg7[_local9];
};
};
if (_arg6){
colorChangesArr = [];
for (_local9 in _arg6) {
colorChangesArr[_local9] = _arg6[_local9];
};
};
= 0;
this.blackRate = _arg4;
return ((_arg1));
}
private function ():Array{
var _local1:Array;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:*;
var _local6:*;
_local1 = [];
_local4 = (BoardVars.BALL_H + BoardVars.BALL_DISTANCE_Y);
_local5 = 0;
while (_local5 <
) {
_local1.push([]);
_local6 = 0;
while (_local6 <=
) {
_local2 = (BoardVars.START_X + (_local6 * _local4));
_local3 = (BoardVars.START_Y + (_local5 * _local4));
_local1[_local5].push([]);
_local1[_local5][_local6] = {};
_local1[_local5][_local6].pos = new Point(_local2, _local3);
_local6++;
};
_local5++;
};
return (_local1);
}
private function (_arg1:ColorBall):void{
_arg1.filters = [new GlowFilter(15793919, 0.6, 7, 7, 2, 1)];
}
public function removeAllPuzzleBalls():void{
var _local1:*;
if (puzzleBalls){
for (_local1 in puzzleBalls[0]) {
target.theGame.removeChild(puzzleBalls[0][_local1].ref);
};
puzzleBalls[0].splice(0);
};
}
}
}//package Balls
Section 3
//Bonus (Balls.Bonus)
package Balls {
import flash.display.*;
import flash.geom.*;
public class Bonus extends Ball {
public var typeBonus:MovieClip;
public var gemInLevel:MovieClip;
public var target:Point;
public var type:uint;
private var level:uint;
public function Bonus(_arg1:uint, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number=0, _arg8:uint=0){
super(_arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
this.type = _arg1;
this.level = _arg8;
gotoAndStop(_arg1);
if ((((Main.bonusesArr[(_arg1 - 1)] > 1)) && ((_arg1 < 5)))){
addFrameScript((_arg1 - 1), );
};
if (_arg8){
addFrameScript((_arg1 - 1), );
};
}
private function ():void{
addFrameScript((type - 1), null);
this.typeBonus.gotoAndStop(Main.bonusesArr[(type - 1)]);
}
private function ():void{
addFrameScript((type - 1), null);
this.gemInLevel.gotoAndStop(level);
}
}
}//package Balls
Section 4
//Coin (Balls.Coin)
package Balls {
import flash.display.*;
public class Coin extends MovieClip {
public var type:uint;
public var vx:Number;
public var vy:Number;
public function Coin(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
this.x = _arg1;
this.y = _arg2;
this.vx = _arg3;
this.vy = _arg4;
}
}
}//package Balls
Section 5
//ColorBall (Balls.ColorBall)
package Balls {
import flash.display.*;
public class ColorBall extends Ball {
public var coordY:uint;
public var coordX:uint;
public var
:int;
public var gemRing:MovieClip;
public var bonus:Bonus;
public var color:uint;
public var fireBall:MovieClip;
public var
:int;
public var bonusRing:MovieClip;
public function ColorBall(_arg1:uint, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number=0){
super(_arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
this.color = _arg1;
this.gotoAndStop(_arg1);
}
public function setPositionVars(_arg1:uint, _arg2:uint):void{
this.coordX = _arg1;
this.coordY = _arg2;
}
public function changeColor(_arg1:uint):void{
this.color = _arg1;
this.gotoAndStop(_arg1);
}
}
}//package Balls
Section 6
//Cannon (Cannon.Cannon)
package Cannon {
import flash.display.*;
public dynamic class Cannon extends MovieClip {
public var area1:MovieClip;
public var area2:MovieClip;
public var effectCollect:MovieClip;
public var wheels:MovieClip;
public var cannon2:MovieClip;
}
}//package Cannon
Section 7
//CannonLv1 (Cannon.CannonLv1)
package Cannon {
import flash.display.*;
public dynamic class CannonLv1 extends MovieClip {
public var area1:MovieClip;
public var area2:MovieClip;
public var effectCollect:MovieClip;
public var wheels:MovieClip;
public var colorIndicator2:MovieClip;
public var cannon2:MovieClip;
}
}//package Cannon
Section 8
//CannonLv2 (Cannon.CannonLv2)
package Cannon {
import flash.display.*;
public dynamic class CannonLv2 extends MovieClip {
public var area1:MovieClip;
public var area2:MovieClip;
public var effectCollect:MovieClip;
public var wheels:MovieClip;
public var colorIndicator2:MovieClip;
public var cannon2:MovieClip;
}
}//package Cannon
Section 9
//CannonLv3 (Cannon.CannonLv3)
package Cannon {
import flash.display.*;
public dynamic class CannonLv3 extends MovieClip {
public var area1:MovieClip;
public var area2:MovieClip;
public var effectCollect:MovieClip;
public var wheels:MovieClip;
public var colorIndicator2:MovieClip;
public var cannon2:MovieClip;
}
}//package Cannon
Section 10
//Main2 (com.midasplayer.particle.Main2)
package com.midasplayer.particle {
import flash.display.*;
import flash.events.*;
public class Main2 extends Sprite {
private var
:Number;// = 0.01
private var
:Number;// = 0.02
private var ;
private var :Number;// = -1
private var :Number;// = 12
private var :Number;// = 1
private var :Number;// = 29
private var :Array;
private var :int;// = 20
private var
:Number;// = -1
private var :Number;// = 1
public function Main2(){
= 20;
= -1;
= 1;
= -1;
= 1;
= 12;
= 29;
= 0.01;
= 0.02;
= new Array();
super();
addEventListener(Event.ENTER_FRAME, );
}
public function setEmitterClip(_arg1):void{
= _arg1;
}
private function
(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
private function (_arg1:Event){
();
}
public function kill():void{
var _local1:Number;
removeEventListener(Event.ENTER_FRAME, );
_local1 = 0;
while (_local1 < .length) {
[_local1].destroy();
_local1++;
};
}
private function ():void{
var _local1:*;
var _local2:Number;
_local1 = new Particle(spark, , -10, -7, stage.stageWidth, stage.stageHeight);
_local1.setVel(
(, ),
(
, ));
_local1.setSize(
(, ));
.push(_local1);
while (.length > ) {
_local1 = .shift();
_local1.destroy();
};
_local2 = 0;
while (_local2 < .length) {
[_local2].update();
_local2++;
};
}
}
}//package com.midasplayer.particle
Section 11
//Particle (com.midasplayer.particle.Particle)
package com.midasplayer.particle {
import flash.display.*;
import flash.geom.*;
public class Particle {
private var :Number;
private var :Number;
private var :Number;
private var :Number;// = 0
private var
:DisplayObject;
private var :Number;
public function Particle(_arg1:Class, _arg2:DisplayObjectContainer, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number){
= 0;
super();
= _arg5;
= _arg6;
= new (_arg1);
_arg2.addChild(
);
.x = _arg3;
.y = _arg4;
}
public function update(){
.x = (
.x + );
.y = (
.y + );
.alpha = (
.alpha - );
}
public function setSize(_arg1:Number){
.width = _arg1;
.height = _arg1;
}
public function (_arg1:Number){
var _local2:ColorTransform;
_local2 = new ColorTransform();
_local2.color = _arg1;
.transform.colorTransform = _local2;
}
public function (_arg1:Number):void{
= _arg1;
}
public function destroy():void{
.parent.removeChild(
);
= null;
}
public function setVel(_arg1:Number, _arg2:Number){
= _arg1;
= _arg2;
}
}
}//package com.midasplayer.particle
Section 12
//DragonLoader (com.midasplayer.DragonLoader)
package com.midasplayer {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import fl.transitions.easing.*;
import fl.transitions.*;
public class DragonLoader extends MovieClip {
public var fireLogoHolder:MovieClip;
public var mcPlayBtn:MovieClip;
private var :MovieClip;
public var :MovieClip;
private var
:Tween;
private var
:Sprite;
private var :Tween;
public var bannedSign:MovieClip;
public var :MovieClip;
private var :int;
private var :Tween;
private var :Sound;
private var :MovieClip;
public var :MovieClip;
public static var LAUNCH_GAME:String = "launchGame";
public function DragonLoader(){
this.x = (this.y = 0);
= bannedSign;
.bg.width = stage.stageWidth;
.bg.height = stage.stageHeight;
.alpha = 0;
.addEventListener(MouseEvent.CLICK, );
.buttonMode = true;
= fireLogoHolder;
.x = ((.bg.width - .width) - 90);
.y = (((.bg.height / 2) - (.height / 2)) - 60);
.visible = false;
.stop();
= new mcDragon();
.x = (.bg.width - .width);
.y = ((.bg.height / 2) - (.height / 2));
.stop();
= mcPlayBtn;
.buttonMode = true;
.alpha = 0;
= new sfxBell();
}
public function destroy():void{
var _local1:Sprite;
.removeEventListener(MouseEvent.ROLL_OVER, );
.removeEventListener(MouseEvent.ROLL_OUT, );
.removeEventListener(MouseEvent.MOUSE_DOWN, );
.removeEventListener(MouseEvent.MOUSE_UP, launchGame);
if ( != null){
.removeEventListener(TweenEvent.MOTION_FINISH, );
= null;
};
_local1 = (this.parent.getChildByName("clickBg") as Sprite);
this.parent.removeChild(_local1);
this.parent.removeChild(this);
}
public function (_arg1:MouseEvent):void{
KingAPI.openLoaderMovieLink();
}
public function ():void{
this.addChild();
this.setChildIndex(, 0);
.addEventListener(Event.ENTER_FRAME, );
.play();
}
public function init(_arg1:String, _arg2:String=""):void{
if (_arg2 != ""){
MochiBot.track(this, _arg2);
};
= root.stage.frameRate;
root.stage.frameRate = 30;
if (KingAPI.banned){
();
} else {
if (KingAPI.isHome){
launchGame(null);
} else {
();
};
};
}
private function (_arg1:MouseEvent):void{
.gotoAndStop("down");
}
public function (_arg1:Event):void{
if (.currentFrame == 80){
.visible = true;
.play();
= new Tween(, "x", Regular.easeOut, .x, (((stage.width / 2) - (.width / 2)) - 51), 1, true);
.addEventListener(TweenEvent.MOTION_FINISH, );
};
if (.currentFrame == .totalFrames){
.removeEventListener(Event.ENTER_FRAME, );
.stop();
.x = ((stage.width / 2) - ( .width / 2));
.y = (.y + 210);
.addEventListener(MouseEvent.ROLL_OVER, );
.addEventListener(MouseEvent.ROLL_OUT, );
.addEventListener(MouseEvent.MOUSE_DOWN, );
.addEventListener(MouseEvent.MOUSE_UP, launchGame);
};
}
private function (_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = (.x - .width);
_local3 = ((.x + .width) - 80);
= new Tween(, "x", None.easeNone, _local2, _local3, 0.5, true);
.addEventListener(TweenEvent.MOTION_FINISH, );
.play();
}
public function launchGame(_arg1:Event):void{
root.stage.frameRate = ;
trace(LAUNCH_GAME);
this.dispatchEvent(new Event(LAUNCH_GAME));
}
private function (_arg1:MouseEvent):void{
.gotoAndStop("over");
}
private function (_arg1:Event):void{
if (.currentFrame == .totalFrames){
.removeEventListener(Event.ENTER_FRAME, );
= new Tween( , "alpha", None.easeNone, 0, 1, 0.5, true);
= new mcGlimmer();
.x = (.x - .width);
.y = (.y + 112);
this.addChild();
setTimeout(, 1000, null);
};
}
private function (_arg1:MouseEvent):void{
.gotoAndStop("idle");
}
private function (_arg1:Event):void{
.removeEventListener(TweenEvent.MOTION_FINISH, );
this.removeChild();
}
private function (_arg1:Event):void{
.addEventListener(Event.ENTER_FRAME, );
}
public function
():void{
.alpha = 1;
}
}
}//package com.midasplayer
Section 13
//KingAPI (com.midasplayer.KingAPI)
package com.midasplayer {
import flash.events.*;
import flash.net.*;
import flash.external.*;
public class KingAPI {
public static const LINK_TYPE_RIGHT_CLICK:String = "rightclick";
public static const USER_TYPE_SUBSCRIPTION:int = 3;
public static const LINK_TYPE_HIGHSCORES:String = "highscores";
public static const LINK_TYPE_SIGN:String = "sign";
public static const INITIALIZED_EVENT:String = "initialized";
public static const LINK_TYPE_OTHER_GAMES:String = "other_games";
public static const USER_TYPE_REGISTERED:int = 1;
private static const SAK:String = "ggfd7sday923mdsfd8csfds34";
private static const loadHomeParametersURL:String = "http://www.king.com/servlet/FreeGameServlet?action=load";
public static const LINK_TYPE_LOADER_MOVIE:String = "loader_movie";
private static const bounceURL:String = "http://www.mygame.com/king/bounce.jsp";
public static const LINK_TYPE_PROTECT:String = "protect";
public static const LINK_TYPE_ADD_GAME:String = "add_game";
public static const USER_TYPE_GOLD:int = 2;
public static const USER_TYPE_UNREGISTERED:int = 0;
public static const HOST_BANNED_EVENT:String = "hostBanned";
private static const SK:String = "vf78hxcsjak77cxzhjkwad87s";
private static const loadCountURL:String = "http://www.mygame.com/king/loadcount.jsp";
public static const LINK_TYPE_LOADER_PROGRESS:String = "loader_progress";
private static var check:String = null;
public static var gameName:String;
public static var banned:Boolean = false;
protected static var dispatcher:EventDispatcher;
public static var isHome:Boolean = false;
private static var sessionID:String;
private static var iscore:int = 123;
public static var fromURL:String;
private static var SSK:String = "ng43ui54hy35tdsnd6f54rews";
private static function loadUrlErrorHandler(_arg1:Event):void{
trace(("Unable to load url: " + _arg1));
}
public static function resetScore():void{
iscore = 123;
check = null;
}
public static function openOfflineProtectionLink():void{
(LINK_TYPE_PROTECT);
}
public static function init(_arg1:String, _arg2:String):void{
var loadCounter:URLLoader;
var reqvars:URLVariables;
var request:URLRequest;
var so:SharedObject;
var rnd1:Number;
var rnd2:Number;
var name = _arg1;
var from = _arg2;
gameName = name;
fromURL = from;
loadCounter = new URLLoader();
reqvars = new URLVariables();
reqvars.game = gameName;
reqvars.from = fromURL;
try {
so = SharedObject.getLocal("sessionId");
if (so.data.sessionID == null){
rnd1 = Math.abs(Math.floor((Math.random() * 4294967295)));
rnd2 = Math.abs(Math.floor((Math.random() * 4294967295)));
so.data.sessionID = (rnd1.toString(16) + rnd2.toString(16));
so.flush();
};
sessionID = so.data.sessionID;
} catch(e:Error) {
sessionID = "error";
};
reqvars.session = sessionID;
request = new URLRequest(((loadCountURL + "?") + reqvars.toString()));
loadCounter.addEventListener(Event.COMPLETE, loadCountHandler);
loadCounter.addEventListener(IOErrorEvent.IO_ERROR, loadUrlErrorHandler);
loadCounter.addEventListener(SecurityErrorEvent.SECURITY_ERROR, loadUrlErrorHandler);
try {
loadCounter.load(request);
} catch(error:Error) {
trace(("Unable to load loadcount url: " + loadCountURL));
trace(error.message);
};
}
private static function loadHomeParametersHandler(_arg1:Event):void{
var _local2:URLLoader;
_local2 = URLLoader(_arg1.target);
trace(("loadCounter.data" + _local2.data));
}
public static function submitInternalScore():void{
var _local1:int;
checkScore();
_local1 = ((iscore - 123) / 2);
submitScore(_local1);
}
public static function openOtherGamesLink():void{
(LINK_TYPE_OTHER_GAMES);
}
public static function (_arg1:String, _arg2:String=null):void{
var _local3:URLVariables;
var _local4:String;
_local3 = new URLVariables();
_local3.game = gameName;
_local3.from = fromURL;
_local3.type = _arg1;
_local3.session = sessionID;
if (_arg2 != null){
_local3.redirect = _arg2;
};
_local4 = "_blank";
if (isHome){
_local4 = "_top";
};
navigateToURL(new URLRequest(((bounceURL + "?") + _local3.toString())), _local4);
}
private static function loadCountHandler(_arg1:Event):void{
var loadCounter:URLLoader;
var vars:URLVariables;
var event = _arg1;
loadCounter = URLLoader(event.target);
trace(("loadCounter.data :" + loadCounter.data));
try {
vars = new URLVariables(loadCounter.data);
if (vars.h == "true"){
isHome = true;
};
if (vars.b == "true"){
banned = true;
dispatcher.dispatchEvent(new Event(HOST_BANNED_EVENT));
} else {
dispatcher.dispatchEvent(new Event(INITIALIZED_EVENT));
};
trace((("::" + vars.h) + "::"));
trace((("::" + vars.b) + "::"));
} catch(e:Error) {
trace(("Error reading data from loadcount url: " + e));
};
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
if (dispatcher == null){
dispatcher = new EventDispatcher();
};
dispatcher.addEventListener(_arg1, _arg2);
}
public static function openLoaderMovieLink():void{
(LINK_TYPE_LOADER_MOVIE);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
if (dispatcher == null){
return;
};
dispatcher.removeEventListener(_arg1, _arg2);
}
public static function submitScore(_arg1:int):void{
var hash:String;
var score = _arg1;
hash = md5.encrypt(((((score + ":") + gameName) + ":") + SSK));
try {
if (isHome){
ExternalInterface.call("submitScore", score, hash);
} else {
(LINK_TYPE_HIGHSCORES, ((((("game/" + gameName) + "/submit/") + score) + ":") + hash));
};
} catch(e:Error) {
trace(e);
};
}
public static function submitLevel(_arg1:int):void{
var hash:String;
var level = _arg1;
hash = md5.encrypt(((((level + ":") + gameName) + ":") + SSK));
try {
if (isHome){
ExternalInterface.call("submitLevel", level, hash);
};
} catch(e:Error) {
trace(e);
};
}
public static function openHighscoresLink():void{
(LINK_TYPE_HIGHSCORES, (("game/" + gameName) + "/highscores"));
}
public static function openSignLink():void{
if (!isHome){
(LINK_TYPE_SIGN);
};
}
public static function openRightClickLink():void{
(LINK_TYPE_RIGHT_CLICK);
}
private static function checkScore():void{
if (check != null){
if (check != md5.encrypt(((((iscore + ":") + gameName) + ":") + SK))){
SSK = "ng41ui54hy35tdsnd6f54rews";
};
};
}
public static function addScore(_arg1:int):int{
var _local2:int;
checkScore();
_local2 = ((iscore - 123) / 2);
_local2 = (_local2 + _arg1);
iscore = ((_local2 * 2) + 123);
check = md5.encrypt(((((iscore + ":") + gameName) + ":") + SK));
return (_local2);
}
public static function openLoaderProgressLink():void{
(LINK_TYPE_LOADER_PROGRESS);
}
public static function openAddToWebsiteLink():void{
(LINK_TYPE_ADD_GAME, "website_content.jsp");
}
public static function submitAchievement(_arg1:String):void{
var hash:String;
var achievement = _arg1;
hash = md5.encrypt(((((achievement + ":") + gameName) + ":") + SAK));
try {
if (isHome){
ExternalInterface.call("submitAchievement", achievement, hash);
};
} catch(e:Error) {
trace(e);
};
}
}
}//package com.midasplayer
Section 14
//md5 (com.midasplayer.md5)
package com.midasplayer {
public class md5 {
public static const HEX_FORMAT_LOWERCASE:uint = 0;
public static const HEX_FORMAT_UPPERCASE:uint = 1;
public static const BASE64_PAD_CHARACTER_DEFAULT_COMPLIANCE:String = "";
public static const BASE64_PAD_CHARACTER_RFC_COMPLIANCE:String = "=";
public static var hexcase:uint = 0;
public static var b64pad:String = "";
public 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));
}
public static function md5_cmn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
return (safe_add(bit_rol(safe_add(safe_add(_arg2, _arg1), safe_add(_arg4, _arg6)), _arg5), _arg3));
}
public static function binl_md5(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
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;
_local3 = 1732584193;
_local4 = -271733879;
_local5 = -1732584194;
_local6 = 271733878;
_local7 = 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 = safe_add(_local3, _local8);
_local4 = safe_add(_local4, _local9);
_local5 = safe_add(_local5, _local10);
_local6 = safe_add(_local6, _local11);
_local7 = (_local7 + 16);
};
return ([_local3, _local4, _local5, _local6]);
}
public static function str2rstr_utf16le(_arg1:String):String{
var _local2:String;
var _local3:Number;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode((_arg1.charCodeAt(_local3) & 0xFF), ((_arg1.charCodeAt(_local3) >>> 8) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function hex_hmac_md5(_arg1:String, _arg2:String):String{
return (rstr2hex(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2))));
}
public static function binl2rstr(_arg1:Array):String{
var _local2:String;
var _local3:Number;
_local2 = "";
_local3 = 0;
while (_local3 < (_arg1.length * 32)) {
_local2 = (_local2 + String.fromCharCode(((_arg1[(_local3 >> 5)] >>> (_local3 % 32)) & 0xFF)));
_local3 = (_local3 + 8);
};
return (_local2);
}
public 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));
}
public 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));
}
public static function rstr2binl(_arg1:String):Array{
var _local2:Number;
var _local3:Array;
_local2 = 0;
_local3 = new Array((_arg1.length >> 2));
_local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2] = 0;
_local2++;
};
_local2 = 0;
while (_local2 < (_arg1.length * 8)) {
_local3[(_local2 >> 5)] = (_local3[(_local2 >> 5)] | ((_arg1.charCodeAt((_local2 / 8)) & 0xFF) << (_local2 % 32)));
_local2 = (_local2 + 8);
};
return (_local3);
}
public static function md5_vm_test():Boolean{
return ((hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72"));
}
public static function b64_md5(_arg1:String):String{
return (rstr2b64(rstr_md5(str2rstr_utf8(_arg1))));
}
public static function any_hmac_md5(_arg1:String, _arg2:String, _arg3:String):String{
return (rstr2any(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2)), _arg3));
}
public static function hex_md5(_arg1:String):String{
return (rstr2hex(rstr_md5(str2rstr_utf8(_arg1))));
}
public static function bit_rol(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
public static function encrypt(_arg1:String):String{
return (hex_md5(_arg1));
}
public 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));
}
public static function rstr2hex(_arg1:String):String{
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:Number;
_local2 = (hexcase) ? "0123456789ABCDEF" : "0123456789abcdef";
_local3 = "";
_local5 = 0;
while (_local5 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local5);
_local3 = (_local3 + (_local2.charAt(((_local4 >>> 4) & 15)) + _local2.charAt((_local4 & 15))));
_local5++;
};
return (_local3);
}
public static function any_md5(_arg1:String, _arg2:String):String{
return (rstr2any(rstr_md5(str2rstr_utf8(_arg1)), _arg2));
}
public static function b64_hmac_md5(_arg1:String, _arg2:String):String{
return (rstr2b64(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2))));
}
public static function rstr2b64(_arg1:String):String{
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
_local3 = "";
_local4 = _arg1.length;
_local5 = 0;
while (_local5 < _local4) {
_local6 = (((_arg1.charCodeAt(_local5) << 16) | (((_local5 + 1) < _local4)) ? (_arg1.charCodeAt((_local5 + 1)) << 8) : 0) | (((_local5 + 2) < _local4)) ? _arg1.charCodeAt((_local5 + 2)) : 0);
_local7 = 0;
while (_local7 < 4) {
if (((_local5 * 8) + (_local7 * 6)) > (_arg1.length * 8)){
_local3 = (_local3 + b64pad);
} else {
_local3 = (_local3 + _local2.charAt(((_local6 >>> (6 * (3 - _local7))) & 63)));
};
_local7++;
};
_local5 = (_local5 + 3);
};
return (_local3);
}
public static function safe_add(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
_local3 = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
_local4 = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
public static function str2rstr_utf8(_arg1:String):String{
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = "";
_local3 = -1;
while (++_local3 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local3);
_local5 = (((_local3 + 1) < _arg1.length)) ? _arg1.charCodeAt((_local3 + 1)) : 0;
if ((((((((0xD800 <= _local4)) && ((_local4 <= 56319)))) && ((0xDC00 <= _local5)))) && ((_local5 <= 57343)))){
_local4 = ((65536 + ((_local4 & 1023) << 10)) + (_local5 & 1023));
_local3++;
};
if (_local4 <= 127){
_local2 = (_local2 + String.fromCharCode(_local4));
} else {
if (_local4 <= 2047){
_local2 = (_local2 + String.fromCharCode((192 | ((_local4 >>> 6) & 31)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 0xFFFF){
_local2 = (_local2 + String.fromCharCode((224 | ((_local4 >>> 12) & 15)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 2097151){
_local2 = (_local2 + String.fromCharCode((240 | ((_local4 >>> 18) & 7)), (128 | ((_local4 >>> 12) & 63)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
};
};
};
};
};
return (_local2);
}
public static function rstr_hmac_md5(_arg1:String, _arg2:String):String{
var _local3:Array;
var _local4:Array;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = rstr2binl(_arg1);
if (_local3.length > 16){
_local3 = binl_md5(_local3, (_arg1.length * 8));
};
_local4 = new Array(16);
_local5 = new Array(16);
_local6 = 0;
while (_local6 < 16) {
_local4[_local6] = (_local3[_local6] ^ 909522486);
_local5[_local6] = (_local3[_local6] ^ 1549556828);
_local6++;
};
_local7 = binl_md5(_local4.concat(rstr2binl(_arg2)), (0x0200 + (_arg2.length * 8)));
return (binl2rstr(binl_md5(_local5.concat(_local7), (0x0200 + 128))));
}
public static function str2rstr_utf16be(_arg1:String):String{
var _local2:String;
var _local3:Number;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(((_arg1.charCodeAt(_local3) >>> 8) & 0xFF), (_arg1.charCodeAt(_local3) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function rstr2any(_arg1:String, _arg2:String):String{
var _local3:Number;
var _local4:Array;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
var _local9:Array;
var _local10:String;
_local3 = _arg2.length;
_local4 = [];
_local9 = ((_arg1.length / 2) as Array);
_local5 = 0;
while (_local5 < _local9.length) {
_local9[_local5] = ((_arg1.charCodeAt((_local5 * 2)) << 8) | _arg1.charCodeAt(((_local5 * 2) + 1)));
_local5++;
};
while (_local9.length > 0) {
_local8 = [];
_local7 = 0;
_local5 = 0;
while (_local5 < _local9.length) {
_local7 = ((_local7 << 16) + _local9[_local5]);
_local6 = Math.floor((_local7 / _local3));
_local7 = (_local7 - (_local6 * _local3));
if ((((_local8.length > 0)) || ((_local6 > 0)))){
_local8[_local8.length] = _local6;
};
_local5++;
};
_local4[_local4.length] = _local7;
_local9 = _local8;
};
_local10 = "";
_local5 = (_local4.length - 1);
while (_local5 >= 0) {
_local10 = (_local10 + _arg2.charAt(_local4[_local5]));
_local5--;
};
return (_local10);
}
public static function rstr_md5(_arg1:String):String{
return (binl2rstr(binl_md5(rstr2binl(_arg1), (_arg1.length * 8))));
}
}
}//package com.midasplayer
Section 15
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 16
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_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));
}
}
}//package fl.transitions.easing
Section 17
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeOut(_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 easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_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));
}
}
}//package fl.transitions.easing
Section 18
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var :Number;// = NAN
public var :Number;// = NAN
public var :Number;// = NAN
public var isPlaying:Boolean;// = false
public var :Number;// = NAN
private var :Number;// = NAN
private var
:Number;// = NAN
public var
:Number;// = NAN
private var
:Number;// = NAN
public var
:Boolean;// = false
private var
:uint;// = 0
public var func:Function;
private var
:Timer;// = null
private var
:Number;// = NAN
public var
:String;// = ""
private var
:Number;// = NAN
public var :Object;// = null
public var :Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
= null;
= "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
= NaN;
= NaN;
= false;
= NaN;
= NaN;
= false;
= NaN;
= NaN;
= NaN;
= NaN;
= NaN;
= 0;
= NaN;
= null;
super();
if (!arguments.length){
return;
};
this. = _arg1;
this.
= _arg2;
this. = _arg4;
this.position = _arg4;
this.duration = _arg6;
this. = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this.
= new Timer(100);
this.start();
}
public function (_arg1:Number, _arg2:Number):void{
this. = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this. ();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this.
, this. ));
}
private function ():void{
if (this.){
this.
= (getTimer() - (this.
* 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this. ();
this. = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this. + this.
));
}
public function get duration():Number{
return (this.
);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this. )){
_mc.addEventListener(Event.ENTER_FRAME, this., false, 0, true);
} else {
_local1 = (1000 / this. );
this.
.delay = _local1;
this.
.addEventListener(TimerEvent.TIMER, this.
, false, 0, true);
this.
.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this. = this.
;
if (_arg1 > this.duration){
if (this.
){
this.
((_arg1 - this.
));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this.
, this. ));
} else {
if (this.){
this.
= this.
;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this.
, this. ));
};
} else {
if (_arg1 < 0){
this.
();
this.update();
} else {
this.
= _arg1;
this.update();
};
};
}
protected function ():void{
if (isNaN(this. )){
_mc.removeEventListener(Event.ENTER_FRAME, this.);
} else {
this.
.stop();
};
this.isPlaying = false;
}
public function
(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this.
;
};
return (this.func(_arg1, this. , this.
, this.
));
}
public function set finish(_arg1:Number):void{
this.
= (_arg1 - this. );
}
public function set duration(_arg1:Number):void{
this.
= ((_arg1)<=0) ? Infinity : _arg1;
}
public function (_arg1:Number):void{
this. = this. ;
if (this.
.length){
this.[this.
] = (this. = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this.
, this. ));
}
public function
():void{
this. ();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this.
, this. ));
}
public function
():void{
this.time = this.
;
this. ();
}
protected function (_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.
(this.
));
}
public function
():void{
this. (this. , this.time);
}
public function nextFrame():void{
if (this.){
this.time = ((getTimer() - this.
) / 1000);
} else {
this.time = (this.
+ 1);
};
}
protected function
(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this. );
}
public function
(_arg1:Number=0):void{
this.
= _arg1;
this. ();
this.update();
}
public function set position(_arg1:Number):void{
this. (_arg1);
}
public function get time():Number{
return (this.
);
}
private function update():void{
this. (this.
(this.
));
}
public function start():void{
this.
();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this.
, this. ));
}
public function ():void{
if (!this.){
this.time = (this.
- 1);
};
}
}
}//package fl.transitions
Section 19
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 20
//BridgePoint (PointLevels.BridgePoint)
package PointLevels {
import flash.display.*;
public class BridgePoint extends PointLevel {
public var highlighted:MovieClip;
public var flag:MovieClip;
public var levelComplete:MovieClip;
public function BridgePoint(){
addFrameScript(0, frame1);
= true;
mouseChildren = false;
level = Number(this.name.charAt(11));
super();
}
function frame1(){
stop();
}
public function setFlag():void{
this.flagAnim = this.flag;
}
}
}//package PointLevels
Section 21
//LevelPoint (PointLevels.LevelPoint)
package PointLevels {
public class LevelPoint extends PointLevel {
public function LevelPoint(){
if (this.name.charAt(6) == ""){
level = Number(this.name.charAt(5));
} else {
level = Number((this.name.charAt(5) + this.name.charAt(6)));
};
super();
}
}
}//package PointLevels
Section 22
//LevelPoint1 (PointLevels.LevelPoint1)
package PointLevels {
import flash.display.*;
public class LevelPoint1 extends LevelPoint {
public var highlighted:MovieClip;
public var flag:MovieClip;
public var levelComplete:MovieClip;
public function LevelPoint1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function setFlag():void{
this.flagAnim = this.flag;
}
}
}//package PointLevels
Section 23
//LevelPoint2 (PointLevels.LevelPoint2)
package PointLevels {
import flash.display.*;
public class LevelPoint2 extends LevelPoint {
public var highlighted:MovieClip;
public var flag:MovieClip;
public var levelComplete:MovieClip;
public function LevelPoint2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function setFlag():void{
this.flagAnim = this.flag;
}
}
}//package PointLevels
Section 24
//LevelPoint3 (PointLevels.LevelPoint3)
package PointLevels {
import flash.display.*;
public class LevelPoint3 extends LevelPoint {
public var highlighted:MovieClip;
public var flag:MovieClip;
public var levelComplete:MovieClip;
public function LevelPoint3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function setFlag():void{
this.flagAnim = this.flag;
}
}
}//package PointLevels
Section 25
//LevelPoint4 (PointLevels.LevelPoint4)
package PointLevels {
import flash.display.*;
public class LevelPoint4 extends LevelPoint {
public var highlighted:MovieClip;
public var flag:MovieClip;
public var levelComplete:MovieClip;
public function LevelPoint4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function setFlag():void{
this.flagAnim = this.flag;
}
}
}//package PointLevels
Section 26
//LevelPoint5 (PointLevels.LevelPoint5)
package PointLevels {
import flash.display.*;
public class LevelPoint5 extends LevelPoint {
public var highlighted:MovieClip;
public var flag:MovieClip;
public var levelComplete:MovieClip;
public function LevelPoint5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function setFlag():void{
this.flagAnim = this.flag;
}
}
}//package PointLevels
Section 27
//PointLevel (PointLevels.PointLevel)
package PointLevels {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
public class PointLevel extends MovieClip {
public var
:Boolean;
public var isBridge:Boolean;
public var level:uint;
public var flagAnim:MovieClip;
private var :MovieClip;
public var isActive:Boolean;
public var :Boolean;
public function PointLevel():void{
}
private function (_arg1:MouseEvent):void{
var _local2:int;
var _local3:Object;
if (!){
if (!isBridge){
flagAnim.gotoAndPlay(2);
this.filters = [new GlowFilter(16777113, 1, 5, 5, 10)];
= new LevelPreview();
if (
){
.gotoAndStop((level + 52));
} else {
if (){
.gotoAndStop((level + 73));
} else {
_local2 = ();
.gotoAndStop(level);
if (_local2 >= 0){
.levelStars.gotoAndStop((Map.stages[_local2][1] + 1));
};
};
};
} else {
= new BridgePreview();
_local3 = Main.getLevelsRange(level);
.gotoAndStop(level);
.addFrameScript((level - 1), Delegate.create(, _local3, (level - 1)));
};
();
parent.parent.addChild();
};
}
public function activate(_arg1=null):void{
isActive = true;
buttonMode = true;
useHandCursor = true;
gotoAndStop(2);
if (_arg1){
_arg1.addFrameScript(1, _arg1.setFlag);
};
addEventListener(MouseEvent.MOUSE_MOVE, );
addEventListener(MouseEvent.MOUSE_OVER, );
addEventListener(MouseEvent.MOUSE_OUT, );
}
private function ():int{
var _local1:*;
for (_local1 in Map.stages) {
if (Map.stages[_local1][0] == level){
return (_local1);
};
};
return (-1);
}
private function (_arg1:Event):void{
if (){
();
};
}
private function ():void{
var _local1:Number;
var _local2:Number;
_local1 = parent.parent.mouseX;
_local2 = parent.parent.mouseY;
if (!isBridge){
if ((_local2 + .height) > 480){
_local2 = (_local2 - .height);
.arrow.gotoAndStop(4);
} else {
.arrow.gotoAndStop(1);
};
};
.x = _local1;
.y = _local2;
}
private function (_arg1:Event):void{
if (){
if (!isBridge){
this.filters = null;
flagAnim.stop();
};
parent.parent.removeChild();
= null;
};
}
private function (_arg1:Object, _arg2:uint):void{
var _local3:*;
addFrameScript(_arg2, null);
if ((() && (Map.stages))){
_local3 = (_arg1.min - 1);
while (_local3 < _arg1.max) {
if (Map.stages[_local3]){
[("gem" + Map.stages[_local3][0])].alpha = 1;
} else {
break;
};
_local3++;
};
};
}
}
}//package PointLevels
Section 28
//PuzzlePoint (PointLevels.PuzzlePoint)
package PointLevels {
import flash.display.*;
public class PuzzlePoint extends PointLevel {
public var highlighted:MovieClip;
public var flag:MovieClip;
public var levelComplete:MovieClip;
public function PuzzlePoint(){
addFrameScript(0, frame1);
= true;
if (this.name.charAt(7) == ""){
level = Number(this.name.charAt(6));
} else {
level = Number((this.name.charAt(6) + this.name.charAt(7)));
};
super();
}
function frame1(){
stop();
}
public function setFlag():void{
this.flagAnim = this.flag;
}
}
}//package PointLevels
Section 29
//Statue (PointLevels.Statue)
package PointLevels {
public class Statue extends PointLevel {
public function Statue(){
level = Number(this.name.charAt(6));
isBridge = true;
}
}
}//package PointLevels
Section 30
//StoneBridge1 (PointLevels.StoneBridge1)
package PointLevels {
public class StoneBridge1 extends PointLevel {
public function StoneBridge1(){
level = Number(this.name.charAt(6));
isBridge = true;
}
}
}//package PointLevels
Section 31
//StoneBridge2 (PointLevels.StoneBridge2)
package PointLevels {
public class StoneBridge2 extends PointLevel {
public function StoneBridge2(){
level = Number(this.name.charAt(6));
isBridge = true;
}
}
}//package PointLevels
Section 32
//StoneBridge3 (PointLevels.StoneBridge3)
package PointLevels {
public class StoneBridge3 extends PointLevel {
public function StoneBridge3(){
level = Number(this.name.charAt(6));
isBridge = true;
}
}
}//package PointLevels
Section 33
//WoodenBridge1 (PointLevels.WoodenBridge1)
package PointLevels {
public class WoodenBridge1 extends PointLevel {
public function WoodenBridge1(){
level = Number(this.name.charAt(6));
isBridge = true;
}
}
}//package PointLevels
Section 34
//WoodenBridge2 (PointLevels.WoodenBridge2)
package PointLevels {
public class WoodenBridge2 extends PointLevel {
public function WoodenBridge2(){
level = Number(this.name.charAt(6));
isBridge = true;
}
}
}//package PointLevels
Section 35
//animSmog_186 (shieldsOfGemland_fla.animSmog_186)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class animSmog_186 extends MovieClip {
public function animSmog_186(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 36
//animSmog2_85 (shieldsOfGemland_fla.animSmog2_85)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class animSmog2_85 extends MovieClip {
public function animSmog2_85(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 37
//backgroundElements_302 (shieldsOfGemland_fla.backgroundElements_302)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class backgroundElements_302 extends MovieClip {
public function backgroundElements_302(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 38
//bgdBtn1_120 (shieldsOfGemland_fla.bgdBtn1_120)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bgdBtn1_120 extends MovieClip {
public function bgdBtn1_120(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 39
//bgdBtn2_122 (shieldsOfGemland_fla.bgdBtn2_122)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bgdBtn2_122 extends MovieClip {
public function bgdBtn2_122(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 40
//bgdBtn3_124 (shieldsOfGemland_fla.bgdBtn3_124)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bgdBtn3_124 extends MovieClip {
public function bgdBtn3_124(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 41
//bgdCannonBtn1_132 (shieldsOfGemland_fla.bgdCannonBtn1_132)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bgdCannonBtn1_132 extends MovieClip {
public function bgdCannonBtn1_132(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 42
//bgdCannonBtn2_134 (shieldsOfGemland_fla.bgdCannonBtn2_134)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bgdCannonBtn2_134 extends MovieClip {
public function bgdCannonBtn2_134(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 43
//bgdCannonBtn3_136 (shieldsOfGemland_fla.bgdCannonBtn3_136)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bgdCannonBtn3_136 extends MovieClip {
public function bgdCannonBtn3_136(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 44
//bombFire_185 (shieldsOfGemland_fla.bombFire_185)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bombFire_185 extends MovieClip {
public function bombFire_185(){
addFrameScript(8, frame9);
}
function frame9(){
gotoAndPlay("repeat");
}
}
}//package shieldsOfGemland_fla
Section 45
//bonusBomb_94 (shieldsOfGemland_fla.bonusBomb_94)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bonusBomb_94 extends MovieClip {
public function bonusBomb_94(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 46
//bonusesCannon_92 (shieldsOfGemland_fla.bonusesCannon_92)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bonusesCannon_92 extends MovieClip {
public var typeBonus:MovieClip;
public function bonusesCannon_92(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 47
//bonusPainBall_95 (shieldsOfGemland_fla.bonusPainBall_95)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bonusPainBall_95 extends MovieClip {
public function bonusPainBall_95(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 48
//bonusRing_383 (shieldsOfGemland_fla.bonusRing_383)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bonusRing_383 extends MovieClip {
public function bonusRing_383(){
addFrameScript(0, frame1, 90, frame91);
}
function frame91(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 49
//bonusThunder_93 (shieldsOfGemland_fla.bonusThunder_93)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class bonusThunder_93 extends MovieClip {
public function bonusThunder_93(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 50
//cannonAnim_171 (shieldsOfGemland_fla.cannonAnim_171)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class cannonAnim_171 extends MovieClip {
public var colorBall:MovieClip;
public var bonusIndicator:MovieClip;
public function cannonAnim_171(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 51
//cannonAnimUpgradeLv2_89 (shieldsOfGemland_fla.cannonAnimUpgradeLv2_89)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class cannonAnimUpgradeLv2_89 extends MovieClip {
public var colorBall:MovieClip;
public var bonusIndicator:MovieClip;
public function cannonAnimUpgradeLv2_89(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 52
//cannonAnimUpgradeLv3_103 (shieldsOfGemland_fla.cannonAnimUpgradeLv3_103)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class cannonAnimUpgradeLv3_103 extends MovieClip {
public var colorBall:MovieClip;
public var bonusIndicator:MovieClip;
public function cannonAnimUpgradeLv3_103(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 53
//coinCounter_320 (shieldsOfGemland_fla.coinCounter_320)
package shieldsOfGemland_fla {
import flash.display.*;
import flash.text.*;
public dynamic class coinCounter_320 extends MovieClip {
public var scoreTxt:TextField;
}
}//package shieldsOfGemland_fla
Section 54
//collectedBonus_352 (shieldsOfGemland_fla.collectedBonus_352)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class collectedBonus_352 extends MovieClip {
public function collectedBonus_352(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 55
//collectedCoin_354 (shieldsOfGemland_fla.collectedCoin_354)
package shieldsOfGemland_fla {
import flash.display.*;
import flash.text.*;
public dynamic class collectedCoin_354 extends MovieClip {
public var coinsTxt:TextField;
}
}//package shieldsOfGemland_fla
Section 56
//colorBallCannonAnim_90 (shieldsOfGemland_fla.colorBallCannonAnim_90)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class colorBallCannonAnim_90 extends MovieClip {
public var colorIndicator:MovieClip;
}
}//package shieldsOfGemland_fla
Section 57
//continueGameBtn_210 (shieldsOfGemland_fla.continueGameBtn_210)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class continueGameBtn_210 extends MovieClip {
public function continueGameBtn_210(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 58
//creditsWindow_370 (shieldsOfGemland_fla.creditsWindow_370)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class creditsWindow_370 extends MovieClip {
public function creditsWindow_370(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 59
//effectBomb_326 (shieldsOfGemland_fla.effectBomb_326)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class effectBomb_326 extends MovieClip {
public function effectBomb_326(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 60
//effectCollect_173 (shieldsOfGemland_fla.effectCollect_173)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class effectCollect_173 extends MovieClip {
public function effectCollect_173(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 61
//effectCollectLv1_176 (shieldsOfGemland_fla.effectCollectLv1_176)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class effectCollectLv1_176 extends MovieClip {
public function effectCollectLv1_176(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 62
//effectCollectLv2_2_100 (shieldsOfGemland_fla.effectCollectLv2_2_100)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class effectCollectLv2_2_100 extends MovieClip {
public function effectCollectLv2_2_100(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 63
//effectCollectLv3_2_105 (shieldsOfGemland_fla.effectCollectLv3_2_105)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class effectCollectLv3_2_105 extends MovieClip {
public function effectCollectLv3_2_105(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 64
//effectExtraBonus_314 (shieldsOfGemland_fla.effectExtraBonus_314)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class effectExtraBonus_314 extends MovieClip {
public function effectExtraBonus_314(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 65
//effectMap_300 (shieldsOfGemland_fla.effectMap_300)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class effectMap_300 extends MovieClip {
public function effectMap_300(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 66
//extraBonus_306 (shieldsOfGemland_fla.extraBonus_306)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class extraBonus_306 extends MovieClip {
public function extraBonus_306(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 67
//extraBonusMain2_305 (shieldsOfGemland_fla.extraBonusMain2_305)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class extraBonusMain2_305 extends MovieClip {
public var bonusBar:MovieClip;
}
}//package shieldsOfGemland_fla
Section 68
//fireball_384 (shieldsOfGemland_fla.fireball_384)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class fireball_384 extends MovieClip {
public var fireBall:MovieClip;
public function fireball_384(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 69
//fireballBlue_387 (shieldsOfGemland_fla.fireballBlue_387)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class fireballBlue_387 extends MovieClip {
public function fireballBlue_387(){
addFrameScript(6, frame7);
}
function frame7(){
gotoAndPlay(1);
}
}
}//package shieldsOfGemland_fla
Section 70
//fireballGreen_388 (shieldsOfGemland_fla.fireballGreen_388)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class fireballGreen_388 extends MovieClip {
public function fireballGreen_388(){
addFrameScript(6, frame7);
}
function frame7(){
gotoAndPlay(1);
}
}
}//package shieldsOfGemland_fla
Section 71
//fireballPurple_389 (shieldsOfGemland_fla.fireballPurple_389)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class fireballPurple_389 extends MovieClip {
public function fireballPurple_389(){
addFrameScript(6, frame7);
}
function frame7(){
gotoAndPlay(1);
}
}
}//package shieldsOfGemland_fla
Section 72
//fireballRed_386 (shieldsOfGemland_fla.fireballRed_386)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class fireballRed_386 extends MovieClip {
public function fireballRed_386(){
addFrameScript(6, frame7);
}
function frame7(){
gotoAndPlay(1);
}
}
}//package shieldsOfGemland_fla
Section 73
//fireballYellow_390 (shieldsOfGemland_fla.fireballYellow_390)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class fireballYellow_390 extends MovieClip {
public function fireballYellow_390(){
addFrameScript(6, frame7);
}
function frame7(){
gotoAndPlay(1);
}
}
}//package shieldsOfGemland_fla
Section 74
//gemCollected_188 (shieldsOfGemland_fla.gemCollected_188)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class gemCollected_188 extends MovieClip {
public var glowEffect:MovieClip;
public function gemCollected_188(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 75
//gemEffect2_109 (shieldsOfGemland_fla.gemEffect2_109)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class gemEffect2_109 extends MovieClip {
public function gemEffect2_109(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 76
//gemMask_324 (shieldsOfGemland_fla.gemMask_324)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class gemMask_324 extends MovieClip {
public function gemMask_324(){
addFrameScript(0, frame1, 14, frame15, 28,
, 42, frame43, 57, frame58);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function
(){
stop();
}
function frame43(){
stop();
}
function frame58(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 77
//gemRing_323 (shieldsOfGemland_fla.gemRing_323)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class gemRing_323 extends MovieClip {
public function gemRing_323(){
addFrameScript(0, frame1, 90, frame91);
}
function frame91(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 78
//gemRing3_180 (shieldsOfGemland_fla.gemRing3_180)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class gemRing3_180 extends MovieClip {
public function gemRing3_180(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 79
//gemsToCollect_322 (shieldsOfGemland_fla.gemsToCollect_322)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class gemsToCollect_322 extends MovieClip {
public var gemCollected:MovieClip;
public var gemMask:MovieClip;
public function gemsToCollect_322(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 80
//gemToCollectInLevel_381 (shieldsOfGemland_fla.gemToCollectInLevel_381)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class gemToCollectInLevel_381 extends MovieClip {
public function gemToCollectInLevel_381(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 81
//glowEffect_189 (shieldsOfGemland_fla.glowEffect_189)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class glowEffect_189 extends MovieClip {
public function glowEffect_189(){
addFrameScript(0, frame1, 13, , 27, frame28, 42, frame43, 57, frame58);
}
function (){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame28(){
gotoAndStop(1);
}
function frame43(){
gotoAndStop(1);
}
function frame58(){
gotoAndStop(1);
}
}
}//package shieldsOfGemland_fla
Section 82
//glowEffect2_113 (shieldsOfGemland_fla.glowEffect2_113)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class glowEffect2_113 extends MovieClip {
public function glowEffect2_113(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 83
//glowEffect4_31 (shieldsOfGemland_fla.glowEffect4_31)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class glowEffect4_31 extends MovieClip {
public function glowEffect4_31(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 84
//glowEffect6_111 (shieldsOfGemland_fla.glowEffect6_111)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class glowEffect6_111 extends MovieClip {
public function glowEffect6_111(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 85
//high_151 (shieldsOfGemland_fla.high_151)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class high_151 extends MovieClip {
public function high_151(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 86
//infoBonuses_137 (shieldsOfGemland_fla.infoBonuses_137)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class infoBonuses_137 extends MovieClip {
public function infoBonuses_137(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 87
//infoLevelWindow_179 (shieldsOfGemland_fla.infoLevelWindow_179)
package shieldsOfGemland_fla {
import flash.display.*;
import flash.text.*;
public dynamic class infoLevelWindow_179 extends MovieClip {
public var gemRing:MovieClip;
public var numberOfBallsTxt:TextField;
public function infoLevelWindow_179(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 88
//instructionDescriptions_337 (shieldsOfGemland_fla.instructionDescriptions_337)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class instructionDescriptions_337 extends MovieClip {
public function instructionDescriptions_337(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 89
//instructionsWindow_330 (shieldsOfGemland_fla.instructionsWindow_330)
package shieldsOfGemland_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.filters.*;
import flash.external.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class instructionsWindow_330 extends MovieClip {
public var
;
public var situations:MovieClip;
public var closeBtn:SimpleButton;
public var nextBtn:MovieClip;
public var
;
public var previousBtn:MovieClip;
public function instructionsWindow_330(){
addFrameScript(0, frame1);
}
public function
(_arg1:MouseEvent):void{
if (((!((situations.currentFrame == 6))) && (!((situations.currentFrame == 5))))){
++;
situations.gotoAndStop(
);
nextBtn.gotoAndStop(3);
previousBtn.gotoAndStop(2);
.playSound(arrowBtnMp3);
} else {
if (situations.currentFrame == 5){
++;
situations.gotoAndStop(
);
nextBtn.gotoAndStop(1);
previousBtn.gotoAndStop(2);
.playSound(arrowBtnMp3);
};
};
}
public function
(_arg1:MouseEvent):void{
if (situations.currentFrame != 6){
nextBtn.gotoAndStop(4);
};
}
function frame1(){
= 1;
previousBtn.gotoAndStop(1);
nextBtn.gotoAndStop(2);
situations.gotoAndStop(1);
= new Sounds();
previousBtn.addEventListener(MouseEvent.CLICK,
);
previousBtn.addEventListener(MouseEvent.MOUSE_OVER,
);
previousBtn.addEventListener(MouseEvent.MOUSE_OUT,
);
previousBtn.buttonMode = true;
previousBtn.useHandCursor = true;
previousBtn.mouseChildren = false;
nextBtn.addEventListener(MouseEvent.CLICK,
);
nextBtn.addEventListener(MouseEvent.MOUSE_OVER,
);
nextBtn.addEventListener(MouseEvent.MOUSE_OUT,
);
nextBtn.buttonMode = true;
nextBtn.useHandCursor = true;
nextBtn.mouseChildren = false;
}
public function
(_arg1:MouseEvent):void{
if (situations.currentFrame != 1){
previousBtn.gotoAndStop(3);
};
}
public function
(_arg1:MouseEvent):void{
if (situations.currentFrame != 6){
nextBtn.gotoAndStop(3);
};
}
public function
(_arg1:MouseEvent):void{
if (((!((situations.currentFrame == 1))) && (!((situations.currentFrame == 2))))){
--;
situations.gotoAndStop(
);
previousBtn.gotoAndStop(3);
nextBtn.gotoAndStop(2);
.playSound(arrowBtnMp3);
} else {
if (situations.currentFrame == 2){
--;
situations.gotoAndStop(
);
previousBtn.gotoAndStop(1);
nextBtn.gotoAndStop(2);
.playSound(arrowBtnMp3);
};
};
}
public function
(_arg1:MouseEvent):void{
if (situations.currentFrame != 1){
previousBtn.gotoAndStop(4);
};
}
}
}//package shieldsOfGemland_fla
Section 90
//introREMIvision_190 (shieldsOfGemland_fla.introREMIvision_190)
package shieldsOfGemland_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.filters.*;
import flash.external.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class introREMIvision_190 extends MovieClip {
public function introREMIvision_190(){
addFrameScript(0, frame1, 44,
);
}
function frame1(){
MovieClip(parent).sounds.playSound(IntroRemiVisionMp3);
}
function
(){
MovieClip(parent).goMainMenu();
}
}
}//package shieldsOfGemland_fla
Section 91
//levelComplete_162 (shieldsOfGemland_fla.levelComplete_162)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelComplete_162 extends MovieClip {
public function levelComplete_162(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 92
//levelComplete1_268 (shieldsOfGemland_fla.levelComplete1_268)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelComplete1_268 extends MovieClip {
public function levelComplete1_268(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 93
//levelComplete2_270 (shieldsOfGemland_fla.levelComplete2_270)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelComplete2_270 extends MovieClip {
public function levelComplete2_270(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 94
//levelComplete3_272 (shieldsOfGemland_fla.levelComplete3_272)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelComplete3_272 extends MovieClip {
public function levelComplete3_272(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 95
//levelComplete4_276 (shieldsOfGemland_fla.levelComplete4_276)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelComplete4_276 extends MovieClip {
public function levelComplete4_276(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 96
//levelComplete5_274 (shieldsOfGemland_fla.levelComplete5_274)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelComplete5_274 extends MovieClip {
public function levelComplete5_274(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 97
//levelComplete6_166 (shieldsOfGemland_fla.levelComplete6_166)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelComplete6_166 extends MovieClip {
public function levelComplete6_166(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 98
//levelComplete7_161 (shieldsOfGemland_fla.levelComplete7_161)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelComplete7_161 extends MovieClip {
public function levelComplete7_161(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 99
//levelCounter_318 (shieldsOfGemland_fla.levelCounter_318)
package shieldsOfGemland_fla {
import flash.display.*;
import flash.text.*;
public dynamic class levelCounter_318 extends MovieClip {
public var levelTxt:TextField;
}
}//package shieldsOfGemland_fla
Section 100
//levelFailedWindow_143 (shieldsOfGemland_fla.levelFailedWindow_143)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelFailedWindow_143 extends MovieClip {
public var solutionBtn:SimpleButton;
public var playAgainBtn:SimpleButton;
public var reasonFailed:MovieClip;
public var backToMapBtn:SimpleButton;
public function levelFailedWindow_143(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 101
//levelFlagGreen_164 (shieldsOfGemland_fla.levelFlagGreen_164)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelFlagGreen_164 extends MovieClip {
public function levelFlagGreen_164(){
addFrameScript(0, frame1, 27, frame28);
}
function frame1(){
stop();
}
function frame28(){
gotoAndPlay("repeat");
}
}
}//package shieldsOfGemland_fla
Section 102
//levelFlagRed_163 (shieldsOfGemland_fla.levelFlagRed_163)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelFlagRed_163 extends MovieClip {
public function levelFlagRed_163(){
addFrameScript(0, frame1, 27, frame28);
}
function frame1(){
stop();
}
function frame28(){
gotoAndPlay("repeat");
}
}
}//package shieldsOfGemland_fla
Section 103
//levelFlagWhite_160 (shieldsOfGemland_fla.levelFlagWhite_160)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelFlagWhite_160 extends MovieClip {
public function levelFlagWhite_160(){
addFrameScript(0, frame1, 27, frame28);
}
function frame1(){
stop();
}
function frame28(){
gotoAndPlay("repeat");
}
}
}//package shieldsOfGemland_fla
Section 104
//levelPreviewArrow_169 (shieldsOfGemland_fla.levelPreviewArrow_169)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelPreviewArrow_169 extends MovieClip {
public function levelPreviewArrow_169(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 105
//levelStars_168 (shieldsOfGemland_fla.levelStars_168)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelStars_168 extends MovieClip {
public function levelStars_168(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 106
//levelTxt_325 (shieldsOfGemland_fla.levelTxt_325)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class levelTxt_325 extends MovieClip {
public function levelTxt_325(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 107
//map_215 (shieldsOfGemland_fla.map_215)
package shieldsOfGemland_fla {
import flash.display.*;
import PointLevels.*;
public dynamic class map_215 extends MovieClip {
public var level10:LevelPoint1;
public var level11:LevelPoint1;
public var level12:LevelPoint1;
public var level13:LevelPoint1;
public var level14:LevelPoint1;
public var level15:LevelPoint1;
public var level16:LevelPoint1;
public var level18:LevelPoint2;
public var path1:MovieClip;
public var path2:MovieClip;
public var path3:MovieClip;
public var path4:MovieClip;
public var path5:MovieClip;
public var level17:LevelPoint2;
public var level19:LevelPoint2;
public var path6:MovieClip;
public var path7:MovieClip;
public var path8:MovieClip;
public var path9:MovieClip;
public var level20:LevelPoint2;
public var level21:LevelPoint2;
public var level22:LevelPoint2;
public var level23:LevelPoint2;
public var level24:LevelPoint2;
public var level25:LevelPoint3;
public var level26:LevelPoint2;
public var level27:LevelPoint2;
public var level28:LevelPoint3;
public var level29:LevelPoint2;
public var level30:LevelPoint3;
public var level32:LevelPoint3;
public var level33:LevelPoint2;
public var level34:LevelPoint3;
public var level35:LevelPoint4;
public var level36:LevelPoint3;
public var level37:LevelPoint3;
public var level38:LevelPoint3;
public var level39:LevelPoint3;
public var level31:LevelPoint2;
public var level40:LevelPoint3;
public var level41:LevelPoint3;
public var level44:LevelPoint3;
public var level45:LevelPoint4;
public var level46:LevelPoint4;
public var path13:MovieClip;
public var path14:MovieClip;
public var path15:MovieClip;
public var path17:MovieClip;
public var path19:MovieClip;
public var level47:LevelPoint4;
public var level48:LevelPoint4;
public var level49:LevelPoint4;
public var path16:MovieClip;
public var level43:LevelPoint4;
public var path18:MovieClip;
public var path11:MovieClip;
public var path12:MovieClip;
public var level42:LevelPoint3;
public var path10:MovieClip;
public var level50:LevelPoint4;
public var level51:LevelPoint5;
public var path20:MovieClip;
public var path21:MovieClip;
public var path22:MovieClip;
public var path23:MovieClip;
public var path25:MovieClip;
public var path26:MovieClip;
public var path27:MovieClip;
public var path28:MovieClip;
public var path29:MovieClip;
public var level1:LevelPoint1;
public var path24:MovieClip;
public var level3:LevelPoint1;
public var level52:LevelPoint5;
public var level5:LevelPoint1;
public var level6:LevelPoint1;
public var level7:LevelPoint1;
public var level8:LevelPoint1;
public var level2:LevelPoint1;
public var level9:LevelPoint2;
public var level4:LevelPoint1;
public var path30:MovieClip;
public var path31:MovieClip;
public var path32:MovieClip;
public var path33:MovieClip;
public var path34:MovieClip;
public var path35:MovieClip;
public var path36:MovieClip;
public var path37:MovieClip;
public var path38:MovieClip;
public var path40:MovieClip;
public var path39:MovieClip;
public var path48:MovieClip;
public var path49:MovieClip;
public var path43:MovieClip;
public var path44:MovieClip;
public var path45:MovieClip;
public var path46:MovieClip;
public var path41:MovieClip;
public var path42:MovieClip;
public var path51:MovieClip;
public var path52:MovieClip;
public var path53:MovieClip;
public var path55:MovieClip;
public var path57:MovieClip;
public var path59:MovieClip;
public var path47:MovieClip;
public var path54:MovieClip;
public var path58:MovieClip;
public var path50:MovieClip;
public var path56:MovieClip;
public var path60:MovieClip;
public var path61:MovieClip;
public var path62:MovieClip;
public var path63:MovieClip;
public var levelBridge1:BridgePoint;
public var path66:MovieClip;
public var levelBridge3:BridgePoint;
public var levelBridge4:BridgePoint;
public var levelBridge5:BridgePoint;
public var path64:MovieClip;
public var levelBridge2:BridgePoint;
public var path67:MovieClip;
public var path65:MovieClip;
public var bridge1:WoodenBridge1;
public var bridge2:WoodenBridge2;
public var bridge3:StoneBridge1;
public var bridge4:StoneBridge2;
public var bridge5:StoneBridge3;
public var bridge6:Statue;
public var puzzle10:PuzzlePoint;
public var puzzle11:PuzzlePoint;
public var puzzle13:PuzzlePoint;
public var puzzle14:PuzzlePoint;
public var puzzle15:PuzzlePoint;
public var puzzle17:PuzzlePoint;
public var puzzle18:PuzzlePoint;
public var puzzle19:PuzzlePoint;
public var puzzle16:PuzzlePoint;
public var puzzle12:PuzzlePoint;
public var puzzle21:PuzzlePoint;
public var puzzle20:PuzzlePoint;
public var puzzle1:PuzzlePoint;
public var puzzle2:PuzzlePoint;
public var puzzle3:PuzzlePoint;
public var puzzle4:PuzzlePoint;
public var puzzle5:PuzzlePoint;
public var puzzle7:PuzzlePoint;
public var puzzle8:PuzzlePoint;
public var puzzle9:PuzzlePoint;
public var puzzle6:PuzzlePoint;
}
}//package shieldsOfGemland_fla
Section 108
//mcBannedSign_7 (shieldsOfGemland_fla.mcBannedSign_7)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class mcBannedSign_7 extends MovieClip {
public var bg:MovieClip;
}
}//package shieldsOfGemland_fla
Section 109
//mcFireLogo_6 (shieldsOfGemland_fla.mcFireLogo_6)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class mcFireLogo_6 extends MovieClip {
public function mcFireLogo_6(){
addFrameScript(72,
);
}
function
(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 110
//mcLoadLogo_3 (shieldsOfGemland_fla.mcLoadLogo_3)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class mcLoadLogo_3 extends MovieClip {
public var bar:MovieClip;
}
}//package shieldsOfGemland_fla
Section 111
//mcPlayBtn_9 (shieldsOfGemland_fla.mcPlayBtn_9)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class mcPlayBtn_9 extends MovieClip {
public function mcPlayBtn_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 112
//menuWindow_149 (shieldsOfGemland_fla.menuWindow_149)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class menuWindow_149 extends MovieClip {
public var soundControlBtn:MovieClip;
public var playAgainBtn:SimpleButton;
public var backToMapBtn:SimpleButton;
public var returnToGameBtn:SimpleButton;
public var musicControlBtn:MovieClip;
public var qualityBtn:MovieClip;
}
}//package shieldsOfGemland_fla
Section 113
//musicBtn_154 (shieldsOfGemland_fla.musicBtn_154)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class musicBtn_154 extends MovieClip {
public var musicMode:MovieClip;
public function musicBtn_154(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 114
//musicControlBtn_1 (shieldsOfGemland_fla.musicControlBtn_1)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class musicControlBtn_1 extends MovieClip {
public function musicControlBtn_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 115
//nextBtn_334 (shieldsOfGemland_fla.nextBtn_334)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class nextBtn_334 extends MovieClip {
public function nextBtn_334(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 116
//nextBtnOut_336 (shieldsOfGemland_fla.nextBtnOut_336)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class nextBtnOut_336 extends MovieClip {
public function nextBtnOut_336(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 117
//nextBtnOver_335 (shieldsOfGemland_fla.nextBtnOver_335)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class nextBtnOver_335 extends MovieClip {
public function nextBtnOver_335(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 118
//on_153 (shieldsOfGemland_fla.on_153)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class on_153 extends MovieClip {
public function on_153(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 119
//path1_222 (shieldsOfGemland_fla.path1_222)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path1_222 extends MovieClip {
public function path1_222(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 120
//path10_231 (shieldsOfGemland_fla.path10_231)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path10_231 extends MovieClip {
public function path10_231(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 121
//path11_232 (shieldsOfGemland_fla.path11_232)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path11_232 extends MovieClip {
public function path11_232(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 122
//path12_233 (shieldsOfGemland_fla.path12_233)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path12_233 extends MovieClip {
public function path12_233(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 123
//path13_234 (shieldsOfGemland_fla.path13_234)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path13_234 extends MovieClip {
public function path13_234(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 124
//path14_235 (shieldsOfGemland_fla.path14_235)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path14_235 extends MovieClip {
public function path14_235(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 125
//path15_236 (shieldsOfGemland_fla.path15_236)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path15_236 extends MovieClip {
public function path15_236(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 126
//path16_237 (shieldsOfGemland_fla.path16_237)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path16_237 extends MovieClip {
public function path16_237(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 127
//path17_238 (shieldsOfGemland_fla.path17_238)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path17_238 extends MovieClip {
public function path17_238(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 128
//path18_239 (shieldsOfGemland_fla.path18_239)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path18_239 extends MovieClip {
public function path18_239(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 129
//path19_240 (shieldsOfGemland_fla.path19_240)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path19_240 extends MovieClip {
public function path19_240(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 130
//path2_223 (shieldsOfGemland_fla.path2_223)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path2_223 extends MovieClip {
public function path2_223(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 131
//path20_241 (shieldsOfGemland_fla.path20_241)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path20_241 extends MovieClip {
public function path20_241(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 132
//path21_242 (shieldsOfGemland_fla.path21_242)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path21_242 extends MovieClip {
public function path21_242(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 133
//path22_245 (shieldsOfGemland_fla.path22_245)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path22_245 extends MovieClip {
public function path22_245(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 134
//path23_246 (shieldsOfGemland_fla.path23_246)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path23_246 extends MovieClip {
public function path23_246(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 135
//path24_247 (shieldsOfGemland_fla.path24_247)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path24_247 extends MovieClip {
public function path24_247(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 136
//path25_243 (shieldsOfGemland_fla.path25_243)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path25_243 extends MovieClip {
public function path25_243(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 137
//path26_248 (shieldsOfGemland_fla.path26_248)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path26_248 extends MovieClip {
public function path26_248(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 138
//path27_244 (shieldsOfGemland_fla.path27_244)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path27_244 extends MovieClip {
public function path27_244(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 139
//path28_249 (shieldsOfGemland_fla.path28_249)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path28_249 extends MovieClip {
public function path28_249(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 140
//path29_250 (shieldsOfGemland_fla.path29_250)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path29_250 extends MovieClip {
public function path29_250(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 141
//path3_224 (shieldsOfGemland_fla.path3_224)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path3_224 extends MovieClip {
public function path3_224(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 142
//path30_251 (shieldsOfGemland_fla.path30_251)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path30_251 extends MovieClip {
public function path30_251(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 143
//path31_252 (shieldsOfGemland_fla.path31_252)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path31_252 extends MovieClip {
public function path31_252(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 144
//path32_253 (shieldsOfGemland_fla.path32_253)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path32_253 extends MovieClip {
public function path32_253(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 145
//path33_254 (shieldsOfGemland_fla.path33_254)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path33_254 extends MovieClip {
public function path33_254(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 146
//path34_255 (shieldsOfGemland_fla.path34_255)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path34_255 extends MovieClip {
public function path34_255(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 147
//path35_256 (shieldsOfGemland_fla.path35_256)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path35_256 extends MovieClip {
public function path35_256(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 148
//path36_257 (shieldsOfGemland_fla.path36_257)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path36_257 extends MovieClip {
public function path36_257(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 149
//path37_258 (shieldsOfGemland_fla.path37_258)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path37_258 extends MovieClip {
public function path37_258(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 150
//path38_259 (shieldsOfGemland_fla.path38_259)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path38_259 extends MovieClip {
public function path38_259(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 151
//path39_260 (shieldsOfGemland_fla.path39_260)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path39_260 extends MovieClip {
public function path39_260(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 152
//path4_225 (shieldsOfGemland_fla.path4_225)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path4_225 extends MovieClip {
public function path4_225(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 153
//path40_261 (shieldsOfGemland_fla.path40_261)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path40_261 extends MovieClip {
public function path40_261(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 154
//path41_262 (shieldsOfGemland_fla.path41_262)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path41_262 extends MovieClip {
public function path41_262(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 155
//path42_263 (shieldsOfGemland_fla.path42_263)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path42_263 extends MovieClip {
public function path42_263(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 156
//path43_264 (shieldsOfGemland_fla.path43_264)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path43_264 extends MovieClip {
public function path43_264(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 157
//path44_265 (shieldsOfGemland_fla.path44_265)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path44_265 extends MovieClip {
public function path44_265(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 158
//path45_266 (shieldsOfGemland_fla.path45_266)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path45_266 extends MovieClip {
public function path45_266(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 159
//path46_277 (shieldsOfGemland_fla.path46_277)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path46_277 extends MovieClip {
public function path46_277(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 160
//path47_278 (shieldsOfGemland_fla.path47_278)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path47_278 extends MovieClip {
public function path47_278(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 161
//path48_279 (shieldsOfGemland_fla.path48_279)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path48_279 extends MovieClip {
public function path48_279(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 162
//path49_280 (shieldsOfGemland_fla.path49_280)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path49_280 extends MovieClip {
public function path49_280(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 163
//path5_226 (shieldsOfGemland_fla.path5_226)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path5_226 extends MovieClip {
public function path5_226(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 164
//path50_281 (shieldsOfGemland_fla.path50_281)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path50_281 extends MovieClip {
public function path50_281(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 165
//path51_282 (shieldsOfGemland_fla.path51_282)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path51_282 extends MovieClip {
public function path51_282(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 166
//path52_283 (shieldsOfGemland_fla.path52_283)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path52_283 extends MovieClip {
public function path52_283(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 167
//path53_284 (shieldsOfGemland_fla.path53_284)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path53_284 extends MovieClip {
public function path53_284(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 168
//path54_285 (shieldsOfGemland_fla.path54_285)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path54_285 extends MovieClip {
public function path54_285(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 169
//path55_286 (shieldsOfGemland_fla.path55_286)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path55_286 extends MovieClip {
public function path55_286(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 170
//path56_287 (shieldsOfGemland_fla.path56_287)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path56_287 extends MovieClip {
public function path56_287(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 171
//path57_288 (shieldsOfGemland_fla.path57_288)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path57_288 extends MovieClip {
public function path57_288(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 172
//path58_289 (shieldsOfGemland_fla.path58_289)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path58_289 extends MovieClip {
public function path58_289(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 173
//path59_290 (shieldsOfGemland_fla.path59_290)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path59_290 extends MovieClip {
public function path59_290(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 174
//path6_227 (shieldsOfGemland_fla.path6_227)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path6_227 extends MovieClip {
public function path6_227(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 175
//path60_291 (shieldsOfGemland_fla.path60_291)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path60_291 extends MovieClip {
public function path60_291(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 176
//path61_292 (shieldsOfGemland_fla.path61_292)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path61_292 extends MovieClip {
public function path61_292(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 177
//path62_293 (shieldsOfGemland_fla.path62_293)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path62_293 extends MovieClip {
public function path62_293(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 178
//path63_294 (shieldsOfGemland_fla.path63_294)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path63_294 extends MovieClip {
public function path63_294(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 179
//path64_295 (shieldsOfGemland_fla.path64_295)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path64_295 extends MovieClip {
public function path64_295(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 180
//path65_296 (shieldsOfGemland_fla.path65_296)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path65_296 extends MovieClip {
public function path65_296(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 181
//path66_297 (shieldsOfGemland_fla.path66_297)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path66_297 extends MovieClip {
public function path66_297(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 182
//path67_298 (shieldsOfGemland_fla.path67_298)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path67_298 extends MovieClip {
public function path67_298(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 183
//path7_228 (shieldsOfGemland_fla.path7_228)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path7_228 extends MovieClip {
public function path7_228(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 184
//path8_229 (shieldsOfGemland_fla.path8_229)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path8_229 extends MovieClip {
public function path8_229(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 185
//path9_230 (shieldsOfGemland_fla.path9_230)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class path9_230 extends MovieClip {
public function path9_230(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 186
//pointsTxt_348 (shieldsOfGemland_fla.pointsTxt_348)
package shieldsOfGemland_fla {
import flash.display.*;
import flash.text.*;
public dynamic class pointsTxt_348 extends MovieClip {
public var pointsTxt:TextField;
}
}//package shieldsOfGemland_fla
Section 187
//previousBtn_331 (shieldsOfGemland_fla.previousBtn_331)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class previousBtn_331 extends MovieClip {
public function previousBtn_331(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 188
//previousBtnOut_333 (shieldsOfGemland_fla.previousBtnOut_333)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class previousBtnOut_333 extends MovieClip {
public function previousBtnOut_333(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 189
//previousBtnOver_332 (shieldsOfGemland_fla.previousBtnOver_332)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class previousBtnOver_332 extends MovieClip {
public function previousBtnOver_332(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 190
//qualityBtn_150 (shieldsOfGemland_fla.qualityBtn_150)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class qualityBtn_150 extends MovieClip {
public var qualityMode:MovieClip;
public function qualityBtn_150(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 191
//reasonFailed_144 (shieldsOfGemland_fla.reasonFailed_144)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class reasonFailed_144 extends MovieClip {
public function reasonFailed_144(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 192
//scoreCounter_319 (shieldsOfGemland_fla.scoreCounter_319)
package shieldsOfGemland_fla {
import flash.display.*;
import flash.text.*;
public dynamic class scoreCounter_319 extends MovieClip {
public var scoreTxt:TextField;
}
}//package shieldsOfGemland_fla
Section 193
//scrollMap_299 (shieldsOfGemland_fla.scrollMap_299)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class scrollMap_299 extends MovieClip {
public function scrollMap_299(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 194
//soundBtn_152 (shieldsOfGemland_fla.soundBtn_152)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class soundBtn_152 extends MovieClip {
public var soundMode:MovieClip;
public function soundBtn_152(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 195
//soundControlBtn_2 (shieldsOfGemland_fla.soundControlBtn_2)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class soundControlBtn_2 extends MovieClip {
public function soundControlBtn_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 196
//startGameTxt2_379 (shieldsOfGemland_fla.startGameTxt2_379)
package shieldsOfGemland_fla {
import flash.display.*;
import flash.text.*;
public dynamic class startGameTxt2_379 extends MovieClip {
public var levelTxt:TextField;
public function startGameTxt2_379(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 197
//startMenu_191 (shieldsOfGemland_fla.startMenu_191)
package shieldsOfGemland_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import com.midasplayer.*;
public dynamic class startMenu_191 extends MovieClip {
public var remiGamesBtn:SimpleButton;
public var highscoresBtn:SimpleButton;
public var continueGameBtn:MovieClip;
public var creditsBtn:SimpleButton;
public var instructionsBtn:SimpleButton;
public var newGameBtn:SimpleButton;
public var playMoreGamesBtn:SimpleButton;
public var addToWebsiteBtn:SimpleButton;
public var brandingMc:SimpleButton;
public function startMenu_191(){
addFrameScript(0, frame1);
}
public function (_arg1:Event){
var _local2:URLRequest;
var _local3:String;
_local2 = new URLRequest("http://remigames.com/source/sog");
_local3 = "_blank";
navigateToURL(_local2, _local3);
}
public function (_arg1:Event){
KingAPI.openOtherGamesLink();
}
function frame1(){
playMoreGamesBtn.addEventListener(MouseEvent.CLICK, );
addToWebsiteBtn.addEventListener(MouseEvent.CLICK,
);
highscoresBtn.addEventListener(MouseEvent.CLICK, );
brandingMc.addEventListener(MouseEvent.CLICK, onClickedSignLink);
remiGamesBtn.addEventListener(MouseEvent.CLICK, );
}
public function
(_arg1:Event){
KingAPI.openAddToWebsiteLink();
}
public function (_arg1:Event){
KingAPI.openHighscoresLink();
}
public function onClickedSignLink(_arg1:Event){
KingAPI.openSignLink();
}
}
}//package shieldsOfGemland_fla
Section 198
//storyWindow_141 (shieldsOfGemland_fla.storyWindow_141)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class storyWindow_141 extends MovieClip {
public function storyWindow_141(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 199
//theGame_301 (shieldsOfGemland_fla.theGame_301)
package shieldsOfGemland_fla {
import flash.display.*;
import flash.events.*;
import com.midasplayer.*;
public dynamic class theGame_301 extends MovieClip {
public var levelCounter:MovieClip;
public var land:MovieClip;
public var scoreCounter:MovieClip;
public var coinCounter:MovieClip;
public var extraBonusMain:ExtraBonus;
public var levelMode:MovieClip;
public var menuBtn:SimpleButton;
public var gemsToCollect:MovieClip;
public var effectBomb:MovieClip;
public var brandingMc:SimpleButton;
public function theGame_301(){
addFrameScript(0, frame1);
}
function frame1(){
brandingMc.addEventListener(MouseEvent.CLICK, onClickedSignLink);
}
public function onClickedSignLink(_arg1:Event){
KingAPI.openSignLink();
}
}
}//package shieldsOfGemland_fla
Section 200
//trophy1_13 (shieldsOfGemland_fla.trophy1_13)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class trophy1_13 extends MovieClip {
public function trophy1_13(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 201
//trophy2_15 (shieldsOfGemland_fla.trophy2_15)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class trophy2_15 extends MovieClip {
public function trophy2_15(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 202
//trophy3_17 (shieldsOfGemland_fla.trophy3_17)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class trophy3_17 extends MovieClip {
public function trophy3_17(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 203
//trophy4_19 (shieldsOfGemland_fla.trophy4_19)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class trophy4_19 extends MovieClip {
public function trophy4_19(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 204
//trophy5_21 (shieldsOfGemland_fla.trophy5_21)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class trophy5_21 extends MovieClip {
public function trophy5_21(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 205
//trophy6_23 (shieldsOfGemland_fla.trophy6_23)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class trophy6_23 extends MovieClip {
public function trophy6_23(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 206
//trophy7_25 (shieldsOfGemland_fla.trophy7_25)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class trophy7_25 extends MovieClip {
public function trophy7_25(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 207
//trophy8_27 (shieldsOfGemland_fla.trophy8_27)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class trophy8_27 extends MovieClip {
public function trophy8_27(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 208
//upgradeWindow_117 (shieldsOfGemland_fla.upgradeWindow_117)
package shieldsOfGemland_fla {
import flash.display.*;
import Upgrades.*;
public dynamic class upgradeWindow_117 extends MovieClip {
public var cannonBtn2:CannonBtn2;
public var bombBtn1:BombBtn1;
public var cannonBtn3:CannonBtn3;
public var bombBtn2:BombBtn2;
public var bombBtn3:BombBtn3;
public var closeBtn:SimpleButton;
public var thunderBtn3:ThunderBtn3;
public var thunderBtn2:ThunderBtn2;
public var thunderBtn1:ThunderBtn1;
public var paintBallBtn3:PaintBallBtn3;
public var infoBonuses:MovieClip;
public var paintBallBtn1:PaintBallBtn1;
public var paintBallBtn2:PaintBallBtn2;
public var cannonBtn1:CannonBtn1;
public function upgradeWindow_117(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 209
//wheels_172 (shieldsOfGemland_fla.wheels_172)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class wheels_172 extends MovieClip {
public function wheels_172(){
addFrameScript(0, frame1, 31, frame32, 62, frame63);
}
function frame1(){
stop();
}
function frame32(){
gotoAndPlay("left");
}
function frame63(){
gotoAndPlay("right");
}
}
}//package shieldsOfGemland_fla
Section 210
//wheelsUpgradeLv2_96 (shieldsOfGemland_fla.wheelsUpgradeLv2_96)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class wheelsUpgradeLv2_96 extends MovieClip {
public function wheelsUpgradeLv2_96(){
addFrameScript(0, frame1, 31, frame32, 62, frame63);
}
function frame1(){
stop();
}
function frame32(){
gotoAndPlay("left");
}
function frame63(){
gotoAndPlay("right");
}
}
}//package shieldsOfGemland_fla
Section 211
//wheelsUpgradeLv3_104 (shieldsOfGemland_fla.wheelsUpgradeLv3_104)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class wheelsUpgradeLv3_104 extends MovieClip {
public function wheelsUpgradeLv3_104(){
addFrameScript(0, frame1, 31, frame32, 62, frame63);
}
function frame1(){
stop();
}
function frame32(){
gotoAndPlay("left");
}
function frame63(){
gotoAndPlay("right");
}
}
}//package shieldsOfGemland_fla
Section 212
//windowQuestionTxt_368 (shieldsOfGemland_fla.windowQuestionTxt_368)
package shieldsOfGemland_fla {
import flash.display.*;
public dynamic class windowQuestionTxt_368 extends MovieClip {
public function windowQuestionTxt_368(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shieldsOfGemland_fla
Section 213
//ParticleSplash (Splash.ParticleSplash)
package Splash {
import flash.display.*;
public class ParticleSplash {
public var vx:Number;
public var vy:Number;
public var mc:MovieClip;
public function ParticleSplash(_arg1:DisplayObjectContainer, _arg2:Class, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number){
mc = new (_arg2);
mc.x = _arg3;
mc.y = _arg4;
mc.width = _arg5;
mc.height = _arg6;
mc.rotation = _arg7;
this.vx = _arg8;
this.vy = _arg9;
_arg1.addChild(mc);
}
}
}//package Splash
Section 214
//Splash (Splash.Splash)
package Splash {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
public class Splash {
private var delay:Number;
private var :Number;
private var :Number;
private var :Number;
private var :Class;
private var :Number;
private var :Number;
private var :uint;
private var :Number;
private var :DisplayObjectContainer;
private var :Array;
private var :DisplayObjectContainer;
private var
:uint;
private var :uint;
private var x:Number;
private var y:Number;
public function Splash(_arg1:DisplayObjectContainer, _arg2:Class, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:uint, _arg8:Number, _arg9:Number, _arg10:Number, _arg11:uint=1, _arg12:uint=0):void{
this. = _arg8;
this. = _arg11;
this. = _arg10;
this. = _arg1;
this.x = _arg3;
this.y = _arg4;
this. = _arg5;
this. = _arg6;
this.
= _arg7;
this. = _arg9;
this.delay = _arg12;
this. = _arg2;
= new Sprite();
= new Array();
.addChild();
= getTimer();
if (this. > 1){
if (!_arg12){
throw (new Error("Gdy ilość wyrzutów jest większa od 1 to wartość delay nie może być 0"));
};
= Math.round((_arg7 / this.));
();
} else {
(_arg7);
};
.addEventListener(Event.ENTER_FRAME, );
}
private function
(_arg1:Number, _arg2:Number):Point{
var _local3:Point;
var _local4:Number;
_local3 = new Point();
_local4 = ((Math.random() * Math.PI) * 2);
_local3.x = (Math.sin(_local4) * _arg1);
_local3.y = (Math.cos(_local4) * _arg2);
return (_local3);
}
private function ():void{
var _local1:*;
for (_local1 in ) {
[_local1].mc.x = ([_local1].mc.x + [_local1].vx);
[_local1].mc.y = ([_local1].mc.y + [_local1].vy);
[_local1].vy = ([_local1].vy + );
[_local1].mc.alpha = ([_local1].mc.alpha - );
if ([_local1].mc.alpha <= 0.05){
.removeChild([_local1].mc);
.splice(_local1, 1);
};
};
}
private function ():Number{
return (Math.round((Math.random() * 360)));
}
private function (_arg1:uint):void{
var _local2:MovieClip;
var _local3:int;
var _local4:Point;
var _local5:Point;
var _local6:Object;
var _local7:Number;
_local2 = new ();
_local3 = 0;
while (_local3 < _arg1) {
_local4 =
(, );
_local5 =
(, x, y);
_local6 = (_local2.width, _local2.height);
_local7 = ();
.push(new ParticleSplash(, , _local5.x, _local5.y, _local6.width, _local6.height, _local7, _local4.x, _local4.y));
_local3++;
};
}
private function (_arg1:Number, _arg2:Number):Object{
var _local3:Object;
var _local4:Number;
_local3 = new Object();
_local3.width = (((0.5 * _arg1) * Math.random()) + (0.5 * _arg1));
_local4 = (_local3.width / _arg1);
_local3.height = (_arg2 * _local4);
return (_local3);
}
private function (_arg1:Event):void{
var _local2:*;
_local2 = (getTimer() - );
if (((( > 0)) && ((_local2 >= delay)))){
_local2 = 0;
= getTimer();
--;
();
};
();
if ((((((.length == 0)) && (( == 0)))) && ((.numChildren == 0)))){
.removeEventListener(Event.ENTER_FRAME, );
.removeChild();
};
}
private function
(_arg1:Number, _arg2:Number, _arg3:Number):Point{
var _local4:Point;
var _local5:*;
_local4 = new Point();
_local5 = ((Math.random() * Math.PI) * 2);
_local4.x = ((Math.sin(_local5) * _arg1) + _arg2);
_local4.y = ((Math.cos(_local5) * _arg1) + _arg3);
return (_local4);
}
}
}//package Splash
Section 215
//BombBtn1 (Upgrades.BombBtn1)
package Upgrades {
import flash.display.*;
public class BombBtn1 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function BombBtn1(){
type = 2;
rank = 1;
super();
}
}
}//package Upgrades
Section 216
//BombBtn2 (Upgrades.BombBtn2)
package Upgrades {
import flash.display.*;
public class BombBtn2 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function BombBtn2(){
type = 2;
rank = 2;
super();
}
}
}//package Upgrades
Section 217
//BombBtn3 (Upgrades.BombBtn3)
package Upgrades {
import flash.display.*;
public class BombBtn3 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function BombBtn3(){
type = 2;
rank = 3;
super();
}
}
}//package Upgrades
Section 218
//CannonBtn1 (Upgrades.CannonBtn1)
package Upgrades {
import flash.display.*;
public class CannonBtn1 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function CannonBtn1(){
type = 5;
rank = 1;
super();
}
}
}//package Upgrades
Section 219
//CannonBtn2 (Upgrades.CannonBtn2)
package Upgrades {
import flash.display.*;
public class CannonBtn2 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function CannonBtn2(){
type = 5;
rank = 2;
super();
}
}
}//package Upgrades
Section 220
//CannonBtn3 (Upgrades.CannonBtn3)
package Upgrades {
import flash.display.*;
public class CannonBtn3 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function CannonBtn3(){
type = 5;
rank = 3;
super();
}
}
}//package Upgrades
Section 221
//PaintBallBtn1 (Upgrades.PaintBallBtn1)
package Upgrades {
import flash.display.*;
public class PaintBallBtn1 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function PaintBallBtn1(){
type = 4;
rank = 1;
super();
}
}
}//package Upgrades
Section 222
//PaintBallBtn2 (Upgrades.PaintBallBtn2)
package Upgrades {
import flash.display.*;
public class PaintBallBtn2 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function PaintBallBtn2(){
type = 4;
rank = 2;
super();
}
}
}//package Upgrades
Section 223
//PaintBallBtn3 (Upgrades.PaintBallBtn3)
package Upgrades {
import flash.display.*;
public class PaintBallBtn3 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function PaintBallBtn3(){
type = 4;
rank = 3;
super();
}
}
}//package Upgrades
Section 224
//ThunderBtn1 (Upgrades.ThunderBtn1)
package Upgrades {
import flash.display.*;
public class ThunderBtn1 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function ThunderBtn1(){
type = 1;
rank = 1;
super();
}
}
}//package Upgrades
Section 225
//ThunderBtn2 (Upgrades.ThunderBtn2)
package Upgrades {
import flash.display.*;
public class ThunderBtn2 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function ThunderBtn2(){
type = 1;
rank = 2;
super();
}
}
}//package Upgrades
Section 226
//ThunderBtn3 (Upgrades.ThunderBtn3)
package Upgrades {
import flash.display.*;
public class ThunderBtn3 extends UpgradeMain {
public var bgdBtn:MovieClip;
public function ThunderBtn3(){
type = 1;
rank = 3;
super();
}
}
}//package Upgrades
Section 227
//UpgradeMain (Upgrades.UpgradeMain)
package Upgrades {
import flash.display.*;
public class UpgradeMain extends MovieClip {
public var rank:uint;
public var type:uint;
public var isActive:Boolean;
public function UpgradeMain(){
buttonMode = true;
useHandCursor = true;
mouseChildren = false;
}
public function activate():void{
mouseEnabled = true;
alpha = 1;
isActive = true;
}
public function deactivate():void{
alpha = 0.25;
isActive = false;
}
}
}//package Upgrades
Section 228
//arrowBtnMp3 (arrowBtnMp3)
package {
import flash.media.*;
public dynamic class arrowBtnMp3 extends Sound {
}
}//package
Section 229
//AutoSaveInfo (AutoSaveInfo)
package {
import flash.display.*;
public dynamic class AutoSaveInfo extends MovieClip {
}
}//package
Section 230
//BallHitMp3 (BallHitMp3)
package {
import flash.media.*;
public dynamic class BallHitMp3 extends Sound {
}
}//package
Section 231
//BoardVars (BoardVars)
package {
import flash.geom.*;
public class BoardVars {
public static const BAll_DISTANCE_X:uint = 2;
public static const BALL_DISTANCE_Y:uint = 2;
public static var BALL_SCALE_X:Number = 1;
public static var BALL_SCALE_Y:Number = 1;
public static var BALL_H:Number = 36;
public static var PUZZLE_POINTS = [0, 0, 41.5, 277.2, 83.5, 277.2, 41.5, 318.2, 83.5, 318.2, 41.5, 359.2, 83.5, 359.2];
public static var END_X:uint = 625;
public static var BALL_W:Number = 36;
public static var START_X:uint = (170 - (BoardVars.BAll_DISTANCE_X / 2));
public static var SPECIAL_COLOR = 6;
public static var ALL_ROWS:uint = 10;
public static var START_Y:uint = 5;
public static var BOMB_COLOR = 8;
public static var GOLD_POINTS = [new Point(77.5, 341), new Point(58, 249.3), new Point(94, 249.3)];
public static var GEM_COLOR = 7;
public static var COLUMNS:uint = 11;
}
}//package
Section 232
//BombEffect (BombEffect)
package {
import flash.display.*;
public dynamic class BombEffect extends MovieClip {
public function BombEffect(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package
Section 233
//BombMp3 (BombMp3)
package {
import flash.media.*;
public dynamic class BombMp3 extends Sound {
}
}//package
Section 234
//BonusCollectedMp3 (BonusCollectedMp3)
package {
import flash.media.*;
public dynamic class BonusCollectedMp3 extends Sound {
}
}//package
Section 235
//BoughtMp3 (BoughtMp3)
package {
import flash.media.*;
public dynamic class BoughtMp3 extends Sound {
}
}//package
Section 236
//BridgePreview (BridgePreview)
package {
import flash.display.*;
public dynamic class BridgePreview extends MovieClip {
public var gem40:MovieClip;
public var gem41:MovieClip;
public var gem42:MovieClip;
public var gem43:MovieClip;
public var gem44:MovieClip;
public var gem45:MovieClip;
public var gem47:MovieClip;
public var gem48:MovieClip;
public var gem46:MovieClip;
public var gem49:MovieClip;
public var gem51:MovieClip;
public var gem52:MovieClip;
public var gem50:MovieClip;
public var gem1:MovieClip;
public var gem2:MovieClip;
public var gem3:MovieClip;
public var gem4:MovieClip;
public var gem5:MovieClip;
public var gem6:MovieClip;
public var gem8:MovieClip;
public var gem9:MovieClip;
public var gem7:MovieClip;
public var gem11:MovieClip;
public var gem12:MovieClip;
public var gem13:MovieClip;
public var gem14:MovieClip;
public var gem15:MovieClip;
public var gem16:MovieClip;
public var gem10:MovieClip;
public var gem18:MovieClip;
public var gem19:MovieClip;
public var gem17:MovieClip;
public var gem20:MovieClip;
public var gem21:MovieClip;
public var gem22:MovieClip;
public var gem23:MovieClip;
public var gem24:MovieClip;
public var gem25:MovieClip;
public var gem26:MovieClip;
public var gem27:MovieClip;
public var gem28:MovieClip;
public var gem29:MovieClip;
public var gem30:MovieClip;
public var gem31:MovieClip;
public var gem32:MovieClip;
public var gem33:MovieClip;
public var gem34:MovieClip;
public var gem35:MovieClip;
public var gem36:MovieClip;
public var gem38:MovieClip;
public var gem37:MovieClip;
public var gem39:MovieClip;
public function BridgePreview(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 237
//ButtonClickMp3 (ButtonClickMp3)
package {
import flash.media.*;
public dynamic class ButtonClickMp3 extends Sound {
}
}//package
Section 238
//CannonShootMp3 (CannonShootMp3)
package {
import flash.media.*;
public dynamic class CannonShootMp3 extends Sound {
}
}//package
Section 239
//ChangeBallMp3 (ChangeBallMp3)
package {
import flash.media.*;
public dynamic class ChangeBallMp3 extends Sound {
}
}//package
Section 240
//CloseWindow2Mp3 (CloseWindow2Mp3)
package {
import flash.media.*;
public dynamic class CloseWindow2Mp3 extends Sound {
}
}//package
Section 241
//CloseWindowMp3 (CloseWindowMp3)
package {
import flash.media.*;
public dynamic class CloseWindowMp3 extends Sound {
}
}//package
Section 242
//CoinCollectedMp3 (CoinCollectedMp3)
package {
import flash.media.*;
public dynamic class CoinCollectedMp3 extends Sound {
}
}//package
Section 243
//CoinEffect (CoinEffect)
package {
import flash.display.*;
public dynamic class CoinEffect extends MovieClip {
public function CoinEffect(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package
Section 244
//CollectedBonus (CollectedBonus)
package {
import flash.display.*;
public dynamic class CollectedBonus extends MovieClip {
public var edited:MovieClip;
}
}//package
Section 245
//CollectedCoin (CollectedCoin)
package {
import flash.display.*;
public dynamic class CollectedCoin extends MovieClip {
public var edited:MovieClip;
}
}//package
Section 246
//Combination (Combination)
package {
import flash.display.*;
import Balls.*;
import flash.events.*;
import flash.utils.*;
import Splash.*;
public class Combination {
private var :Timer;
public var
:uint;// = 1
private var target:Main;
public var ballsDestroyed:uint;
private var :BallCreator;
private var :Mover;
private var :Object;
private var :Array;
private var :Array;
private var map:Array;
private var :Array;
private var :Points;
private var :uint;
private var :int;
public static var CHECKING_COMB:Boolean;
public function Combination(_arg1:Main){
= 1;
super();
this.target = _arg1;
this. = _arg1.getMover();
this. = _arg1.getBallCreator();
this. = _arg1.getPoints();
ballsDestroyed = 0;
}
private function ():void{
= null;
= 1;
();
}
public function checkCombWhenGemMovedDown(_arg1:int, _arg2:int):void{
= [];
(_arg1, _arg2);
();
if (.length >= 3){
Combination.CHECKING_COMB = true;
.pause();
();
} else {
= null;
};
}
public function getBallsAfterLightning(_arg1:Array):void{
var _local2:Boolean;
var _local3:uint;
var _local4:*;
var _local5:uint;
= [];
_local3 = 0;
for (_local4 in _arg1) {
while (((map[_local3]) && (map[_local3][_arg1[_local4]]))) {
if (((map[_local3][_arg1[_local4]].ref) && ((map[_local3][_arg1[_local4]].ref.color == BoardVars.GEM_COLOR)))){
_local2 = true;
} else {
if (map[_local3][_arg1[_local4]].ref){
.push(map[_local3][_arg1[_local4]].ref);
};
};
_local3++;
};
_local3 = 0;
};
if (_local2){
();
} else {
_local5 = .addPoints(.length);
if (_local5){
(_local5);
};
removeBalls();
();
};
}
private function (_arg1:ColorBall):void{
var _local2:Class;
var _local3:uint;
var _local4:*;
_local3 = 9;
if (!){
_local2 = (getDefinitionByName(("EffectBall" + _arg1.color)) as Class);
} else {
if ( == 1){
_local2 = (getDefinitionByName("EffectBonus") as Class);
_local3 = 13;
} else {
if ( == 2){
_local2 = (getDefinitionByName("EffectBomb") as Class);
};
};
};
_local4 = new (_local2);
_local4.x = (_arg1.x - 30);
_local4.y = (_arg1.y - 30);
target.theGame.addChildAt(_local4, 1);
_local4.addFrameScript(_local3, Delegate.create(, _local4, _local3));
}
private function (_arg1:Array):void{
var _local2:*;
for (_local2 in _arg1) {
map[_arg1[_local2].coordY][_arg1[_local2].coordX].g = null;
};
}
private function ():Array{
var _local1:Array;
var _local2:*;
.sortOn("coordX", "coordY");
_local1 = new Array();
for (_local2 in ) {
if (_local1.indexOf([_local2].coordX) == -1){
_local1.push([_local2].coordX);
};
};
return (_local1);
}
public function onMoveUpFinished():void{
if (++ == .length){
= 0;
.clearTweensUp();
();
};
}
public function setNewTimer():void{
this. = target.getTimer_();
}
public function (_arg1:int, _arg2:int){
var _local3:int;
if (!map[_arg1][_arg2].g){
.push(map[_arg1][_arg2].ref);
map[_arg1][_arg2].g = 1;
_local3 = map[_arg1][_arg2].ref.color;
};
if (((((((map[(_arg1 - 1)]) && (map[(_arg1 - 1)][_arg2].ref))) && ((map[(_arg1 - 1)][_arg2].ref.color == _local3)))) && (!((map[(_arg1 - 1)][_arg2].g == 1))))){
((_arg1 - 1), _arg2);
};
if (((((((map[(_arg1 + 1)]) && (map[(_arg1 + 1)][_arg2].ref))) && ((map[(_arg1 + 1)][_arg2].ref.color == _local3)))) && (!((map[(_arg1 + 1)][_arg2].g == 1))))){
((_arg1 + 1), _arg2);
};
if (((((((map[_arg1][(_arg2 + 1)]) && (map[_arg1][(_arg2 + 1)].ref))) && ((map[_arg1][(_arg2 + 1)].ref.color == _local3)))) && (!((map[_arg1][(_arg2 + 1)].g == 1))))){
(_arg1, (_arg2 + 1));
};
if (((((((map[_arg1][(_arg2 - 1)]) && (map[_arg1][(_arg2 - 1)].ref))) && ((map[_arg1][(_arg2 - 1)].ref.color == _local3)))) && (!((map[_arg1][(_arg2 - 1)].g == 1))))){
(_arg1, (_arg2 - 1));
};
}
private function ():void{
var _local1:*;
var _local2:*;
for (_local1 in map) {
for (_local2 in map[_local1]) {
map[_local1][_local2].type = null;
};
};
}
public function setNewMap():void{
this.map = target.getMap();
}
private function ():void{
var _local1:Array;
_local1 = ();
removeBalls();
(_local1);
if (.length){
();
();
} else {
();
};
}
private function
():void{
= [];
(true);
(false);
if (.length){
();
} else {
if (!.isStopped){
.finishPause();
};
Combination.CHECKING_COMB = false;
();
};
();
}
private function (_arg1:MovieClip, _arg2:uint):void{
_arg1.addFrameScript(_arg2, null);
target.theGame.removeChild(_arg1);
}
private function (_arg1:Event):void{
if (!Combination.CHECKING_COMB){
.removeEventListener(TimerEvent.TIMER, );
= null;
target.nextLevel();
};
}
private function
():void{
target.theGame.gemsToCollect.gemMask.gotoAndPlay("allGems");
target.theGame.gemsToCollect.gemCollected.gotoAndPlay(2);
target.theGame.gemsToCollect.gemCollected.glowEffect.gotoAndPlay("allGems");
}
public function removeBalls(_arg1:Array=null, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:*;
var _local5:uint;
if (!_arg1){
_arg1 = this.;
};
if (!_arg2){
target.sounds.playSound(CombinationMp3);
};
if ((((
> 1)) && ((target.typeLevel == "normal")))){
_local5 = Math.floor((_arg1.length / 2));
.throwCoin(_arg1[_local5].x, _arg1[_local5].y);
};
if ((((target.typeLevel == "normal")) && (!(_arg2)))){
target.getPoints().increseBonusBar(1);
};
for (_local4 in _arg1) {
(_arg1[_local4]);
if (_arg1[_local4].bonus){
if (!(((_arg1[_local4].bonus.type == 4)) && ((target.goldsCollected >= 3)))){
.throwBonus(_arg1[_local4].bonus, _arg1[_local4].x, _arg1[_local4].y);
};
};
Main.ballsDestroyed++;
target.theGame.removeChild(_arg1[_local4]);
map[_arg1[_local4].coordY][_arg1[_local4].coordX].ref = null;
};
= 0;
_arg1 = null;
}
private function ():void{
var _local1:int;
var _local2:Boolean;
var _local3:*;
var _local4:int;
var _local5:int;
for (_local3 in ) {
_local1 = 0;
_local2 = false;
while (map[_local1]) {
_local4 = [_local3].ref.coordX;
_local5 = [_local3].ref.coordY;
while (map[_local1][_local4]) {
if (!map[_local1][_local4].ref){
map[_local5][_local4].ref = null;
map[_local1][_local4].ref = [_local3].ref;
[_local3].ref.coordY = _local1;
_local2 = true;
if (!.isMovingBalls){
[_local3].targetY = map[_local1][_local4].pos.y;
} else {
if (_local1 == 0){
[_local3].targetY = ((map[0][_local4].pos.y - (BoardVars.BALL_H + BoardVars.BALL_DISTANCE_Y)) + .shiftToDown);
} else {
[_local3].targetY = (map[(_local1 - 1)][_local4].pos.y + .shiftToDown);
};
};
break;
};
_local1++;
};
if (_local2){
break;
};
};
};
}
public function activateBomb(_arg1:int, _arg2:int):void{
var _local3:uint;
var _local4:*;
var _local5:*;
var _local6:int;
var _local7:int;
target.sounds.playSound(BombMp3);
_local3 = (Main.bonusesArr[1]);
_local4 = (_arg1 - _local3);
_local5 = (_arg2 - _local3);
_local6 = (_arg1 + _local3);
_local7 = (_arg2 + _local3);
= [];
_arg1 = _local4;
while (_arg1 <= _local6) {
_arg2 = _local5;
while (_arg2 <= _local7) {
if (map[_arg1]){
if (map[_arg1][_arg2]){
if (((map[_arg1][_arg2].ref) && (!((map[_arg1][_arg2].ref.color == BoardVars.GEM_COLOR))))){
.push(map[_arg1][_arg2].ref);
};
};
};
_arg2++;
};
_arg2 = _local5;
_arg1++;
};
= 2;
if (.length){
();
};
}
private function ():void{
var _local1:Array;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
var _local6:uint;
_local1 = new Array();
for (_local2 in ) {
_local1.push([_local2]);
};
= null;
= new Array();
_local3 = new Array();
for (_local4 in _local1) {
_local5 = .length;
(_local1[_local4].ref.coordY, _local1[_local4].ref.coordX);
_local2 = _local5;
while (_local2 < .length) {
_local3.push([_local2]);
_local2++;
};
if ((.length - _local5) < 3){
.splice(_local5, (.length - _local5));
};
};
(_local3);
if (.length > 0){
++;
_local6 = .addPoints(.length,
);
(_local6);
();
} else {
();
};
}
private function (_arg1:Array):Array{
var _local2:int;
var _local3:int;
var _local4:Boolean;
_local2 = 0;
_local3 = 0;
= new Array();
while (_arg1[_local3] >= 0) {
while (map[_local2]) {
if (((map[_local2][_arg1[_local3]].ref) && (_local4))){
.push({ref:map[_local2][_arg1[_local3]].ref});
} else {
if (((!(map[_local2][_arg1[_local3]].ref)) && (!(_local4)))){
_local4 = true;
};
};
_local2++;
};
_local2 = 0;
_local3++;
_local4 = false;
};
return ();
}
private function ():void{
var _local1:uint;
Combination.CHECKING_COMB = true;
.pause();
_local1 = .addPoints(.length);
if (_local1){
(_local1);
};
();
}
public function startCheckingTimer():void{
= new Timer(35);
.addEventListener(TimerEvent.TIMER, );
.start();
}
private function (_arg1:uint):uint{
var _local2:uint;
switch (_arg1){
case 1:
_local2 = 1;
break;
case 2:
_local2 = 2;
break;
case 3:
_local2 = 3;
break;
};
return (_local2);
}
public function removeAllBonuses():void{
var _local1:Array;
var _local2:*;
_local1 = target.getBonuses();
for (_local2 in _local1) {
target.removeChild(_local1[_local2]);
};
_local1.splice(0, _local1.length);
}
public function startCheckingCombination(_arg1:int, _arg2:int, _arg3:Boolean=false):Boolean{
var _local4:uint;
= new Array();
(_arg1, _arg2);
();
= 1;
if (.length >= 3){
Combination.CHECKING_COMB = true;
.pause();
_local4 = .addPoints(.length);
(_local4);
();
return (true);
};
if (_arg3){
Combination.CHECKING_COMB = true;
.pause();
();
} else {
();
};
= null;
return (false);
}
public function activateColorBall(_arg1:int, _arg2:int, _arg3:uint):void{
var _local4:uint;
var _local5:*;
var _local6:*;
var _local7:int;
var _local8:int;
var _local9:Class;
target.sounds.playSound(PaintballMp3);
_local4 = (Main.bonusesArr[3]);
_local5 = (_arg1 - _local4);
_local6 = (_arg2 - _local4);
_local7 = (_arg1 + _local4);
_local8 = (_arg2 + _local4);
_arg1 = _local5;
while (_arg1 <= _local7) {
_arg2 = _local6;
while (_arg2 <= _local8) {
if (map[_arg1]){
if (map[_arg1][_arg2]){
if (((map[_arg1][_arg2].ref) && (!((map[_arg1][_arg2].ref.color == BoardVars.GEM_COLOR))))){
map[_arg1][_arg2].ref.changeColor(_arg3);
_local9 = (getDefinitionByName(("EffectPaintBall" + _arg3)) as Class);
target.display.displayMC(_local9, (map[_arg1][_arg2].ref.x - 30), (map[_arg1][_arg2].ref.y - 30), 12);
};
};
};
_arg2++;
};
_arg2 = _local6;
_arg1++;
};
();
}
public function removeAllBalls(_arg1:Boolean=false):void{
var _local2:*;
var _local3:*;
= [];
for (_local2 in map) {
for (_local3 in map[_local2]) {
if (map[_local2][_local3].ref){
.push(map[_local2][_local3].ref);
};
};
};
removeBalls(null, true, _arg1);
}
private function (_arg1:uint):void{
var _local2:*;
_local2 = target.display.displayMC(PointsMC, ([(.length - 1)].x - 1.5), ([0].y - 11), 17);
_local2.edited.pointsTxt.text = String(_arg1);
}
public function onMoveAsideFinished():void{
var _local1:*;
if (++ == .length){
= 0;
.clearTweensSide();
= [];
for (_local1 in ) {
if ([_local1].ref.color == BoardVars.GEM_COLOR){
([_local1].ref.coordY, [_local1].ref.coordX);
();
break;
};
};
= null;
if (.length >= 3){
();
} else {
if (!.isStopped){
.finishPause();
};
Combination.CHECKING_COMB = false;
();
};
};
}
public function checkIfLastRowFree():Boolean{
var _local1:uint;
var _local2:*;
_local1 = (BoardVars.ALL_ROWS - 1);
for (_local2 in map[_local1]) {
if (map[_local1][_local2].ref){
return (false);
};
};
return (true);
}
private function (_arg1:Boolean):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:ColorBall;
var _local7:Number;
var _local8:Number;
_local2 = (BoardVars.COLUMNS / 2);
if (!_arg1){
_local2++;
};
while (map[0][_local2]) {
if (((map[0][_local2]) && (map[0][_local2].ref))){
while (((map[_local4]) && (map[_local4][_local2].ref))) {
_local6 = map[_local4][_local2].ref;
map[_local4][_local2].type = _local3;
if (_local3 != 0){
if (_local3 < 0){
_local7 = (Math.abs(_local3) * (BoardVars.BALL_W + BoardVars.BAll_DISTANCE_X));
} else {
_local7 = -((_local3 * (BoardVars.BALL_W + BoardVars.BAll_DISTANCE_X)));
};
_local6.setPositionVars((_local2 - _local3), _local4);
map[_local4][(_local2 - _local3)].ref = _local6;
map[_local4][_local2].ref = null;
_local8 = (_local6.x + _local7);
.push({ref:_local6, targetX:_local8});
};
_local4++;
};
_local4 = 0;
} else {
if (_arg1){
_local3--;
} else {
_local3++;
};
};
if (_arg1){
_local2--;
} else {
_local2++;
};
};
}
private function ():void{
var _local1:*;
for (_local1 in ) {
.moveBallAside([_local1].ref, [_local1].targetX);
};
}
public function activateSpecialBonus(_arg1:uint):void{
var _local2:*;
var _local3:*;
= [];
for (_local2 in map) {
for (_local3 in map[_local2]) {
if (((map[_local2][_local3].ref) && ((map[_local2][_local3].ref.color == _arg1)))){
.push(map[_local2][_local3].ref);
};
};
};
= 1;
if (.length){
();
};
}
public function ():void{
var _local1:Boolean;
var _local2:*;
var _local3:Boolean;
var _local4:Timer;
var _local5:Number;
if ((((target.typeLevel == "puzzle")) || ((target.typeLevel == "clear")))){
_local1 = true;
for (_local2 in map[0]) {
if (map[0][_local2].ref){
_local1 = false;
break;
};
};
if (_local1){
if (target.typeLevel == "puzzle"){
_local3 = target.mapStage.checkPuzzleFinished();
if (!_local3){
target.removeClickEvent();
_local2 = 0;
while (_local2 < 10) {
_local5 = ((Math.random() * 400) + BoardVars.START_X);
.throwCoin(_local5, 0);
_local2++;
};
_local4 = new Timer(2500, 1);
_local4.addEventListener(TimerEvent.TIMER_COMPLETE, target.nextLevel);
_local4.start();
} else {
target.nextLevel();
};
} else {
target.nextLevel();
};
} else {
if (((((!(_local1)) && ((target.typeLevel == "puzzle")))) && ((target.getCannon().cannon2.colorBall.colorIndicator.currentFrame == 7)))){
target.gameOver();
};
};
};
}
private function
():void{
var _local1:*;
for (_local1 in ) {
.moveBallUp([_local1].ref, [_local1].targetY);
};
}
}
}//package
Section 247
//CombinationMp3 (CombinationMp3)
package {
import flash.media.*;
public dynamic class CombinationMp3 extends Sound {
}
}//package
Section 248
//ComboMC (ComboMC)
package {
import flash.display.*;
public dynamic class ComboMC extends MovieClip {
public var edited:MovieClip;
}
}//package
Section 249
//CreditsBoard (CreditsBoard)
package {
import flash.display.*;
public dynamic class CreditsBoard extends MovieClip {
public function CreditsBoard(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package
Section 250
//Crypt (Crypt)
package {
public class Crypt {
protected static var hashKey = "ARG(#T_GKSAG"K"Jfklja/.,mfa$@#^)_Y&kfasd4fm,.mbz";
protected static var noiseArray = ["a", "b", "c", "d", "e", "f"];
protected static function _changeUint(_arg1:uint):String{
var _local2:uint;
if (_arg1 > 200000000){
throw (new Error((("The value of " + _arg1) + " is too big to encrypt!"), 2));
};
_local2 = ((((1719 + (_arg1 * 3)) * 3) - 4528) * 2);
return (((noiseArray[(_arg1 % noiseArray.length)] + String(_local2)) + noiseArray[(_local2 % noiseArray.length)]));
}
public static function encrypt(_arg1):String{
var _local2:String;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = "";
if ((_arg1 is uint)){
_local2 = Crypt._changeUint(_arg1);
} else {
if ((_arg1 is Array)){
_local3 = 0;
while (undefined !== (_local4 = _arg1[_local3])) {
_local5 = Crypt.encrypt(_local4);
if ((_local4 is Array)){
_local5 = (("{" + _local5) + "}");
};
_local2 = (_local2 + _local5);
_local3++;
};
} else {
throw (new Error("Wrong data type provided!"));
};
};
return (_local2);
}
protected static function _restoreUint(_arg1:String):uint{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = _arg1.charAt(0);
_local3 = _arg1.charAt((_arg1.length - 1));
_local4 = _arg1.slice(1, (_arg1.length - 1));
_local5 = ((((4528 + (uint(_local4) / 2)) / 3) - 1719) / 3);
if (((!((noiseArray[(uint(_local5) % noiseArray.length)] == _local2))) || (!((noiseArray[(uint(_local4) % noiseArray.length)] == _local3))))){
throw (new Error("Data currupted at uint restoration", 1));
};
return (_local5);
}
public static function decrypt(_arg1:String){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:Array;
var _local6:String;
if (null == _arg1){
return (null);
};
_local2 = 0;
_local3 = new Array();
while (_arg1.charAt(_local2)) {
_local4 = "";
if ("{" == _arg1.charAt(_local2)){
_local2++;
_local5 = new Array();
while ("}" != _arg1.charAt(_local2)) {
_local6 = "";
_local6 = (_local6 + _arg1.charAt(_local2));
_local2++;
while ((Number(_arg1.charAt(_local2)) is uint)) {
_local6 = (_local6 + _arg1.charAt(_local2));
_local2++;
};
_local6 = (_local6 + _arg1.charAt(_local2));
_local2++;
_local5.push(Crypt._restoreUint(_local6));
};
_local2++;
_local3.push(_local5);
} else {
_local4 = (_local4 + _arg1.charAt(_local2));
_local2++;
while ((Number(_arg1.charAt(_local2)) is uint)) {
_local4 = (_local4 + _arg1.charAt(_local2));
_local2++;
};
_local4 = (_local4 + _arg1.charAt(_local2));
_local2++;
_local3.push(Crypt._restoreUint(_local4));
};
};
return (_local3);
}
}
}//package
Section 251
//DataStorage (DataStorage)
package {
import flash.events.*;
import flash.net.*;
public class DataStorage {
public function getData(_arg1:String){
var _local2:SharedObject;
var _local3:Array;
var _local4:String;
_local2 = SharedObject.getLocal("caboomData");
_local4 = SHA1.encrypt(_arg1);
_local3 = Crypt.decrypt(_local2.data[_local4]);
return (_local3);
}
private function (_arg1:NetStatusEvent):void{
switch (_arg1.info.code){
case "SharedObject.Flush.Success":
trace("dane zapisane poprawnie");
break;
case "SharedObject.Flush.Failed":
trace("uzytkownik nie zewolił na zapisane danych");
break;
};
}
public function saveToSharedObj(... _args):void{
var sharedObj:SharedObject;
var flushStatus:String;
var data:String;
var dataName:String;
var args = _args;
sharedObj = SharedObject.getLocal("caboomData");
if ((args[0] is Array)){
data = Crypt.encrypt(args[0]);
dataName = SHA1.encrypt(args[1]);
sharedObj.data[dataName] = data;
};
try {
flushStatus = sharedObj.flush(1000);
} catch(e:Error) {
trace("użytkownik nie zezwala na zapisanie danych");
};
if (flushStatus == SharedObjectFlushStatus.PENDING){
sharedObj.addEventListener(NetStatusEvent.NET_STATUS, );
};
}
public static function clearDataStorage():void{
var _local1:SharedObject;
_local1 = SharedObject.getLocal("caboomData");
_local1.clear();
}
public static function checkIsSaved():Boolean{
var _local1:SharedObject;
var _local2:Object;
var _local3:String;
_local1 = SharedObject.getLocal("caboomData");
_local2 = new Object();
_local3 = SHA1.encrypt("stages");
if (_local1.data[_local3]){
return (true);
};
return (false);
}
}
}//package
Section 252
//Delegate (Delegate)
package {
public class Delegate {
public static function create(_arg1:Function, ... _args):Function{
var handler = _arg1;
var args = _args;
return (function (... _args):void{
handler.apply(this, _args.concat(args));
});
}
}
}//package
Section 253
//Display (Display)
package {
import flash.display.*;
import flash.events.*;
public class Display {
private var target:Main;
public function Display(_arg1:Main){
this.target = _arg1;
}
public function displayMC(_arg1:Class, _arg2:Number, _arg3:Number, _arg4:uint, _arg5=null, _arg6:Boolean=false, _arg7:DisplayObjectContainer=null){
var mc:MovieClip;
var nameOfClass = _arg1;
var x = _arg2;
var y = _arg3;
var finishFrame = _arg4;
var callBack = _arg5;
var clickEnabled = _arg6;
var target = _arg7;
mc = new (nameOfClass);
mc.x = x;
mc.y = y;
if (!target){
target = this.target.theGame;
};
target.addChild(mc);
if (!(callBack is Function)){
callBack = function (){
};
};
if (clickEnabled){
mc.addEventListener(MouseEvent.CLICK, Delegate.create(
, mc));
};
mc.addFrameScript((finishFrame - 1), Delegate.create(, mc, (finishFrame - 1), callBack, target));
return (mc);
}
private function
(_arg1:Event, _arg2:MovieClip):void{
_arg2.play();
_arg2.mouseEnabled = false;
}
private function (_arg1:MovieClip, _arg2:uint, _arg3:Function, _arg4:DisplayObjectContainer):void{
_arg1.addFrameScript(_arg2, null);
_arg4.removeChild(_arg1);
_arg3();
}
}
}//package
Section 254
//EffectBall1 (EffectBall1)
package {
import flash.display.*;
public dynamic class EffectBall1 extends MovieClip {
}
}//package
Section 255
//EffectBall2 (EffectBall2)
package {
import flash.display.*;
public dynamic class EffectBall2 extends MovieClip {
}
}//package
Section 256
//EffectBall3 (EffectBall3)
package {
import flash.display.*;
public dynamic class EffectBall3 extends MovieClip {
}
}//package
Section 257
//EffectBall4 (EffectBall4)
package {
import flash.display.*;
public dynamic class EffectBall4 extends MovieClip {
}
}//package
Section 258
//EffectBall5 (EffectBall5)
package {
import flash.display.*;
public dynamic class EffectBall5 extends MovieClip {
}
}//package
Section 259
//EffectBall6 (EffectBall6)
package {
import flash.display.*;
public dynamic class EffectBall6 extends MovieClip {
}
}//package
Section 260
//EffectBall7 (EffectBall7)
package {
import flash.display.*;
public dynamic class EffectBall7 extends MovieClip {
}
}//package
Section 261
//EffectBall8 (EffectBall8)
package {
import flash.display.*;
public dynamic class EffectBall8 extends MovieClip {
}
}//package
Section 262
//EffectBomb (EffectBomb)
package {
import flash.display.*;
public dynamic class EffectBomb extends MovieClip {
}
}//package
Section 263
//EffectBonus (EffectBonus)
package {
import flash.display.*;
public dynamic class EffectBonus extends MovieClip {
}
}//package
Section 264
//EffectPaintBall1 (EffectPaintBall1)
package {
import flash.display.*;
public dynamic class EffectPaintBall1 extends MovieClip {
}
}//package
Section 265
//EffectPaintBall2 (EffectPaintBall2)
package {
import flash.display.*;
public dynamic class EffectPaintBall2 extends MovieClip {
}
}//package
Section 266
//EffectPaintBall3 (EffectPaintBall3)
package {
import flash.display.*;
public dynamic class EffectPaintBall3 extends MovieClip {
}
}//package
Section 267
//EffectPaintBall4 (EffectPaintBall4)
package {
import flash.display.*;
public dynamic class EffectPaintBall4 extends MovieClip {
}
}//package
Section 268
//EffectPaintBall5 (EffectPaintBall5)
package {
import flash.display.*;
public dynamic class EffectPaintBall5 extends MovieClip {
}
}//package
Section 269
//ExtraBonus (ExtraBonus)
package {
import flash.display.*;
public class ExtraBonus extends MovieClip {
public var effectExtraBonus:MovieClip;
public var extraBonus:MovieClip;
public function ExtraBonus(){
addFrameScript(0, frame1);
this.buttonMode = true;
this.mouseChildren = false;
this.useHandCursor = true;
}
public function checkIfFilled():Boolean{
if (this.extraBonus.bonusBar.currentFrame == 100){
return (true);
};
return (false);
}
function frame1(){
stop();
}
public function animateSpecialBonus():void{
gotoAndPlay(2);
}
}
}//package
Section 270
//ExtraBonusActivateMp3 (ExtraBonusActivateMp3)
package {
import flash.media.*;
public dynamic class ExtraBonusActivateMp3 extends Sound {
}
}//package
Section 271
//ExtraBonusCollectedMp3 (ExtraBonusCollectedMp3)
package {
import flash.media.*;
public dynamic class ExtraBonusCollectedMp3 extends Sound {
}
}//package
Section 272
//FireballEffect (FireballEffect)
package {
import flash.display.*;
public dynamic class FireballEffect extends MovieClip {
public function FireballEffect(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package
Section 273
//FireBallShootMp3 (FireBallShootMp3)
package {
import flash.media.*;
public dynamic class FireBallShootMp3 extends Sound {
}
}//package
Section 274
//GameOverTxt (GameOverTxt)
package {
import flash.display.*;
public dynamic class GameOverTxt extends MovieClip {
}
}//package
Section 275
//GemCollected2Mp3 (GemCollected2Mp3)
package {
import flash.media.*;
public dynamic class GemCollected2Mp3 extends Sound {
}
}//package
Section 276
//GemCollectedMp3 (GemCollectedMp3)
package {
import flash.media.*;
public dynamic class GemCollectedMp3 extends Sound {
}
}//package
Section 277
//GemEffect1 (GemEffect1)
package {
import flash.display.*;
public dynamic class GemEffect1 extends MovieClip {
}
}//package
Section 278
//GemEffect2 (GemEffect2)
package {
import flash.display.*;
public dynamic class GemEffect2 extends MovieClip {
public function GemEffect2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 279
//GemEffect3 (GemEffect3)
package {
import flash.display.*;
public dynamic class GemEffect3 extends MovieClip {
}
}//package
Section 280
//GlowEffect (GlowEffect)
package {
import flash.display.*;
public dynamic class GlowEffect extends MovieClip {
}
}//package
Section 281
//GlowEffect2 (GlowEffect2)
package {
import flash.display.*;
public dynamic class GlowEffect2 extends MovieClip {
}
}//package
Section 282
//GlowEffect3 (GlowEffect3)
package {
import flash.display.*;
public dynamic class GlowEffect3 extends MovieClip {
}
}//package
Section 283
//InfoLevelWindow (InfoLevelWindow)
package {
import flash.display.*;
public dynamic class InfoLevelWindow extends MovieClip {
public var infoLevelWindow:MovieClip;
public function InfoLevelWindow(){
addFrameScript(9, );
}
function (){
stop();
}
}
}//package
Section 284
//InstructionsBoard (InstructionsBoard)
package {
import flash.display.*;
public dynamic class InstructionsBoard extends MovieClip {
public var instructionsWindow:MovieClip;
public function InstructionsBoard(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package
Section 285
//IntroRemiVisionMp3 (IntroRemiVisionMp3)
package {
import flash.media.*;
public dynamic class IntroRemiVisionMp3 extends Sound {
}
}//package
Section 286
//LevelComplete (LevelComplete)
package {
import flash.display.*;
public dynamic class LevelComplete extends MovieClip {
}
}//package
Section 287
//LevelCompletedMp3 (LevelCompletedMp3)
package {
import flash.media.*;
public dynamic class LevelCompletedMp3 extends Sound {
}
}//package
Section 288
//LevelCompleteStars (LevelCompleteStars)
package {
import flash.display.*;
public dynamic class LevelCompleteStars extends MovieClip {
public function LevelCompleteStars(){
addFrameScript(26, , 61, , 105, );
}
function (){
stop();
}
function (){
stop();
}
function (){
stop();
}
}
}//package
Section 289
//LevelFailedBoard (LevelFailedBoard)
package {
import flash.display.*;
public dynamic class LevelFailedBoard extends MovieClip {
public var board:MovieClip;
public function LevelFailedBoard(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package
Section 290
//LevelFailedMp3 (LevelFailedMp3)
package {
import flash.media.*;
public dynamic class LevelFailedMp3 extends Sound {
}
}//package
Section 291
//LevelInfoMp3 (LevelInfoMp3)
package {
import flash.media.*;
public dynamic class LevelInfoMp3 extends Sound {
}
}//package
Section 292
//LevelInfoStartMp3 (LevelInfoStartMp3)
package {
import flash.media.*;
public dynamic class LevelInfoStartMp3 extends Sound {
}
}//package
Section 293
//LevelOverMp3 (LevelOverMp3)
package {
import flash.media.*;
public dynamic class LevelOverMp3 extends Sound {
}
}//package
Section 294
//LevelPreview (LevelPreview)
package {
import flash.display.*;
public dynamic class LevelPreview extends MovieClip {
public var arrow:MovieClip;
public var levelStars:MovieClip;
public function LevelPreview(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 295
//Levels (Levels)
package {
public class Levels {
static const level40 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-r;;;r;r;r;r;r;r;;;r;-r;;;r;;;;;r;;;r;-", maxColor:5, timeLength:5, bonusRate:10, blackRate:0.04, destroyedArr:[180, 360, 480], colorChanges:null, timeChanges:[10]};
static const level41 = {map:";r;r;r;r;r;r;r;r;r;r;r;-;r;r;r;r;r;r;r;r;r;r;r;-;r;;;;r;r;r;;;;r;-;;;;;;r;;;;;;-;;;;;;r;;;;;;-", maxColor:5, timeLength:5.2, bonusRate:10, blackRate:0.04, destroyedArr:[220, 380, 510], colorChanges:null, timeChanges:[14]};
static const level43 = {map:";;r;r;;r;;r;r;;;;-;;r;;;r;;;r;;;;-", maxColor:4, timeLength:6, bonusRate:11, blackRate:0.03, destroyedArr:[120, 240, 360], colorChanges:null, timeChanges:[5], isGemsJoining:true};
static const level45 = {map:";;;r;r;;r;r;;;;;-;;;r;;;;r;;;;;-", maxColor:5, timeLength:4.3, bonusRate:11, blackRate:0.042, destroyedArr:[220, 440, 660], colorChanges:null, timeChanges:[15]};
static const level46 = {map:";r;r;r;r;r;r;r;r;r;r;;-;;;r;r;;;r;r;;;;-;;;r;;;;;r;;;;-", maxColor:5, timeLength:4.3, bonusRate:11, blackRate:0.042, destroyedArr:[260, 490, 760], colorChanges:null, timeChanges:[20]};
static const level42 = {map:";r;r;r;r;r;r;r;r;r;r;r;-;r;r;r;r;r;;r;r;r;r;r;-;r;;;r;r;;r;r;;;r;-", maxColor:5, timeLength:4.8, bonusRate:10, blackRate:0.042, destroyedArr:[200, 400, 600], colorChanges:null, timeChanges:[20]};
static const level44 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-r;;;r;r;;;r;r;;;r;-r;;;r;;;;;r;;;r;-", maxColor:5, timeLength:4.5, bonusRate:10, blackRate:0.042, destroyedArr:[240, 440, 680], colorChanges:null, timeChanges:[24]};
static const level48 = {map:";;r;;r;r;r;r;;r;;;-;;;;r;r;r;r;;;;;-;;;;r;;;r;;;;;-", maxColor:4, timeLength:5.1, bonusRate:12, blackRate:0.04, destroyedArr:[280, 500, 780], colorChanges:[12], timeChanges:[5, 15]};
static const level47 = {map:"r;r;;r;r;;r;r;;r;r;;-", maxColor:4, timeLength:5.2, bonusRate:11, blackRate:0.04, destroyedArr:[240, 480, 720], colorChanges:[10], timeChanges:[5, 15]};
static const level49 = {map:";r;r;;r;r;r;r;;r;r;;-;;r;;r;r;r;r;;r;;;-;;;;;r;r;;;;;;-", maxColor:4, timeLength:5, bonusRate:12, blackRate:0.05, destroyedArr:[260, 490, 740], colorChanges:[16], timeChanges:[2, 16]};
static const level50 = {map:"r;r;r;;r;r;r;r;;r;r;r;-;r;r;;r;r;r;r;;r;r;;-", maxColor:4, timeLength:4.8, bonusRate:12, blackRate:0.07, destroyedArr:[220, 500, 760], colorChanges:[14], timeChanges:[3, 17]};
static const level51 = {map:";r;r;r;r;r;r;r;r;r;;;-;;r;r;;;;r;r;;;;-", maxColor:4, timeLength:5.8, bonusRate:11, blackRate:0.032, destroyedArr:[140, 280, 420], colorChanges:null, timeChanges:[12], isGemsJoining:true};
static const level52 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-r;r;r;r;r;r;r;r;r;r;r;r;-r;;;r;r;r;r;r;;r;r;r;-;;;;r;r;;;;;;r;-", maxColor:4, timeLength:4.5, bonusRate:12, blackRate:0.05, destroyedArr:[300, 600, 900], colorChanges:[10], timeChanges:[5, 20]};
static const level1 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-1;2;2;2;2;1;1;2;2;2;2;1;-2;1;1;1;1;2;2;1;1;1;1;2;-2;;;;;;;;;;;2;-", maxColor:2, timeLength:4, bonusRate:20, blackRate:0, destroyedArr:[10, 30, 60], colorChanges:null, timeChanges:null};
static const level2 = {map:";;1;2;2;1;2;2;1;;;;-;;;1;1;2;1;1;;;;;-;;;;2;1;2;;;;;;-;;;;;6;;;;;;;-", maxColor:2, timeLength:4, bonusRate:20, blackRate:0.01, destroyedArr:[10, 40, 60], colorChanges:null, timeChanges:null};
static const level3 = {map:"r;3;r;r;3;r;r;3;r;r;3;r;-r;r;r;r;r;r;r;r;r;r;r;r;-2;1;1;2;2;1;1;2;2;1;1;2;-1;;;1;1;;;1;1;;;1;-", maxColor:2, timeLength:5, bonusRate:20, blackRate:0.01, destroyedArr:[20, 40, 80], colorChanges:[1], timeChanges:null};
static const level4 = {map:"6;r;r;r;6;r;r;r;6;r;r;r;-;r;r;r;;r;r;r;;r;r;r;-;;r;;;;r;;;;r;;-;;r;;;;r;;;;r;;-", maxColor:2, timeLength:5, bonusRate:15, blackRate:0, destroyedArr:[20, 50, 90], colorChanges:[1], timeChanges:null};
static const level5 = {map:";1;;1;;1;2;;2;;2;;-;r;;r;;r;r;;r;;r;;-;r;;r;;r;r;;r;;r;;-;r;;r;;r;r;;r;;r;;-;;;r;;;;;r;;;;-;;;r;;;;;r;;;;-", maxColor:2, timeLength:4, bonusRate:15, blackRate:0.01, destroyedArr:[20, 50, 90], colorChanges:[1], timeChanges:[5]};
static const level6 = {map:"1;3;3;2;2;2;1;1;1;3;3;2;-3;2;2;1;1;1;2;2;2;1;1;3;-3;2;3;1;3;1;2;3;2;3;1;3;-1;1;;;;;;;;;2;2;-", maxColor:3, timeLength:4, bonusRate:15, blackRate:0.015, destroyedArr:[20, 80, 130], colorChanges:null, timeChanges:[4]};
static const level7 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-;r;r;r;;r;r;r;;r;r;r;-;;r;r;;;r;r;;;r;r;-;;;r;;;;r;;;;r;-", maxColor:3, timeLength:3, bonusRate:15, blackRate:0.02, destroyedArr:[30, 100, 160], colorChanges:null, timeChanges:null};
static const level8 = {map:";r;r;r;r;r;r;r;r;r;r;;-;;r;r;r;r;r;r;r;r;;;-;;;r;r;r;r;r;r;;;;-;;;;r;r;r;r;;;;;-", maxColor:3, timeLength:4.8, bonusRate:15, blackRate:0.025, destroyedArr:[50, 120, 200], colorChanges:null, timeChanges:[2]};
static const level9 = {map:"r;r;r;r;r;r;r;r;r;r;r;;-r;r;r;r;r;r;r;r;r;r;r;;-r;r;;r;;r;;r;;r;r;;-r;;;;;;;;;;r;;-", maxColor:3, timeLength:6, bonusRate:15, blackRate:0, destroyedArr:[30, 60, 90], colorChanges:null, timeChanges:[5], isGemsJoining:true};
static const level10 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-;r;r;r;r;r;r;r;r;r;r;;-;;r;r;r;r;r;r;r;r;;;-;;;r;r;;;r;r;;;;-", maxColor:3, timeLength:5.1, bonusRate:7, blackRate:0.03, destroyedArr:[80, 150, 250], colorChanges:null, timeChanges:[2]};
static const level11 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-r;r;r;r;r;;;r;r;;r;r;-", maxColor:3, timeLength:5.1, bonusRate:7, blackRate:0.03, destroyedArr:[100, 180, 280], colorChanges:null, timeChanges:[1]};
static const level12 = {map:";r;r;r;r;r;r;r;r;r;r;r;-;;;r;r;;r;r;r;r;r;r;-;;;;;;;r;r;;r;r;-", maxColor:3, timeLength:4, bonusRate:7, blackRate:0.033, destroyedArr:[120, 200, 300], colorChanges:null, timeChanges:null};
static const level13 = {map:";r;r;r;r;r;r;r;r;r;r;r;-;r;r;r;;r;r;r;;r;r;r;-;r;r;;;;r;;;;r;r;-", maxColor:3, timeLength:4, bonusRate:7, blackRate:0.035, destroyedArr:[160, 240, 340], colorChanges:null, timeChanges:null};
static const level14 = {map:";r;r;r;r;r;r;r;r;r;r;r;-;;r;r;;r;r;;;r;r;r;-;;;;;;;;;;r;;-", maxColor:3, timeLength:3.9, bonusRate:7, blackRate:0.035, destroyedArr:[180, 260, 380], colorChanges:null, timeChanges:null};
static const level15 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-r;r;r;r;;r;r;;r;r;r;r;-r;r;r;r;;r;r;;r;r;r;r;-", maxColor:3, timeLength:4.2, bonusRate:7, blackRate:0.025, destroyedArr:[80, 160, 260], colorChanges:[6], timeChanges:null};
static const level16 = {map:"r;r;r;r;r;r;r;r;r;;;;-r;;r;r;;r;r;;r;;;;-", maxColor:3, timeLength:4.1, bonusRate:7, blackRate:0.03, destroyedArr:[80, 160, 260], colorChanges:[6], timeChanges:null};
static const level17 = {map:"r;r;r;r;r;r;r;r;r;r;r;;-r;r;r;;r;;r;;r;r;r;;-r;r;;;;;;;;r;r;;-r;;;;;;;;;;r;;-", maxColor:3, timeLength:5.5, bonusRate:10, blackRate:0.01, destroyedArr:[60, 120, 180], colorChanges:null, timeChanges:[10], isGemsJoining:true};
static const level18 = {map:"r;r;r;r;;;r;r;r;r;r;r;-;r;r;;;;;r;r;r;r;;-", maxColor:3, timeLength:4.2, bonusRate:10, blackRate:0.025, destroyedArr:[120, 180, 290], colorChanges:[8], timeChanges:null};
static const level19 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-;r;r;r;r;r;;r;r;r;;;-;;r;r;r;;;;r;;;;-;;;r;;;;;;;;;-", maxColor:3, timeLength:4.2, bonusRate:10, blackRate:0.025, destroyedArr:[160, 220, 340], colorChanges:[10], timeChanges:null};
static const levelB1 = {map:";1;1;2;2;1;2;1;2;1;1;1;-;;2;1;1;2;1;2;1;2;;;-;;;2;2;1;2;1;;;;;-;;;;1;1;;;;;;;-", maxColor:2, timeLength:4, bonusRate:7, blackRate:0, destroyedArr:[10, 30, 60], colorChanges:null, timeChanges:null};
static const levelB2 = {map:"2;3;3;2;1;1;1;2;3;3;2;;-2;3;3;2;3;;3;2;3;3;2;;-1;1;2;1;;;;1;2;1;1;;-", maxColor:3, timeLength:10, bonusRate:8, blackRate:0, destroyedArr:[160, 320, 480], colorChanges:null, timeChanges:null};
static const levelB3 = {map:"1;1;1;2;2;2;1;1;1;3;3;3;-3;3;3;1;1;1;2;2;2;1;1;1;-1;1;1;2;2;2;1;1;1;3;3;3;-", maxColor:3, timeLength:9, bonusRate:8, blackRate:0.01, destroyedArr:[180, 360, 540], colorChanges:null, timeChanges:null};
static const levelB4 = {map:"1;3;3;1;3;1;3;1;3;3;1;1;-3;;;2;1;2;1;2;;;3;3;-2;;;;2;3;2;;;;2;2;-", maxColor:3, timeLength:8, bonusRate:8, blackRate:0.03, destroyedArr:[200, 400, 600], colorChanges:null, timeChanges:null};
static const levelB5 = {map:"1;2;1;2;1;2;1;3;1;3;1;3;-2;3;2;3;2;1;3;2;3;2;3;2;-3;1;3;1;3;1;2;1;2;1;2;1;-", maxColor:3, timeLength:6.5, bonusRate:9, blackRate:0.035, destroyedArr:[220, 440, 660], colorChanges:null, timeChanges:null};
static const level20 = {map:";r;r;r;r;r;r;r;r;r;r;;-;r;r;r;r;r;r;r;r;r;r;;-", maxColor:4, timeLength:5.5, bonusRate:10, blackRate:0.03, destroyedArr:[80, 170, 270], colorChanges:null, timeChanges:[5]};
static const level21 = {map:";r;r;r;r;r;r;r;r;r;;;-;r;r;r;r;r;r;r;r;r;;;-;r;r;r;r;r;r;r;r;r;;;-;r;;r;r;;r;r;;r;;;-", maxColor:4, timeLength:6, bonusRate:9, blackRate:0.02, destroyedArr:[80, 150, 220], colorChanges:null, timeChanges:[5, 10]};
static const level22 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-;r;r;r;;r;r;r;r;;r;r;-;;r;;;;r;r;;;;;-", maxColor:4, timeLength:6.2, bonusRate:9, blackRate:0.028, destroyedArr:[120, 190, 310], colorChanges:null, timeChanges:[5]};
static const level23 = {map:";;r;r;r;r;r;r;r;;;;-;;r;r;r;r;r;r;r;;;;-;;r;r;r;r;r;r;r;;;;-;;;r;r;;r;r;;;;;-;;;;r;;r;;;;;;-", maxColor:4, timeLength:5, bonusRate:9, blackRate:0.04, destroyedArr:[100, 180, 300], colorChanges:[10], timeChanges:null};
static const level24 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-;r;r;r;r;r;r;r;r;r;r;r;-;;r;r;r;r;r;;;r;r;;-", maxColor:4, timeLength:5.3, bonusRate:9, blackRate:0.02, destroyedArr:[120, 220, 360], colorChanges:[8], timeChanges:null};
static const level25 = {map:"r;r;r;r;;;;;r;r;r;r;-r;r;r;;;;;;;r;r;r;-r;r;;;;;;;;;r;r;-r;;;;;;;;;;;r;-", maxColor:4, timeLength:4, bonusRate:9, blackRate:0.03, destroyedArr:[100, 180, 300], colorChanges:null, timeChanges:[10]};
static const level27 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-r;r;r;r;r;r;r;r;r;r;r;r;-r;r;;;r;r;r;r;;;r;r;-r;;;;;r;r;;;;;r;-;;;;;r;r;;;;;;-", maxColor:4, timeLength:5.5, bonusRate:9, blackRate:0.03, destroyedArr:[110, 190, 310], colorChanges:[20], timeChanges:[5]};
static const level28 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-;r;r;r;;r;r;r;;;;r;-;;r;r;;r;r;;;;;r;-;;;r;;r;;;;;;r;-", maxColor:4, timeLength:6, bonusRate:9, blackRate:0.03, destroyedArr:[160, 250, 370], colorChanges:[24], timeChanges:[2]};
static const level29 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-;r;r;r;r;r;;;;;;;-;;r;r;r;;;;;;;;-", maxColor:4, timeLength:5.6, bonusRate:9, blackRate:0.03, destroyedArr:[120, 200, 320], colorChanges:[18], timeChanges:[2]};
static const level26 = {map:"r;;r;;r;;r;;r;;r;;-r;;r;;r;;r;;r;;r;;-", maxColor:3, timeLength:5.3, bonusRate:10, blackRate:0.015, destroyedArr:[80, 160, 240], colorChanges:null, timeChanges:[5], isGemsJoining:true};
static const level30 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-r;r;r;r;;r;r;;r;r;r;r;-r;r;r;;;;;;;r;r;r;-r;r;;;;;;;;;r;r;-r;;;;;;;;;;;r;-", maxColor:5, timeLength:6, bonusRate:9, blackRate:0.025, destroyedArr:[100, 200, 300], colorChanges:null, timeChanges:null};
static const level31 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-r;r;r;r;;r;r;;r;r;r;r;-;r;r;;;;;;;r;r;;-", maxColor:5, timeLength:6, bonusRate:9, blackRate:0.04, destroyedArr:[120, 240, 380], colorChanges:null, timeChanges:[14]};
static const level32 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-;r;r;;r;r;;;r;;r;;-;;r;;r;;;;;;;;-", maxColor:5, timeLength:6, bonusRate:9, blackRate:0.03, destroyedArr:[130, 260, 390], colorChanges:null, timeChanges:[12]};
static const level33 = {map:";r;r;r;r;r;r;r;r;r;r;r;-;r;r;;r;r;;r;r;;r;r;-;r;;;;r;;r;;;;r;-;r;;;;r;;r;;;;r;-", maxColor:3, timeLength:5.7, bonusRate:10, blackRate:0.035, destroyedArr:[180, 300, 490], colorChanges:[10, 20], timeChanges:[18]};
static const level34 = {map:";;;r;r;r;r;r;;;;;-;;;r;r;r;r;;;;;;-;;;;r;r;r;;;;;;-;;;;r;r;;;;;;;-;;;;;r;;;;;;;-", maxColor:5, timeLength:5.5, bonusRate:10, blackRate:0.03, destroyedArr:[140, 280, 420], colorChanges:null, timeChanges:[10]};
static const level35 = {map:";r;r;r;;r;r;r;;r;r;r;-", maxColor:3, timeLength:5.6, bonusRate:11, blackRate:0.012, destroyedArr:[100, 200, 300], colorChanges:[10], timeChanges:[4], isGemsJoining:true};
static const level36 = {map:"r;r;r;r;r;r;r;r;r;r;r;r;-r;r;r;r;r;r;r;r;r;r;r;r;-;r;;;r;;;r;;;r;;-", maxColor:3, timeLength:6, bonusRate:10, blackRate:0.04, destroyedArr:[150, 300, 450], colorChanges:[10, 20], timeChanges:[4, 12]};
static const level37 = {map:"r;r;r;r;r;;;r;r;r;r;r;-", maxColor:3, timeLength:5, bonusRate:10, blackRate:0.035, destroyedArr:[150, 300, 450], colorChanges:[10, 20], timeChanges:[14]};
static const level38 = {map:"r;r;r;r;r;;;r;r;r;r;r;-r;r;;;r;;;r;;;r;r;-", maxColor:3, timeLength:4.9, bonusRate:10, blackRate:0.04, destroyedArr:[170, 350, 490], colorChanges:[10, 20], timeChanges:[11]};
static const level39 = {map:"r;r;r;r;r;;;r;r;r;r;r;-r;r;;r;r;;;r;r;;r;r;-;r;;r;r;;;r;r;;r;;-", maxColor:3, timeLength:5, bonusRate:10, blackRate:0.1, destroyedArr:[170, 350, 490], colorChanges:[10, 20], timeChanges:[15]};
static var levelP1 = {map:";2;1;1;2;2;1;2;2;1;1;2;-;;2;1;1;2;2;2;1;1;2;;-;;;2;1;1;2;1;1;2;;;-;;;;2;1;2;1;2;;;;-;;;;;2;;2;;;;;-", balls:"2;"};
static var levelP3 = {map:";;;;3;4;1;;;;;;-;;;;3;1;1;;;;;;-;;;;2;3;1;;;;;;-;;;;2;3;2;;;;;;-;;;;4;4;2;;;;;;-", balls:"3;1;2;3;2;"};
static var levelP5 = {map:";;;2;3;2;2;2;;;;;-;;;;3;3;3;3;;;;;-;;;;3;3;3;3;;;;;-;;;;;4;4;3;;;;;-;;;;;2;;;;;;;-", balls:"42;4;"};
static var levelP7 = {map:";1;1;4;3;2;2;3;4;4;1;;-;1;4;4;2;2;3;3;4;4;1;;-;13;4;4;3;3;3;3;4;1;1;;-", balls:"4;1;2;"};
static var levelP8 = {map:";;1;1;2;1;2;;;;;;-;;2;2;1;2;2;;;;;;-;;;;2;1;1;;;;;;-;;;;;2;2;;;;;;-", balls:"21;2;"};
static var levelP2 = {map:";1;1;1;1;2;1;2;1;1;1;1;-;;;1;2;2;1;2;2;1;;;-;;;2;2;1;1;1;2;2;;;-;;;;;2;2;2;;;;;-", balls:"2;1;"};
static var levelP13 = {map:";1;1;1;1;1;1;1;;;;;-;2;1;;1;;1;2;;;;;-;;;;3;;;;;;;;-;;;;3;;;;;;;;-", balls:"3;24;3;1;2;"};
static var levelP4 = {map:";4;1;4;1;1;1;4;;;;;-;2;2;2;1;3;1;;;;;;-;;2;;;3;;;;;;;-", balls:"13;11;4;"};
static var levelP15 = {map:";1;4;4;4;2;4;4;4;;;;-;1;4;1;2;;2;1;4;;;;-;;1;1;222;;222;1;1;;;;-;;;2;2;;2;2;;;;;-", balls:"2;2;2;"};
static var levelP6 = {map:";;2;2;2;22;2;2;2;;;;-;;;2;3;1;3;2;;;;;-;;;;3;2;3;;;;;;-;;;;2;;2;;;;;;-", balls:"2;2;2;"};
static var levelP10 = {map:";;;3;2;1;2;3;;;;;-;;;3;1;2;1;33;;;;;-;;;3;1;2;1;3;;;;;-;;;;3;;3;;;;;;-", balls:"3;1;2;"};
static var levelP11 = {map:";4;4;322;1;3;1;3;4;4;;;-;4;4;3;1;;;3;4;;;;-;;4;3;1;;;;;;;;-;;;1;1;;;;;;;;-", balls:"31;3;1;1;"};
static var levelP9 = {map:";3;2;1;1;;1;1;2;3;;;-;;3;4;3;;3;4;3;;;;-;;;;4;;;;;;;;-", balls:"1;3;321;3;2;3;"};
static var levelP14 = {map:"1;3;3;2;4;2;4;4;4;3;3;3;-;1;3;3;4;2;2;4;4;4;3;3;-;;1;3;4;;2;2;3;;4;3;-;;;1;4;;;2;2;;4;4;-", balls:"4;23;4;"};
static var levelP16 = {map:";;;4;2;2;3;2;2;2;;;-;;;;2;2;3;2;2;2;;;-;;;;4;3;34;3;;;;;-;;;;4;4;3;1;;;;;-;;;;;1;1;;;;;;-", balls:"33;2;2;"};
static var levelP17 = {map:";;3;1;2;3;2;2;1;2;;;-;;3;1;1;2;3;1;1;2;;;-;;;;1;3;2;1;;;;;-;;;;3;1;1;2;;;;;-", balls:"1;2;322;"};
static var levelP18 = {map:"4;4;4;2;2;342;2;2;4;4;4;;-;3;4;213;2;3;2;2;4;3;;;-;3;4;2;2;4;2;2;4;3;;;-", balls:"43;3;3;3;3;"};
static var levelP19 = {map:";1;1;1;1;4;1;1;1;1;;;-;1;4;4;1;1;1;2;2;1;;;-;;1;1;3;;4;4;4;;;;-;;3;3;3;;4;2;2;;;;-;;;;3;;4;;;;;;-", balls:"44;44;1;"};
static var levelP12 = {map:";;;4;2;2;4;3;;;;;-;;;4;2;2;4;3;;;;;-;;;3;3;;3;;;;;;-", balls:"4;4;4;412;3;"};
static var levelP21 = {map:";3;1;3;3;3;1;3;4;3;3;;-;3;3;4;3;1;3;2;3;2;3;;-;3;2;;;3;3;;;2;3;;-;;4;;;;;;;4;;;-;;3;;;;;;;3;;;-", balls:"313;32;3;1;"};
static var levelP20 = {map:";3;3;3;;3;2;;2;2;2;;-;2;2;;;;3;;;3;3;;-;;1;;;;;;;1;1;;-", balls:"3;2;2;"};
static function getLevelB(_arg1:uint):Object{
return (Levels[("levelB" + _arg1)]);
}
static function getLevelP(_arg1:uint):Object{
return (Levels[("levelP" + _arg1)]);
}
static function getLevel(_arg1:uint):Object{
return (Levels[("level" + _arg1)]);
}
}
}//package
Section 296
//libGlow (libGlow)
package {
import flash.display.*;
public dynamic class libGlow extends MovieClip {
}
}//package
Section 297
//Lightning (Lightning)
package {
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class Lightning {
private var :Array;
private var :Shape;
private var start:Point;
private var target:Sprite;
private var :Array;
private var :Sprite;
public function Lightning(_arg1:Sprite, _arg2:Sprite, _arg3:Array){
this.target = _arg1;
this. = _arg2;
this. = _arg3;
();
}
private function (_arg1:Point, _arg2:Point):void{
var _local3:uint;
var _local4:int;
_local3 = (_arg1, _arg2);
_local4 = 0;
while (_local4 < _local3) {
.graphics.lineStyle(2, 0xFFD700);
.graphics.moveTo([_local4].x, [_local4].y);
.graphics.lineTo([(_local4 + 1)].x, [(_local4 + 1)].y);
_local4++;
};
}
private function (_arg1:Point, _arg2:Point):uint{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:uint;
var _local7:int;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
[0] = _arg1;
_local3 = (_arg2.x - _arg1.x);
_local4 = (_arg2.y - _arg1.y);
_local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)));
_local6 = Math.round(((_local5 * 10) / 100));
_local7 = 1;
while (_local7 <= _local6) {
_local8 = ((_local3 / _local6) + [(_local7 - 1)].x);
_local9 = ((_local4 / _local6) + [(_local7 - 1)].y);
.push(new Point(_local8, _local9));
_local7++;
};
_local7 = 1;
while (_local7 <= _local6) {
_local10 = ((Math.random() * 7) + 3);
_local11 = ((Math.random() * 2) * Math.PI);
[_local7].x = ([_local7].x + (Math.sin(_local11) * _local10));
_local11 = ((Math.random() * 2) * Math.PI);
[_local7].y = ([_local7].y + (Math.cos(_local11) * _local10));
_local7++;
};
return (_local6);
}
public function remove():void{
target.removeChild();
}
public function (){
= [];
= new Shape();
target.addChild();
}
public function generateThunders():void{
var _local1:uint;
var _local2:int;
this.start = new Point(.x, .y);
.graphics.clear();
.filters = [new GlowFilter(16763955, 0.8, 10, 10, 4)];
_local1 = 0;
while (_local1 < .length) {
_local2 = 0;
while (_local2 < 2) {
(start, [_local1]);
.splice(0, .length);
_local2++;
};
if ([(_local1 + 1)]){
_local2 = 0;
while (_local2 < 2) {
([_local1], [(_local1 + 1)]);
.splice(0, .length);
_local2++;
};
};
_local1 = (_local1 + 2);
};
}
}
}//package
Section 298
//Main (Main)
package {
import flash.display.*;
import Balls.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
import com.midasplayer.*;
import fl.transitions.easing.*;
import com.midasplayer.particle.*;
import fl.transitions.*;
import Cannon.*;
import flash.filters.*;
import flash.ui.*;
public class Main extends MovieClip {
public var theGame:MovieClip;
public var timeBar:MovieClip;
private var
:BallCreator;
private var :uint;
public var bar:Sprite;
public var mcLoadLogoBg:MovieClip;
public var ballsDestroyed:uint;
public var soundControlBtn:MovieClip;
private var :ShootManager;
public var bg:Sprite;
private var :int;
private var :Tween;
public var typeLevel:String;
public var goldsCollected:uint;
private var
:Object;
private var :Array;
private var :Number;
private var autoSaveInfo:MovieClip;
private var :LevelFailedBoard;
public var :Main2;
public var :String;
private var :Mover;
public var display:Display;
public var mcKingLoader:DragonLoader;
private var
:MovieClip;
private var :Array;
private var
:Combination;
public var startMenu:MovieClip;
private var :Points;
private var :MovieClip;
public var mapStage:Map;
private var bonuses:Array;
public var theMap:MovieClip;
public var sounds:Sounds;
private var :Object;
public var scrollMap:MovieClip;
public var sendData:SendPHP;
public var reminderUpgrade:MovieClip;
private var map:Array;
private var :uint;
public var level:uint;
public var
:Sprite;
public var
:String;
public var musicControlBtn:MovieClip;
public var effectBomb:MovieClip;
public var starsCollected:uint;
private var :Shape;
public static var ballsDestroyed:uint;
public static var currentBonus:uint;
public static var bonusesBalls:Array;
public static var trophies:Array;
public static var bonusesUsed:Array;
public static var triphiesJustReached:Array;
public static var bonusesArr:Array;
public static var rowsMoved:uint;
public function Main(){
addFrameScript(0, frame1, 1, , 4, );
();
();
();
();
}
private function moveDownBalls():void{
.moveDownBalls();
}
public function changeLevelProperties():void{
if (((
.timeChangesArr) && ((
.timeChangesArr[0] == Main.rowsMoved)))){
--;
.timeChangesArr.splice(0, 1);
};
if (((
.colorChangesArr) && ((
.colorChangesArr[0] == Main.rowsMoved)))){
.maxColor++;
.colorChangesArr.splice(0, 1);
};
}
public function (_arg1:Event):void{
bg = new Sprite();
bg.buttonMode = true;
bg.name = "clickBg";
bg.graphics.beginFill(0, 0);
bg.graphics.lineTo(stage.stageWidth, 0);
bg.graphics.lineTo(stage.stageWidth, stage.stageHeight);
bg.graphics.lineTo(0, stage.stageHeight);
bg.graphics.lineTo(0, 0);
bg.graphics.endFill();
bg.addEventListener(MouseEvent.CLICK, );
this.addChildAt(bg, this.getChildIndex(mcLoadLogoBg));
mcLoadLogoBg.x = ((stage.stageWidth / 2) - (mcLoadLogoBg.width / 2));
mcLoadLogoBg.y = ((stage.stageHeight / 2) - (mcLoadLogoBg.height / 2));
bar = new Sprite();
bar.graphics.beginFill(0xFFFFFF, 0);
bar.x = (mcLoadLogoBg.x + 5);
bar.y = (mcLoadLogoBg.y + 34);
bar.graphics.drawRect(0, 0, 96, 5);
bar.graphics.endFill();
this.addChild(bar);
= new Sprite();
this.addChild(
);
.x = bar.x;
.y = bar.y;
= new Main2();
.setEmitterClip(
);
this.addChild();
addEventListener(Event.ENTER_FRAME, );
}
private function
(_arg1:uint):void{
.start(_arg1);
}
private function ():MovieClip{
var _local1:MovieClip;
var _local2:uint;
sounds.playSound(ShieldMp3);
_local1 = new Shield();
_local1.x = 244.5;
_local1.y = 435.1;
if (typeLevel == "clear"){
_local2 = level;
} else {
_local2 =
();
};
_local1.gotoAndStop(_local2);
theGame.addChild(_local1);
_local1.addFrameScript((_local2 - 1), Delegate.create(
, _local1, _local2,
.isGemsJoining));
return (_local1);
}
private function (_arg1:Event):void{
KingAPI.openRightClickLink();
}
public function getCannon():MovieClip{
return ();
}
private function (_arg1:Event=null):void{
();
();
(0);
}
public function removeReminderUpgrade():void{
if (reminderUpgrade){
removeChild(reminderUpgrade);
reminderUpgrade = null;
};
}
private function ():void{
var _local1:*;
var _local2:ContextMenuBuiltInItems;
var _local3:ContextMenuItem;
_local1 = new ContextMenu();
_local1.hideBuiltInItems();
_local2 = _local1.builtInItems;
_local2.print = true;
_local3 = new ContextMenuItem("King.com");
_local1.customItems.push(_local3);
_local3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, );
this.contextMenu = _local1;
}
private function (_arg1:uint, _arg2:String):void{
var _local3:*;
(_arg2);
sounds.playSound(StartTextMp3);
_local3 = display.displayMC(StartGameTxt, 298.1, 120, 50, Delegate.create(
, level, _arg2));
_local3.levelMode.gotoAndStop(_arg1);
_local3.levelMode.addFrameScript((_arg1 - 1), Delegate.create(
, _local3));
}
private function (_arg1:uint, _arg2:Function):void{
var infoBoard:*;
var frame = _arg1;
var func = _arg2;
sounds.playSound(LevelInfoStartMp3);
infoBoard = display.displayMC(InfoLevelWindow, 246, 125.1, 18, func, true);
infoBoard.infoLevelWindow.gotoAndStop(frame);
if (typeLevel == "puzzle"){
infoBoard.infoLevelWindow.addFrameScript((frame - 1), function (){
infoBoard.infoLevelWindow.addFrameScript((frame - 1), null);
infoBoard.infoLevelWindow.numberOfBallsTxt.text = String((Levels.getLevelP(level).balls.split(";").length - 1));
});
};
}
public function getMap():Array{
return (map);
}
private function ():void{
if (!level){
level = 1;
theGame.levelCounter.levelTxt.text = String(level);
} else {
theGame.levelCounter.levelTxt.text = String(level);
};
}
public function launchGame(_arg1):void{
mcKingLoader.destroy();
gotoAndStop(4);
}
public function backToMap():void{
level = 0;
starsCollected = 0;
mapStage.newLevelFinished = null;
();
}
private function ():Boolean{
if (String(this.loaderInfo.url).substring(0, 20) == "http://remigames.com"){
return (true);
};
return (false);
}
private function (_arg1:Event=null):void{
= new LevelFailedBoard();
.x = 660;
.y = 126;
if (typeLevel == "puzzle"){
.board.gotoAndStop(2);
.board.addFrameScript(1, );
} else {
();
addChild( );
};
}
private function ():void{
var _local1:*;
= [];
for (_local1 in Main.bonusesArr) {
[_local1] = Main.bonusesArr[_local1];
};
}
private function (_arg1:String):void{
.setStats();
.setCoinsAtGame();
.setSpecialBonusAtGame();
.setPointsAtGame();
(_arg1);
();
if (_arg1 == "normal"){
theGame.gemsToCollect.gotoAndStop(level);
} else {
if (_arg1 == "puzzle"){
theGame.extraBonusMain.visible = false;
theGame.gemsToCollect.gotoAndStop(53);
theGame.levelMode.gotoAndStop(2);
} else {
theGame.extraBonusMain.visible = false;
theGame.gemsToCollect.gotoAndStop(54);
theGame.levelMode.gotoAndStop(3);
};
};
}
public function attachReminderUpgrade():void{
if ((((.getCoins() >= 50)) && (QuickHelp.checkIfFirstTime(3)))){
sounds.playSound(QuickHelpMp3);
reminderUpgrade = new ReminderUpgrade();
reminderUpgrade.x = 317.3;
reminderUpgrade.y = 197.9;
addChild(reminderUpgrade);
};
}
function (){
}
public function nextLevel(_arg1:Event=null):void{
var _local2:Timer;
var _local3:MovieClip;
if (typeLevel == "normal"){
display.displayMC(LevelComplete, 238, 192.4, 50, );
_local3 = ();
_local2 = new Timer(3500, 1);
_local2.addEventListener(TimerEvent.TIMER_COMPLETE, Delegate.create(
, _local3));
_local2.start();
} else {
if (typeLevel == "puzzle"){
display.displayMC(PuzzleSolved, 238, 188.9, 50,
);
sounds.playSound(PuzzleSolvedMp3);
} else {
display.displayMC(ShieldRestored, 238, 192.4, 50);
_local3 = ();
sounds.playSound(ShieldBridgeMp3);
display.displayMC(ShieldCollectEffect, (_local3.x - 10), (_local3.y - 320), 60, Delegate.create(
, null, _local3));
};
};
clearGame(true, true);
}
function frame1(){
stop();
= "shields-of-gemland";
= "67157b97";
stage.scaleMode = StageScaleMode.NO_SCALE;
KingAPI.addEventListener(KingAPI.INITIALIZED_EVENT, );
KingAPI.addEventListener(KingAPI.HOST_BANNED_EVENT, );
KingAPI.init( , root.loaderInfo.url);
}
private function ():void{
.board.playAgainBtn.addEventListener(MouseEvent.CLICK, playAgain);
.board.backToMapBtn.addEventListener(MouseEvent.CLICK, );
}
function (){
mcKingLoader.addEventListener(DragonLoader.LAUNCH_GAME, launchGame);
mcKingLoader.init( ,
);
}
private function ():void{
var _local1:Object;
_local1 = Levels.getLevelP(this.level);
map =
.createPuzzleLevel(_local1.map, _local1.balls);
}
public function stopTimer():void{
.isStopped = true;
.stop();
}
public function playAgain(_arg1:Event=null):void{
if ( ){
removeChild( );
= null;
};
if (typeLevel == "normal"){
theGame.gemsToCollect.gemMask.gotoAndStop(1);
} else {
if (typeLevel == "puzzle"){
removeAllBalls();
removeAllBonuses();
();
};
};
entranceGame(null, level, typeLevel);
}
public function attachReminderBonus():void{
if (!
){
sounds.playSound(QuickHelpMp3);
= new ReminderBonus();
.x = 5;
.y = 288;
theGame.addChild(
);
};
}
private function (_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.SPACE){
sounds.playSound(ChangeBallMp3);
.changeColors();
};
}
private function ():void{
if (){
.stop();
= null;
};
if ( .timerLight){
.removeLightning();
};
map = null;
Main.currentBonus = 0;
Main.ballsDestroyed = 0;
Main.rowsMoved = 0;
goldsCollected = 0;
Main.bonusesUsed = [0, 0, 0, 0];
.removeAllPuzzleBalls();
.clearLevelProperties();
.randomColor2 = 0;
= null;
}
private function ():void{
new WindowQuestion(this);
}
private function ():void{
removeChild();
theGame.removeChild();
.isRemoved = true;
= null;
= null;
}
public function restorGameData():void{
DataStorage.clearDataStorage();
();
();
();
= 0;
level = 0;
typeLevel = null;
();
}
public function getTimer_():Object{
return ();
}
private function
(_arg1:Event, _arg2:MovieClip):void{
if (){
= null;
};
theGame.removeChild(_arg2);
();
}
public function checkCoinsTrophy(_arg1:uint):void{
var _local2:DataStorage;
if ((((_arg1 >= 30)) && ((Main.trophies[4] == 0)))){
Main.triphiesJustReached.push(5);
Main.trophies[4] = 1;
_local2 = new DataStorage();
_local2.saveToSharedObj(Main.trophies, "trophies");
};
}
public function (_arg1:Event):void{
.x = (bar.x + bar.width);
if (framesLoaded == totalFrames){
.kill();
this.removeChild();
removeEventListener(Event.ENTER_FRAME, );
bg.removeEventListener(MouseEvent.CLICK, );
this.removeChild(bar);
if (!KingAPI.isHome){
gotoAndStop(2);
} else {
gotoAndStop(4);
};
} else {
bar.scaleX = (stage.loaderInfo.bytesLoaded / stage.loaderInfo.bytesTotal);
mcLoadLogoBg.bar.scaleX = (1 - (stage.loaderInfo.bytesLoaded / stage.loaderInfo.bytesTotal));
};
}
private function
():void{
if ((((typeLevel == "normal")) || ((typeLevel == "clear")))){
();
();
} else {
if (typeLevel == "puzzle"){
();
};
};
= this.level;
.setNewMap();
.setNewMap();
stage.addEventListener(MouseEvent.CLICK, onClicked);
addEventListener(Event.ENTER_FRAME, );
.randomBallColor();
}
private function ():void{
var _local1:DataStorage;
_local1 = new DataStorage();
_local1.saveToSharedObj([.getCoins(), .getTotalPoints(), .getSpecilaBonusBar()], "dataArr");
if ((((.getCoins() >= 1000)) && ((Main.trophies[5] == 0)))){
Main.triphiesJustReached.push(6);
Main.trophies[5] = 1;
_local1.saveToSharedObj(Main.trophies, "trophies");
};
}
private function
():void{
Main.triphiesJustReached = [];
Main.bonusesArr = [0, 0, 1, 0, 0];
Main.trophies = [0, 0, 0, 0, 0, 0, 0, 0, 0];
Main.bonusesUsed = [0, 0, 0, 0];
Main.bonusesBalls = [];
}
public function getCoinValue():uint{
return ( );
}
public function getMainBall():Object{
return (
);
}
private function
(_arg1:uint=0):uint{
var _local2:uint;
if (_arg1 == 0){
_arg1 = this.level;
};
if (_arg1 >= 45){
_local2 = 6;
= 7;
} else {
if (_arg1 >= 36){
_local2 = 5;
= 5;
} else {
if (_arg1 >= 27){
_local2 = 4;
= 3;
} else {
if (_arg1 >= 18){
_local2 = 3;
= 2;
} else {
if (_arg1 >= 10){
_local2 = 2;
= 2;
} else {
_local2 = 1;
= 1;
};
};
};
};
};
return (_local2);
}
private function
():void{
stage.removeEventListener(KeyboardEvent.KEY_UP, );
}
private function
():void{
var _local1:uint;
if (){
if (typeLevel == "clear"){
_local1 = (level + 1);
} else {
if (typeLevel == "puzzle"){
_local1 = ();
} else {
_local1 =
();
};
};
};
mapStage.prepareMap(_local1);
}
public function
(_arg1:Event=null):void{
();
if (level){
mapStage.saveLevelToStorage(level, typeLevel, starsCollected);
();
};
if (typeLevel == "puzzle"){
();
};
();
gotoAndStop(6);
addFrameScript(5,
);
}
private function
():void{
addFrameScript(4, null);
removeChild(startMenu);
();
}
public function getBonuses():Array{
return (bonuses);
}
private function
():void{
var _local1:DataStorage;
var _local2:Array;
var _local3:Array;
_local1 = new DataStorage();
_local2 = _local1.getData("bonuses");
if (!_local2){
_local1.saveToSharedObj(Main.bonusesArr, "bonuses");
} else {
Main.bonusesArr = _local2;
};
_local3 = _local1.getData("trophies");
if (!_local3){
_local1.saveToSharedObj(Main.trophies, "trophies");
} else {
Main.trophies = _local3;
};
}
private function
(_arg1:StartGameTxt):void{
_arg1.levelMode.levelTxt.text = String(level);
}
private function
():void{
var _local1:DataStorage;
var _local2:Array;
_local1 = new DataStorage();
_local2 = _local1.getData("dataArr");
if (!_local2){
_local1.saveToSharedObj([0, 0, 1], "dataArr");
.setCoins(0);
.setPoints(0);
.setSpecialBonus(0);
} else {
.setSpecialBonus(_local2[2]);
.setCoins(_local2[0]);
.setPoints(_local2[1]);
};
();
}
private function
(_arg1:Event):void{
var board:*;
var e = _arg1;
board = display.displayMC(InstructionsBoard, 0, 0, 27, null, false, this);
board.instructionsWindow.closeBtn.addEventListener(MouseEvent.CLICK, function (){
removeChild(board);
});
}
private function (_arg1:uint=0):uint{
var _local2:uint;
if (!_arg1){
_arg1 = ;
};
if (_arg1 >= 19){
_local2 = 6;
= 7;
} else {
if (_arg1 >= 15){
_local2 = 5;
= 5;
} else {
if (_arg1 >= 12){
_local2 = 4;
= 3;
} else {
if (_arg1 >= 7){
_local2 = 3;
= 2;
} else {
if (_arg1 >= 5){
_local2 = 2;
= 2;
} else {
_local2 = 1;
= 1;
};
};
};
};
};
return (_local2);
}
public function getMover():Mover{
return ();
}
private function ():void{
var _local1:Object;
var _local2:Number;
if (typeLevel == "clear"){
_local1 = Levels.getLevelB(this.level);
} else {
_local1 = Levels.getLevel(this.level);
};
_local2 = (_local1.bonusRate);
map =
.createLevel(_local1.map, _local1.maxColor, _local2, _local1.blackRate, _local1.destroyedArr, _local1.colorChanges, _local1.timeChanges, _local1.isGemsJoining);
= _local1.timeLength;
}
public function setStarsCollected():void{
var _local1:Boolean;
var _local2:*;
var _local3:*;
_local2 = (BoardVars.ALL_ROWS - 1);
while (_local2 >= (BoardVars.ALL_ROWS - 2)) {
_local3 = 0;
while (_local3 <= BoardVars.COLUMNS) {
if (map[_local2][_local3].ref){
_local1 = true;
break;
};
_local3++;
};
if (_local1){
break;
};
_local2--;
};
if (_local2 == (BoardVars.ALL_ROWS - 1)){
starsCollected = 1;
} else {
if ((((_local2 == (BoardVars.ALL_ROWS - 2))) && ((starsCollected == 3)))){
starsCollected = 2;
};
};
}
private function ():void{
if (((!(Main.bonusesArr[4])) || ((typeLevel == "puzzle")))){
= new Cannon();
} else {
if (Main.bonusesArr[4] == 1){
= new CannonLv1();
} else {
if (Main.bonusesArr[4] == 2){
= new CannonLv2();
} else {
if (Main.bonusesArr[4] == 3){
= new CannonLv3();
};
};
};
};
.x = BoardVars.START_X;
.y = 387;
= new Shape();
theGame.addChild();
addChild();
}
private function ():void{
startMenu.creditsBtn.addEventListener(MouseEvent.CLICK, );
startMenu.newGameBtn.addEventListener(MouseEvent.CLICK,
);
startMenu.instructionsBtn.addEventListener(MouseEvent.CLICK,
);
if (DataStorage.checkIsSaved()){
startMenu.continueGameBtn.gotoAndStop(2);
startMenu.continueGameBtn.buttonMode = true;
startMenu.continueGameBtn.useHandCursor = true;
startMenu.continueGameBtn.addEventListener(MouseEvent.CLICK,
);
};
}
public function getRandomColor():uint{
return ();
}
private function
(_arg1:String):void{
if (_arg1 != "puzzle"){
sounds.playSpecialMusic(TheGame1Mp3, TheGame2Mp3);
} else {
sounds.playMusic(TheGame1Mp3, false);
};
}
public function (_arg1:Event):void{
KingAPI.openLoaderProgressLink();
}
private function ():void{
sounds.stopMusic();
sounds.playMusic(StartMenuMp3);
if (!sounds.musicMuted){
sounds.setMusicVolume(1);
} else {
sounds.setMusicVolume(0);
};
}
public function removeAutoSaveInfo():void{
if (this.getChildByName("autoSaveInfo")){
removeChild(autoSaveInfo);
autoSaveInfo = null;
};
}
private function (_arg1:String):void{
var _local2:uint;
if (_arg1 != "clear"){
if (_arg1 == "normal"){
_local2 =
();
} else {
if (_arg1 == "puzzle"){
_local2 = (this.level);
};
};
if ((((_local2 == 2)) || ((_local2 == 4)))){
theGame.land.gotoAndStop(2);
};
} else {
if ((((level == 1)) || ((level == 2)))){
theGame.land.gotoAndStop(3);
} else {
theGame.land.gotoAndStop(4);
};
};
}
private function onClicked(_arg1:Event):void{
if (((
.ref) || (.isPaused))){
return;
};
if ((_arg1.target is ExtraBonus)){
if (_arg1.target.checkIfFilled()){
sounds.playSound(ExtraBonusActivateMp3);
if (
){
QuickHelp.saveQuickHelp(4);
theGame.removeChild(
);
= null;
};
();
};
} else {
if (_arg1.target.name == "menuBtn"){
();
} else {
.onClicked(
, map);
};
};
}
private function (_arg1:MovieClip):void{
_arg1.addFrameScript(24, null);
removeChild(_arg1);
}
public function clearNormalMode():void{
starsCollected = 0;
.stopGemsAnimation();
.clearGems();
}
private function (_arg1:Number):Number{
var _local2:Number;
var _local3:*;
_local2 = 0;
for (_local3 in bonusesArr) {
if (((bonusesArr[_local3]) && ((_local3 <= 3)))){
_local2 = (_local2 + 0.25);
};
};
return ((_local2 * _arg1));
}
public function drawLine():void{
.graphics.clear();
.filters = [new BlurFilter(5, 0)];
.graphics.lineStyle(2, 3459803);
.graphics.moveTo(.x, .y);
.graphics.lineTo(.x, 5);
}
private function ():void{
var _local1:MovieClip;
sounds.playSound(StarsCollectedMp3);
_local1 = new LevelCompleteStars();
_local1.x = 272.8;
_local1.y = 192;
_local1.gotoAndPlay(("stars" + starsCollected));
theGame.addChild(_local1);
}
public function (_arg1:Event=null):void{
var _local2:int;
var _local3:String;
var _local4:*;
_local2 = 0;
while (map[_local2]) {
_local3 = "";
for (_local4 in map[_local2]) {
if (map[_local2][_local4].ref != null){
_local3 = _local3.concat((" " + map[_local2][_local4].ref.color));
} else {
_local3 = _local3.concat(" x");
};
};
trace(_local3);
_local2++;
};
}
public function stopControl():void{
removeEventListener(Event.ENTER_FRAME, );
}
private function
(_arg1:Event):void{
if (!DataStorage.checkIsSaved()){
();
} else {
();
};
}
private function (_arg1:Event):void{
if (){
if (((!((typeLevel == "puzzle"))) && ((.getPercents() == 0)))){
.stop();
= null;
( );
if (
.checkIfLastRowFree()){
moveDownBalls();
} else {
gameOver();
return;
};
};
};
.checkPostionsMainBall();
.moveBalls();
.moveBonuses();
.moveCannon();
}
public function startEnterFrame():void{
addEventListener(Event.ENTER_FRAME, );
}
public function (_arg1:Event=null):void{
();
starsCollected = 3;
if (Main.bonusesArr[4] >= 2){
();
};
( );
if ((((level == 1)) && (QuickHelp.checkIfFirstTime(1)))){
new QuickHelp(this);
};
}
private function ():void{
var _local1:Boolean;
var _local2:*;
var _local3:DataStorage;
if (Main.trophies[6] == 1){
return;
};
_local1 = true;
for (_local2 in Main.bonusesUsed) {
if (Main.bonusesUsed[_local2] < 2){
_local1 = false;
break;
};
};
if (_local1){
Main.trophies[6] = 1;
Main.triphiesJustReached.push(7);
_local3 = new DataStorage();
_local3.saveToSharedObj(Main.trophies, "trophies");
};
}
private function
():void{
sounds.stopMusic();
sounds.playMusic(TheMapMp3);
if (!sounds.musicMuted){
sounds.setMusicVolume(0.25);
} else {
sounds.setMusicVolume(0);
};
}
public function attachAutoSaveInfo():void{
if (QuickHelp.checkIfFirstTime(4)){
autoSaveInfo = display.displayMC(AutoSaveInfo, 128, 446, 310, null, false, this);
autoSaveInfo.name = "autoSaveInfo";
QuickHelp.saveQuickHelp(4);
};
}
private function (_arg1:Event):void{
removeChild( );
= null;
backToMap();
}
private function
():void{
();
bonuses = [];
= {};
mapStage = new Map(this);
= new BallCreator(this);
= new Mover(this);
= new Points(this);
= new Combination(this);
= new ShootManager(this);
display = new Display(this);
sendData = new SendPHP();
sounds = new Sounds();
new MusicControl(this);
}
public function
(_arg1:uint, _arg2:String):void{
();
.getRefs();
if (typeLevel == "puzzle"){
();
} else {
();
};
}
public function removeClickEvent():void{
stage.removeEventListener(MouseEvent.CLICK, onClicked);
}
public function getCombination():Combination{
return (
);
}
private function
(_arg1:MovieClip, _arg2:uint, _arg3:Boolean){
var _local4:Object;
var _local5:Boolean;
var _local6:*;
var _local7:DisplayObject;
var _local8:Point;
var _local9:*;
_arg1.addFrameScript((_arg2 - 1), null);
_local4 = Main.getLevelsRange(_arg2);
_local5 = true;
if (Map.stages){
_local6 = (_local4.min - 1);
while (_local6 < _local4.max) {
if (Map.stages[_local6]){
_arg1[("gem" + Map.stages[_local6][0])].alpha = 1;
if (Map.stages[_local6][0] == ){
_local5 = false;
};
} else {
break;
};
_local6++;
};
};
if (((_local5) && (!((typeLevel == "clear"))))){
sounds.playSound(GemCollected2Mp3);
_local7 = _arg1[("gem" + )];
= new Tween(_local7, "alpha", None.easeNone, 0, 1, 0.5, true);
_local8 = _arg1.localToGlobal(new Point(_local7.x, _local7.y));
if (((( == 51)) || (( == 52)))){
display.displayMC(GlowEffect3, (_local8.x - 11.5), (_local8.y - 16), 15);
display.displayMC(GemEffect3, (_local8.x - 11.5), (_local8.y - 16), 33);
} else {
if (_arg3){
display.displayMC(GlowEffect2, (_arg1.x + 110), (_arg1.y - 203), 15);
_local9 = display.displayMC(GemEffect2, (_arg1.x + 98), (_arg1.y - 220), 33);
_local9.gotoAndPlay(2);
} else {
display.displayMC(GlowEffect, _local8.x, _local8.y, 15);
display.displayMC(GemEffect1, (_local8.x - 10), (_local8.y - 15), 33);
};
};
};
}
private function
(_arg1:Number):void{
if (_arg1){
timeBar.width = 460;
= new Stopwatch(timeBar);
(_arg1);
} else {
= new Stopwatch(timeBar, true);
};
.setNewTimer();
if (Combination.CHECKING_COMB){
.pause();
};
}
public function
():void{
var _local1:*;
for (_local1 in ) {
Main.bonusesArr[_local1] = [_local1];
};
= null;
}
private function
():void{
var _local1:uint;
_local1 = .cannon2.colorBall.colorIndicator.currentFrame;
if (_local1 != 6){
theGame.extraBonusMain.effectExtraBonus.gotoAndPlay(2);
.cannon2.bonusIndicator.gotoAndStop(1);
Main.currentBonus = 0;
.activateSpecialBonus(_local1);
.randomBallColor();
.setSpecialBonus(1);
.setSpecialBonusAtGame();
};
}
private function
(_arg1:Event):void{
();
}
public function goMainMenu():void{
if (!
()){
gotoAndStop(5);
();
addFrameScript(4, );
} else {
gotoAndStop(5);
addFrameScript(4,
);
};
}
private function
():void{
stage.addEventListener(KeyboardEvent.KEY_UP, );
}
public function entranceGame(_arg1:Event, _arg2:uint, _arg3:String):void{
var _local4:uint;
var _local5:uint;
var _local6:Function;
sounds.stopMusic();
if (_arg3 == "normal"){
if (Levels.getLevel(_arg2).isGemsJoining){
_local4 = 2;
} else {
_local4 = 1;
};
_local5 = 1;
} else {
if (_arg3 == "puzzle"){
_local5 = 2;
_local4 = 3;
} else {
_local5 = 3;
_local4 = 4;
};
};
if ((((_arg2 == 2)) && (QuickHelp.checkIfFirstTime(2)))){
_local6 = Delegate.create(, 5, Delegate.create(, _local5, _arg3));
} else {
_local6 = Delegate.create(, _local5, _arg3);
};
this.level = _arg2;
this.typeLevel = _arg3;
(_local4, _local6);
(_arg3);
}
public function getLevel():uint{
return (level);
}
private function
():void{
var _local1:*;
_local1 = new OfflineProtection();
addChild(_local1);
}
private function ():void{
sounds.playSound(ButtonClickMp3);
sounds.playSound(OpenWindowMp3);
new MenuBoard(this);
}
private function removeAllBalls(_arg1:Boolean=false):void{
.removeAllBalls(_arg1);
if (
.ref){
if (theGame.contains(
.ref)){
theGame.removeChild(
.ref);
};
.clearMainBall();
};
}
public function getPoints():Points{
return ();
}
private function ():void{
var _local1:DataStorage;
var _local2:Array;
_local1 = new DataStorage();
_local2 = _local1.getData("quickHelp");
if (!_local2){
_local1.saveToSharedObj([0, 0, 0, 0, 0], "quickHelp");
};
}
public function gameOver():void{
var _local1:Timer;
sounds.playSound(LevelFailedMp3);
clearGame();
if (typeLevel == "normal"){
clearNormalMode();
();
} else {
_local1 = new Timer(500, 1);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, );
_local1.start();
};
}
private function (_arg1:Event):void{
display.displayMC(CreditsBoard, 0, 0, 46, null, true, this);
}
public function clearGame(_arg1:Boolean=false, _arg2:Boolean=false):void{
();
if (((!((typeLevel == "puzzle"))) || (_arg1))){
removeAllBalls(_arg2);
removeAllBonuses();
} else {
removeAllBonuses();
};
stopControl();
();
removeClickEvent();
();
();
}
private function removeAllBonuses():void{
.removeAllBonuses();
}
private function
():Boolean{
if (String(this.loaderInfo.url).indexOf("file") == 0){
return (true);
};
return (false);
}
private function ():void{
.board.addFrameScript(1, null);
.board.reasonFailed.gotoAndStop(2);
();
.board.solutionBtn.addEventListener(MouseEvent.CLICK,
);
addChild( );
}
private function
(_arg1:Event):void{
KingAPI.("solutions", "/game/shields-of-gemland");
}
public function getBallCreator():BallCreator{
return (
);
}
public static function getLevelsRange(_arg1:uint):Object{
var _local2:Object;
_local2 = {};
if (_arg1 == 1){
_local2.min = 1;
_local2.max = 9;
} else {
if (_arg1 == 2){
_local2.min = 10;
_local2.max = 17;
} else {
if (_arg1 == 3){
_local2.min = 18;
_local2.max = 26;
} else {
if (_arg1 == 4){
_local2.min = 27;
_local2.max = 35;
} else {
if (_arg1 == 5){
_local2.min = 36;
_local2.max = 44;
} else {
if (_arg1 == 6){
_local2.min = 45;
_local2.max = 52;
};
};
};
};
};
};
return (_local2);
}
}
}//package
Section 299
//Map (Map)
package {
import flash.display.*;
import flash.events.*;
import com.midasplayer.*;
import PointLevels.*;
public class Map {
private const MAP_FIELDS:Array;
private const LANDS:Array;
private const LAND_POSITIONS:Array;
private var panel:MovieClip;
private var puzzleStages:Array;
private var bridgeStages:Array;
private var :Boolean;
private var
:UpgradeBoard;
private var :SimpleButton;
private var
:Main;
public var newLevelFinished:Object;
private var :DataStorage;
private var :MovieClip;
public static var stages:Array;
public function Map(_arg1:Main){
LAND_POSITIONS = [0, -298, -450, -968, -1350, -1638];
MAP_FIELDS = ["1;2;", "2,3;3,4;", "", "4,5,6;5,7;1;", "7,8;6;2;", "", "9;8;", "10,11,12;9;3,4;", "", "13;11;", "14,16;12,13;", "15;;5;", "17,19,20;14,15,16;", "18;;6;", "", "21;17;", "", "22;19;", "23,24,31;20,21,24;", "", "25,26,28,30;22,23;7,10;", "27;;8;", "29;;9;", "32,34;25,26;", "33;;11;", "", "35;28;", "36;29;", "37,45,44;30,35;12;", "38,39;31,32;", "", "40,42;33,34;", "41;;13;", "43;;14;", "", "46,53,54;37,41,42;", "47,50;38,39;", "48,49;;15,16;", "51;40;", "52;;17;", "", "55,56;43,44;", "", "57;;18;", "58,64;46,51;", "59;47;", "61,60,62;49,48,50;", "", "", "63;;19;", "65,67;52;20;", "66;;21;"];
LANDS = [1, 9, 10, 17, 18, 26, 27, 35, 36, 44, 45, 52];
super();
this.
= _arg1;
}
private function
():void{
this.
.addEventListener(Event.ENTER_FRAME, );
}
private function (_arg1:Event):void{
if ( ){
.removeChild( );
= null;
};
}
private function
():void{
var _local1:*;
_local1 = new StoryBoard();
_local1.x = -473.8;
_local1.y = 18;
_local1.gotoAndStop(26);
_local1.storyWindow.gotoAndStop(9);
.addChild(_local1);
(_local1);
}
private function (_arg1:uint, _arg2:String):void{
.addFrameScript(6, null);
.entranceGame(null, _arg1, _arg2);
}
private function ():void{
var _local1:int;
_local1 = 1;
while (_local1 <= 6) {
.theMap[("bridge" + _local1)].activate();
_local1++;
};
}
private function ():Boolean{
var _local1:Boolean;
var _local2:uint;
_local1 = true;
_local2 = LANDS[(LANDS.length - 2)];
while (_local2 <= LANDS[(LANDS.length - 1)]) {
if (
.theMap[("level" + _local2)].currentFrame != 3){
_local1 = false;
break;
};
_local2++;
};
return (_local1);
}
private function ():void{
this.
.addEventListener(MouseEvent.CLICK, );
}
private function ():void{
.removeEventListener(MouseEvent.CLICK, );
.removeEventListener(Event.ENTER_FRAME, );
}
public function ():void{
panel.mouseChildren = true;
.theMap.mouseChildren = true;
();
();
}
private function (_arg1:Event):void{
.removeAutoSaveInfo();
.sounds.playSound(ButtonClickMp3);
();
();
.removeReminderUpgrade();
.goMainMenu();
}
private function (_arg1:Event):void{
if (!
){
.sounds.playSound(ButtonClickMp3);
.sounds.playSound(OpenWindowMp3);
if (
.reminderUpgrade){
QuickHelp.saveQuickHelp(3);
};
.removeReminderUpgrade();
this.
.theMap.mouseChildren = false;
this.
.theMap.mouseEnabled = false;
();
panel.menuMapBtn.removeEventListener(MouseEvent.CLICK, );
= new UpgradeBoard(
, this., panel.coinsTxt);
.x = -473.8;
.y = 14;
.addChild(
);
} else {
.sounds.playSound(CloseWindow2Mp3);
panel.menuMapBtn.addEventListener(MouseEvent.CLICK, );
.play();
.addFrameScript(25, );
};
}
private function ():void{
var _local1:int;
_local1 = 1;
while (_local1 <= 8) {
panel[("trophy" + _local1)].mouseChildren = false;
_local1++;
};
panel.addEventListener(MouseEvent.MOUSE_OVER,
);
panel.addEventListener(MouseEvent.MOUSE_MOVE, );
panel.addEventListener(MouseEvent.MOUSE_OUT, );
}
private function
(_arg1:Event):void{
var _local2:uint;
if (_arg1.target.name.substr(0, 6) == "trophy"){
= new TrophiesPreview();
.x = (
.mouseX - 2);
.y = (
.mouseY + 2);
_local2 = _arg1.target.name.charAt(6);
if (_arg1.target.currentFrame == 1){
.gotoAndStop(_local2);
} else {
.gotoAndStop((_local2 + 8));
};
.addChild( );
};
}
private function ():void{
var _local1:DataStorage;
var _local2:Array;
var _local3:Array;
var _local4:Array;
var _local5:Boolean;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:int;
_local1 = new DataStorage();
Map.stages = _local1.getData("stages");
_local2 = Map.stages;
if (_local2){
for (_local6 in _local2) {
(_local2[_local6][0]);
};
} else {
= true;
.theMap.level1.activate(
.theMap.level1);
};
puzzleStages = _local1.getData("puzzleStages");
for (_local6 in puzzleStages) {
_local7 =
.theMap[("puzzle" + puzzleStages[_local6])];
_local7.gotoAndStop(3);
if (((((newLevelFinished) && ((newLevelFinished.type == "puzzle")))) && ((newLevelFinished.level == puzzleStages[_local6])))){
_local7.levelComplete.gotoAndPlay(2);
.sounds.playSound(LevelCompletedMp3);
};
_local7.addFrameScript(2, _local7.setFlag);
};
_local3 = _local1.getData("bridgeStages");
_local4 = [1, 2, 3, 4, 5];
for (_local6 in _local3) {
_local8 =
.theMap[("levelBridge" + _local3[_local6])];
_local8.activate();
_local8.gotoAndStop(3);
if (((((newLevelFinished) && ((newLevelFinished.type == "clear")))) && ((newLevelFinished.level == _local3[_local6])))){
_local8.levelComplete.gotoAndPlay(2);
.sounds.playSound(LevelCompletedMp3);
};
_local8.addFrameScript(2, _local8.setFlag);
_local4[(_local3[_local6] - 1)] = 0;
if (!
.theMap[("level" + LANDS[(2 * _local3[_local6])])].isActive){
.theMap[("level" + LANDS[(2 * _local3[_local6])])].activate(
.theMap[("level" + LANDS[(2 * _local3[_local6])])]);
};
};
for (_local6 in _local4) {
if (_local4[_local6]){
_local5 = true;
_local9 = LANDS[((_local4[_local6] * 2) - 2)];
while (_local9 <= LANDS[((_local4[_local6] * 2) - 1)]) {
if (
.theMap[("level" + _local9)].currentFrame != 3){
_local5 = false;
break;
};
_local9++;
};
if (_local5){
.theMap[("levelBridge" + _local4[_local6])].activate(
.theMap[("levelBridge" + _local4[_local6])]);
};
};
};
}
public function saveLevelToStorage(_arg1:uint, _arg2:String, _arg3:uint=0):void{
var _local4:String;
var _local5:DataStorage;
var _local6:Array;
var _local7:Boolean;
var _local8:*;
if (_arg2 == "normal"){
_local4 = "stages";
} else {
if (_arg2 == "puzzle"){
_local4 = "puzzleStages";
} else {
if (_arg2 == "clear"){
_local4 = "bridgeStages";
};
};
};
_local5 = new DataStorage();
_local6 = _local5.getData(_local4);
for (_local8 in _local6) {
if ((((_arg2 == "normal")) && ((_local6[_local8][0] == _arg1)))){
if (_arg3 > _local6[_local8][1]){
_local6[_local8][1] = _arg3;
_local5.saveToSharedObj(_local6, _local4);
};
_local7 = true;
break;
} else {
if (_local6[_local8] == _arg1){
_local7 = true;
break;
};
};
};
if (((!(_local7)) || (!(_local6)))){
newLevelFinished = {};
newLevelFinished.level = _arg1;
newLevelFinished.type = _arg2;
if (_local6){
if (_arg2 == "normal"){
_local6.push([_arg1, _arg3]);
} else {
_local6.push(_arg1);
};
} else {
if (_arg2 == "normal"){
_local6 = [[_arg1, _arg3]];
} else {
_local6 = [_arg1];
};
};
_local5.saveToSharedObj(_local6, _local4);
} else {
newLevelFinished = null;
};
if (((!(_local7)) && ((_arg2 == "clear")))){
= true;
};
if (_arg2 == "normal"){
(_local6);
};
if (((!(_local7)) && ((_arg2 == "puzzle")))){
(_local6);
};
_local5.saveToSharedObj(Main.trophies, "trophies");
}
private function (_arg1:Array):void{
if ((((_arg1.length >= 10)) && ((Main.trophies[2] == 0)))){
Main.triphiesJustReached.push(3);
Main.trophies[2] = 1;
};
if ((((_arg1.length == 21)) && ((Main.trophies[3] == 0)))){
Main.triphiesJustReached.push(4);
Main.trophies[3] = 1;
};
}
private function (_arg1):void{
= new SubmitBtn();
.x = 173.5;
.y = 398.7;
.addChild();
.addEventListener(MouseEvent.CLICK, Delegate.create(, _arg1));
}
private function (_arg1:Event, _arg2):void{
var _local3:Function;
if (){
.removeChild();
.removeChild(_arg2);
KingAPI.submitScore(
.getPoints().getTotalPoints());
= null;
if (Main.triphiesJustReached.length){
_local3 =
;
} else {
_local3 = ;
};
_local3();
};
}
private function (_arg1:Event):void{
if ( ){
.x = (
.mouseX - 2);
.y = (
.mouseY + 2);
};
}
private function ():void{
var _local1:*;
var _local2:int;
for (_local1 in Main.trophies) {
_local2 = Main.triphiesJustReached.indexOf(Number((_local1 + 1)));
if ((((((Main.trophies[_local1] == 1)) && ((_local2 == -1)))) && (!((_local1 == 8))))){
panel[("trophy" + Number((_local1 + 1)))].gotoAndStop(30);
};
};
}
private function ():void{
var _local1:DataStorage;
var _local2:*;
Main.trophies[8] = 1;
_local1 = new DataStorage();
_local1.saveToSharedObj(Main.trophies, "trophies");
_local2 =
.display.displayMC(StoryBoard, -473.8, 18, 46,
, true,
);
_local2.storyWindow.gotoAndStop(8);
}
private function (_arg1:Event):void{
if ((((
.mouseX > (640 - panel.width))) && ((
.mouseX < (660 - panel.width))))){
.scrollMap.gotoAndStop("right");
if ((
.theMap.x - 10) > (-1478 - panel.width)){
.theMap.x = (
.theMap.x - 10);
} else {
.theMap.x = (-1478 - panel.width);
};
} else {
if (
.mouseX < 20){
.scrollMap.gotoAndStop("left");
if ((
.theMap.x + 10) < 0){
.theMap.x = (
.theMap.x + 10);
} else {
.theMap.x = 0;
};
} else {
.scrollMap.gotoAndStop(1);
};
};
}
public function prepareMap(_arg1:uint=0):void{
.addFrameScript(5, null);
.theMap.cacheAsBitmap = true;
(_arg1);
();
();
();
.attachReminderUpgrade();
if (((()) && ((Main.trophies[8] == 0)))){
();
} else {
if ( ){
();
if (_arg1 == 0){
(1, true);
} else {
((_arg1 + 1));
};
= false;
} else {
if (Main.triphiesJustReached.length){
();
();
} else {
();
};
};
};
}
private function ():void{
.theMap.mouseChildren = false;
panel.mouseChildren = false;
}
private function
():void{
var _local1:*;
.sounds.playSound(TrophyCollectedMp3);
panel[("trophy" + Main.triphiesJustReached[0])].gotoAndPlay(2);
if (Main.triphiesJustReached.length == 1){
_local1 =
.display.displayMC(TrophyBoard, -296, 88, 30, , true,
);
} else {
_local1 =
.display.displayMC(TrophyBoard, -296, 88, 30,
, true,
);
};
_local1.trophyWindow.gotoAndStop(Main.triphiesJustReached[0]);
Main.triphiesJustReached.splice(0, 1);
}
private function (_arg1:uint, _arg2:Boolean=false):void{
var _local3:Function;
var _local4:*;
if (((_arg2) && ((_arg1 < 2)))){
_local3 = Delegate.create(, 2, true);
} else {
if (Main.triphiesJustReached.length){
_local3 =
;
} else {
_local3 = ;
};
};
if (_arg1 != 9){
_local4 =
.display.displayMC(StoryBoard, -473.8, 18, 46, _local3, true,
);
};
_local4.storyWindow.gotoAndStop(_arg1);
}
private function ():void{
.removeChild(panel);
panel = null;
}
private function ():void{
panel = new PanelMap();
panel.cacheAsBitmap = true;
panel.x = 500;
panel.name = "panel";
();
();
.addChild(panel);
panel.coinsTxt.text = String(
.getPoints().getCoins());
panel.scoreTxt.text = String(
.getPoints().getTotalPoints());
panel.upgradeBtn.addEventListener(MouseEvent.CLICK, );
panel.menuMapBtn.addEventListener(MouseEvent.CLICK, );
}
private function (_arg1:uint):void{
var _local2:*;
var _local3:String;
var _local4:*;
var _local5:Array;
var _local6:uint;
var _local7:uint;
var _local8:String;
var _local9:*;
_local2 =
.theMap[("level" + _arg1)];
_local2.activate();
_local2.gotoAndStop(3);
if (((((newLevelFinished) && ((newLevelFinished.type == "normal")))) && ((newLevelFinished.level == _arg1)))){
.attachAutoSaveInfo();
_local2.levelComplete.gotoAndPlay(2);
_local2.highlighted.gotoAndPlay(2);
.sounds.playSound(LevelCompletedMp3);
};
_local2.addFrameScript(2, _local2.setFlag);
_local3 = MAP_FIELDS[(_arg1 - 1)];
_local4 = _local3.length;
_local5 = [];
_local6 = 0;
_local7 = 0;
while (_local7 < _local3.length) {
_local8 = _local3.charAt(_local7);
if (_local8 == ";"){
switch (_local6){
case 0:
for (_local9 in _local5) {
.theMap[("path" + _local5[_local9])].gotoAndStop(2);
};
break;
case 1:
for (_local9 in _local5) {
.theMap[("level" + _local5[_local9])].activate(
.theMap[("level" + _local5[_local9])]);
};
break;
case 2:
for (_local9 in _local5) {
.theMap[("puzzle" + _local5[_local9])].activate(
.theMap[("puzzle" + _local5[_local9])]);
};
break;
};
_local5.splice(0, _local5.length);
_local6++;
} else {
if (_local8 != ","){
if (((!((_local3.charAt((_local7 + 1)) == ","))) && (!((_local3.charAt((_local7 + 1)) == ";"))))){
_local5.push((_local8 + _local3.charAt((_local7 + 1))));
_local7++;
} else {
_local5.push(_local8);
};
};
};
_local7++;
};
}
private function (_arg1:uint):void{
if (_arg1){
.theMap.x = LAND_POSITIONS[(_arg1 - 1)];
};
}
private function (_arg1:Array):void{
var _local2:uint;
var _local3:*;
_local2 = 0;
for (_local3 in _arg1) {
if (_arg1[_local3][1] == 3){
_local2++;
};
};
if ((((_local2 >= 20)) && ((Main.trophies[0] == 0)))){
Main.triphiesJustReached.push(1);
Main.trophies[0] = 1;
};
if ((((_local2 == 52)) && ((Main.trophies[1] == 0)))){
Main.triphiesJustReached.push(2);
Main.trophies[1] = 1;
};
}
private function ():void{
panel.menuMapBtn.addEventListener(MouseEvent.CLICK, );
.addFrameScript(25, null);
.removeChild(
);
= null;
();
this.
.theMap.mouseChildren = true;
this.
.theMap.mouseEnabled = true;
}
private function (_arg1:Event):void{
if ((((((_arg1.target is PointLevel)) && (_arg1.target.isActive))) && (!(_arg1.target.isBridge)))){
();
();
.removeReminderUpgrade();
.removeAutoSaveInfo();
.gotoAndStop(7);
if ((_arg1.target is LevelPoint)){
.addFrameScript(6, Delegate.create(, _arg1.target.level, "normal"));
} else {
if ((_arg1.target is PuzzlePoint)){
.addFrameScript(6, Delegate.create(, _arg1.target.level, "puzzle"));
} else {
if ((_arg1.target is BridgePoint)){
.addFrameScript(6, Delegate.create(, _arg1.target.level, "clear"));
};
};
};
};
}
public function checkPuzzleFinished():Boolean{
var _local1:int;
if (puzzleStages){
_local1 = puzzleStages.indexOf(
.level);
if (_local1 >= 0){
return (true);
};
return (false);
//unresolved jump
};
return (false);
}
}
}//package
Section 300
//mcDragon (mcDragon)
package {
import flash.display.*;
public dynamic class mcDragon extends MovieClip {
}
}//package
Section 301
//mcGlimmer (mcGlimmer)
package {
import flash.display.*;
public dynamic class mcGlimmer extends MovieClip {
}
}//package
Section 302
//MenuBoard (MenuBoard)
package {
import flash.display.*;
import flash.events.*;
public class MenuBoard extends MovieClip {
public var menu:MovieClip;
private var target:Main;
public function MenuBoard(_arg1:Main){
addFrameScript(16, frame17, 29, frame30);
if (((!(Combination.CHECKING_COMB)) && (!(_arg1.getMover().isMovingBalls)))){
this.target = _arg1;
();
};
}
private function (_arg1:Event):void{
target.sounds.playSound(ButtonClickMp3);
target.clearNormalMode();
(playAgain);
}
private function ():void{
menu.soundControlBtn.buttonMode = true;
menu.soundControlBtn.useHandCursor = true;
menu.musicControlBtn.buttonMode = true;
menu.musicControlBtn.useHandCursor = true;
menu.qualityBtn.buttonMode = true;
menu.qualityBtn.useHandCursor = true;
if (stage.quality == "MEDIUM"){
menu.qualityBtn.qualityMode.gotoAndStop(2);
} else {
menu.qualityBtn.qualityMode.gotoAndStop(1);
};
if (target.sounds.musicMuted){
menu.musicControlBtn.musicMode.gotoAndStop(2);
} else {
menu.musicControlBtn.musicMode.gotoAndStop(1);
};
if (target.sounds.soundsMuted){
menu.soundControlBtn.soundMode.gotoAndStop(2);
} else {
menu.soundControlBtn.soundMode.gotoAndStop(1);
};
}
private function (_arg1:Event):void{
if (target.sounds.musicMuted){
target.sounds.muteMusic(0.25);
target.musicControlBtn.gotoAndStop(1);
menu.musicControlBtn.musicMode.gotoAndStop(1);
} else {
target.sounds.muteMusic();
target.musicControlBtn.gotoAndStop(3);
menu.musicControlBtn.musicMode.gotoAndStop(2);
};
}
private function ():void{
target.startEnterFrame();
}
private function (_arg1:Event):void{
if (stage.quality == "MEDIUM"){
menu.qualityBtn.qualityMode.gotoAndStop(1);
stage.quality = StageQuality.HIGH;
} else {
menu.qualityBtn.qualityMode.gotoAndStop(2);
stage.quality = StageQuality.MEDIUM;
};
}
function frame17(){
stop();
}
private function (_arg1:Function):void{
gotoAndPlay(18);
addFrameScript(29, Delegate.create(
, _arg1));
}
private function (_arg1:Event):void{
target.sounds.playSound(ButtonClickMp3);
target.sounds.playSound(CloseWindowMp3);
();
}
function frame30(){
stop();
}
private function ():void{
if (!target.getTimer_().isPaused){
target.getTimer_().pause();
};
target.stopControl();
this.x = 660;
this.y = 88;
target.addChild(this);
addFrameScript(16, );
();
}
private function (_arg1:Event):void{
target.sounds.playSound(ButtonClickMp3);
target.removeChild(this);
target.getMover().clearGems();
target.clearGame();
target.backToMap();
}
private function ():void{
addFrameScript(16, null);
stop();
this.menu.playAgainBtn.addEventListener(MouseEvent.CLICK, );
this.menu.backToMapBtn.addEventListener(MouseEvent.CLICK, );
this.menu.returnToGameBtn.addEventListener(MouseEvent.CLICK, );
this.menu.soundControlBtn.addEventListener(MouseEvent.CLICK,
);
this.menu.musicControlBtn.addEventListener(MouseEvent.CLICK, );
this.menu.qualityBtn.addEventListener(MouseEvent.CLICK, );
}
private function playAgain():void{
target.clearGame();
target.playAgain();
}
private function
(_arg1:Event):void{
if (target.sounds.soundsMuted){
target.sounds.muteSounds();
target.soundControlBtn.gotoAndStop(1);
menu.soundControlBtn.soundMode.gotoAndStop(1);
} else {
target.sounds.muteSounds();
target.soundControlBtn.gotoAndStop(3);
menu.soundControlBtn.soundMode.gotoAndStop(2);
};
}
private function
(_arg1:Function):void{
addFrameScript(29, null);
target.removeChild(this);
if (target.getTimer_().isPaused){
target.getTimer_().finishPause();
};
_arg1();
}
}
}//package
Section 303
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 304
//Mover (Mover)
package {
import flash.display.*;
import Balls.*;
import flash.events.*;
import flash.utils.*;
import fl.transitions.easing.*;
import Splash.*;
import fl.transitions.*;
public class Mover {
private const speedDown:Number = 4;
private const SPEED_SHOT_BALL:Number = 40;
private var :Array;
private var :Timer;
private var bonuses:Array;
private var :Number;
public var isMovingBalls:Boolean;
private var
:uint;
private var :Boolean;
private var :Array;
public var :int;
private var
:BallCreator;
private var
:uint;
private var
:Main;
private var
:uint;
public var
:int;
private var
:uint;
private var map:Array;
private var
:Combination;
private var :Object;
private var :Object;
private var :Array;
private var :Array;
public var shiftToDown:Number;
private var :Array;
private var :uint;
private var :MovieClip;
public function Mover(_arg1:Main){
= BoardVars.BALL_DISTANCE_Y;
super();
= _arg1;
= [];
= [];
= [];
= [];
= 0;
shiftToDown = 0;
}
public function moveBalls():void{
var _local1:int;
var _local2:Number;
var _local3:Boolean;
var _local4:*;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (){
if (! ){
();
};
if (!Combination.CHECKING_COMB){
= true;
=
;
= getTimer();
_local1 = (
- );
_local2 = ((_local1 / 25) * speedDown);
if ((shiftToDown + _local2) < 38){
_local3 = false;
} else {
_local3 = true;
};
for (_local4 in ) {
if (!_local3){
[_local4].y = ([_local4].y + _local2);
} else {
[_local4].y = map[[_local4].coordY][[_local4].coordX].pos.y;
};
};
if (_local3){
= false;
shiftToDown = 0;
();
} else {
shiftToDown = (shiftToDown + _local2);
};
} else {
= false;
};
};
if (.ref){
if (.posYtarget){
_local5 = ((map[(.posYtarget - 1)][.posXtarget].ref.y + BoardVars.BALL_H) +
);
} else {
_local5 = BoardVars.START_Y;
};
= (_local5 - .ref.y);
if (( + Math.abs(.ref.vy)) >= 0){
.ref.y = _local5;
} else {
.ref.y = (.ref.y + .ref.vy);
};
if (!.setCol){
_local6 = map[0][.posXtarget].pos.x;
_local7 = (_local6 - .ref.x);
_local8 = Math.atan2( , _local7);
.ref.vx = (Math.cos(_local8) * SPEED_SHOT_BALL);
.ref.vy = (Math.sin(_local8) * SPEED_SHOT_BALL);
.ref.x = (.ref.x + .ref.vx);
if ((((Math.abs(_local7) < 6)) || ((( + Math.abs(.ref.vy)) >= 0)))){
.ref.x = _local6;
.ref.vx = 0;
.setCol = true;
};
};
= (_local5 - .ref.y);
};
}
private function (_arg1:Event, _arg2:MovieClip):void{
var _local3:Timer;
.sounds.playSound(GemCollectedMp3);
.removeChild(_arg2);
++;
.theGame.gemsToCollect.gemMask.gotoAndPlay(("gem" +
));
.theGame.gemsToCollect.gemCollected.gotoAndPlay(2);
.theGame.gemsToCollect.gemCollected.glowEffect.gotoAndPlay(("gem" +
));
if ((((
.goldsCollected == 3)) && ((
== 3)))){
_local3 = new Timer(1000, 1);
_local3.addEventListener(TimerEvent.TIMER_COMPLETE, );
_local3.start();
};
}
public function moveDownBalls():void{
var _local1:int;
var _local2:int;
var _local3:uint;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:Boolean;
isMovingBalls = true;
Main.rowsMoved++;
.changeLevelProperties();
_local1 = (BoardVars.ALL_ROWS - 1);
_local2 = 0;
= new Array();
if (((!((
.typeLevel == "clear"))) && ((
.destroyedArr[0] <= Main.ballsDestroyed)))){
.destroyedArr.splice(0, 1);
_local3 =
.getRandomInteger(BoardVars.COLUMNS);
};
while (_local2 <= BoardVars.COLUMNS) {
while (map[_local1][_local2]) {
if (_local1 == 0){
if (((_local3) && ((_local3 == _local2)))){
_local7 = true;
};
_local4 =
.maxColor;
_local5 = map[_local1][_local2].pos.x;
_local6 = ((map[_local1][_local2].pos.y - BoardVars.BALL_DISTANCE_Y) - BoardVars.BALL_H);
map[_local1][_local2].ref =
.addRandomBall(_local4, _local5, _local6, BoardVars.BALL_SCALE_X, BoardVars.BALL_SCALE_Y, 0, _local7);
if (((_local7) && (
.isGemsJoining))){
= map[_local1][_local2].ref;
};
_local7 = false;
map[_local1][_local2].ref.setPositionVars(_local2, 0);
.push(map[_local1][_local2].ref);
} else {
if (map[(_local1 - 1)][_local2].ref){
.push(map[(_local1 - 1)][_local2].ref);
map[_local1][_local2].ref = map[(_local1 - 1)][_local2].ref;
map[_local1][_local2].ref.coordY++;
};
};
if (_local1 >= 1){
_local1--;
} else {
break;
};
};
_local1 = (BoardVars.ALL_ROWS - 1);
_local2++;
};
.setStarsCollected();
if (.ref){
.posYtarget++;
};
if (.mainPosYtarget != null){
if (((.mainPosYtarget) || ((((.mainPosYtarget == 0)) && ((((.ref.color == map[0][.posXtarget].ref.color)) || ((.ref.color == BoardVars.GEM_COLOR)))))))){
.mainPosYtarget++;
};
};
if ((((.posYtarget >= BoardVars.ALL_ROWS)) || ((.mainPosYtarget >= BoardVars.ALL_ROWS)))){
.gameOver();
};
}
private function (_arg1:MovieClip):Boolean{
if (((.area1.hitTestObject(_arg1)) || (.area2.hitTestObject(_arg1)))){
return (true);
};
return (false);
}
public function clearTweensSide():void{
.splice(0, .length);
}
public function moveBonuses():void{
var _local1:int;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
if (bonuses){
_local1 = bonuses.length;
while (--_local1 > -1) {
if (bonuses[_local1].type != 5){
bonuses[_local1].x = (bonuses[_local1].x + bonuses[_local1].vx);
bonuses[_local1].y = (bonuses[_local1].y + bonuses[_local1].vy);
bonuses[_local1].vy = (bonuses[_local1].vy + 0.3);
if ( (bonuses[_local1])){
.effectCollect.gotoAndPlay(2);
.removeChild(bonuses[_local1]);
if (bonuses[_local1].type != 6){
.sounds.playSound(BonusCollectedMp3);
Main.currentBonus = bonuses[_local1].type;
((bonuses[_local1].x + 16), (bonuses[_local1].y + 30), bonuses[_local1].type);
.cancelOtherBonus();
.setCurrentBonus(bonuses[_local1].type);
} else {
((bonuses[_local1].x + 11), (bonuses[_local1].y + 11));
.sounds.playSound(CoinCollectedMp3);
.getPoints().addCoins(
.getCoinValue());
.checkCoinsTrophy(++
);
};
bonuses.splice(_local1, 1);
};
} else {
.goldsCollected++;
if (
.goldsCollected <= 3){
.push(bonuses[_local1]);
_local2 = 62.4;
_local3 = 333.1;
_local4 = Math.sqrt((Math.pow((_local2 - bonuses[_local1].x), 2) + Math.pow((_local3 - bonuses[_local1].y), 2)));
_local5 = (_local4 * 0.005);
.push(new Tween(bonuses[_local1], "x", None.easeNone, bonuses[_local1].x, _local2, _local5, true));
.push(new Tween(bonuses[_local1], "y", None.easeNone, bonuses[_local1].y, _local3, _local5, true));
[( .length - 1)].addEventListener(TweenEvent.MOTION_FINISH, Delegate.create( , bonuses[_local1]));
} else {
.removeChild(bonuses[_local1]);
};
if (
.goldsCollected == 3){
.removeClickEvent();
.stopTimer();
};
bonuses.splice(_local1, 1);
};
};
_local1 = bonuses.length;
while (--_local1 > -1) {
if (((!((bonuses[_local1].type == 4))) && (
(bonuses[_local1])))){
.removeChild(bonuses[_local1]);
bonuses.splice(_local1, 1);
};
};
};
}
public function clearTweensUp():void{
.splice(0, .length);
}
private function (_arg1:Number, _arg2:Number, _arg3:uint):void{
var _local4:*;
var _local5:String;
var _local6:Class;
_local4 =
.display.displayMC(CollectedBonus, (.x - 58.5), (.y - 15.5), 24, null, false,
);
_local4.edited.gotoAndStop(_arg3);
switch (_arg3){
case 1:
_local5 = "ThunderEffect";
break;
case 2:
_local5 = "BombEffect";
break;
case 3:
_local5 = "FireballEffect";
break;
case 4:
_local5 = "PaintballEffect";
break;
};
_local6 = (getDefinitionByName(_local5) as Class);
new Splash(
, _local6, _arg1, _arg2, 1.4, 1.4, 6, 0.2, 4, 0.06, 1, 200);
}
public function setNewMap():void{
map =
.getMap();
= 0;
}
private function
(_arg1:MovieClip):Boolean{
if (_arg1.y > 480){
return (true);
};
return (false);
}
public function moveBallAside(_arg1:ColorBall, _arg2:Number):void{
[
] = new Tween(_arg1, "x", Strong.easeIn, _arg1.x, _arg2, 0.25, true);
[
].addEventListener(TweenEvent.MOTION_FINISH, onMoveAsideFinished);
++;
}
public function checkPostionsMainBall():void{
var _local1:Object;
if (.ref){
_local1 =
();
if ((((((.ref.y == _local1.pos.y)) && (!(isMovingBalls)))) && (.setCol))){
.ref.y = _local1.pos.y;
(_local1);
(_local1);
.sounds.playSound(BallHitMp3);
if (((!((.type == 3))) || (.fireBallFinished))){
clearMainBall();
};
} else {
if ((((((Math.abs( ) == 0)) && (isMovingBalls))) && (.setCol))){
(_local1);
(_local1);
.sounds.playSound(BallHitMp3);
if (((!((.type == 3))) || (.fireBallFinished))){
if (((!((.type == 3))) || (.mainPosYtarget))){
.push(.ref);
};
clearMainBall();
};
};
};
};
}
private function (_arg1:Object):void{
var _local2:Boolean;
var _local3:Sprite;
if (.type == 0){
_local2 =
.startCheckingCombination(_arg1.ref.coordY, _arg1.ref.coordX);
} else {
if (.type == 2){
.activateBomb(_arg1.ref.coordY, _arg1.ref.coordX);
_local2 = true;
} else {
if (.type == 3){
if (.ref.coordY == .mainPosYtarget){
.fireBallFinished = true;
.ref.fireBall.gotoAndStop(1);
if (
.goldsCollected < 3){
_local2 =
.startCheckingCombination(_arg1.ref.coordY, _arg1.ref.coordX, true);
} else {
_local2 = false;
};
} else {
_local3 = map[(.posYtarget - 1)][.posXtarget].ref;
map[.posYtarget][.posXtarget].ref = null;
.removeBalls([_local3]);
.posYtarget--;
};
} else {
if (.type == 4){
.activateColorBall(_arg1.ref.coordY, _arg1.ref.coordX, _arg1.ref.color);
_local2 = true;
};
};
};
};
}
public function moveBallUp(_arg1:ColorBall, _arg2:Number):void{
[
] = new Tween(_arg1, "y", Strong.easeOut, _arg1.y, _arg2, 0.25, true);
[
].addEventListener(TweenEvent.MOTION_FINISH, onMoveUpFinished);
++;
}
public function moveCannon(){
var _local1:Number;
var _local2:Number;
if (!.isRemoved){
_local1 = (
.mouseX - .x);
if ((((_local1 > 0)) && (!(.isMovingRight)))){
.wheels.gotoAndPlay("right");
.isMovingRight = true;
.isMovingLeft = false;
} else {
if ((((_local1 < 0)) && (!(.isMovingLeft)))){
.wheels.gotoAndPlay("left");
.isMovingLeft = true;
.isMovingRight = false;
} else {
if (_local1 == 0){
.wheels.stop();
.isMovingRight = false;
.isMovingLeft = false;
};
};
};
_local2 = (_local1 / 2.5);
if (((((.x + _local2) >= BoardVars.START_X)) && (((.x + _local2) <= BoardVars.END_X)))){
if (Math.abs(_local2) < 2){
.x =
.mouseX;
} else {
.x = (.x + _local2);
};
.drawLine();
};
};
}
public function getRefs():void{
=
.getMainBall();
=
.getCannon();
bonuses =
.getBonuses();
=
.getBallCreator();
=
.getCombination();
}
private function
(_arg1:Object):void{
_arg1.ref = .ref;
.ref.setPositionVars(.posXtarget, .posYtarget);
}
private function onMoveUpFinished(_arg1:Event):void{
.onMoveUpFinished();
}
public function clearMainBall():void{
var _local1:*;
for (_local1 in ) {
[_local1] = null;
};
}
private function
():Object{
var _local1:Object;
_local1 = map[.posYtarget][.posXtarget];
return (_local1);
}
private function onMoveAsideFinished(_arg1:Event):void{
.onMoveAsideFinished();
}
private function ():void{
if (){
.checkCombWhenGemMovedDown(.coordY, .coordX);
= null;
};
isMovingBalls = false;
= null;
}
private function (_arg1:Number, _arg2:Number):void{
var _local3:*;
_local3 =
.display.displayMC(CollectedCoin, (.x - 30), (.y - 25), 24, null, false,
);
_local3.edited.coinsTxt.text = String(
.getCoinValue());
new Splash(
, CoinEffect, _arg1, _arg2, 1.4, 1.4, 6, 0.2, 4, 0.06, 1, 200);
}
private function ():void{
= getTimer();
= ;
}
public function clearGems():void{
var _local1:*;
.splice(0, .length);
= 0;
for (_local1 in ) {
if (
.contains([_local1])){
.removeChild([_local1]);
};
};
.splice(0, .length);
}
private function (_arg1:Event=null):void{
clearGems();
.startCheckingTimer();
}
public function stopGemsAnimation():void{
var _local1:*;
for (_local1 in ) {
if (( [_local1] is Tween)){
if ( [_local1].isPlaying){
[_local1].stop();
};
};
};
}
}
}//package
Section 305
//MusicControl (MusicControl)
package {
import flash.events.*;
public class MusicControl {
private var
:Main;
public function MusicControl(_arg1:Main):void{
this.
= _arg1;
();
}
private function ():void{
.musicControlBtn.buttonMode = true;
.musicControlBtn.useHandCursor = true;
.soundControlBtn.buttonMode = true;
.soundControlBtn.useHandCursor = true;
.musicControlBtn.addEventListener(MouseEvent.CLICK, );
.soundControlBtn.addEventListener(MouseEvent.CLICK,
);
}
private function
(_arg1:Event):void{
if (
.sounds.soundsMuted){
.sounds.muteSounds();
.soundControlBtn.gotoAndStop(1);
} else {
.sounds.muteSounds();
.soundControlBtn.gotoAndStop(3);
};
}
private function (_arg1:Event):void{
if (
.sounds.musicMuted){
if (
.currentFrame == 5){
.sounds.muteMusic(1);
} else {
.sounds.muteMusic(0.25);
};
.musicControlBtn.gotoAndStop(1);
} else {
.sounds.muteMusic();
.musicControlBtn.gotoAndStop(3);
};
}
}
}//package
Section 306
//NextLevelTxt (NextLevelTxt)
package {
import flash.display.*;
public dynamic class NextLevelTxt extends MovieClip {
}
}//package
Section 307
//OfflineProtection (OfflineProtection)
package {
import flash.display.*;
import flash.events.*;
import com.midasplayer.*;
public dynamic class OfflineProtection extends MovieClip {
public var brandingMc2:SimpleButton;
public var brandingMc:SimpleButton;
public function OfflineProtection(){
addFrameScript(0, frame1);
}
public function
(_arg1:Event){
KingAPI.openSignLink();
}
function frame1(){
brandingMc.addEventListener(MouseEvent.CLICK, onClickedSignLink);
brandingMc2.addEventListener(MouseEvent.CLICK,
);
}
public function onClickedSignLink(_arg1:Event){
KingAPI.openSignLink();
}
}
}//package
Section 308
//OpenWindowMp3 (OpenWindowMp3)
package {
import flash.media.*;
public dynamic class OpenWindowMp3 extends Sound {
}
}//package
Section 309
//PaintballEffect (PaintballEffect)
package {
import flash.display.*;
public dynamic class PaintballEffect extends MovieClip {
public function PaintballEffect(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package
Section 310
//PaintballMp3 (PaintballMp3)
package {
import flash.media.*;
public dynamic class PaintballMp3 extends Sound {
}
}//package
Section 311
//PanelMap (PanelMap)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import com.midasplayer.*;
public dynamic class PanelMap extends MovieClip {
public var trophy1:MovieClip;
public var trophy5:MovieClip;
public var trophy4:MovieClip;
public var trophy6:MovieClip;
public var trophy7:MovieClip;
public var trophy3:MovieClip;
public var trophy8:MovieClip;
public var trophy2:MovieClip;
public var coinsTxt:TextField;
public var menuMapBtn:SimpleButton;
public var upgradeBtn:SimpleButton;
public var scoreTxt:TextField;
public var brandingMc:SimpleButton;
public function PanelMap(){
addFrameScript(0, frame1);
}
function frame1(){
brandingMc.addEventListener(MouseEvent.CLICK, onClickedSignLink);
}
public function onClickedSignLink(_arg1:Event){
KingAPI.openSignLink();
}
}
}//package
Section 312
//Points (Points)
package {
import flash.text.*;
public class Points {
private var :uint;
private var pointsTxt:TextField;
private var coinsTxt:TextField;
private var target:Main;
private var :uint;
private var
:uint;
public function Points(_arg1:Main):void{
this.target = _arg1;
}
public function setCoins(_arg1:int):void{
= _arg1;
}
public function setPointsAtGame():void{
pointsTxt.text = String();
}
public function getCoins():uint{
return ();
}
public function setSpecialBonusAtGame():void{
target.theGame.extraBonusMain.extraBonus.bonusBar.gotoAndStop(
);
}
public function subtractCoins(_arg1, _arg2:TextField):void{
= ( - _arg1);
_arg2.text = String();
}
public function getTotalPoints():uint{
return ();
}
public function setStats():void{
pointsTxt = target.theGame.scoreCounter.scoreTxt;
coinsTxt = target.theGame.coinCounter.scoreTxt;
}
public function addCoins(_arg1:uint):void{
= ( + _arg1);
coinsTxt.text = String();
}
public function addPoints(_arg1:uint, _arg2:uint=1):uint{
var _local3:uint;
_local3 = ((_arg1 * 10) * _arg2);
= ( + _local3);
pointsTxt.text = String();
return (_local3);
}
public function setPoints(_arg1:uint):void{
= _arg1;
}
public function setSpecialBonus(_arg1:uint):void{
= _arg1;
}
public function setCoinsAtGame():void{
coinsTxt.text = String();
}
public function getSpecilaBonusBar():uint{
return (
);
}
public function increseBonusBar(_arg1:uint):void{
= (
+ 3);
target.theGame.extraBonusMain.extraBonus.bonusBar.gotoAndStop(
);
if (target.theGame.extraBonusMain.checkIfFilled()){
target.theGame.extraBonusMain.animateSpecialBonus();
if (QuickHelp.checkIfFirstTime(4)){
target.attachReminderBonus();
};
};
}
}
}//package
Section 313
//PointsMC (PointsMC)
package {
import flash.display.*;
public dynamic class PointsMC extends MovieClip {
public var edited:MovieClip;
}
}//package
Section 314
//PuzzleSolved (PuzzleSolved)
package {
import flash.display.*;
public dynamic class PuzzleSolved extends MovieClip {
}
}//package
Section 315
//PuzzleSolvedMp3 (PuzzleSolvedMp3)
package {
import flash.media.*;
public dynamic class PuzzleSolvedMp3 extends Sound {
}
}//package
Section 316
//QuickHelp (QuickHelp)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class QuickHelp extends MovieClip {
public var exitBtn:SimpleButton;
private var delay:Timer;
private var target:Main;
public function QuickHelp(_arg1:Main):void{
addFrameScript(0, frame1);
this.target = _arg1;
_arg1.addChild(this);
_arg1.stopControl();
_arg1.getTimer_().pause();
_arg1.addEventListener(MouseEvent.CLICK, );
this.exitBtn.addEventListener(MouseEvent.CLICK, );
}
private function (_arg1:Event):void{
delay = null;
target.getTimer_().finishPause();
target.startEnterFrame();
}
function frame1(){
stop();
}
private function (_arg1:Event):void{
if (this.currentFrame < 6){
target.sounds.playSound(QuickHelpMp3);
this.nextFrame();
} else {
();
};
}
private function (_arg1:Event=null):void{
target.removeEventListener(MouseEvent.CLICK, );
target.removeChild(this);
delay = new Timer(500, 1);
delay.addEventListener(TimerEvent.TIMER_COMPLETE, );
delay.start();
}
public static function checkIfFirstTime(_arg1:uint):Boolean{
var _local2:DataStorage;
var _local3:Array;
_local2 = new DataStorage();
_local3 = _local2.getData("quickHelp");
if (_local3[(_arg1 - 1)] == 0){
if ((((_arg1 == 1)) || ((_arg1 == 2)))){
_local3[(_arg1 - 1)] = 1;
_local2.saveToSharedObj(_local3, "quickHelp");
};
return (true);
//unresolved jump
};
return (false);
}
public static function saveQuickHelp(_arg1:uint):void{
var _local2:DataStorage;
var _local3:Array;
_local2 = new DataStorage();
_local3 = _local2.getData("quickHelp");
_local3[(_arg1 - 1)] = 1;
_local2.saveToSharedObj(_local3, "quickHelp");
}
}
}//package
Section 317
//QuickHelpMp3 (QuickHelpMp3)
package {
import flash.media.*;
public dynamic class QuickHelpMp3 extends Sound {
}
}//package
Section 318
//ReminderBonus (ReminderBonus)
package {
import flash.display.*;
public dynamic class ReminderBonus extends MovieClip {
public function ReminderBonus(){
addFrameScript(54, frame55);
}
function frame55(){
gotoAndPlay("repeat");
}
}
}//package
Section 319
//ReminderUpgrade (ReminderUpgrade)
package {
import flash.display.*;
public dynamic class ReminderUpgrade extends MovieClip {
public function ReminderUpgrade(){
addFrameScript(54, frame55);
}
function frame55(){
gotoAndPlay("repeat");
}
}
}//package
Section 320
//SendPHP (SendPHP)
package {
import flash.net.*;
public class SendPHP {
public function sendData(_arg1:String, _arg2:URLVariables, _arg3:String=null):void{
var _local4:URLRequest;
var _local5:URLVariables;
_local4 = new URLRequest(_arg1);
_local5 = _arg2;
_local4.data = _local5;
_local4.method = URLRequestMethod.POST;
if (!_arg3){
sendToURL(_local4);
} else {
navigateToURL(_local4, _arg3);
};
}
}
}//package
Section 321
//sfxBell (sfxBell)
package {
import flash.media.*;
public dynamic class sfxBell extends Sound {
}
}//package
Section 322
//SHA1 (SHA1)
package {
public class SHA1 {
public static const HEX_FORMAT_LOWERCASE:uint = 0;
public static const BITS_PER_CHAR_ASCII:uint = 8;
public static const BASE64_PAD_CHARACTER_DEFAULT_COMPLIANCE:String = "";
public static const HEX_FORMAT_UPPERCASE:uint = 1;
public static const BITS_PER_CHAR_UNICODE:uint = 8;
public static const BASE64_PAD_CHARACTER_RFC_COMPLIANCE:String = "=";
public static var hexcase:uint = 0;
public static var chrsz:uint = 8;
public static var b64pad:String = "";
public static function binb2str(_arg1:Array):String{
var _local2:String;
var _local3:Number;
var _local4:Number;
_local2 = "";
_local3 = ((1 << chrsz) - 1);
_local4 = 0;
while (_local4 < (_arg1.length * 32)) {
_local2 = (_local2 + String.fromCharCode(((_arg1[(_local4 >> 5)] >>> ((32 - chrsz) - (_local4 % 32))) & _local3)));
_local4 = (_local4 + chrsz);
};
return (_local2);
}
public static function b64_sha1(_arg1:String):String{
return (binb2b64(core_sha1(str2binb(_arg1), (_arg1.length * chrsz))));
}
public static function sha1_ft(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < 20){
return (((_arg2 & _arg3) | (~(_arg2) & _arg4)));
};
if (_arg1 < 40){
return (((_arg2 ^ _arg3) ^ _arg4));
};
if (_arg1 < 60){
return ((((_arg2 & _arg3) | (_arg2 & _arg4)) | (_arg3 & _arg4)));
};
return (((_arg2 ^ _arg3) ^ _arg4));
}
public static function core_hmac_sha1(_arg1:String, _arg2:String):Array{
var _local3:Array;
var _local4:Array;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = str2binb(_arg1);
if (_local3.length > 16){
_local3 = core_sha1(_local3, (_arg1.length * chrsz));
};
_local4 = Array(16);
_local5 = Array(16);
_local6 = 0;
while (_local6 < 16) {
_local4[_local6] = (_local3[_local6] ^ 909522486);
_local5[_local6] = (_local3[_local6] ^ 1549556828);
_local6++;
};
_local7 = core_sha1(_local4.concat(str2binb(_arg2)), (0x0200 + (_arg2.length * chrsz)));
return (core_sha1(_local5.concat(_local7), (0x0200 + 160)));
}
public static function str_hmac_sha1(_arg1:String, _arg2:String):String{
return (binb2str(core_hmac_sha1(_arg1, _arg2)));
}
public static function str_sha1(_arg1:String):String{
return (binb2str(core_sha1(str2binb(_arg1), (_arg1.length * chrsz))));
}
public static function sha1_vm_test():Boolean{
return ((hex_sha1("abc") == "a9993e364706816aba3e25717850c26c9cd0d89d"));
}
public static function binb2hex(_arg1:Array):String{
var _local2:String;
var _local3:String;
var _local4:Number;
_local2 = (hexcase) ? "0123456789ABCDEF" : "0123456789abcdef";
_local3 = "";
_local4 = 0;
while (_local4 < (_arg1.length * 4)) {
_local3 = (_local3 + (_local2.charAt(((_arg1[(_local4 >> 2)] >> (((3 - (_local4 % 4)) * 8) + 4)) & 15)) + _local2.charAt(((_arg1[(_local4 >> 2)] >> ((3 - (_local4 % 4)) * 8)) & 15))));
_local4++;
};
return (_local3);
}
public static function encrypt(_arg1:String):String{
return (hex_sha1(_arg1));
}
public static function rol(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
public static function hex_sha1(_arg1:String):String{
return (binb2hex(core_sha1(str2binb(_arg1), (_arg1.length * chrsz))));
}
public static function sha1_kt(_arg1:Number):Number{
return (((_arg1)<20) ? 1518500249 : ((_arg1)<40) ? 1859775393 : ((_arg1)<60) ? -1894007588 : -899497514);
}
public static function core_sha1(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (24 - (_arg2 % 32))));
_arg1[((((_arg2 + 64) >> 9) << 4) + 15)] = _arg2;
_local3 = Array(80);
_local4 = 1732584193;
_local5 = -271733879;
_local6 = -1732584194;
_local7 = 271733878;
_local8 = -1009589776;
_local9 = 0;
while (_local9 < _arg1.length) {
_local10 = _local4;
_local11 = _local5;
_local12 = _local6;
_local13 = _local7;
_local14 = _local8;
_local15 = 0;
while (_local15 < 80) {
if (_local15 < 16){
_local3[_local15] = _arg1[(_local9 + _local15)];
} else {
_local3[_local15] = rol((((_local3[(_local15 - 3)] ^ _local3[(_local15 - 8)]) ^ _local3[(_local15 - 14)]) ^ _local3[(_local15 - 16)]), 1);
};
_local16 = safe_add(safe_add(rol(_local4, 5), sha1_ft(_local15, _local5, _local6, _local7)), safe_add(safe_add(_local8, _local3[_local15]), sha1_kt(_local15)));
_local8 = _local7;
_local7 = _local6;
_local6 = rol(_local5, 30);
_local5 = _local4;
_local4 = _local16;
_local15++;
};
_local4 = safe_add(_local4, _local10);
_local5 = safe_add(_local5, _local11);
_local6 = safe_add(_local6, _local12);
_local7 = safe_add(_local7, _local13);
_local8 = safe_add(_local8, _local14);
_local9 = (_local9 + 16);
};
return ([_local4, _local5, _local6, _local7, _local8]);
}
public static function binb2b64(_arg1:Array):String{
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
_local3 = "";
_local4 = 0;
while (_local4 < (_arg1.length * 4)) {
_local5 = (((((_arg1[(_local4 >> 2)] >> (8 * (3 - (_local4 % 4)))) & 0xFF) << 16) | (((_arg1[((_local4 + 1) >> 2)] >> (8 * (3 - ((_local4 + 1) % 4)))) & 0xFF) << 8)) | ((_arg1[((_local4 + 2) >> 2)] >> (8 * (3 - ((_local4 + 2) % 4)))) & 0xFF));
_local6 = 0;
while (_local6 < 4) {
if (((_local4 * 8) + (_local6 * 6)) > (_arg1.length * 32)){
_local3 = (_local3 + b64pad);
} else {
_local3 = (_local3 + _local2.charAt(((_local5 >> (6 * (3 - _local6))) & 63)));
};
_local6++;
};
_local4 = (_local4 + 3);
};
return (_local3);
}
public static function str2binb(_arg1:String):Array{
var _local2:Array;
var _local3:Number;
var _local4:Number;
_local2 = new Array();
_local3 = ((1 << chrsz) - 1);
_local4 = 0;
while (_local4 < (_arg1.length * chrsz)) {
_local2[(_local4 >> 5)] = (_local2[(_local4 >> 5)] | ((_arg1.charCodeAt((_local4 / chrsz)) & _local3) << ((32 - chrsz) - (_local4 % 32))));
_local4 = (_local4 + chrsz);
};
return (_local2);
}
public static function safe_add(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
_local3 = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
_local4 = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
public static function hex_hmac_sha1(_arg1:String, _arg2:String):String{
return (binb2hex(core_hmac_sha1(_arg1, _arg2)));
}
public static function b64_hmac_sha1(_arg1:String, _arg2:String):String{
return (binb2b64(core_hmac_sha1(_arg1, _arg2)));
}
}
}//package
Section 323
//Shield (Shield)
package {
import flash.display.*;
public dynamic class Shield extends MovieClip {
public var gem40:MovieClip;
public var gem41:MovieClip;
public var gem42:MovieClip;
public var gem43:MovieClip;
public var gem44:MovieClip;
public var gem45:MovieClip;
public var gem47:MovieClip;
public var gem48:MovieClip;
public var gem46:MovieClip;
public var gem49:MovieClip;
public var gem51:MovieClip;
public var gem52:MovieClip;
public var gem50:MovieClip;
public var gem1:MovieClip;
public var gem2:MovieClip;
public var gem3:MovieClip;
public var gem4:MovieClip;
public var gem5:MovieClip;
public var gem6:MovieClip;
public var gem8:MovieClip;
public var gem9:MovieClip;
public var gem7:MovieClip;
public var gem11:MovieClip;
public var gem12:MovieClip;
public var gem13:MovieClip;
public var gem14:MovieClip;
public var gem15:MovieClip;
public var gem16:MovieClip;
public var gem10:MovieClip;
public var gem18:MovieClip;
public var gem19:MovieClip;
public var gem17:MovieClip;
public var gem20:MovieClip;
public var gem21:MovieClip;
public var gem22:MovieClip;
public var gem23:MovieClip;
public var gem24:MovieClip;
public var gem25:MovieClip;
public var gem26:MovieClip;
public var gem27:MovieClip;
public var gem28:MovieClip;
public var gem29:MovieClip;
public var gem30:MovieClip;
public var gem31:MovieClip;
public var gem32:MovieClip;
public var gem33:MovieClip;
public var gem34:MovieClip;
public var gem35:MovieClip;
public var gem36:MovieClip;
public var gem38:MovieClip;
public var gem37:MovieClip;
public var gem39:MovieClip;
public function Shield(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 324
//ShieldBridgeMp3 (ShieldBridgeMp3)
package {
import flash.media.*;
public dynamic class ShieldBridgeMp3 extends Sound {
}
}//package
Section 325
//ShieldCollectEffect (ShieldCollectEffect)
package {
import flash.display.*;
public dynamic class ShieldCollectEffect extends MovieClip {
}
}//package
Section 326
//ShieldMp3 (ShieldMp3)
package {
import flash.media.*;
public dynamic class ShieldMp3 extends Sound {
}
}//package
Section 327
//ShieldRestored (ShieldRestored)
package {
import flash.display.*;
public dynamic class ShieldRestored extends MovieClip {
}
}//package
Section 328
//ShootManager (ShootManager)
package {
import Balls.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
public class ShootManager {
private var :int;
private var
:BallCreator;
private var target:Main;
public var randomColor2:int;
public var timerLight:Timer;
private var
:Combination;
public function ShootManager(_arg1:Main):void{
this.target = _arg1;
getRefs();
}
private function (_arg1:int, _arg2:int, _arg3:Array):void{
var _local4:Array;
var _local5:Array;
var _local6:int;
var _local7:Number;
var _local8:Number;
var _local9:Array;
var _local10:uint;
var _local11:int;
_local4 = [_arg1];
_local5 = [_arg2];
_local6 = 1;
if (Main.bonusesArr[0] == 3){
_local11 = -1;
if ((_arg2 + 1) > BoardVars.COLUMNS){
_local6 = -2;
} else {
if ((_arg2 - 1) < 0){
_local11 = 2;
};
};
_local4.push((_arg3, (_arg2 + _local6)));
_local5.push((_arg2 + _local6));
_local4.push((_arg3, (_arg2 + _local11)));
_local5.push((_arg2 + _local11));
} else {
if (Main.bonusesArr[0] == 2){
if ((_arg2 + 1) > BoardVars.COLUMNS){
_local6 = -1;
};
_local4.push((_arg3, (_arg2 + _local6)));
_local5.push((_arg2 + _local6));
};
};
_local7 = (BoardVars.BALL_W / 2);
_local8 = (BoardVars.BALL_H / 2);
_local9 = [];
_local10 = 0;
while (_local10 < _local4.length) {
if (_local4[_local10]){
_local9.push(new Point((_arg3[(_local4[_local10] - 1)][_local5[_local10]].pos.x + _local7), (_arg3[(_local4[_local10] - 1)][_local5[_local10]].pos.y + _local8)));
_local9.push(new Point((_arg3[0][_local5[_local10]].pos.x + _local7), _arg3[0][_local5[_local10]].pos.y));
} else {
_local9.push(new Point((_arg3[0][_local5[_local10]].pos.x + _local7), (_arg3[0][_local5[_local10]].pos.y + _local8)));
_local9.push(null);
};
_local10++;
};
.createLightning(target.getCannon(), _local9);
target.getTimer_().pause();
Combination.CHECKING_COMB = true;
timerLight = new Timer(30, 15);
timerLight.addEventListener(TimerEvent.TIMER,
.generateLightnings);
timerLight.addEventListener(TimerEvent.TIMER_COMPLETE, Delegate.create(, _local5));
timerLight.start();
}
private function getRefs():void{
= target.getBallCreator();
= target.getCombination();
}
public function changeColors():void{
var _local1:*;
if (((!((Main.currentBonus == 1))) && (!((Main.currentBonus == 2))))){
_local1 = ;
= randomColor2;
randomColor2 = _local1;
(, randomColor2);
};
}
public function onClicked(_arg1:Object, _arg2:Array):void{
var _local3:uint;
var _local4:uint;
var _local5:Number;
var _local6:Number;
var _local7:Object;
var _local8:int;
_local3 =
();
if (_local3 > BoardVars.COLUMNS){
return;
};
_local4 = (_arg2, _local3);
if (_local4 == (BoardVars.ALL_ROWS - 1)){
target.starsCollected = 1;
} else {
if ((((_local4 == (BoardVars.ALL_ROWS - 2))) && ((target.starsCollected == 3)))){
target.starsCollected = 2;
};
};
if ((((_local4 >= BoardVars.ALL_ROWS)) && (!((Main.currentBonus == 1))))){
target.gameOver();
return;
};
_local5 = (target.getCannon().x - 18.4);
_local6 = (target.getCannon().y + 5);
_local7 =
.throwBall(_local5, _local6, );
_arg1.ref = _local7.ref;
_arg1.type = _local7.type;
if (_arg1.type == 3){
_local8 = (_arg2, _local3, _arg1.ref.color);
};
if (((_arg1.ref) || (!((_arg1.type == 1))))){
_arg1.posXtarget = _local3;
_arg1.posYtarget = _local4;
if (_arg1.type == 3){
_arg1.mainPosYtarget = _local8;
target.sounds.playSound(FireBallShootMp3);
} else {
target.sounds.playSound(CannonShootMp3);
};
} else {
if (_local7.type == 1){
target.sounds.playSound(ThunderShootMp3);
(_local4, _local3, _arg2);
};
};
randomBallColor();
}
private function (_arg1:Array, _arg2:uint, _arg3:uint=0):uint{
var _local4:uint;
_local4 = BoardVars.ALL_ROWS;
if (!_arg3){
while (_local4 > 0) {
if (!_arg1[(_local4 - 1)][_arg2].ref){
_local4--;
} else {
break;
};
};
} else {
while (_local4 > 0) {
if (((!(_arg1[(_local4 - 1)][_arg2].ref)) || (((((_arg1[(_local4 - 1)][_arg2].ref) && (!((_arg3 == _arg1[(_local4 - 1)][_arg2].ref.color))))) && (!((_arg1[(_local4 - 1)][_arg2].ref.color == BoardVars.GEM_COLOR))))))){
_local4--;
} else {
break;
};
};
};
return (_local4);
}
private function (_arg1:uint, _arg2:uint=0):void{
target.getCannon().cannon2.colorBall.colorIndicator.gotoAndStop(_arg1);
if (_arg2){
target.getCannon().colorIndicator2.gotoAndStop(_arg2);
};
}
public function randomBallColor():void{
var _local1:uint;
if (target.typeLevel == "puzzle"){
if (
.puzzleBalls[0][0]){
_local1 =
.puzzleBalls[0][0].bonusType;
=
.puzzleBalls[0][0].ref.color;
if (_local1){
.setCurrentBonus(_local1);
Main.currentBonus = _local1;
};
.removePuzzleBall();
} else {
= 7;
};
} else {
if (Main.bonusesArr[4]){
if (randomColor2){
= randomColor2;
randomColor2 =
.getRandomInteger(
.maxColor);
} else {
=
.getRandomInteger(
.maxColor);
randomColor2 =
.getRandomInteger(
.maxColor);
};
} else {
=
.getRandomInteger(
.maxColor);
};
};
if (_local1 != 2){
(, randomColor2);
};
}
private function (_arg1:Event, _arg2:Array):void{
timerLight = null;
target.getCombination().getBallsAfterLightning(_arg2);
.removeLightning();
}
private function
():uint{
var _local1:Number;
_local1 = (target.getCannon().x - BoardVars.START_X);
return (Math.floor((_local1 / (BoardVars.BALL_W + BoardVars.BAll_DISTANCE_X))));
}
}
}//package
Section 329
//smog (smog)
package {
import flash.display.*;
public dynamic class smog extends MovieClip {
}
}//package
Section 330
//Sounds (Sounds)
package {
import flash.events.*;
import flash.media.*;
public class Sounds {
public var musicMuted:Boolean;
public var soundsMuted:Boolean;
private var :Sound;
private var :SoundChannel;
private var
:Number;// = 1
private var :uint;
public function Sounds(){
= 1;
super();
}
public function playSpecialMusic(_arg1:Class, _arg2:Class):void{
var _local3:SoundTransform;
= new (_arg1);
_local3 = new SoundTransform(
);
= .play();
.soundTransform = _local3;
.addEventListener(Event.SOUND_COMPLETE, Delegate.create(, _arg2));
}
public function stopMusic():void{
if (){
.stop();
.removeEventListener(Event.SOUND_COMPLETE, );
= null;
= null;
};
}
private function (_arg1:Event, _arg2:Class):void{
playMusic(_arg2);
}
public function playMusic(_arg1:Class, _arg2:Boolean=true):void{
var _local3:SoundTransform;
= new (_arg1);
_local3 = new SoundTransform(
);
= .play();
.soundTransform = _local3;
if (_arg2){
.addEventListener(Event.SOUND_COMPLETE, Delegate.create(, _arg1));
};
}
public function muteMusic(_arg1:Number=1):Boolean{
if (!musicMuted){
musicMuted = true;
setMusicVolume(0);
} else {
musicMuted = false;
setMusicVolume(_arg1);
};
return (musicMuted);
}
public function setMusicVolume(_arg1:Number):void{
if (){
= _arg1;
.soundTransform = new SoundTransform(_arg1);
};
}
public function (_arg1:Event, _arg2:Class):void{
if (){
.removeEventListener(Event.SOUND_COMPLETE, );
playMusic(_arg2);
};
}
public function playSound(_arg1:Class):void{
var _local2:*;
if (!soundsMuted){
_local2 = new (_arg1);
_local2.play();
};
}
public function muteSounds():Boolean{
if (!soundsMuted){
soundsMuted = true;
} else {
soundsMuted = false;
};
return (soundsMuted);
}
}
}//package
Section 331
//spark (spark)
package {
import flash.display.*;
public dynamic class spark extends MovieClip {
public function spark(){
addFrameScript(22, );
}
function (){
gotoAndStop("loop");
}
}
}//package
Section 332
//StarsCollectedMp3 (StarsCollectedMp3)
package {
import flash.media.*;
public dynamic class StarsCollectedMp3 extends Sound {
}
}//package
Section 333
//StartGameTxt (StartGameTxt)
package {
import flash.display.*;
public dynamic class StartGameTxt extends MovieClip {
public var levelMode:MovieClip;
}
}//package
Section 334
//StartMenuMp3 (StartMenuMp3)
package {
import flash.media.*;
public dynamic class StartMenuMp3 extends Sound {
}
}//package
Section 335
//StartTextMp3 (StartTextMp3)
package {
import flash.media.*;
public dynamic class StartTextMp3 extends Sound {
}
}//package
Section 336
//Stopwatch (Stopwatch)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Stopwatch {
public var isStopped:Boolean;
private var :Sprite;
private var :Boolean;
private var :Number;
private var bar:Sprite;
private var :Number;
private var :Number;
private var
:Number;
private var :Number;
private var :Number;// = 0
public var isPaused:Boolean;
public function Stopwatch(_arg1:Sprite, _arg2:Boolean=false){
= 0;
super();
if (!_arg2){
this.bar = _arg1;
= _arg1.width;
} else {
this. = true;
};
}
public function stop():void{
if (((!()) && ())){
.removeEventListener(Event.ENTER_FRAME, );
= null;
};
= 0;
}
public function getPercents():uint{
return (Math.round(((bar.width /
) * 100)));
}
private function (_arg1:Event):void{
= ((getTimer() - ) - );
bar.width = ((1 - ( / )) *
);
if ( >= ){
bar.width = 0;
stop();
};
}
public function start(_arg1:Number):void{
= (_arg1 * 1000);
= getTimer();
= new Sprite();
.addEventListener(Event.ENTER_FRAME, );
}
public function finishPause():void{
isPaused = false;
if (((!()) && ((bar.width > 0)))){
= ( + (getTimer() - ));
.addEventListener(Event.ENTER_FRAME, );
};
}
public function pause():void{
isPaused = true;
if (((!()) && ((bar.width > 0)))){
.removeEventListener(Event.ENTER_FRAME, );
= getTimer();
};
}
}
}//package
Section 337
//StoryBoard (StoryBoard)
package {
import flash.display.*;
public dynamic class StoryBoard extends MovieClip {
public var storyWindow:MovieClip;
public function StoryBoard(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package
Section 338
//SubmitBtn (SubmitBtn)
package {
import flash.display.*;
public dynamic class SubmitBtn extends SimpleButton {
}
}//package
Section 339
//TheGame1Mp3 (TheGame1Mp3)
package {
import flash.media.*;
public dynamic class TheGame1Mp3 extends Sound {
}
}//package
Section 340
//TheGame2Mp3 (TheGame2Mp3)
package {
import flash.media.*;
public dynamic class TheGame2Mp3 extends Sound {
}
}//package
Section 341
//TheMapMp3 (TheMapMp3)
package {
import flash.media.*;
public dynamic class TheMapMp3 extends Sound {
}
}//package
Section 342
//ThunderEffect (ThunderEffect)
package {
import flash.display.*;
public dynamic class ThunderEffect extends MovieClip {
public function ThunderEffect(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package
Section 343
//ThunderShootMp3 (ThunderShootMp3)
package {
import flash.media.*;
public dynamic class ThunderShootMp3 extends Sound {
}
}//package
Section 344
//TrophiesPreview (TrophiesPreview)
package {
import flash.display.*;
public dynamic class TrophiesPreview extends MovieClip {
public function TrophiesPreview(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 345
//TrophyBoard (TrophyBoard)
package {
import flash.display.*;
public dynamic class TrophyBoard extends MovieClip {
public var trophyWindow:MovieClip;
public function TrophyBoard(){
addFrameScript(16, frame17, 29, frame30);
}
function frame17(){
stop();
}
function frame30(){
stop();
}
}
}//package
Section 346
//TrophyCollectedMp3 (TrophyCollectedMp3)
package {
import flash.media.*;
public dynamic class TrophyCollectedMp3 extends Sound {
}
}//package
Section 347
//UpgradeBoard (UpgradeBoard)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import Upgrades.*;
public class UpgradeBoard extends MovieClip {
private const prizes:Array;
private const namesBtns:Array;
private var :Function;
private var coinsTxt:TextField;
public var upgradeWindow:MovieClip;
private var :DataStorage;
private var target:Main;
public function UpgradeBoard(_arg1:Main, _arg2:Function, _arg3:TextField){
prizes = [[50, 200, 600], [50, 200, 600], [], [50, 200, 600], [50, 100, 800]];
namesBtns = ["thunderBtn", "bombBtn", "", "paintBallBtn", "cannonBtn"];
super();
addFrameScript(16, frame17);
this.target = _arg1;
this. = _arg2;
this.coinsTxt = _arg3;
this.upgradeWindow.infoBonuses.gotoAndStop(1);
();
();
}
private function (_arg1:uint, _arg2:uint):void{
var _local3:uint;
_local3 = 1;
while (_local3 <= _arg1) {
this.upgradeWindow[(namesBtns[_arg2] + _local3)].alpha = 1;
_local3++;
};
while (_local3 <= 3) {
this.upgradeWindow[(namesBtns[_arg2] + _local3)].bgdBtn.gotoAndStop(2);
if ((((prizes[_arg2][(_local3 - 1)] <= target.getPoints().getCoins())) && ((Main.bonusesArr[_arg2] == (_local3 - 1))))){
this.upgradeWindow[(namesBtns[_arg2] + _local3)].activate();
} else {
if (this.upgradeWindow[(namesBtns[_arg2] + _local3)].isActive){
this.upgradeWindow[(namesBtns[_arg2] + _local3)].deactivate();
};
};
_local3++;
};
}
private function (_arg1:Event):void{
if ((_arg1.target is UpgradeMain)){
upgradeWindow.infoBonuses.gotoAndStop(_arg1.target.name);
};
}
private function onClicked(_arg1:Event):void{
var _local2:uint;
var _local3:Boolean;
if ((((_arg1.target is UpgradeMain)) && (_arg1.target.isActive))){
target.sounds.playSound(BoughtMp3);
target.getPoints().subtractCoins(prizes[(_arg1.target.type - 1)][(_arg1.target.rank - 1)], coinsTxt);
_local2 = (_arg1.target.type - 1);
Main.bonusesArr[_local2] = _arg1.target.rank;
_arg1.target.bgdBtn.gotoAndStop(1);
_arg1.target.mouseEnabled = false;
if ((((((_arg1.target.type == 5)) && ((_arg1.target.rank == 3)))) && ((Main.trophies[7] == 0)))){
_local3 = true;
};
(_local3);
};
}
private function (_arg1:Boolean):void{
var _local2:DataStorage;
var _local3:Array;
_local2 = new DataStorage();
_local2.saveToSharedObj(Main.bonusesArr, "bonuses");
_local3 = _local2.getData("dataArr");
_local3[0] = target.getPoints().getCoins();
_local2.saveToSharedObj(_local3, "dataArr");
if (_arg1){
Main.triphiesJustReached.push(8);
Main.trophies[7] = 1;
_local2.saveToSharedObj(Main.trophies, "trophies");
};
();
}
function frame17(){
stop();
}
private function (_arg1:Event):void{
target.sounds.playSound(CloseWindow2Mp3);
_arg1.stopPropagation();
this.upgradeWindow.closeBtn.removeEventListener(MouseEvent.CLICK, );
this.removeEventListener(MouseEvent.CLICK, onClicked);
this.play();
this.addFrameScript(25, );
}
private function ():void{
var _local1:Array;
var _local2:*;
= new DataStorage();
_local1 = .getData("bonuses");
for (_local2 in _local1) {
if (_local2 != 2){
(_local1[_local2], _local2);
};
};
}
private function ():void{
this.addEventListener(MouseEvent.CLICK, onClicked);
this.addEventListener(MouseEvent.MOUSE_OVER, );
this.upgradeWindow.closeBtn.addEventListener(MouseEvent.CLICK, );
}
}
}//package
Section 348
//WindowQuestion (WindowQuestion)
package {
import flash.display.*;
import flash.events.*;
public class WindowQuestion extends MovieClip {
public var yesBtn:SimpleButton;
private var target:Main;
public var noBtn:SimpleButton;
public function WindowQuestion(_arg1:Main){
this.target = _arg1;
this.x = 161.4;
this.y = 213.1;
_arg1.addChild(this);
_arg1.startMenu.newGameBtn.mouseEnabled = false;
this.yesBtn.addEventListener(MouseEvent.CLICK, );
this.noBtn.addEventListener(MouseEvent.CLICK,
);
}
private function
(_arg1:Event):void{
target.startMenu.newGameBtn.mouseEnabled = true;
target.removeChild(this);
}
private function (_arg1:Event):void{
target.removeChild(this);
target.restorGameData();
}
}
}//package