Section 1
//BackGround_1 (amazon_survival_speed_fla.BackGround_1)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class BackGround_1 extends MovieClip {
public function BackGround_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 2
//BetweenRounds_39 (amazon_survival_speed_fla.BetweenRounds_39)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class BetweenRounds_39 extends MovieClip {
public var mcInfoText:MovieClip;
public function BetweenRounds_39(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 3
//BlackFire_49 (amazon_survival_speed_fla.BlackFire_49)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class BlackFire_49 extends MovieClip {
public function BlackFire_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 4
//Bomb_50 (amazon_survival_speed_fla.Bomb_50)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class Bomb_50 extends MovieClip {
public function Bomb_50(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 5
//ButtonMusic_36 (amazon_survival_speed_fla.ButtonMusic_36)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class ButtonMusic_36 extends MovieClip {
public function ButtonMusic_36(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 6
//ButtonSFX_37 (amazon_survival_speed_fla.ButtonSFX_37)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class ButtonSFX_37 extends MovieClip {
public function ButtonSFX_37(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 7
//Checkbox_43 (amazon_survival_speed_fla.Checkbox_43)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class Checkbox_43 extends MovieClip {
public function Checkbox_43(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 8
//ExplosionBlack_68 (amazon_survival_speed_fla.ExplosionBlack_68)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class ExplosionBlack_68 extends MovieClip {
public function ExplosionBlack_68(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 9
//ExplosionBlue_65 (amazon_survival_speed_fla.ExplosionBlue_65)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class ExplosionBlue_65 extends MovieClip {
public function ExplosionBlue_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 10
//ExplosionGreen_67 (amazon_survival_speed_fla.ExplosionGreen_67)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class ExplosionGreen_67 extends MovieClip {
public function ExplosionGreen_67(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 11
//ExplosionLineBlast_63 (amazon_survival_speed_fla.ExplosionLineBlast_63)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class ExplosionLineBlast_63 extends MovieClip {
public function ExplosionLineBlast_63(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 12
//ExplosionRed_64 (amazon_survival_speed_fla.ExplosionRed_64)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class ExplosionRed_64 extends MovieClip {
public function ExplosionRed_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 13
//ExplosionYellow_66 (amazon_survival_speed_fla.ExplosionYellow_66)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class ExplosionYellow_66 extends MovieClip {
public function ExplosionYellow_66(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 14
//ForeGround_2 (amazon_survival_speed_fla.ForeGround_2)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class ForeGround_2 extends MovieClip {
public function ForeGround_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 15
//IntroScreen_13 (amazon_survival_speed_fla.IntroScreen_13)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class IntroScreen_13 extends MovieClip {
public var mcIntroText2:MovieClip;
public var mcIntroText1:MovieClip;
public var mcLogo:Symbol14_16;
public function IntroScreen_13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 16
//LeftHand_78 (amazon_survival_speed_fla.LeftHand_78)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class LeftHand_78 extends MovieClip {
public function LeftHand_78(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 17
//LineBlast_51 (amazon_survival_speed_fla.LineBlast_51)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class LineBlast_51 extends MovieClip {
public function LineBlast_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 18
//PieceBlock_55 (amazon_survival_speed_fla.PieceBlock_55)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class PieceBlock_55 extends MovieClip {
public function PieceBlock_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 19
//PieceCoin_56 (amazon_survival_speed_fla.PieceCoin_56)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class PieceCoin_56 extends MovieClip {
public function PieceCoin_56(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package amazon_survival_speed_fla
Section 20
//PieceWood_47 (amazon_survival_speed_fla.PieceWood_47)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class PieceWood_47 extends MovieClip {
public var mcBlackFire:BlackFire_49;
public var mcBall:PieceBlock_55;
public var mcBall0:PieceWoodCroc_48;
public var mcBall10:PieceCoin_56;
public var mcLineBlast:LineBlast_51;
public var mcBall2:PieceWoodSpider_52;
public var mcBall3:PieceWoodSnake_53;
public var mcBall5:PieceWoodPanther_54;
public var mcBomb:Bomb_50;
public function PieceWood_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 21
//PieceWoodCroc_48 (amazon_survival_speed_fla.PieceWoodCroc_48)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class PieceWoodCroc_48 extends MovieClip {
public function PieceWoodCroc_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 22
//PieceWoodPanther_54 (amazon_survival_speed_fla.PieceWoodPanther_54)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class PieceWoodPanther_54 extends MovieClip {
public function PieceWoodPanther_54(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 23
//PieceWoodSnake_53 (amazon_survival_speed_fla.PieceWoodSnake_53)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class PieceWoodSnake_53 extends MovieClip {
public function PieceWoodSnake_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 24
//PieceWoodSpider_52 (amazon_survival_speed_fla.PieceWoodSpider_52)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class PieceWoodSpider_52 extends MovieClip {
public function PieceWoodSpider_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 25
//RegularExplosion_62 (amazon_survival_speed_fla.RegularExplosion_62)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class RegularExplosion_62 extends MovieClip {
public function RegularExplosion_62(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 26
//RightHand_79 (amazon_survival_speed_fla.RightHand_79)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class RightHand_79 extends MovieClip {
public function RightHand_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 27
//ScorePopBG_84 (amazon_survival_speed_fla.ScorePopBG_84)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class ScorePopBG_84 extends MovieClip {
public function ScorePopBG_84(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 28
//Symbol14_16 (amazon_survival_speed_fla.Symbol14_16)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class Symbol14_16 extends MovieClip {
public function Symbol14_16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 29
//TimeNumbers_6 (amazon_survival_speed_fla.TimeNumbers_6)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class TimeNumbers_6 extends MovieClip {
public function TimeNumbers_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 30
//TopFG_11 (amazon_survival_speed_fla.TopFG_11)
package amazon_survival_speed_fla {
import flash.display.*;
public dynamic class TopFG_11 extends MovieClip {
public function TopFG_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package amazon_survival_speed_fla
Section 31
//blackBall (sound.blackBall)
package sound {
import flash.media.*;
public dynamic class blackBall extends Sound {
}
}//package sound
Section 32
//bonusScore (sound.bonusScore)
package sound {
import flash.media.*;
public dynamic class bonusScore extends Sound {
}
}//package sound
Section 33
//colorBomb (sound.colorBomb)
package sound {
import flash.media.*;
public dynamic class colorBomb extends Sound {
}
}//package sound
Section 34
//combo (sound.combo)
package sound {
import flash.media.*;
public dynamic class combo extends Sound {
}
}//package sound
Section 35
//combo1 (sound.combo1)
package sound {
import flash.media.*;
public dynamic class combo1 extends Sound {
}
}//package sound
Section 36
//combo2 (sound.combo2)
package sound {
import flash.media.*;
public dynamic class combo2 extends Sound {
}
}//package sound
Section 37
//combo3 (sound.combo3)
package sound {
import flash.media.*;
public dynamic class combo3 extends Sound {
}
}//package sound
Section 38
//combo4 (sound.combo4)
package sound {
import flash.media.*;
public dynamic class combo4 extends Sound {
}
}//package sound
Section 39
//combo5 (sound.combo5)
package sound {
import flash.media.*;
public dynamic class combo5 extends Sound {
}
}//package sound
Section 40
//intro (sound.intro)
package sound {
import flash.media.*;
public dynamic class intro extends Sound {
}
}//package sound
Section 41
//knock (sound.knock)
package sound {
import flash.media.*;
public dynamic class knock extends Sound {
}
}//package sound
Section 42
//levelCompleted (sound.levelCompleted)
package sound {
import flash.media.*;
public dynamic class levelCompleted extends Sound {
}
}//package sound
Section 43
//levelStart (sound.levelStart)
package sound {
import flash.media.*;
public dynamic class levelStart extends Sound {
}
}//package sound
Section 44
//lineBlast (sound.lineBlast)
package sound {
import flash.media.*;
public dynamic class lineBlast extends Sound {
}
}//package sound
Section 45
//loop (sound.loop)
package sound {
import flash.media.*;
public dynamic class loop extends Sound {
}
}//package sound
Section 46
//outro (sound.outro)
package sound {
import flash.media.*;
public dynamic class outro extends Sound {
}
}//package sound
Section 47
//Renamed_switch (sound.Renamed_switch)
package sound {
import flash.media.*;
public dynamic class Renamed_switch extends Sound {
}
}//package sound
Section 48
//splash (sound.splash)
package sound {
import flash.media.*;
public dynamic class splash extends Sound {
}
}//package sound
Section 49
//warning (sound.warning)
package sound {
import flash.media.*;
public dynamic class warning extends Sound {
}
}//package sound
Section 50
//Communicator (src.comm.Communicator)
package src.comm {
import flash.system.*;
public class Communicator {
private var hasSentGameStart;// = false
private var hasSentGameEnd;// = false
private var hasSentGameOver;// = false
private var hasSentLastTick;// = false
private static var CMD_START_ROUND = 101;
private static var CMD_SHOOT_BALL = 102;
private static var CMD_SWITCH_BALLS = 103;
private static var CMD_COMPARE_SCORE = 104;
private static var CMD_SEND_RANDOMS = 105;
private static var CMD_SEND_SOUND = 106;
private static var CMD_LAST_TICK = 107;
private static var CMD_END_PRESSED = 108;
public function Communicator(){
super();
}
public function gameStarted(){
trace("GAME START");
if (!hasSentGameStart){
hasSentGameStart = true;
fscommand("gameStart");
};
}
public function signup(){
fscommand("gameSignup", "");
}
public function gameQuit(){
trace("GAME QUIT");
if (!hasSentGameOver){
hasSentGameOver = true;
fscommand("gameQuit");
};
}
public function gameEnd(p__1){
trace("GAME ENDS");
if (!hasSentGameEnd){
hasSentGameEnd = true;
fscommand("gameEnd", p__1);
};
}
public function startRound(p__1){
fscommand("playData", ((CMD_START_ROUND + ",") + p__1));
}
public function shootBall(p__1, p__2){
fscommand("playData", ((((CMD_SHOOT_BALL + ",") + p__1) + " ") + p__2));
}
public function switchBalls(p__1){
fscommand("playData", ((CMD_SWITCH_BALLS + ",") + p__1));
}
public function sendScore(p__1, p__2, p__3, p__4){
fscommand("playData", ((((((((CMD_COMPARE_SCORE + ",") + p__1) + " ") + p__2) + " ") + p__3) + " ") + p__4));
}
public function sendRandoms(p__1, p__2, p__3){
fscommand("playData", ((((((CMD_SEND_RANDOMS + ",") + p__1) + " ") + p__2) + " ") + p__3));
}
public function soundStates(p__1, p__2){
fscommand("playData", ((((CMD_SEND_SOUND + ",") + p__1) + " ") + p__2));
}
public function lastTick(p__1, p__2, p__3, p__4, p__5){
fscommand("playData", ((((((((((CMD_LAST_TICK + ",") + p__1) + " ") + p__2) + " ") + p__3) + " ") + p__4) + " ") + p__5));
}
public function endPressed(p__1, p__2, p__3){
fscommand("playData", ((((((CMD_END_PRESSED + ",") + p__1) + " ") + p__2) + " ") + p__3));
}
}
}//package src.comm
Section 51
//GameDataParser (src.comm.GameDataParser)
package src.comm {
import flash.xml.*;
public class GameDataParser {
public static var textMappings:Object;
public static var records:Object;
public static var sounds:Object;
public static var boosters:Object;
public function GameDataParser(){
super();
}
public static function parseGameData(p__1:String):Object{
var l__2:Object = new Object();
var l__3:XMLDocument = new XMLDocument(p__1);
textMappings = new Object();
l__2.textMappings = textMappings;
var l__4:* = l__3.firstChild.childNodes;
records = new Object();
l__2.records = records;
sounds = new Object();
l__2.sounds = sounds;
boosters = new Object();
l__2.boosters = boosters;
boosters.a = 0;
boosters.b = 0;
boosters.c = 0;
boosters.d = 0;
var l__5:* = (l__3.firstChild.attributes.relaxMode == "true");
var l__6:int = parseInt(l__3.firstChild.attributes.randomseed);
var l__7:* = l__3.firstChild.attributes.lang;
var l__8:* = l__3.firstChild.attributes.partner;
l__2.randomSeed = l__6;
l__2.relaxMode = l__5;
l__2.partnerId = l__8;
l__2.country = l__7;
var l__9:* = 0;
while (l__9 < l__4.length) {
if (l__4[l__9].nodeName == "id"){
};
if (l__4[l__9].nodeName == "game"){
l__2.gameType = new String(l__4[l__9].attributes.type);
};
if (l__4[l__9].nodeName == "userType"){
l__2.userType = new String(l__4[l__9].firstChild.nodeValue);
};
if (l__4[l__9].nodeName == "text"){
if ((((l__4[l__9].firstChild == null)) || ((l__4[l__9].firstChild == undefined)))){
textMappings[l__4[l__9].attributes.id] = (("[" + l__4[l__9].attributes.id) + "]");
} else {
textMappings[l__4[l__9].attributes.id] = new String(l__4[l__9].firstChild.nodeValue);
};
};
if (l__4[l__9].nodeName == "records"){
if ((((l__4[l__9].firstChild == null)) || ((l__4[l__9].firstChild == undefined)))){
records[l__4[l__9].attributes.id] = (("[" + l__4[l__9].attributes.id) + "]");
} else {
records[l__4[l__9].attributes.id] = new String(l__4[l__9].firstChild.nodeValue);
};
};
if (l__4[l__9].nodeName == "sounds"){
if ((((l__4[l__9].firstChild == null)) || ((l__4[l__9].firstChild == undefined)))){
sounds[l__4[l__9].attributes.id] = (("[" + l__4[l__9].attributes.id) + "]");
} else {
sounds[l__4[l__9].attributes.id] = new String(l__4[l__9].firstChild.nodeValue);
};
};
l__9++;
};
var l__10:XML = new XML(p__1);
if (l__10.boosters != null){
boosters.a = l__10.boosters.a.@value;
boosters.b = l__10.boosters.b.@value;
boosters.c = l__10.boosters.c.@value;
boosters.d = l__10.boosters.d.@value;
};
return (l__2);
}
}
}//package src.comm
Section 52
//MtRandom (src.math.MtRandom)
package src.math {
import flash.utils.*;
public class MtRandom {
private var mt:Array;
private var mti:uint;
public static var N:int = 624;
public static var M:int = 397;
public static var MATRIX_A:uint = 2567483615;
public static var UPPER_MASK:uint = 2147483648;
public static var LOWER_MASK:uint = 2147483647;
private static var mag01:Array = [uint(0), uint(MATRIX_A)];
public function MtRandom(p__1:uint=0){
mti = (N + 1);
super();
if (p__1 == 0){
p__1 = getTimer();
};
mt = new Array(N);
init_genrand(p__1);
}
public function setSeed(p__1:uint):void{
init_genrand(p__1);
}
public function nextInt(p__1:uint):uint{
return (((genrand_int32() & 2147483647) % p__1));
}
public function nextFloat():Number{
return ((next(24) / 16777216));
}
public function nextDouble():Number{
return ((next(24) / 16777216));
}
private function next(p__1:uint):uint{
return ((genrand_int32() & ((uint(1) << p__1) - uint(1))));
}
private function init_genrand(p__1:uint){
var l__2:uint;
var l__3:uint;
mt[0] = uint(p__1);
mti = 1;
while (mti < N) {
l__2 = (mt[(mti - 1)] ^ (mt[(mti - 1)] >>> 30));
l__3 = uint((l__2 * 1289));
l__3 = uint((l__3 * 1406077));
l__3 = uint((l__3 + mti));
mt[mti] = l__3;
mti++;
};
}
private function genrand_int32():uint{
var l__1:Number;
var l__2:uint;
if (mti >= N){
if (mti == (N + 1)){
init_genrand(5489);
};
l__2 = 0;
while (l__2 < (N - M)) {
l__1 = ((mt[l__2] & UPPER_MASK) | (mt[(l__2 + 1)] & LOWER_MASK));
mt[l__2] = ((mt[(l__2 + M)] ^ (l__1 >>> 1)) ^ mag01[uint((l__1 & 1))]);
l__2++;
};
while (l__2 < (N - 1)) {
l__1 = ((mt[l__2] & UPPER_MASK) | (mt[(l__2 + 1)] & LOWER_MASK));
mt[l__2] = ((mt[(l__2 + (M - N))] ^ (l__1 >>> 1)) ^ mag01[uint((l__1 & 1))]);
l__2++;
};
l__1 = ((mt[(N - 1)] & UPPER_MASK) | (mt[0] & LOWER_MASK));
mt[(N - 1)] = ((mt[(M - 1)] ^ (l__1 >>> 1)) ^ mag01[uint((l__1 & 1))]);
mti = 0;
};
l__1 = mt[mti++];
l__1 = (l__1 ^ (l__1 >>> 11));
l__1 = (l__1 ^ ((l__1 << 7) & 2636928640));
l__1 = (l__1 ^ ((l__1 << 15) & 4022730752));
l__1 = (l__1 ^ (l__1 >>> 18));
return (uint(l__1));
}
}
}//package src.math
Section 53
//ManagedSound (src.sound.ManagedSound)
package src.sound {
import flash.media.*;
public class ManagedSound {
private var ClassReference:Class;
private var manager:SoundManager;
public var activeSounds:Array;
public function ManagedSound(p__1:SoundManager, p__2:Class){
activeSounds = new Array();
super();
this.manager = p__1;
this.ClassReference = p__2;
}
public function play(p__1:Number=1, p__2:Number=0):ManagedSoundChannel{
var l__3:SoundChannel = new ClassReference().play(0, 0, new SoundTransform(p__1, p__2));
return (new ManagedSoundChannel(manager, this, l__3));
}
public function loop(p__1:Number=1, p__2:Number=0):ManagedSoundChannel{
var l__3:SoundChannel = new ClassReference().play(0, 999999999, new SoundTransform(p__1, p__2));
return (new ManagedSoundChannel(manager, this, l__3));
}
public function stop():void{
var l__1:int;
while (l__1 < activeSounds.length) {
activeSounds[l__1].stop();
l__1++;
};
}
public function setPan(p__1:Number):void{
var l__2:int;
while (l__2 < activeSounds.length) {
activeSounds[l__2].setPan(p__1);
l__2++;
};
}
public function setVolume(p__1:Number):void{
var l__2:int;
while (l__2 < activeSounds.length) {
activeSounds[l__2].setVolume(p__1);
l__2++;
};
}
public function fadeTo(p__1:Number, p__2:Number):void{
var l__3:int;
while (l__3 < activeSounds.length) {
activeSounds[l__3].fadeTo(p__1, p__2);
l__3++;
};
}
public function fadeToAndStop(p__1:Number, p__2:Number):void{
var l__3:int;
while (l__3 < activeSounds.length) {
activeSounds[l__3].fadeToAndStop(p__1, p__2);
l__3++;
};
}
public function panTo(p__1:Number, p__2:Number):void{
var l__3:int;
while (l__3 < activeSounds.length) {
activeSounds[l__3].panTo(p__1, p__2);
l__3++;
};
}
public function isPlaying():Boolean{
return ((activeSounds.length > 0));
}
public function update():void{
var l__1:int;
while (l__1 < activeSounds.length) {
activeSounds[l__1].update();
l__1++;
};
}
}
}//package src.sound
Section 54
//ManagedSoundChannel (src.sound.ManagedSoundChannel)
package src.sound {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
public class ManagedSoundChannel {
private var sound:ManagedSound;
private var channel:SoundChannel;
private var manager:SoundManager;
private var targetVolume:Number;
private var targetPan:Number;
private var fadeStartTime:Number;// = -1
private var fadeEndTime:Number;// = -1
private var fadeStartVolume:Number;// = -1
private var fadeEndVolume:Number;// = -1
private var panStartTime:Number;// = -1
private var panEndTime:Number;// = -1
private var panStartVolume:Number;// = -1
private var panEndVolume:Number;// = -1
private var stopAfterFade:Boolean;// = false
private var playing:Boolean;// = true
public function ManagedSoundChannel(p__1:SoundManager, p__2:ManagedSound, p__3:SoundChannel){
super();
this.manager = p__1;
this.sound = p__2;
this.channel = p__3;
p__2.activeSounds.push(this);
if (p__3 == null){
soundComplete(null);
return;
};
p__3.addEventListener(Event.SOUND_COMPLETE, soundComplete);
targetVolume = p__3.soundTransform.volume;
targetPan = p__3.soundTransform.pan;
update();
}
public function soundComplete(p__1:Event):void{
if (!playing){
return;
};
sound.activeSounds.splice(sound.activeSounds.indexOf(this), 1);
playing = false;
}
public function setPan(p__1:Number):void{
if (!playing){
return;
};
if (channel == null){
return;
};
channel.soundTransform.pan = p__1;
panStartTime = -1;
update();
}
public function setVolume(p__1:Number):void{
if (!playing){
return;
};
stopAfterFade = false;
this.targetVolume = p__1;
fadeStartTime = -1;
update();
}
public function stop():void{
if (!playing){
return;
};
if (channel == null){
return;
};
channel.stop();
soundComplete(null);
}
public function fadeTo(p__1:Number, p__2:Number):void{
if (!playing){
return;
};
fadeStartVolume = Math.sqrt(targetVolume);
fadeEndVolume = Math.sqrt(p__1);
fadeStartTime = getTimer();
fadeEndTime = (getTimer() + p__2);
stopAfterFade = false;
}
public function fadeToAndStop(p__1:Number, p__2:Number):void{
if (!playing){
return;
};
fadeTo(p__1, p__2);
stopAfterFade = true;
}
public function panTo(p__1:Number, p__2:Number):void{
if (!playing){
return;
};
panStartVolume = targetPan;
panEndVolume = p__1;
panStartTime = getTimer();
panEndTime = (getTimer() + p__2);
}
public function update():void{
var l__1:Number;
if (!playing){
return;
};
if (fadeStartTime >= 0){
l__1 = ((getTimer() - fadeStartTime) / (fadeEndTime - fadeStartTime));
if (l__1 < 0){
l__1 = 0;
};
if (l__1 > 1){
l__1 = 1;
};
targetVolume = (fadeStartVolume + ((fadeEndVolume - fadeStartVolume) * l__1));
targetVolume = (targetVolume * targetVolume);
if (l__1 == 1){
fadeStartTime = -1;
};
if ((((l__1 == 1)) && (stopAfterFade))){
stop();
};
};
if (panStartTime >= 0){
l__1 = ((getTimer() - panStartTime) / (panEndTime - panStartTime));
if (l__1 < 0){
l__1 = 0;
};
if (l__1 > 1){
l__1 = 1;
};
targetPan = (panStartVolume + ((panEndVolume - panStartVolume) * l__1));
if (l__1 == 1){
panStartTime = -1;
};
};
var l__2:Number = (targetVolume * manager.volume);
var l__3:Number = targetPan;
if (channel == null){
return;
};
if (((!((l__2 == channel.soundTransform.volume))) || (!((l__3 == channel.soundTransform.pan))))){
channel.soundTransform = new SoundTransform(l__2, l__3);
};
}
public function isPlaying():Boolean{
return (playing);
}
}
}//package src.sound
Section 55
//SoundManager (src.sound.SoundManager)
package src.sound {
import flash.utils.*;
public class SoundManager {
private var lastTime:Number;// = -1
public var volume:Number;// = 1
private var fadeStartTime:Number;// = -1
private var fadeEndTime:Number;// = -1
private var fadeStartVolume:Number;// = -1
private var fadeEndVolume:Number;// = -1
private var managedSoundMap:Object;
private var managedSounds:Array;
public function SoundManager(){
managedSoundMap = new Object();
managedSounds = new Array();
super();
}
public function get(p__1:String):ManagedSound{
var l__2:Class;
if (managedSoundMap[p__1] == null){
l__2 = (getDefinitionByName(("sound." + p__1)) as Class);
if (l__2 == null){
throw (new Error(("Failed to find sound " + p__1)));
};
managedSoundMap[p__1] = new ManagedSound(this, l__2);
managedSounds.push(managedSoundMap[p__1]);
};
return (managedSoundMap[p__1]);
}
public function fadeTo(p__1:Number, p__2:Number):void{
fadeStartVolume = Math.sqrt(volume);
fadeEndVolume = Math.sqrt(p__1);
fadeStartTime = getTimer();
fadeEndTime = (getTimer() + p__2);
}
public function setVolume(p__1:Number):void{
this.volume = p__1;
fadeStartTime = -1;
}
public function stopAll():void{
var l__1:int;
while (l__1 < managedSounds.length) {
managedSounds[l__1].stop();
l__1++;
};
}
public function update():void{
var l__3:Number;
var l__2:int;
var l__1:Number = getTimer();
if (lastTime < 0){
lastTime = l__1;
};
if (fadeStartTime >= 0){
l__3 = ((getTimer() - fadeStartTime) / (fadeEndTime - fadeStartTime));
if (l__3 < 0){
l__3 = 0;
};
if (l__3 > 1){
l__3 = 1;
};
volume = (fadeStartVolume + ((fadeEndVolume - fadeStartVolume) * l__3));
volume = (volume * volume);
if (l__3 == 1){
fadeStartTime = -1;
};
};
while (l__2 < managedSounds.length) {
managedSounds[l__2].update();
l__2++;
};
}
}
}//package src.sound
Section 56
//IFloat (src.timing.IFloat)
package src.timing {
public class IFloat {
public var ivalue:Number;
private var lastValue:Number;
private static var alpha:Number;
public function IFloat(p__1:Number){
super();
ivalue = p__1;
lastValue = p__1;
alpha = 0;
}
public function setTo(p__1:Number){
ivalue = p__1;
lastValue = p__1;
}
public function set(p__1:Number){
lastValue = ivalue;
ivalue = p__1;
}
public function get(p__1:Number){
return ((lastValue + ((ivalue - lastValue) * p__1)));
}
public function get value():Number{
return ((lastValue + ((ivalue - lastValue) * alpha)));
}
public function set value(p__1:Number):void{
ivalue = p__1;
lastValue = p__1;
}
public static function setAlpha(p__1:Number):void{
alpha = p__1;
}
}
}//package src.timing
Section 57
//Timeable (src.timing.Timeable)
package src.timing {
public interface Timeable {
function tick(:Number):void;
function render(_arg1:Number, _arg2:Number):void;
}
}//package src.timing
Section 58
//Timer (src.timing.Timer)
package src.timing {
import flash.utils.*;
public class Timer {
private var time:Number;// = 0
private var startTime:Number;// = -1
private var lastTime:Number;// = 0
private var unprocessedTime:Number;// = 0
private var tick:Number;// = 0
private var millisPerGameTick:Number;// = 0
private var maxTickTime:Number;// = -1
private var timeable:Timeable;
public function Timer(p__1:Timeable, p__2:Number){
super();
millisPerGameTick = (1000 / p__2);
this.timeable = p__1;
this.maxTickTime = 500;
}
public function getMillisPerTick():Number{
return (millisPerGameTick);
}
public function setMaxTickTime(p__1:Number):void{
maxTickTime = p__1;
}
public function advanceTime2():void{
var l__4:* = undefined;
var l__1:* = getTimer();
if (startTime < 0){
startTime = l__1;
unprocessedTime = millisPerGameTick;
};
time = (l__1 - startTime);
var l__2:* = (time - lastTime);
lastTime = time;
unprocessedTime = (unprocessedTime + l__2);
if (unprocessedTime >= millisPerGameTick){
l__4 = (maxTickTime + l__1);
do {
timeable.tick(tick);
tick++;
unprocessedTime = (unprocessedTime - millisPerGameTick);
} while ((((unprocessedTime >= millisPerGameTick)) && ((getTimer() < l__4))));
};
var l__3:Number = ((unprocessedTime % millisPerGameTick) / millisPerGameTick);
IFloat.setAlpha(l__3);
timeable.render(tick, l__3);
}
public function advanceTime(){
time = getTimer();
var l__1:* = (time - lastTime);
lastTime = time;
unprocessedTime = (unprocessedTime + l__1);
var l__2:Number = 0;
while (unprocessedTime > millisPerGameTick) {
unprocessedTime = (unprocessedTime - millisPerGameTick);
timeable.tick(tick);
tick++;
l__2++;
if (l__2 >= 10){
unprocessedTime = 0;
};
};
var l__3:Number = (unprocessedTime / millisPerGameTick);
timeable.render(tick, l__3);
}
}
}//package src.timing
Section 59
//Aztec (src.Aztec)
package src {
import src.sound.*;
import flash.events.*;
import src.timing.*;
import src.comm.*;
import src.math.*;
import flash.display.*;
import flash.text.*;
import flash.filters.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.external.*;
public class Aztec extends MovieClip implements Timeable {
public var mcLogo:MovieClip;
public var mcRelaxGameOver:RelaxGameOver;
public var mcBetweenRounds:MovieClip;
public var mcTopFG:MovieClip;
public var mcGame:Game;
public var txtFPS:TextField;
public var mcIntroScreen:MovieClip;
public var mcBG:MovieClip;
public var mcQuit:MovieClip;
public var mcFG:MovieClip;
public var foodLeftTxt:TextField;
public var mcSFX:MovieClip;
public var mcWater:MovieClip;
public var mcRelaxModeMeter:MovieClip;
public var mcMusic:MovieClip;
public var parsedGameData:Object;// = null
public var gameState;
public var userType;
public var waterEffect;// = true
public var partner:String;
private var communicator;
private var m_mainTimer;
private var random;
private var levelRandom;
private var currentTick;
private var gameData;
private var ticksLeft;
private var level;// = 0
private var noOfRandom;// = 0
private var noOfLevelRandom;// = 0
private var signAnimAt;// = 0
private var FPSavg;
private var FPSavgCount;// = 0
private var playG_;
private var tArr;
private var egp;// = false
private var cbs;// = false
private var sfxOn;// = true
private var musicOn;// = true
private var relaxMode;// = false
private var totalBB;
private var totalES;
private var totalLR;
private var mcGameOver;
private var mcSignup;
private var recordScore:Number;
private var recordMultiplyer:Number;
private var boosterExtraTime:int;
private var boosterStartWithLineblast:Boolean;
private var boosterStartWithColorBomb:Boolean;
private var boosterInitialMultiplier:Number;
private var noOfRend;// = 0
private var startTime;
private var drScore:int;// = 0
public var musicManager:SoundManager;
public var sfxManager:SoundManager;
private static const STATE_WAIT_FOR_GAMEDATA:int = 0;
private static const STATE_SHOW_INFO_SCREEN:int = 1;
private static const STATE_PLAY_GAME:int = 2;
private static const STATE_BETWEEN_ROUNDS:int = 3;
private static const STATE_END_GAME:int = 4;
private static const STATE_SIGNUP:int = 5;
private static const TICKS_PER_SEC:int = 25;
private static const BUILD_CBS_STANDALONE:Boolean = false;
private static const CBS_DATA:String = (((((((((((((((((((((((((((((((((((((((((("<gamedata relaxMode=\"false\" partner=\"cbs\" randomseed=\"" + (0 | (Math.random() * 524288))) + "\" lang=\"en_US\">") + "<text id=\"txtTrophy1Exp\">Clear 500 levels to unlock this trophy!</text>") + "<text id=\"txtRelaxIntro\">Drop blocks to create groups of four or more of the same kind to remove them. Your goal is to make sure no blocks are above the water surface. Use space bar to switch blocks. Collect animals to keep your meter filled or the game will end.</text>") + "<text id=\"txtRegister\">Register to play the full game</text>") + "<text id=\"txtIntroHeader\">Instructions:</text>") + "<text id=\"game_starts_in\">The game starts in [0] seconds!</text>") + "<text id=\"txtLevelsLabel\">Levels Cleared:</text>") + "<text id=\"txtTrophy2Exp\">Destroy 500 black blocks to unlock this trophy!</text>") + "<text id=\"txtFish\">Fish, Seahorse and Crab: Save them by getting them into the water for extra points!</text>") + "<text id=\"txtEmptySpacesLabel\">Empty rows:</text>") + "<text id=\"game_next_screen\">Next info screen in [0] seconds!</text>") + "<text id=\"game_ends\">Game ends in [0] seconds!</text>") + "<text id=\"txtClickToCont\">Click to continue</text>") + "<text id=\"txtBlackBallsLabel\">Black blocks:</text>") + "<text id=\"txtGameOverHeader\">Spiel Vorbei!</text>") + "<text id=\"txtLineBlast\">Line Blast: Destroys a complete row.</text>") + "<text id=\"txtTrophyRecieved\">Trophy Received!</text>") + "<text id=\"txtRelaxFish\">Fish, Seahorse and Crab: Save them by getting them into the water, you need this to survive!</text>") + "<text id=\"txtScoreLabel\">Score:</text>") + "<text id=\"txtBonusHeader\">Bonus objects:</text>") + "<text id=\"txtTrophy3Exp\">Get a bonus score for 1000 empty rows to unlock this trophy!</text>") + "<text id=\"txtBlack\">Black blocks cannot create combos</text>") + "<text id=\"txtIntro\">Drop blocks to create groups of four or more of the same kind to remove them. Your goal is to make sure no blocks are above the water surface. Use space bar to switch blocks.</text>") + "<text id=\"txtBomb\">Destroys all blocks of the same colour</text>") + "<text id=\"txtTotal\">Total</text>") + "<text id=\"txtNextLevel\">You made it to the next level!</text>") + "<text id=\"txtRecordScore\">RecordScore</text>") + "<text id=\"txtMultiplyer\">Multiplyer</text>") + "<text id=\"txtRecordMultiplyer\">RecordMultiplyer</text>") + "<sounds id=\"sfxOn\">0</sounds>") + "<sounds id=\"musicOn\">0</sounds>") + "<records id=\"recordScore\">5</records>") + "<records id=\"recordMultiplyer\">5</records>") + "<userType id=\"0\">1</userType>") + "<boosters>") + "<a value=\"1\" />") + "<b value=\"1\" />") + "<c value=\"1\" />") + "<d value=\"1\" />") + "</boosters>") + "</gamedata>");
private static const DEBUG_MODE = true;
private static const DEBUG_GAME_DATA = (((((((((((((((((((((((((((((((((((((((((("<gamedata relaxMode=\"false\" partner=\"king\" randomseed=\"" + (0 | (Math.random() * 524288))) + "\" lang=\"en_US\">") + "<text id=\"txtTrophy1Exp\">Clear 500 levels to unlock this trophy!</text>") + "<text id=\"txtRelaxIntro\">Drop blocks to create groups of four or more of the same kind to remove them. Your goal is to make sure no blocks are above the water surface. Use space bar to switch blocks. Collect animals to keep your meter filled or the game will end.</text>") + "<text id=\"txtRegister\">Register to play the full game</text>") + "<text id=\"txtIntroHeader\">Spielregeln:</text>") + "<text id=\"game_starts_in\">The game starts in [0] seconds!</text>") + "<text id=\"txtLevelsLabel\">Levels Cleared:</text>") + "<text id=\"txtTrophy2Exp\">Destroy 500 black blocks to unlock this trophy!</text>") + "<text id=\"txtFish\">Fish, Seahorse and Crab: Save them by getting them into the water for extra points!</text>") + "<text id=\"txtEmptySpacesLabel\">Empty rowen:</text>") + "<text id=\"game_next_screen\">Next info screen in [0] seconds!</text>") + "<text id=\"game_ends\">Game ends in [0] seconds!</text>") + "<text id=\"txtClickToCont\">Click to continue</text>") + "<text id=\"txtBlackBallsLabel\">Black blocken:</text>") + "<text id=\"txtGameOverHeader\">Spiel vorbei!</text>") + "<text id=\"txtLineBlast\">Linienexplosion: Zerstört eine komplette Reihe.</text>") + "<text id=\"txtTrophyRecieved\">Trophy Received!</text>") + "<text id=\"txtRelaxFish\">Fish, Seahorse and Crab: Save them by getting them into the water, you need this to survive!</text>") + "<text id=\"txtScoreLabel\">Punkte:</text>") + "<text id=\"txtBonusHeader\">Bonusobjeckt:</text>") + "<text id=\"txtTrophy3Exp\">Get a bonus score for 1000 empty rows to unlock this trophy!</text>") + "<text id=\"txtBlack\">Schwarze Blöcke können keine Combos erstellen</text>") + "<text id=\"txtIntro\">Lassen Sie Blöcke fallen, um Gruppen von vier oder mehr der gleichen Art zu erstellen, um sie zu entfernen. Ihr Ziel ist es, sicherzustellen, dass sich keine Blöcke über der Wasseroberfläche befinden. Verwenden Sie die Leertaste, um Blöcke zu wechseln.</text>") + "<text id=\"txtBomb\">Zerstört alle Blöcke der gleichen Farbe</text>") + "<text id=\"txtTotal\">Total</text>") + "<text id=\"txtNextLevel\">You made it to the next level!</text>") + "<text id=\"txtRecordScore\">Punkte</text>") + "<text id=\"txtMultiplyer\">Mulktspier</text>") + "<text id=\"txtRecordMultiplyer\">Rekorden Mulkspier</text>") + "<sounds id=\"sfxOn\">0</sounds>") + "<sounds id=\"musicOn\">0</sounds>") + "<records id=\"recordScore\">0</records>") + "<records id=\"recordMulitplyer\">0</records>") + "<userType id=\"0\">1</userType>") + "<boosters>") + "<a value=\"1\" />") + "<b value=\"1\" />") + "<c value=\"1\" />") + "<d value=\"1\" />") + "</boosters>") + "</gamedata>");
public function Aztec(){
var l__2:Object;
var l__3:String;
musicManager = new SoundManager();
sfxManager = new SoundManager();
var l__1:* = undefined;
super();
mcGameOver = new GameOverScreen();
m_mainTimer = new Timer(this, TICKS_PER_SEC);
addEventListener("enterFrame", drive);
communicator = new Communicator();
mcBetweenRounds.visible = false;
mcGameOver.visible = false;
mcLogo.visible = false;
mcBetweenRounds.addEventListener(MouseEvent.CLICK, clearTicksLeft);
mcIntroScreen.addEventListener(MouseEvent.CLICK, clearTicksLeft);
mcGameOver.addEventListener(MouseEvent.CLICK, clearTicksLeft);
mcQuit.addEventListener(MouseEvent.CLICK, endGamePressed);
mcSFX.addEventListener(MouseEvent.CLICK, sfxButtonClicked);
mcMusic.addEventListener(MouseEvent.CLICK, musicButtonClicked);
mcTopFG.mouseEnabled = false;
playG_ = new Play();
playG_.x = 455;
playG_.y = 500;
addChild(playG_);
playG_.addEventListener(MouseEvent.CLICK, clearTicksLeft);
if (BUILD_CBS_STANDALONE){
mcSignup = new SignupScreen();
l__1 = mcSignup.mcInner;
l__1.mcCheckbox.gotoAndStop(2);
l__1.mcClickSignup.buttonMode = true;
l__1.mcClickSignup.useHandCursor = true;
l__1.mcClickSignup.mouseChildren = false;
l__1.mcClickSignup.addEventListener(MouseEvent.CLICK, doSignup);
l__1.mcClickCheckBox.buttonMode = true;
l__1.mcClickCheckBox.useHandCursor = true;
l__1.mcClickCheckBox.mouseChildren = false;
l__1.mcClickCheckBox.addEventListener(MouseEvent.CLICK, flipSignupCheckBox);
l__1.mcClickPlayAgain.buttonMode = true;
l__1.mcClickPlayAgain.useHandCursor = true;
l__1.mcClickPlayAgain.mouseChildren = false;
l__1.mcClickPlayAgain.addEventListener(MouseEvent.CLICK, clearTicksLeft);
l__2 = new Object();
l__2.message = CBS_DATA;
l__2.success = true;
} else {
if (DEBUG_MODE){
l__2 = new Object();
l__2.message = DEBUG_GAME_DATA;
l__2.success = true;
} else {
l__2 = ExternalInterface.call("getGameData");
};
};
if ((((l__2 == null)) || (!(l__2.success)))){
trace(("oa banga ur " + l__2));
} else {
l__3 = l__2.message;
parsedGameData = GameDataParser.parseGameData(l__3);
random = new MtRandom(parsedGameData.randomSeed);
relaxMode = parsedGameData.relaxMode;
mcGame.relaxMode = parsedGameData.relaxMode;
partner = parsedGameData.partnerId;
levelRandom = new MtRandom(parsedGameData.randomSeed);
boosterExtraTime = ((parsedGameData.boosters.a)=="0") ? 0 : (5 * 25);
boosterStartWithLineblast = ((parsedGameData.boosters.b)=="0") ? false : true;
boosterStartWithColorBomb = ((parsedGameData.boosters.c)=="0") ? false : true;
boosterInitialMultiplier = ((parsedGameData.boosters.d)=="0") ? 1 : 3;
mcIntroScreen.mcIntroText1.txtIntro.text = parsedGameData.textMappings[(relaxMode) ? "txtRelaxIntro" : "txtIntro"];
mcIntroScreen.mcIntroText1.txtIntroHeader.text = parsedGameData.textMappings["txtIntroHeader"];
mcIntroScreen.mcIntroText2.txtBonusHeader.text = parsedGameData.textMappings["txtBonusHeader"];
mcIntroScreen.mcIntroText2.txtBlack.text = parsedGameData.textMappings["txtBlack"];
mcIntroScreen.mcIntroText2.txtBomb.text = parsedGameData.textMappings["txtBomb"];
mcIntroScreen.mcIntroText2.txtLineBlast.text = parsedGameData.textMappings["txtLineBlast"];
mcGameOver.txtGameOverHeader.text = parsedGameData.textMappings["txtGameOverHeader"];
mcGameOver.mcScoreTextLabel.txtScoreLabel.text = parsedGameData.textMappings["txtScoreLabel"];
mcGameOver.mcScoreTextLabel.txtLevelsLabel.text = parsedGameData.textMappings["txtRecordScore"];
mcGameOver.mcScoreTextLabel.txtBlackBallsLabel.text = parsedGameData.textMappings["txtMultiplyer"];
mcGameOver.mcScoreTextLabel.txtEmptySpacesLabel.text = parsedGameData.textMappings["txtRecordMultiplyer"];
mcBetweenRounds.mcInfoText.txtNextLevel.text = parsedGameData.textMappings["txtNextLevel"];
mcBetweenRounds.mcInfoText.txtScoreLabel.text = parsedGameData.textMappings["txtScoreLabel"];
mcBetweenRounds.mcInfoText.txtClickToCont.text = parsedGameData.textMappings["txtClickToCont"];
totalBB = parsedGameData.records["totalBB"];
totalES = parsedGameData.records["totalES"];
totalLR = parsedGameData.records["totalLR"];
recordScore = parsedGameData.records["recordScore"];
recordMultiplyer = parsedGameData.records["recordMultiplyer"];
if (Number(parsedGameData.sounds["sfxOn"]) == 1){
mcSFX.gotoAndStop(10);
sfxOn = false;
mcGame.sfxOn = false;
sfxManager.setVolume(0);
};
if (Number(parsedGameData.sounds["musicOn"]) == 1){
mcMusic.gotoAndStop(10);
musicOn = false;
mcGame.musicOn = false;
musicManager.setVolume(0);
};
userType = parsedGameData.userType;
if (partner == "cbs"){
cbs = true;
mcIntroScreen.mcLogo.gotoAndStop(2);
mcLogo.visible = true;
};
showInfoScreen();
};
}
public function flipSignupCheckBox(p__1:MouseEvent):void{
var l__2:* = mcSignup.mcInner.mcCheckbox;
l__2.gotoAndStop(((l__2.currentFrame)==1) ? 2 : 1);
}
public function doSignup(p__1:MouseEvent):void{
if (mcSignup.mcInner.mcCheckbox.currentFrame == 2){
communicator.signup();
};
}
private function drive(p__1:Event){
m_mainTimer.advanceTime2();
}
public function tick(p__1:Number):void{
currentTick = p__1;
switch (gameState){
case STATE_SHOW_INFO_SCREEN:
ticksLeft--;
signAnimAt++;
if (ticksLeft <= 0){
startRound();
if (!DEBUG_MODE){
communicator.gameStarted();
};
};
break;
case STATE_PLAY_GAME:
mcGame.tick(p__1, TICKS_PER_SEC);
break;
case STATE_BETWEEN_ROUNDS:
ticksLeft--;
signAnimAt++;
if (ticksLeft == 0){
startRound();
};
break;
case STATE_END_GAME:
ticksLeft--;
signAnimAt++;
if (ticksLeft == 0){
if (BUILD_CBS_STANDALONE){
gameState = STATE_SIGNUP;
signAnimAt = 1;
ticksLeft = (TICKS_PER_SEC * 30);
addChild(mcSignup);
} else {
gameQuit();
};
};
break;
case STATE_SIGNUP:
ticksLeft--;
signAnimAt++;
if (ticksLeft == 0){
gameQuit();
};
break;
};
}
public function render(p__1:Number, p__2:Number):void{
var l__4:* = undefined;
musicManager.update();
sfxManager.update();
if (noOfRend == 0){
startTime = getTimer();
};
noOfRend++;
var l__3:* = (getTimer() - startTime);
if (l__3 > 2000){
l__4 = Math.round(((noOfRend * 1000) / l__3));
noOfRend = 0;
if (FPSavg == undefined){
FPSavg = l__4;
FPSavgCount = 1;
} else {
FPSavg = (FPSavg + l__4);
FPSavgCount++;
};
if (FPSavgCount == 5){
if ((FPSavg / 5) < 10){
waterEffect = false;
};
FPSavg = 0;
FPSavgCount = 0;
};
};
switch (gameState){
case STATE_SHOW_INFO_SCREEN:
mcIntroScreen.gotoAndStop(signAnimAt);
break;
case STATE_PLAY_GAME:
mcGame.render(p__1, p__2);
break;
case STATE_BETWEEN_ROUNDS:
mcBetweenRounds.gotoAndStop(signAnimAt);
break;
case STATE_END_GAME:
if (signAnimAt < 21){
mcGameOver.gotoAndStop(signAnimAt);
} else {
if (tArr.length > 0){
if (tArr[0] == 1){
};
if (tArr[1] == 1){
};
if (tArr[2] == 1){
};
tArr = [];
};
};
break;
case STATE_SIGNUP:
if (signAnimAt < 19){
mcSignup.gotoAndStop(signAnimAt);
};
break;
};
}
public function clearTicksLeft(p__1:Event){
switch (gameState){
case STATE_BETWEEN_ROUNDS:
if ((((signAnimAt > 49)) && ((signAnimAt < 100)))){
ticksLeft = 29;
signAnimAt = 100;
};
break;
case STATE_END_GAME:
if (ticksLeft < 225){
ticksLeft = 1;
};
break;
default:
ticksLeft = 1;
};
}
public function showInfoScreen(){
musicManager.get("intro").play(1);
signAnimAt = 1;
ticksLeft = 560;
gameState = STATE_SHOW_INFO_SCREEN;
}
public function startRound(){
if (level == 0){
removeChild(playG_);
removeChild(mcIntroScreen);
stage.focus = this;
musicManager.get("intro").stop();
} else {
musicManager.get("levelCompleted").stop();
};
musicManager.get("loop").loop(0).fadeTo(0.4, 1000);
musicManager.get("levelStart").play();
level++;
mcBetweenRounds.visible = false;
gameState = STATE_PLAY_GAME;
var l__1:Array = getGameArr();
mcGame.startRound(level, this, currentTick, l__1, communicator, ((level)==1) ? boosterExtraTime : 0, ((level)==1) ? boosterStartWithLineblast : false, ((level)==1) ? boosterStartWithColorBomb : false, ((level)==1) ? boosterInitialMultiplier : mcGame.getMultiplier());
}
public function getGameArr(){
var l__1:Array = new Array();
var l__2:Array = new Array();
var l__3:Array = new Array();
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,1,1,1,1,1,1,1,0,0-") + "0,0,1,1,1,1,1,1,1,0,0-") + "0,0,1,1,1,1,1,1,1,0,0-") + "0,0,1,1,1,1,1,1,1,0,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,1,0,0,0,0,0,0,0,0,0,1,0-") + "0,1,0,0,0,0,0,0,0,0,0,1,0-") + "0,1,0,0,0,0,0,0,0,0,0,1,0-") + "0,1,0,1,1,1,1,1,1,1,0,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,1,1,1,0,0,0,0,0-") + "0,0,0,0,0,1,1,1,0,0,0,0,0-") + "0,0,0,0,0,1,1,1,0,0,0,0,0-") + "0,0,0,0,0,1,1,1,0,0,0,0,0-") + "1,1,1,0,0,1,1,1,0,0,1,1,1-") + "1,1,1,0,0,1,1,1,0,0,1,1,1-") + "1,1,1,0,0,1,1,1,0,0,1,1,1-") + "1,1,1,0,0,1,1,1,0,0,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,1,1,1,1,1,0,0,0,0-") + "0,0,0,0,1,1,1,1,1,0,0,0,0-") + "0,0,0,0,1,1,1,1,1,0,0,0,0-") + "0,0,0,1,1,1,1,1,1,1,0,0,0-") + "0,0,0,1,1,1,1,1,1,1,0,0,0-") + "0,0,0,1,1,1,1,1,1,1,0,0,0-") + "0,0,0,1,1,1,1,1,1,1,0,0,0-") + "0,0,0,1,1,1,1,1,1,1,0,0,0-") + "0,0,0,1,1,1,1,1,1,1,0,0,0-") + "0,0,0,1,1,1,1,1,1,1,0,0,0-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,1,1,0,0,0,0,0,1,1,0-") + "0,1,1,0,0,0,0,0,1,1,0-") + "0,1,1,0,0,0,0,0,1,1,0-") + "0,1,1,0,0,0,0,0,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "1,0,0,0,0,0,0,0,0,0,0,0,1-") + "1,0,1,1,1,0,0,0,1,1,1,0,1-") + "1,0,1,1,1,0,0,0,1,1,1,0,1-") + "1,0,1,1,1,0,0,0,1,1,1,0,1-") + "1,0,1,1,1,0,0,0,1,1,1,0,1-") + "1,0,1,1,1,0,0,0,1,1,1,0,1-") + "1,0,1,1,1,0,0,0,1,1,1,0,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "1,0,0,0,0,0,0,0,0,0,0,0,1-") + "1,1,0,0,0,0,0,0,0,0,0,1,1-") + "1,1,1,0,0,0,0,0,0,0,1,1,1-") + "1,1,1,1,0,0,0,0,0,1,1,1,1-") + "1,1,1,1,1,0,0,0,1,1,1,1,1-") + "1,1,1,1,1,1,0,1,1,1,1,1,1-") + "1,1,1,1,1,1,0,1,1,1,1,1,1-") + "1,1,1,1,1,1,0,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,1,0,0,0,0,0,0-") + "0,0,0,0,0,1,1,1,0,0,0,0,0-") + "0,0,0,0,1,1,1,1,1,0,0,0,0-") + "0,0,0,1,1,1,1,1,1,1,0,0,0-") + "0,0,1,1,1,1,1,1,1,1,1,0,0-") + "0,0,1,1,1,1,1,1,1,1,1,0,0-") + "1,0,1,1,1,1,1,1,1,1,1,0,1-") + "1,0,1,1,1,1,1,1,1,1,1,0,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,1,1,0,0,0,0,0,1,1,0-") + "0,1,1,0,0,0,0,0,1,1,0-") + "0,1,1,0,0,0,0,0,1,1,0-") + "0,1,1,0,1,1,1,0,1,1,0-") + "0,1,1,0,1,1,1,0,1,1,0-") + "0,1,1,0,1,1,1,0,1,1,0-") + "0,1,1,0,1,1,1,0,1,1,0-") + "0,1,1,0,1,1,1,0,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,1,0,0,0,0,1,0,0,0,0,1,0-") + "0,1,0,0,0,1,1,1,0,0,0,1,0-") + "0,1,0,0,1,1,1,1,1,0,0,1,0-") + "0,1,0,1,1,1,1,1,1,1,0,1,0-") + "0,1,0,1,1,1,1,1,1,1,0,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,1,1,1,0,1,1,1,0,0-") + "0,0,1,1,1,0,1,1,1,0,0-") + "0,0,1,1,1,0,1,1,1,0,0-") + "0,0,1,1,1,0,1,1,1,0,0-") + "0,0,1,1,1,0,1,1,1,0,0-") + "0,1,1,1,1,0,1,1,1,1,0-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "1,1,1,0,0,0,0,0,1,1,1-") + "1,1,1,0,0,0,0,0,1,1,1-") + "1,1,1,0,0,0,0,0,1,1,1-") + "1,1,1,0,0,0,0,0,1,1,1-") + "1,1,1,0,0,0,0,0,1,1,1-") + "1,1,1,0,0,0,0,0,1,1,1-") + "1,1,1,1,0,0,0,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,1,0,1,0,0,0,0-") + "0,0,0,1,1,0,1,1,0,0,0-") + "0,0,1,1,1,0,1,1,1,0,0-") + "1,0,1,1,1,0,1,1,1,0,1-") + "1,0,1,1,1,1,1,1,1,0,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "1,0,0,0,1,0,1,0,0,0,1-") + "1,1,0,1,1,0,1,1,0,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,1,0,0,0,1,0,0,0,1,0-") + "1,1,1,0,0,1,0,0,1,1,1-") + "1,1,1,0,0,1,0,0,1,1,1-") + "1,1,1,0,0,1,0,0,1,1,1-") + "1,1,1,0,0,1,0,0,1,1,1-") + "1,1,1,0,0,1,0,0,1,1,1-") + "1,1,1,1,0,1,0,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,1,1,0,0,0,0,0,0,0,0,0,0-") + "0,1,1,1,1,0,0,0,0,0,0,0,0-") + "0,1,1,1,1,1,0,1,0,0,0,0,0-") + "0,1,1,1,1,1,0,1,1,1,0,0,0-") + "0,1,1,1,1,1,0,1,1,1,1,1,0-") + "0,1,1,1,1,1,0,1,1,1,1,1,0-") + "0,1,1,1,1,1,0,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,1,1-") + "0,0,0,0,0,0,1,1,0,1,1-") + "0,0,0,1,1,0,1,1,0,1,1-") + "1,1,0,1,1,0,1,1,0,1,1-") + "1,1,0,1,1,0,1,1,0,1,1-") + "1,1,0,1,1,0,1,1,0,1,1-") + "1,1,0,1,1,0,1,1,0,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,1,0,0,0,0,0,0-") + "0,0,0,0,0,1,1,1,0,0,0,0,0-") + "0,0,1,1,0,1,1,1,0,1,1,0,0-") + "0,1,1,1,0,1,1,1,0,1,1,1,0-") + "0,1,1,1,0,1,1,1,0,1,1,1,0-") + "0,1,1,1,0,1,1,1,0,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "1,1,1,1,0,0,0,1,1,1,1-") + "1,1,1,1,0,0,0,1,1,1,1-") + "1,1,1,1,0,1,0,1,1,1,1-") + "1,1,1,1,0,1,0,1,1,1,1-") + "1,1,1,1,0,1,0,1,1,1,1-") + "1,1,1,1,0,1,0,1,1,1,1-") + "1,1,1,1,0,1,0,1,1,1,1-") + "1,1,1,1,0,1,0,1,1,1,1-") + "1,1,1,1,0,1,0,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0-") + "1,1,1,1,0,1,1,1,1-") + "1,1,1,1,0,1,1,1,1-") + "1,1,1,1,0,1,1,1,1-") + "1,1,1,1,0,1,1,1,1-") + "1,1,1,1,0,1,1,1,1-") + "1,1,1,1,0,1,1,1,1-") + "1,1,1,1,0,1,1,1,1-") + "1,1,1,1,0,1,1,1,1-") + "1,1,1,1,0,1,1,1,1-") + "1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,1,1,0,1,1,0,0,0-") + "0,0,0,1,1,0,1,1,0,0,0-") + "0,0,0,1,1,0,1,1,0,0,0-") + "0,0,0,1,1,0,1,1,0,0,0-") + "0,0,0,1,1,0,1,1,0,0,0-") + "1,0,1,1,1,0,1,1,1,0,1-") + "1,0,1,1,1,0,1,1,1,0,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,1,0,1,1,0,1,1,0,1,0-") + "0,1,0,1,1,0,1,1,0,1,0-") + "0,1,1,1,1,0,1,1,1,1,0-") + "0,1,1,1,1,0,1,1,1,1,0-") + "0,1,1,1,1,0,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,0"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0,0,0-") + "0,1,1,1,0,0,0,0,0,1,1,1,0-") + "0,1,1,1,0,0,0,0,0,1,1,1,0-") + "0,1,1,1,0,0,0,0,0,1,1,1,0-") + "0,1,1,1,0,0,0,0,0,1,1,1,0-") + "0,1,1,1,1,0,1,0,1,1,1,1,0-") + "0,1,1,1,1,0,1,0,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0-") + "0,1,1,1,1,1,1,1,1,1,1,1,0"));
l__3.push((((((((((((((("0,0,0,0,0,0,0,0,0,0,0-" + "0,0,0,0,0,0,0,0,0,0,0-") + "0,0,0,0,0,0,0,0,0,0,0-") + "0,1,1,0,0,0,0,0,1,1,0-") + "0,1,1,0,0,0,0,0,1,1,0-") + "1,1,1,0,0,0,0,0,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,0,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1-") + "1,1,1,1,1,1,1,1,1,1,1"));
var l__4:Array = l__3[getLevelRandom(l__3.length)].split("-");
var l__5:* = 0;
while (l__5 < l__4.length) {
l__1 = l__4[l__5].split(",");
l__2.push(l__1);
l__5++;
};
return (l__2);
}
public function endRound(p__1, p__2, p__3, p__4){
musicManager.get("loop").stop();
if (p__1){
musicManager.get("levelCompleted").play();
betweenRounds(p__2);
} else {
musicManager.get("outro").play();
endGame(p__2, p__3, p__4);
};
}
public function betweenRounds(p__1){
signAnimAt = 1;
ticksLeft = 1;
gameState = STATE_BETWEEN_ROUNDS;
}
public function endGame(p__1, p__2, p__3){
var l__4:* = 1;
var l__5:* = 1;
if (sfxOn){
l__4 = 0;
};
if (musicOn){
l__5 = 0;
};
var l__6:* = Math.max(recordScore, p__1);
var l__7:* = Math.max(recordMultiplyer, p__2);
if (!egp){
};
signAnimAt = 1;
ticksLeft = 275;
mcGameOver.visible = true;
drScore = p__1;
mcGameOver.mcScoreText.txtScore.text = p__1;
mcGameOver.mcScoreText.txtLevels.text = String(l__6);
mcGameOver.mcScoreText.txtBlackBalls.text = String(p__2);
mcGameOver.mcScoreText.txtEmptySpaces.text = String(l__7);
mcGameOver.x = 378;
mcGameOver.y = 283;
addChild(mcGameOver);
tArr = new Array(0, 0, 0);
if (((level - 1) + Number(totalLR)) > 499){
tArr[0] = 1;
if (Number(totalLR) < 500){
addGlow(mcGameOver.mcScoreText.txtLevels);
};
};
if ((p__2 + Number(totalBB)) > 499){
tArr[1] = 1;
if (Number(totalBB) < 500){
addGlow(mcGameOver.mcScoreText.txtBlackBalls);
};
};
if ((p__3 + Number(totalES)) > 999){
tArr[2] = 1;
if (Number(totalES) < 1000){
addGlow(mcGameOver.mcScoreText.txtEmptySpaces);
};
};
if (userType == 0){
};
gameState = STATE_END_GAME;
}
public function addGlow(p__1){
var l__2:GlowFilter = new GlowFilter();
l__2.color = 16777164;
l__2.blurY = 8;
l__2.blurX = 8;
l__2.strength = 3;
l__2.quality = 2;
p__1.filters = [l__2];
}
public function gameQuit(){
trace(("DrunkenScore:" + drScore));
var url:* = "index.php?act=Arcade&do=newscore";
var request:* = new URLRequest(url);
var variables:* = new URLVariables();
variables.gname = "AmazonSurvivalSpeedAS3v2DR";
variables.gscore = drScore;
request.data = variables;
request.method = URLRequestMethod.POST;
navigateToURL(request, "_self");
//unresolved jump
var _slot1 = e;
trace(_slot1);
}
public function sfxButtonClicked(p__1:Event){
if (sfxOn){
sfxManager.fadeTo(0, 500);
mcSFX.gotoAndStop(10);
sfxOn = false;
mcGame.sfxOn = false;
} else {
sfxManager.fadeTo(1, 500);
mcSFX.gotoAndStop(1);
sfxOn = true;
mcGame.sfxOn = true;
};
}
public function musicButtonClicked(p__1:Event){
if (musicOn){
musicManager.fadeTo(0, 500);
mcMusic.gotoAndStop(10);
musicOn = false;
mcGame.musicOn = false;
} else {
musicManager.fadeTo(1, 500);
mcMusic.gotoAndStop(1);
musicOn = true;
mcGame.musicOn = true;
};
}
public function endGamePressed(p__1:Event){
egp = true;
mcGame.endRound(false, 0);
}
public function getRandom(p__1:Number){
noOfRandom++;
return (random.nextInt(p__1));
}
public function getLevelRandom(p__1:Number){
noOfLevelRandom++;
return (levelRandom.nextInt(p__1));
}
}
}//package src
Section 60
//BubbleAnim (src.BubbleAnim)
package src {
import flash.events.*;
import src.timing.*;
import src.comm.*;
import src.math.*;
import flash.display.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
public class BubbleAnim extends MovieClip {
public var mcBubble:MovieClip;
public var animLength;// = 21
public var animAt;// = 1
public function BubbleAnim(){
super();
x = Math.round((Math.random() * 750));
y = 560;
alpha = 0.8;
var l__1:* = Math.random();
mcBubble.mcInnerBubble.scaleX = Math.max(l__1, 0.4);
mcBubble.mcInnerBubble.scaleY = Math.max(l__1, 0.4);
}
}
}//package src
Section 61
//ClearLevel (src.ClearLevel)
package src {
import flash.display.*;
public dynamic class ClearLevel extends MovieClip {
}
}//package src
Section 62
//DustAnim (src.DustAnim)
package src {
import flash.display.*;
public dynamic class DustAnim extends MovieClip {
public var animLength;
public var animAt;
public function DustAnim(){
addFrameScript(0, frame1);
}
function frame1(){
animLength = 13;
animAt = 1;
stop();
}
}
}//package src
Section 63
//Explosion (src.Explosion)
package src {
import flash.display.*;
public class Explosion extends MovieClip {
public var animLength;// = 11
public var animAt;// = 1
public var mcRed:MovieClip;
public var mcBlack:MovieClip;
public var mcLineBlastExplosion:MovieClip;
public var mcRegularExplosion:MovieClip;
public var mcGreen:MovieClip;
public var mcYellow:MovieClip;
public var mcBlue:MovieClip;
public var delay;
public var scaleVal;// = 1
public var target;
public function Explosion(p__1, p__2, p__3, p__4){
super();
x = p__1;
y = p__2;
this.delay = p__3;
mcRegularExplosion.visible = false;
mcBlack.visible = false;
mcLineBlastExplosion.visible = false;
mcBlue.visible = false;
mcYellow.visible = false;
mcGreen.visible = false;
mcRed.visible = false;
switch (p__4){
case 0:
animLength = 16;
mcBlue.visible = true;
target = mcBlue;
break;
case 1:
animLength = 16;
mcYellow.visible = true;
target = mcYellow;
break;
case 2:
animLength = 16;
mcGreen.visible = true;
target = mcGreen;
break;
case 3:
animLength = 16;
mcRed.visible = true;
target = mcRed;
break;
case 9:
animLength = 32;
mcBlack.visible = true;
target = mcBlack;
break;
case 10:
animLength = 11;
mcRegularExplosion.visible = true;
target = mcRegularExplosion;
break;
case 20:
animLength = 13;
mcLineBlastExplosion.visible = true;
target = mcLineBlastExplosion;
break;
};
}
}
}//package src
Section 64
//Game (src.Game)
package src {
import src.sound.*;
import flash.events.*;
import src.timing.*;
import src.comm.*;
import src.math.*;
import flash.display.*;
import flash.text.*;
import flash.filters.*;
import flash.utils.*;
import flash.system.*;
import flash.external.*;
import flash.geom.*;
public class Game extends MovieClip {
public var mcTimeNum2:MovieClip;
public var mcTimeNum4:MovieClip;
public var mcTimeDiv:MovieClip;
public var mcTimeNum3:MovieClip;
private var food:int;// = 0
private var endDelay:int;// = 0
public var relaxMode:Boolean;// = false
private var startTime;
private var communicator;
private var gameState;
private var random;
private var currentTick;
private var level;
private var gameRoot;
private var noOfTypes;
private var gameGridObj:Array;
private var splashArr;
private var floatYArr:Array;
private var visualExplArr:Array;
private var waveArr;
private var dustArr;
private var slider;
private var sliderFloat;
private var rotFloat;
private var pieceStack;
private var nextPiece;// = null
private var switchPiece;// = null
private var explArr;
private var collapsing;
private var scoreArr;
private var score;// = 0
private var clearLevel;
private var consecutive;
public var timeLeft;// = 1500
private var cleared_;
private var bonusScore_;
private var sliderMod;// = 1
private var rotSpeed;// = 0
private var waveSpeed;// = 1
private var explodeCounter;// = 0
private var stone1;
private var stone2;
private var pieceXMod;// = 0
private var shotSound;// = false
private var doBubbles;// = true
private var bubbleAnimArr;
private var waterBaseBitmap:Bitmap;
private var waterBaseBitmapData:BitmapData;
private var distortFilter:BitmapFilter;
private var musicManager:SoundManager;
private var sfxManager:SoundManager;
private var theme;
public var sfxOn;// = true
public var musicOn;// = true
private var allLanded;// = 0
private var nextPieceFloatX;
private var nextPieceFloatY;
private var nextPieceFloatScaleX;
private var nextPieceFloatScaleY;
private var switchPieceFloatX;
private var switchPieceFloatY;
private var switchPieceFloatScaleX;
private var switchPieceFloatScaleY;
private var numBlack;// = 1
private var numEmptyRows;// = 0
private var makeLineBlast_;// = false
private var bonusShown;
private var distortBitmap:BitmapData;
private var boardMatchNum;
private var levelNumArr;
private var scoreNumArr;
private var multiNumArr;
private static const FOOD_INCREASE:int = 5;
private static const FOOD_LIMIT:int = 35;
private static const FOOD_START:int = int((FOOD_LIMIT / 2));
private static var STATE_RUNNING = 0;
private static var STATE_NOT_RUNNING = 1;
private static var STATE_END_ANIMS = 2;
private static var LEVEL_CLEARANCE = 10;
public function Game(){
levelNumArr = new Array();
scoreNumArr = new Array();
multiNumArr = new Array();
super();
this.addEventListener(MouseEvent.MOUSE_DOWN, shootBall);
stage.addEventListener(KeyboardEvent.KEY_DOWN, switchBalls);
distortBitmap = new BitmapData(755, 200);
distortFilter = new DisplacementMapFilter(distortBitmap, new Point(0, 0), BitmapDataChannel.RED, BitmapDataChannel.GREEN, 4, 4, "wrap");
}
public function tick(p__1:Number, p__2:Number):void{
var l__3:* = undefined;
var l__4:* = undefined;
var l__5:* = undefined;
var l__6:* = undefined;
var l__7:* = undefined;
currentTick = p__1;
switch (gameState){
case STATE_RUNNING:
if (doBubbles){
if ((Math.random() * 100) < 5){
createBubbleAnim();
};
};
explodeCounter = Math.max((explodeCounter - 1), 0);
waveSpeed = ((waveSpeed % 28) + 1);
if (!relaxMode){
if (allLanded == 0){
timeLeft--;
if ((((gameRoot.userType == 0)) && ((level == 2)))){
openUserEnd();
break;
};
};
if (timeLeft == 0){
if (collapsing > 0){
timeLeft++;
} else {
endAnims(false);
break;
};
};
if (timeLeft == 250){
sfxManager.get("warning").play(0.7);
};
};
l__3 = ((mouseX - slider.theX) / 2);
slider.theX = (slider.theX + l__3);
slider.theX = Math.min((((gameGridObj[0].length - 1) * 32) + pieceXMod), slider.theX);
slider.theX = Math.max(pieceXMod, slider.theX);
l__4 = Math.max((((375 - slider.theX) / 100) * 2), ((((375 - slider.theX) / 100) * 2) * -1));
slider.theY = (37 - l__4);
sliderFloat.set(slider.theX);
rotSpeed = (rotSpeed - (l__3 / 2));
rotSpeed = Math.min(rotSpeed, 15);
rotSpeed = Math.max(rotSpeed, -15);
if (rotSpeed > 0){
rotSpeed = Math.max((rotSpeed - 0.5), 0);
} else {
rotSpeed = Math.min((rotSpeed + 0.5), 0);
};
rotFloat.set(rotSpeed);
if (slider.animAt > 1){
reloadAnim(slider.animAt, sliderMod);
slider.animAt = (slider.animAt + sliderMod);
if (slider.animAt == 8){
sliderMod = -1;
} else {
if (slider.animAt == 1){
sliderMod = 1;
createPieceRolling();
};
};
};
if (slider.switchAnimAt > 1){
switchBallsAnim(slider.switchAnimAt);
slider.switchAnimAt = (slider.switchAnimAt + 1);
};
if (nextPiece.isBomb){
nextPiece.bombAnim = ((nextPiece.bombAnim % nextPiece.bombAnimLength) + 1);
};
if (nextPiece.isLineBlast){
nextPiece.lineBlastAnim = ((nextPiece.lineBlastAnim % nextPiece.lineBlastAnimLength) + 1);
};
if (switchPiece.isBomb){
switchPiece.bombAnim = ((switchPiece.bombAnim % switchPiece.bombAnimLength) + 1);
};
if (switchPiece.isLineBlast){
switchPiece.lineBlastAnim = ((switchPiece.lineBlastAnim % switchPiece.lineBlastAnimLength) + 1);
};
l__5 = 0;
while (l__5 < gameGridObj.length) {
l__6 = 0;
while (l__6 < gameGridObj[l__5].length) {
if (gameGridObj[l__5][l__6] != null){
if (gameGridObj[l__5][l__6].isCoin){
gameGridObj[l__5][l__6].animAt = ((gameGridObj[l__5][l__6].animAt % 20) + 1);
};
if (gameGridObj[l__5][l__6].isBomb){
gameGridObj[l__5][l__6].bombAnim = ((gameGridObj[l__5][l__6].bombAnim % gameGridObj[l__5][l__6].bombAnimLength) + 1);
};
if (gameGridObj[l__5][l__6].isLineBlast){
gameGridObj[l__5][l__6].lineBlastAnim = ((gameGridObj[l__5][l__6].lineBlastAnim % gameGridObj[l__5][l__6].lineBlastAnimLength) + 1);
};
if (gameGridObj[l__5][l__6].isFire){
gameGridObj[l__5][l__6].fireAnim = ((gameGridObj[l__5][l__6].fireAnim % gameGridObj[l__5][l__6].fireAnimLength) + 1);
};
if (explodeCounter == 0){
if (gameGridObj[l__5][l__6].theY != gameGridObj[l__5][l__6].gotoY){
if (gameGridObj[l__5][l__6].delay == 0){
if ((((((gameGridObj[l__5][l__6].theY < ((LEVEL_CLEARANCE * 32) + 100))) && ((Math.min((gameGridObj[l__5][l__6].theY + gameGridObj[l__5][l__6].getSpeed()), gameGridObj[l__5][l__6].gotoY) > ((LEVEL_CLEARANCE * 32) + 100))))) && ((allLanded == 0)))){
sfxManager.get("splash").play(0.7);
};
gameGridObj[l__5][l__6].updateSpeed();
gameGridObj[l__5][l__6].theY = Math.min((gameGridObj[l__5][l__6].theY + gameGridObj[l__5][l__6].getSpeed()), gameGridObj[l__5][l__6].gotoY);
floatYArr[l__5][l__6].set(gameGridObj[l__5][l__6].theY);
gameGridObj[l__5][l__6].animAt = ((gameGridObj[l__5][l__6].animAt + gameGridObj[l__5][l__6].animSpeed) % gameGridObj[l__5][l__6].animLength);
if (gameGridObj[l__5][l__6].theY == gameGridObj[l__5][l__6].gotoY){
floatYArr[l__5][l__6].set(gameGridObj[l__5][l__6].theY);
if (((!(gameGridObj[l__5][l__6].firstLand)) && ((allLanded == 0)))){
createDust(gameGridObj[l__5][l__6]);
};
gameGridObj[l__5][l__6].land();
allLanded = Math.max((allLanded - 1), 0);
if (gameGridObj[l__5][l__6].targetID > 0){
gameGridObj[l__5][l__6].rotDeg = (Math.round(((gameGridObj[l__5][l__6].rotation / 360) * 4)) * 90);
gameGridObj[l__5][l__6].animAt = ((Number(((Math.round((((gameGridObj[l__5][l__6].animAt % 20) / 20) * 4)) * 5) + 1)) % 20) * 3);
};
if (gameGridObj[l__5][l__6].running){
checkForExplosion(gameGridObj[l__5][l__6]);
} else {
gameGridObj[l__5][l__6].running = true;
};
collapsing--;
if (shotSound){
sfxManager.get("knock").play(0.1);
shotSound = false;
};
if (collapsing == 0){
if (collapsing == 0){
consecutive = 0;
checkForCoin();
if (checkForCleared()){
endAnims(true);
};
};
};
};
} else {
gameGridObj[l__5][l__6].delay--;
};
};
};
};
l__6++;
};
l__5++;
};
l__5 = 0;
while (l__5 < scoreArr.length) {
if (scoreArr[l__5].delay == 0){
scoreArr[l__5].animAt++;
if (scoreArr[l__5].animAt == scoreArr[l__5].animLength){
removeChild(scoreArr[l__5]);
scoreArr.splice(l__5, 1);
l__5--;
};
} else {
scoreArr[l__5].delay--;
};
l__5++;
};
l__5 = 0;
while (l__5 < splashArr.length) {
splashArr[l__5].animAt++;
if (splashArr[l__5].animAt == 18){
removeChild(splashArr[l__5]);
splashArr.splice(l__5, 1);
l__5--;
};
l__5++;
};
l__5 = 0;
while (l__5 < dustArr.length) {
dustArr[l__5].animAt++;
if (dustArr[l__5].animAt == dustArr[l__5].animLength){
removeChild(dustArr[l__5]);
dustArr.splice(l__5, 1);
l__5--;
};
l__5++;
};
l__5 = 0;
while (l__5 < visualExplArr.length) {
if (visualExplArr[l__5].delay > 0){
visualExplArr[l__5].delay--;
} else {
visualExplArr[l__5].animAt++;
if (visualExplArr[l__5].animAt >= visualExplArr[l__5].animLength){
removeChild(visualExplArr[l__5]);
visualExplArr.splice(l__5, 1);
l__5--;
};
};
l__5++;
};
l__5 = 0;
while (l__5 < bubbleAnimArr.length) {
bubbleAnimArr[l__5].animAt++;
if (bubbleAnimArr[l__5].animAt == bubbleAnimArr[l__5].animLength){
removeChild(bubbleAnimArr[l__5]);
bubbleAnimArr.splice(l__5, 1);
l__5--;
};
l__5++;
};
break;
case STATE_END_ANIMS:
l__7 = true;
l__5 = 0;
while (l__5 < gameGridObj.length) {
l__6 = 0;
while (l__6 < gameGridObj[l__5].length) {
if (gameGridObj[l__5][l__6] != null){
if (gameGridObj[l__5][l__6].isCoin){
gameGridObj[l__5][l__6].animAt = ((gameGridObj[l__5][l__6].animAt % 20) + 1);
};
if (gameGridObj[l__5][l__6].isBomb){
gameGridObj[l__5][l__6].bombAnim = ((gameGridObj[l__5][l__6].bombAnim % gameGridObj[l__5][l__6].bombAnimLength) + 1);
};
if (gameGridObj[l__5][l__6].isLineBlast){
gameGridObj[l__5][l__6].lineBlastAnim = ((gameGridObj[l__5][l__6].lineBlastAnim % gameGridObj[l__5][l__6].lineBlastAnimLength) + 1);
};
if (gameGridObj[l__5][l__6].isFire){
gameGridObj[l__5][l__6].fireAnim = ((gameGridObj[l__5][l__6].fireAnim % gameGridObj[l__5][l__6].fireAnimLength) + 1);
};
if (explodeCounter == 0){
if (gameGridObj[l__5][l__6].theY != gameGridObj[l__5][l__6].gotoY){
l__7 = false;
if (gameGridObj[l__5][l__6].delay == 0){
if ((((((gameGridObj[l__5][l__6].theY < ((LEVEL_CLEARANCE * 32) + 100))) && ((Math.min((gameGridObj[l__5][l__6].theY + gameGridObj[l__5][l__6].getSpeed()), gameGridObj[l__5][l__6].gotoY) > ((LEVEL_CLEARANCE * 32) + 100))))) && ((allLanded == 0)))){
sfxManager.get("splash").play(0.7);
};
gameGridObj[l__5][l__6].updateSpeed();
gameGridObj[l__5][l__6].theY = Math.min((gameGridObj[l__5][l__6].theY + gameGridObj[l__5][l__6].getSpeed()), gameGridObj[l__5][l__6].gotoY);
floatYArr[l__5][l__6].set(gameGridObj[l__5][l__6].theY);
gameGridObj[l__5][l__6].animAt = ((gameGridObj[l__5][l__6].animAt + gameGridObj[l__5][l__6].animSpeed) % gameGridObj[l__5][l__6].animLength);
if (gameGridObj[l__5][l__6].theY == gameGridObj[l__5][l__6].gotoY){
floatYArr[l__5][l__6].set(gameGridObj[l__5][l__6].theY);
if (((!(gameGridObj[l__5][l__6].firstLand)) && ((allLanded == 0)))){
createDust(gameGridObj[l__5][l__6]);
};
gameGridObj[l__5][l__6].land();
allLanded = Math.max((allLanded - 1), 0);
if (gameGridObj[l__5][l__6].targetID > 0){
gameGridObj[l__5][l__6].rotDeg = (Math.round(((gameGridObj[l__5][l__6].rotation / 360) * 4)) * 90);
gameGridObj[l__5][l__6].animAt = ((Number(((Math.round((((gameGridObj[l__5][l__6].animAt % 20) / 20) * 4)) * 5) + 1)) % 20) * 3);
};
if (gameGridObj[l__5][l__6].running){
checkForExplosion(gameGridObj[l__5][l__6]);
} else {
gameGridObj[l__5][l__6].running = true;
};
collapsing--;
if (shotSound){
sfxManager.get("knock").play(0.1);
shotSound = false;
};
if (collapsing == 0){
if (collapsing == 0){
consecutive = 0;
checkForCoin();
if (checkForCleared()){
endAnims(true);
};
};
};
};
} else {
gameGridObj[l__5][l__6].delay--;
l__7 = false;
};
};
};
};
l__6++;
};
l__5++;
};
l__5 = 0;
while (l__5 < scoreArr.length) {
l__7 = false;
if (scoreArr[l__5].delay == 0){
scoreArr[l__5].animAt++;
if (scoreArr[l__5].animAt == scoreArr[l__5].animLength){
removeChild(scoreArr[l__5]);
scoreArr.splice(l__5, 1);
l__5--;
};
} else {
scoreArr[l__5].delay--;
if ((((scoreArr[l__5].delay == 0)) && (scoreArr[l__5].endScore))){
sfxManager.get("bonusScore").play(0.3);
};
};
l__7 = false;
l__5++;
};
l__5 = 0;
while (l__5 < splashArr.length) {
l__7 = false;
splashArr[l__5].animAt++;
if (splashArr[l__5].animAt == 18){
removeChild(splashArr[l__5]);
splashArr.splice(l__5, 1);
l__5--;
};
l__7 = false;
l__5++;
};
l__5 = 0;
while (l__5 < dustArr.length) {
l__7 = false;
dustArr[l__5].animAt++;
if (dustArr[l__5].animAt == dustArr[l__5].animLength){
removeChild(dustArr[l__5]);
dustArr.splice(l__5, 1);
l__5--;
};
l__7 = false;
l__5++;
};
l__5 = 0;
while (l__5 < visualExplArr.length) {
l__7 = false;
if (visualExplArr[l__5].delay > 0){
visualExplArr[l__5].delay--;
} else {
visualExplArr[l__5].animAt++;
if (visualExplArr[l__5].animAt >= visualExplArr[l__5].animLength){
removeChild(visualExplArr[l__5]);
visualExplArr.splice(l__5, 1);
l__5--;
};
};
l__7 = false;
l__5++;
};
l__5 = 0;
while (l__5 < bubbleAnimArr.length) {
bubbleAnimArr[l__5].animAt++;
if (bubbleAnimArr[l__5].animAt == bubbleAnimArr[l__5].animLength){
removeChild(bubbleAnimArr[l__5]);
bubbleAnimArr.splice(l__5, 1);
l__5--;
};
l__5++;
};
if (l__7){
gameRoot.mcQuit.visible = false;
if (checkForCleared()){
if (bonusShown){
endRound(cleared_, bonusScore_);
} else {
bonusScorePops();
};
bonusShown = true;
} else {
endRound(false, 0);
};
};
break;
case STATE_NOT_RUNNING:
break;
};
if (relaxMode){
if ((((((food == 0)) && ((collapsing == 0)))) && ((explodeCounter == 0)))){
if (!gameRoot.mcRelaxGameOver.visible){
gameRoot.mcRelaxGameOver.drop();
};
if (--endDelay == 0){
endRound(false, 0);
};
};
if (food < 6){
gameRoot.foodLeftTxt.visible = true;
gameRoot.foodLeftTxt.text = ("" + food);
} else {
if (gameRoot.foodLeftTxt.visible){
gameRoot.foodLeftTxt.visible = false;
};
};
};
}
public function render(p__1:Number, p__2:Number):void{
var l__4:int;
var l__3:* = undefined;
var l__5:* = undefined;
var l__6:* = undefined;
var l__7:* = undefined;
var l__8:* = undefined;
var l__9:* = undefined;
if (gameRoot.waterEffect){
updateWater(p__1);
} else {
if (waterBaseBitmap != null){
gameRoot.mcWater.removeChild(waterBaseBitmap);
waterBaseBitmap = null;
clearLevel.alpha = 0.4;
l__3 = 0;
while (l__3 < waveArr.length) {
waveArr[l__3].alpha = 1;
l__3++;
};
doBubbles = false;
};
};
if (relaxMode){
l__4 = (0 | (28 * (1 - (Math.min(FOOD_LIMIT, food) / FOOD_LIMIT))));
gameRoot.mcRelaxModeMeter.gotoAndStop((l__4 + 1));
};
switch (gameState){
case STATE_RUNNING:
l__5 = Math.floor((timeLeft / 25));
l__6 = Math.floor((l__5 / 60));
l__7 = (l__5 - (l__6 * 60));
l__8 = "";
if (l__7 < 10){
l__8 = "0";
};
setClockNum((((("0" + l__6) + ":") + l__8) + l__7));
slider.y = slider.theY;
slider.x = sliderFloat.get(p__2);
nextPiece.rotation = (nextPiece.rotation + rotFloat.get(p__2));
nextPiece.x = (sliderFloat.get(p__2) + nextPieceFloatX.get(p__2));
nextPiece.y = (slider.y + nextPieceFloatY.get(p__2));
nextPiece.scaleX = nextPieceFloatScaleX.get(p__2);
nextPiece.scaleY = nextPieceFloatScaleY.get(p__2);
switchPiece.x = ((sliderFloat.get(p__2) + 20) + switchPieceFloatX.get(p__2));
switchPiece.y = (slider.y + switchPieceFloatY.get(p__2));
switchPiece.scaleX = switchPieceFloatScaleX.get(p__2);
switchPiece.scaleY = switchPieceFloatScaleY.get(p__2);
slider.mcLeft.gotoAndStop(slider.animAt);
slider.mcRight.gotoAndStop(slider.animAt);
if (nextPiece.isBomb){
nextPiece.target.mcBomb.gotoAndStop(nextPiece.bombAnim);
};
if (nextPiece.isLineBlast){
nextPiece.target.mcLineBlast.gotoAndStop(nextPiece.lineBlastAnim);
};
if (switchPiece.isBomb){
switchPiece.target.mcBomb.gotoAndStop(switchPiece.bombAnim);
};
if (switchPiece.isLineBlast){
switchPiece.target.mcLineBlast.gotoAndStop(switchPiece.lineBlastAnim);
};
l__3 = 0;
while (l__3 < gameGridObj.length) {
l__9 = 0;
while (l__9 < gameGridObj[l__3].length) {
if (gameGridObj[l__3][l__9] != null){
if (explodeCounter == 0){
if (gameGridObj[l__3][l__9].y != gameGridObj[l__3][l__9].gotoY){
if ((((gameGridObj[l__3][l__9].y < (115 + (32 * LEVEL_CLEARANCE)))) && ((floatYArr[l__3][l__9].get(p__2) > (115 + (32 * LEVEL_CLEARANCE)))))){
createSplash(gameGridObj[l__3][l__9].x);
};
gameGridObj[l__3][l__9].y = floatYArr[l__3][l__9].get(p__2);
gameGridObj[l__3][l__9].rotation = gameGridObj[l__3][l__9].rotDeg;
if (gameGridObj[l__3][l__9].target.mcBall != null){
gameGridObj[l__3][l__9].target.mcBall.gotoAndStop(Math.round((gameGridObj[l__3][l__9].animAt / 3)));
};
};
};
if (gameGridObj[l__3][l__9].isCoin){
if (gameGridObj[l__3][l__9].target.mcBall != null){
gameGridObj[l__3][l__9].target.mcBall.gotoAndStop(gameGridObj[l__3][l__9].animAt);
};
};
if (gameGridObj[l__3][l__9].isBomb){
gameGridObj[l__3][l__9].target.mcBomb.gotoAndStop(gameGridObj[l__3][l__9].bombAnim);
};
if (gameGridObj[l__3][l__9].isLineBlast){
gameGridObj[l__3][l__9].target.mcLineBlast.gotoAndStop(gameGridObj[l__3][l__9].lineBlastAnim);
};
if (gameGridObj[l__3][l__9].isFire){
gameGridObj[l__3][l__9].target.mcBlackFire.gotoAndStop(gameGridObj[l__3][l__9].fireAnim);
};
};
l__9++;
};
l__3++;
};
l__3 = 0;
while (l__3 < scoreArr.length) {
scoreArr[l__3].gotoAndStop(scoreArr[l__3].animAt);
l__3++;
};
l__3 = 0;
while (l__3 < splashArr.length) {
splashArr[l__3].gotoAndStop(splashArr[l__3].animAt);
l__3++;
};
l__3 = 0;
while (l__3 < dustArr.length) {
dustArr[l__3].gotoAndStop(dustArr[l__3].animAt);
l__3++;
};
l__3 = 0;
while (l__3 < visualExplArr.length) {
visualExplArr[l__3].target.gotoAndStop(visualExplArr[l__3].animAt);
l__3++;
};
l__3 = 0;
while (l__3 < bubbleAnimArr.length) {
bubbleAnimArr[l__3].gotoAndStop(bubbleAnimArr[l__3].animAt);
l__3++;
};
break;
case STATE_END_ANIMS:
l__3 = 0;
while (l__3 < gameGridObj.length) {
l__9 = 0;
while (l__9 < gameGridObj[l__3].length) {
if (gameGridObj[l__3][l__9] != null){
if (explodeCounter == 0){
if (gameGridObj[l__3][l__9].y != gameGridObj[l__3][l__9].gotoY){
if ((((gameGridObj[l__3][l__9].y < (115 + (32 * LEVEL_CLEARANCE)))) && ((floatYArr[l__3][l__9].get(p__2) > (115 + (32 * LEVEL_CLEARANCE)))))){
createSplash(gameGridObj[l__3][l__9].x);
};
gameGridObj[l__3][l__9].y = floatYArr[l__3][l__9].get(p__2);
gameGridObj[l__3][l__9].rotation = gameGridObj[l__3][l__9].rotDeg;
if (gameGridObj[l__3][l__9].target.mcBall != null){
gameGridObj[l__3][l__9].target.mcBall.gotoAndStop(Math.round((gameGridObj[l__3][l__9].animAt / 3)));
};
};
};
if (gameGridObj[l__3][l__9].isCoin){
if (gameGridObj[l__3][l__9].target.mcBall != null){
gameGridObj[l__3][l__9].target.mcBall.gotoAndStop(gameGridObj[l__3][l__9].animAt);
};
};
if (gameGridObj[l__3][l__9].isBomb){
gameGridObj[l__3][l__9].target.mcBomb.gotoAndStop(gameGridObj[l__3][l__9].bombAnim);
};
if (gameGridObj[l__3][l__9].isLineBlast){
gameGridObj[l__3][l__9].target.mcLineBlast.gotoAndStop(gameGridObj[l__3][l__9].lineBlastAnim);
};
};
l__9++;
};
l__3++;
};
l__3 = 0;
while (l__3 < scoreArr.length) {
scoreArr[l__3].gotoAndStop(scoreArr[l__3].animAt);
l__3++;
};
l__3 = 0;
while (l__3 < splashArr.length) {
splashArr[l__3].gotoAndStop(splashArr[l__3].animAt);
l__3++;
};
l__3 = 0;
while (l__3 < dustArr.length) {
dustArr[l__3].gotoAndStop(dustArr[l__3].animAt);
l__3++;
};
l__3 = 0;
while (l__3 < visualExplArr.length) {
visualExplArr[l__3].target.gotoAndStop(visualExplArr[l__3].animAt);
l__3++;
};
l__3 = 0;
while (l__3 < bubbleAnimArr.length) {
bubbleAnimArr[l__3].gotoAndStop(bubbleAnimArr[l__3].animAt);
l__3++;
};
break;
};
}
public function updateWater(p__1:Number){
var l__2:Number;
var l__3:int;
var l__4:Number;
var l__5:Number;
if (waterBaseBitmapData != null){
waterBaseBitmap.visible = false;
distortBitmap.draw(gameRoot, new Matrix(1, 0, 0, 1, 0, -437));
waterBaseBitmap.visible = true;
l__2 = (getTimer() / 200);
l__3 = 0;
while (l__3 < 200) {
l__4 = (Math.sin(((l__3 / 7) + l__2)) * 4);
l__4 = (l__4 + (Math.sin(((l__3 / 5) + (l__2 / 1.74))) * 2));
l__5 = (Math.sin(((l__3 / 10) + l__2)) * 2);
l__5 = (l__5 + (Math.sin(((l__3 / 17) + (l__2 / 1.4))) * 1));
waterBaseBitmapData.copyPixels(distortBitmap, new Rectangle(0, (l__3 + int((l__5 * 0.4))), 755, 1), new Point(int((l__4 * 0.4)), l__3));
l__3++;
};
};
}
public function createBubbleAnim(){
var l__1:* = new BubbleAnim();
bubbleAnimArr.push(l__1);
addChild(l__1);
}
public function switchBalls(p__1:KeyboardEvent){
if ((((((collapsing == 0)) && ((slider.switchAnimAt == 1)))) && ((slider.animAt == 1)))){
if (p__1.keyCode == 32){
if (slider.switchAnimAt == 1){
slider.switchAnimAt = 2;
slider.animAt = 14;
};
};
};
}
public function switchBallsAnim(p__1:Number){
var l__2:* = undefined;
var l__3:* = undefined;
var l__4:* = undefined;
switch (p__1){
case 2:
nextPiece.theY = (nextPiece.theY + -4);
nextPiece.theX = (nextPiece.theX + 16);
nextPiece.scaleX = (nextPiece.scaleX + 0.3);
nextPiece.scaleY = (nextPiece.scaleY + 0.3);
switchPiece.theY = (switchPiece.theY + 4);
switchPiece.theX = (switchPiece.theX + -16);
break;
case 3:
nextPiece.theY = (nextPiece.theY + -4);
nextPiece.theX = (nextPiece.theX + 20);
nextPiece.scaleX = (nextPiece.scaleX + 0.3);
nextPiece.scaleY = (nextPiece.scaleY + 0.3);
switchPiece.theY = (switchPiece.theY + 4);
switchPiece.theX = (switchPiece.theX + -20);
break;
case 4:
nextPiece.theY = (nextPiece.theY + -4);
nextPiece.theX = (nextPiece.theX + 20);
nextPiece.scaleX = (nextPiece.scaleX + -0.3);
nextPiece.scaleY = (nextPiece.scaleY + -0.3);
switchPiece.theY = (switchPiece.theY + 4);
switchPiece.theX = (switchPiece.theX + -20);
break;
case 5:
slider.animAt = 1;
nextPiece.theY = 10;
nextPiece.theX = 0;
nextPiece.scaleX = (nextPiece.scaleX + -0.3);
nextPiece.scaleY = (nextPiece.scaleY + -0.3);
switchPiece.theY = -4;
switchPiece.theX = 50;
l__2 = switchPiece.type;
l__3 = switchPiece.isBomb;
l__4 = switchPiece.isLineBlast;
switchPiece.switchType(nextPiece.type, nextPiece.isBomb, nextPiece.isLineBlast);
nextPiece.switchType(l__2, l__3, l__4);
switchPieceFloatX.set(switchPiece.theX);
switchPieceFloatY.set(switchPiece.theY);
nextPieceFloatX.set(nextPiece.theX);
nextPieceFloatY.set(nextPiece.theY);
slider.switchAnimAt = 0;
break;
};
switchPieceFloatX.set(switchPiece.theX);
switchPieceFloatY.set(switchPiece.theY);
nextPieceFloatX.set(nextPiece.theX);
nextPieceFloatY.set(nextPiece.theY);
}
public function reloadAnim(p__1:Number, p__2){
switchPiece.rotation = (switchPiece.rotation - 25);
if (p__2 > 0){
switch (p__1){
case 1:
switchPiece.theY = (switchPiece.theY + -5);
switchPiece.theX = (switchPiece.theX + -1);
break;
case 2:
switchPiece.theY = (switchPiece.theY + -5);
switchPiece.theX = (switchPiece.theX + -1);
break;
case 3:
switchPiece.theY = (switchPiece.theY + -4);
switchPiece.theX = (switchPiece.theX + -1);
break;
case 4:
switchPiece.theY = (switchPiece.theY + -4);
switchPiece.theX = (switchPiece.theX + -1);
break;
case 5:
switchPiece.theY = (switchPiece.theY + -4);
switchPiece.theX = (switchPiece.theX + -1);
break;
case 6:
switchPiece.theY = (switchPiece.theY + -4);
switchPiece.theX = (switchPiece.theX + -5);
break;
case 7:
switchPiece.theY = (switchPiece.theY + -4);
switchPiece.theX = (switchPiece.theX + -7);
break;
};
} else {
switch (p__1){
case 8:
switchPiece.theY = (switchPiece.theY + 0);
switchPiece.theX = (switchPiece.theX + -9);
break;
case 7:
switchPiece.theY = (switchPiece.theY + 0);
switchPiece.theX = (switchPiece.theX + -10);
break;
case 6:
switchPiece.theY = (switchPiece.theY + 2);
switchPiece.theX = (switchPiece.theX + -9);
break;
case 5:
switchPiece.theY = (switchPiece.theY + 4);
switchPiece.theX = (switchPiece.theX + -9);
break;
case 4:
switchPiece.theY = (switchPiece.theY + 10);
switchPiece.theX = (switchPiece.theX + -8);
break;
case 3:
switchPiece.theY = (switchPiece.theY + 16);
switchPiece.theX = (switchPiece.theX + -8);
break;
case 2:
switchPiece.theY = 10;
switchPiece.theX = -20;
switchPieceFloatX.set(switchPiece.theX);
switchPieceFloatY.set(switchPiece.theY);
break;
};
};
switchPieceFloatX.set(switchPiece.theX);
switchPieceFloatY.set(switchPiece.theY);
}
public function createSplash(p__1){
var l__2:* = new Splash();
splashArr.push(l__2);
l__2.animAt = 1;
l__2.y = ((115 + (32 * LEVEL_CLEARANCE)) - 117);
l__2.x = (p__1 - 80);
addChild(l__2);
}
public function startRound(p__1, p__2, p__3, p__4, p__5, p__6, p__7, p__8, p__9){
var l__10:* = undefined;
var l__11:* = undefined;
communicator = p__5;
this.level = p__1;
gameRoot = p__2;
currentTick = p__3;
bonusShown = false;
endDelay = (25 * 2);
timeLeft = (timeLeft + p__6);
theme = 0;
if (p__1 > 1){
if ((startTime - timeLeft) < (25 * 25)){
};
};
startTime = timeLeft;
gameRoot.mcTopFG.gotoAndStop((theme + 1));
gameGridObj = new Array();
pieceStack = new Array();
floatYArr = new Array();
scoreArr = new Array();
waveArr = new Array();
splashArr = new Array();
visualExplArr = new Array();
bubbleAnimArr = new Array();
dustArr = new Array();
makeLineBlast_ = false;
noOfTypes = 3;
collapsing = 0;
slider = new Slider();
addChild(slider);
sliderFloat = new IFloat(slider.theX);
rotFloat = new IFloat(0);
createPieceRolling();
if (p__8){
nextPiece.makeBomb();
};
if (p__7){
switchPiece.makeLineBlast();
};
consecutive = 0;
cleared_ = false;
bonusScore_ = 0;
numBlack = p__9;
if (p__1 == 1){
if (waterBaseBitmap != null){
gameRoot.mcWater.removeChild(waterBaseBitmap);
};
waterBaseBitmapData = new BitmapData(755, (32 * (14 - LEVEL_CLEARANCE)), true, 0);
waterBaseBitmap = new Bitmap(waterBaseBitmapData);
waterBaseBitmap.y = (117 + (32 * LEVEL_CLEARANCE));
gameRoot.mcWater.addChild(waterBaseBitmap);
clearLevel = new ClearLevel();
clearLevel.y = (115 + (32 * LEVEL_CLEARANCE));
clearLevel.x = 0;
clearLevel.alpha = 0.2;
gameRoot.mcWater.mouseEnabled = false;
clearLevel.mouseEnabled = false;
l__10 = 0;
while (l__10 < 23) {
l__11 = new WaterLevelPiece();
waveArr.push(l__11);
l__11.y = (115 + (32 * LEVEL_CLEARANCE));
l__11.x = (l__10 * 34);
l__11.alpha = 0.5;
gameRoot.mcWater.addChild(l__11);
l__11.gotoAndStop(3);
l__11.mouseEnabled = false;
l__10++;
};
gameRoot.mcWater.addChild(clearLevel);
musicManager = gameRoot.musicManager;
sfxManager = gameRoot.sfxManager;
gameRoot.mcRelaxModeMeter.visible = relaxMode;
food = FOOD_START;
if (relaxMode){
mcTimeNum2.visible = false;
mcTimeNum3.visible = false;
mcTimeNum4.visible = false;
mcTimeDiv.visible = false;
};
};
pieceXMod = (250 - ((p__4[0].length - 10) * 16));
createBoard(p__4, p__7, p__8);
if (stone1 == null){
stone1 = new Stone1();
stone2 = new Stone2();
addChild(stone1);
addChild(stone2);
};
stone1.x = (pieceXMod - 32);
stone1.y = 548;
stone2.x = ((((gameGridObj[0].length - 1) * 32) + pieceXMod) + 32);
stone2.y = 548;
setLevelNum();
setScoreNum();
setMultiplierNum();
if (timeLeft < 250){
sfxManager.get("warning").stop();
sfxManager.get("warning").play(0.7);
};
gameState = STATE_RUNNING;
}
public function setLevelNum(){
var l__1:* = undefined;
var l__4:* = undefined;
l__1 = 0;
while (l__1 < levelNumArr.length) {
removeChild(levelNumArr[l__1]);
l__1++;
};
levelNumArr = new Array();
var l__2:* = level.toString();
var l__3:* = l__2.split("");
l__1 = 0;
while (l__1 < l__3.length) {
l__4 = new LevelNumbers();
l__4.y = 145;
l__4.x = (10 + ((l__4.width - 13) * l__1));
addChild(l__4);
l__4.gotoAndStop((Number(l__3[l__1]) + 1));
levelNumArr.push(l__4);
l__1++;
};
}
public function setScoreNum(){
var l__1:* = undefined;
var l__4:* = undefined;
l__1 = 0;
while (l__1 < scoreNumArr.length) {
removeChild(scoreNumArr[l__1]);
l__1++;
};
scoreNumArr = new Array();
var l__2:* = score.toString();
var l__3:* = l__2.split("");
l__1 = 0;
while (l__1 < l__3.length) {
l__4 = new ScoreNumbers();
l__4.y = (70 + l__1);
l__4.x = (5 + ((l__4.width - 4) * l__1));
addChild(l__4);
l__4.gotoAndStop((Number(l__3[l__1]) + 1));
scoreNumArr.push(l__4);
l__1++;
};
}
public function setMultiplierNum(){
var l__1:* = undefined;
var l__4:* = undefined;
l__1 = 0;
while (l__1 < multiNumArr.length) {
removeChild(multiNumArr[l__1]);
l__1++;
};
multiNumArr = new Array();
var l__2:* = numBlack.toString();
var l__3:* = l__2.split("");
l__1 = 0;
while (l__1 < l__3.length) {
l__4 = new MultiNumbers();
l__4.y = 380;
l__4.x = (22 + ((l__4.width - 10) * l__1));
addChild(l__4);
l__4.gotoAndStop((Number(l__3[l__1]) + 1));
multiNumArr.push(l__4);
l__1++;
};
}
public function setClockNum(p__1){
var l__2:* = p__1.split("");
mcTimeNum2.gotoAndStop((Number(l__2[1]) + 1));
mcTimeNum3.gotoAndStop((Number(l__2[3]) + 1));
mcTimeNum4.gotoAndStop((Number(l__2[4]) + 1));
}
public function createPieceRolling(){
var l__2:Boolean;
var l__3:Boolean;
var l__1:* = 999;
if (nextPiece != null){
l__1 = switchPiece.type;
l__2 = switchPiece.isBomb;
l__3 = switchPiece.isLineBlast;
removeChild(switchPiece);
};
if (l__1 == 999){
l__1 = getRandom(noOfTypes);
};
if (makeLineBlast_){
makeLineBlast_ = false;
if (!l__2){
l__3 = true;
};
};
var l__4:* = new PieceRolling(slider.theY, slider.theX, l__1, false, theme, level);
if (l__2){
l__4.makeBomb();
};
if (l__3){
l__4.makeLineBlast();
};
addChild(l__4);
nextPiece = l__4;
var l__5:* = new PieceRolling(slider.theY, slider.theX, getRandom(noOfTypes), true, theme, level);
addChild(l__5);
switchPiece = l__5;
nextPieceFloatX = new IFloat(nextPiece.theX);
nextPieceFloatY = new IFloat(nextPiece.theY);
nextPieceFloatScaleX = new IFloat(1);
nextPieceFloatScaleY = new IFloat(1);
switchPieceFloatX = new IFloat(switchPiece.theX);
switchPieceFloatY = new IFloat(switchPiece.theY);
switchPieceFloatScaleX = new IFloat(1);
switchPieceFloatScaleY = new IFloat(1);
}
public function createBoard(p__1:Array, p__2:Boolean, p__3:Boolean){
var l__6:Array;
var l__10:Array;
var l__16:Array;
var l__5:Boolean;
var l__4:* = undefined;
var l__9:* = undefined;
var l__11:* = undefined;
var l__12:* = undefined;
var l__13:* = undefined;
var l__14:* = undefined;
var l__15:* = undefined;
var l__17:* = undefined;
while (!(l__5)) {
l__4 = 0;
l__6 = new Array();
l__9 = 0;
while (l__9 < p__1.length) {
l__10 = new Array();
l__11 = 0;
while (l__11 < p__1[l__9].length) {
if (p__1[l__9][l__11] == 1){
if (getLevelRandom(100) < 5){
l__12 = 9;
} else {
l__12 = getLevelRandom(noOfTypes);
};
l__10.push(l__12);
l__4++;
} else {
l__10.push(null);
};
l__11++;
};
l__6.push(l__10);
l__9++;
};
l__5 = true;
};
var l__7:* = 0;
var l__8:* = new Array();
l__9 = 0;
while (l__9 < l__7) {
l__13 = false;
l__14 = getLevelRandom(l__6[0].length);
l__11 = 0;
while (l__11 < l__8.length) {
if (l__8[l__11] == l__14){
l__13 = true;
};
l__11++;
};
if (!l__13){
l__15 = 0;
while (l__15 < l__6.length) {
if (l__6[l__15][l__14] != null){
if (l__15 > LEVEL_CLEARANCE){
l__9--;
l__15 = (l__6.length + 1);
} else {
l__8.push(l__14);
l__6[l__15][l__14] = 10;
l__15 = (l__6.length + 1);
};
};
l__15++;
};
} else {
l__9--;
};
l__9++;
};
l__9 = 0;
while (l__9 < l__6.length) {
l__10 = new Array();
l__16 = new Array();
l__11 = 0;
while (l__11 < l__6[l__9].length) {
if (l__6[l__9][l__11] != null){
allLanded++;
l__17 = createPiece(l__9, l__11, l__6[l__9][l__11], false, false, false, 0);
l__17.delay = l__4;
addChild(l__17);
l__16.push(new IFloat(l__17.theY));
l__4--;
collapsing++;
l__10.push(l__17);
} else {
l__10.push(null);
l__16.push(null);
};
l__11++;
};
floatYArr.push(l__16);
gameGridObj.push(l__10);
l__9++;
};
}
public function testBoardPlace(p__1:Array, p__2, p__3:Number, p__4:Number, p__5:Number){
var l__6:* = undefined;
if ((((p__3 > 0)) && (!((p__5 == 0))))){
l__6 = p__1[(p__3 - 1)][p__4];
if (((!((l__6 == null))) && ((l__6 == p__2)))){
boardMatchNum++;
if (boardMatchNum < 3){
testBoardPlace(p__1, l__6, (p__3 - 1), p__4, 1);
};
};
};
if ((((p__3 < (p__1.length - 1))) && (!((p__5 == 1))))){
l__6 = p__1[(p__3 + 1)][p__4];
if (((!((l__6 == null))) && ((l__6 == p__2)))){
boardMatchNum++;
if (boardMatchNum < 3){
testBoardPlace(p__1, l__6, (p__3 + 1), p__4, 0);
};
};
};
if ((((p__4 > 0)) && (!((p__5 == 2))))){
l__6 = p__1[p__3][(p__4 - 1)];
if (((!((l__6 == null))) && ((l__6 == p__2)))){
boardMatchNum++;
if (boardMatchNum < 3){
testBoardPlace(p__1, l__6, p__3, (p__4 - 1), 3);
};
};
};
if ((((p__4 < (p__1[p__3].length - 1))) && (!((p__5 == 3))))){
l__6 = p__1[p__3][(p__4 + 1)];
if (((!((l__6 == null))) && ((l__6 == p__2)))){
boardMatchNum++;
if (boardMatchNum < 3){
testBoardPlace(p__1, l__6, p__3, (p__4 + 1), 2);
};
};
};
}
public function testBoard(p__1:Array){
var l__3:* = undefined;
var l__2:* = 0;
while (l__2 < p__1.length) {
l__3 = 0;
while (l__3 < p__1[l__2].length) {
if (p__1[l__2][l__3] != null){
boardMatchNum = 0;
testBoardPlace(p__1, p__1[l__2][l__3], l__2, l__3, 9999);
if (boardMatchNum > 2){
return (false);
};
};
l__3++;
};
l__2++;
};
return (true);
}
public function checkForExplosion(p__1:Piece){
var l__2:Boolean;
var l__4:* = undefined;
if (p__1 != null){
if (!p__1.cfe){
explArr = new Array();
testPiece(p__1);
if (explArr.length > 3){
l__2 = true;
calcScore(explArr);
explodeBoard(explArr, 10);
consecutive++;
if (consecutive < 5){
sfxManager.get(("combo" + consecutive)).play(0.5);
} else {
sfxManager.get("combo5").play(0.5);
};
if (consecutive == 3){
makeBomb();
};
};
};
};
var l__3:* = 0;
while (l__3 < gameGridObj.length) {
l__4 = 0;
while (l__4 < gameGridObj[l__3].length) {
if (gameGridObj[l__3][l__4] != null){
gameGridObj[l__3][l__4].cfe = false;
};
l__4++;
};
l__3++;
};
if (l__2){
collapseBoard();
};
}
public function testPiece(p__1:Piece){
var l__2:* = undefined;
if (p__1.type < 9){
explArr.push(p__1);
p__1.cfe = true;
if (p__1.yPos > 0){
l__2 = gameGridObj[(p__1.yPos - 1)][p__1.xPos];
if (((((!((l__2 == null))) && (!(l__2.cfe)))) && ((l__2.type == p__1.type)))){
testPiece(l__2);
};
};
if (p__1.yPos < (gameGridObj.length - 1)){
l__2 = gameGridObj[(p__1.yPos + 1)][p__1.xPos];
if (((((!((l__2 == null))) && (!(l__2.cfe)))) && ((l__2.type == p__1.type)))){
testPiece(l__2);
};
};
if (p__1.xPos > 0){
l__2 = gameGridObj[p__1.yPos][(p__1.xPos - 1)];
if (((((!((l__2 == null))) && (!(l__2.cfe)))) && ((l__2.type == p__1.type)))){
testPiece(l__2);
};
};
if (p__1.xPos < (gameGridObj[p__1.yPos].length - 1)){
l__2 = gameGridObj[p__1.yPos][(p__1.xPos + 1)];
if (((((!((l__2 == null))) && (!(l__2.cfe)))) && ((l__2.type == p__1.type)))){
testPiece(l__2);
};
};
};
}
public function explodeBoard(p__1, p__2){
if (p__1.length > 5){
makeLineBlast();
};
var l__3:* = 999;
var l__5:* = 0;
while (l__5 < p__1.length) {
if (p__1[l__5].collapsing){
collapsing--;
};
if (p__1[l__5].isBomb){
l__3 = p__1[l__5].type;
score = (score + (200 * numBlack));
createScorePop(200, p__1[l__5].theY, p__1[l__5].x, 0, 0, false);
};
if (p__1[l__5].isLineBlast){
lineBlast(p__1[l__5].yPos, p__1[l__5].xPos, p__1);
};
createExplosion(p__1[l__5], p__2);
gameGridObj[p__1[l__5].yPos][p__1[l__5].xPos] = null;
floatYArr[p__1[l__5].yPos][p__1[l__5].xPos] = null;
removeChild(p__1[l__5]);
l__5++;
};
if (l__3 != 999){
colorBomb(l__3);
};
}
public function createExplosion(p__1, p__2){
var l__3:* = new Explosion(p__1.x, p__1.theY, 0, p__2);
visualExplArr.push(l__3);
addChild(l__3);
}
public function createLineExplosion(p__1, p__2, p__3){
sfxManager.get("lineBlast").play(0.2);
var l__4:* = new Explosion(p__2, p__1, p__3, 20);
visualExplArr.push(l__4);
addChild(l__4);
}
public function colorBomb(p__1:Number){
var l__4:* = undefined;
sfxManager.get("colorBomb").play(0.6);
var l__2:* = new Array();
var l__3:* = 0;
while (l__3 < gameGridObj.length) {
l__4 = 0;
while (l__4 < gameGridObj[l__3].length) {
if (((!((gameGridObj[l__3][l__4] == null))) && ((gameGridObj[l__3][l__4].type == p__1)))){
l__2.push(gameGridObj[l__3][l__4]);
};
l__4++;
};
l__3++;
};
explodeBoard(l__2, p__1);
}
public function lineBlast(p__1:Number, p__2:Number, p__3:Array){
var l__5:* = undefined;
var l__6:* = undefined;
var l__7:* = undefined;
var l__4:* = 0;
l__5 = (p__2 + 1);
while (l__5 < gameGridObj[p__1].length) {
l__4++;
createLineExplosion(((p__1 * 32) + 100), ((l__5 * 32) + pieceXMod), l__4);
if (((!((gameGridObj[p__1][l__5] == null))) && ((gameGridObj[p__1][l__5].type == 9)))){
numBlack++;
score = (score + (300 * numBlack));
createScorePop(300, gameGridObj[p__1][l__5].theY, gameGridObj[p__1][l__5].x, 1, 0, false);
createExplosion(gameGridObj[p__1][l__5], 9);
} else {
if (gameGridObj[p__1][l__5] != null){
score = (score + (150 * numBlack));
createScorePop(150, gameGridObj[p__1][l__5].theY, gameGridObj[p__1][l__5].x, 0, 0, false);
};
};
l__5++;
};
l__4 = 0;
l__5 = (p__2 - 1);
while (l__5 >= 0) {
l__4++;
createLineExplosion(((p__1 * 32) + 100), ((l__5 * 32) + pieceXMod), l__4);
if (((!((gameGridObj[p__1][l__5] == null))) && ((gameGridObj[p__1][l__5].type == 9)))){
numBlack++;
score = (score + (300 * numBlack));
createScorePop(300, gameGridObj[p__1][l__5].theY, gameGridObj[p__1][l__5].x, 1, 0, false);
createExplosion(gameGridObj[p__1][l__5], 9);
} else {
if (gameGridObj[p__1][l__5] != null){
score = (score + (150 * numBlack));
createScorePop(150, gameGridObj[p__1][l__5].theY, gameGridObj[p__1][l__5].x, 0, 0, false);
};
};
l__5--;
};
l__5 = 0;
while (l__5 < gameGridObj[p__1].length) {
if (gameGridObj[p__1][l__5] != null){
l__6 = false;
l__7 = 0;
while (l__7 < p__3.length) {
if (p__3[l__7] == gameGridObj[p__1][l__5]){
l__6 = true;
};
l__7++;
};
if (!l__6){
if (gameGridObj[p__1][l__5].collapsing){
collapsing--;
};
removeChild(gameGridObj[p__1][l__5]);
gameGridObj[p__1][l__5] = null;
};
};
l__5++;
};
setScoreNum();
setMultiplierNum();
}
public function collapseBoard(){
var l__3:* = undefined;
var l__4:* = undefined;
var l__2:* = (gameGridObj.length - 1);
while (l__2 >= 0) {
l__3 = 0;
while (l__3 < gameGridObj[l__2].length) {
if (gameGridObj[l__2][l__3] == null){
l__4 = (l__2 - 1);
while (l__4 >= 0) {
if (gameGridObj[l__4][l__3] != null){
gameGridObj[l__2][l__3] = gameGridObj[l__4][l__3];
gameGridObj[l__2][l__3].updatePos(l__2, l__3);
gameGridObj[l__4][l__3] = null;
floatYArr[l__2][l__3] = floatYArr[l__4][l__3];
floatYArr[l__4][l__3] = null;
gameGridObj[l__2][l__3].delay = 0;
if (!gameGridObj[l__2][l__3].collapsing){
collapsing++;
};
gameGridObj[l__2][l__3].collapsing = true;
l__4 = -1;
};
l__4--;
};
};
l__3++;
};
l__2--;
};
}
public function calcScore(p__1){
var l__2:* = (1 + (consecutive * 0.5));
var l__3:* = (Math.min((100 + ((p__1.length - 4) * 50)), 250) * p__1.length);
l__3 = (l__3 * l__2);
l__3 = Math.round((numBlack * l__3));
createScorePop(l__3, p__1[0].theY, p__1[0].x, 0, 0, false);
score = (score + l__3);
setScoreNum();
}
public function createScorePop(p__1, p__2, p__3, p__4, p__5, p__6){
var l__7:* = new ScorePop(p__1, p__2, p__3, p__4, p__5, p__6);
addChild(l__7);
scoreArr.push(l__7);
}
public function shootBall(p__1:Event){
var l__2:* = undefined;
var l__3:* = undefined;
var l__4:* = undefined;
var l__5:* = undefined;
if (gameState == STATE_RUNNING){
if ((((((collapsing == 0)) && ((slider.switchAnimAt == 1)))) && ((slider.animAt == 1)))){
shotSound = true;
if (food == 0){
return;
};
if (relaxMode){
food--;
if (food < 0){
food = 0;
};
};
l__2 = Math.min(Math.round(((slider.theX - pieceXMod) / 32)), 15);
l__4 = (gameGridObj.length - 1);
while (l__4 >= 0) {
if (gameGridObj[l__4][l__2] == null){
l__3 = l__4;
l__4 = -1;
};
l__4--;
};
if ((((gameState == STATE_RUNNING)) && ((gameGridObj[0][l__2] == null)))){
l__5 = createPiece(l__3, l__2, nextPiece.type, nextPiece.isBomb, nextPiece.isLineBlast, true, nextPiece.rotation);
addChild(l__5);
gameGridObj[l__3][l__2] = l__5;
floatYArr[l__3][l__2] = new IFloat(l__5.theY);
collapsing++;
removeChild(nextPiece);
slider.animAt = 2;
reloadAnim(1, 1);
};
};
};
}
public function makeBomb(){
if (((!(nextPiece.isBomb)) && (!(nextPiece.isLineBlast)))){
nextPiece.makeBomb();
} else {
switchPiece.makeBomb();
};
}
public function makeLineBlast(){
if (((!(nextPiece.isBomb)) && (!(nextPiece.isLineBlast)))){
if (slider.animAt != 1){
makeLineBlast_ = true;
} else {
nextPiece.makeLineBlast();
};
} else {
if (((!(switchPiece.isBomb)) && (!(switchPiece.isLineBlast)))){
switchPiece.makeLineBlast();
};
};
}
public function createPiece(p__1, p__2, p__3, p__4, p__5, p__6, p__7){
if (p__3 == undefined){
trace("its undefed");
p__3 = getLevelRandom(noOfTypes);
};
var l__8:* = new Piece(p__3, p__1, p__2, p__4, p__5, p__6, p__7, pieceXMod, theme, level);
return (l__8);
}
public function createDust(p__1){
var l__2:* = new DustAnim();
dustArr.push(l__2);
l__2.x = p__1.theX;
l__2.y = p__1.theY;
addChild(l__2);
}
public function checkForCoin(){
var l__1:Boolean;
var l__3:* = undefined;
var l__2:* = (LEVEL_CLEARANCE + 1);
while (l__2 < gameGridObj.length) {
l__3 = 0;
while (l__3 < gameGridObj[l__2].length) {
if (gameGridObj[l__2][l__3] != null){
if (gameGridObj[l__2][l__3].isCoin){
score = (score + (1000 * numBlack));
if (relaxMode){
food = (food + FOOD_INCREASE);
if (food > FOOD_LIMIT){
food = FOOD_LIMIT;
};
};
createScorePop(1000, gameGridObj[l__2][l__3].theY, gameGridObj[l__2][l__3].x, 2, 0, false);
removeChild(gameGridObj[l__2][l__3]);
gameGridObj[l__2][l__3] = null;
l__1 = true;
};
};
l__3++;
};
l__2++;
};
if (l__1){
collapseBoard();
};
setScoreNum();
}
public function checkForCleared():Boolean{
var l__4:* = undefined;
var l__2:* = true;
var l__3:* = 0;
while (l__3 < gameGridObj.length) {
l__4 = 0;
while (l__4 < gameGridObj[l__3].length) {
if (l__3 <= LEVEL_CLEARANCE){
if (gameGridObj[l__3][l__4] != null){
l__2 = false;
};
};
l__4++;
};
l__3++;
};
return (l__2);
}
public function endAnims(p__1:Boolean){
cleared_ = p__1;
gameState = STATE_END_ANIMS;
}
public function bonusScorePops(){
var l__4:* = undefined;
var l__5:* = undefined;
var l__6:* = undefined;
var l__1:* = 0;
var l__2:* = 0;
var l__3:* = (LEVEL_CLEARANCE + 1);
while (l__3 < gameGridObj.length) {
l__4 = true;
l__5 = 0;
while (l__5 < gameGridObj[l__3].length) {
if (gameGridObj[l__3][l__5] == null){
l__6 = ((50 * (l__3 - LEVEL_CLEARANCE)) * numBlack);
l__1 = (l__1 + l__6);
var _temp1 = l__2;
l__2 = (l__2 + 1);
createScorePop(l__6, ((l__3 * 32) + 100), ((l__5 * 32) + pieceXMod), 0, _temp1, true);
} else {
l__4 = false;
};
l__5++;
};
if (l__4){
trace("numEmptyRows++");
numEmptyRows++;
};
l__3++;
};
bonusScore_ = l__1;
}
public function endRound(p__1:Boolean, p__2:Number){
gameRoot.mcQuit.visible = true;
sfxManager.get("warning").stop();
score = (score + p__2);
setScoreNum();
if (gameRoot.gameState == 2){
clearBoard();
};
gameState = STATE_NOT_RUNNING;
trace(("timeLeft = " + timeLeft));
if (timeLeft == 0){
p__1 = false;
};
gameRoot.endRound(p__1, score, numBlack, numEmptyRows);
}
public function openUserEnd(){
sfxManager.get("warning").stop();
clearBoard();
gameState = STATE_NOT_RUNNING;
gameRoot.endRound(false, score, numBlack, numEmptyRows);
}
public function clearBoard(){
var l__1:* = undefined;
var l__2:* = undefined;
l__1 = 0;
while (l__1 < gameGridObj.length) {
l__2 = 0;
while (l__2 < gameGridObj[l__1].length) {
if (gameGridObj[l__1][l__2] != null){
removeChild(gameGridObj[l__1][l__2]);
};
l__2++;
};
l__1++;
};
l__1 = 0;
while (l__1 < scoreArr.length) {
removeChild(scoreArr[l__1]);
l__1++;
};
l__1 = 0;
while (l__1 < visualExplArr.length) {
removeChild(visualExplArr[l__1]);
l__1++;
};
l__1 = 0;
while (l__1 < splashArr.length) {
removeChild(splashArr[l__1]);
l__1++;
};
l__1 = 0;
while (l__1 < bubbleAnimArr.length) {
removeChild(bubbleAnimArr[l__1]);
l__1++;
};
l__1 = 0;
while (l__1 < dustArr.length) {
removeChild(dustArr[l__1]);
l__1++;
};
removeChild(stone1);
removeChild(stone2);
stone1 = null;
stone2 = null;
if (contains(nextPiece)){
removeChild(nextPiece);
};
removeChild(slider);
removeChild(switchPiece);
nextPiece = null;
switchPiece = null;
if (gameRoot.waterEffect){
updateWater((currentTick + 1));
};
}
public function getRandom(p__1:Number){
return (gameRoot.getRandom(p__1));
}
public function getLevelRandom(p__1:Number){
return (gameRoot.getLevelRandom(p__1));
}
public function getMultiplier():Number{
return (numBlack);
}
}
}//package src
Section 65
//Piece (src.Piece)
package src {
import flash.events.*;
import src.timing.*;
import src.comm.*;
import src.math.*;
import flash.display.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
public class Piece extends MovieClip {
public var animLength;// = 60
public var animAt;// = 1
public var delay;// = 0
public var target;
public var mcWood:MovieClip;
public var type;
public var yPos;
public var xPos;
public var gotoY;
public var gotoX;
public var theY;
public var theX;
public var speed;// = 1
public var collapsing;// = true
public var cfe;// = false
public var isBomb;
public var isFire;
public var isLineBlast;
public var isCoin;// = false
public var running;// = false
public var animSpeed;// = 1
public var bombAnim;// = 1
public var bombAnimLength;// = 20
public var lineBlastAnim;// = 1
public var lineBlastAnimLength;// = 10
public var fireAnim;// = 1
public var fireAnimLength;// = 39
public var rotDeg;
public var targetID;
public var firstLand;// = false
private static var WIDTH = 32;
private static var HEIGHT = 32;
public function Piece(p__1, p__2, p__3, p__4, p__5, p__6, p__7, p__8, p__9, p__10){
super();
this.type = p__1;
this.yPos = p__2;
this.xPos = p__3;
this.running = p__6;
targetID = p__9;
target = mcWood;
isBomb = p__4;
isLineBlast = p__5;
target.mcBlackFire.visible = false;
if (!isBomb){
target.mcBomb.visible = false;
};
if (!isLineBlast){
target.mcLineBlast.visible = false;
};
if (p__1 == 10){
isCoin = true;
};
if (p__1 == 9){
target.mcBlackFire.visible = true;
isFire = true;
};
animSpeed = (Math.round((Math.random() * 3)) + 1);
var l__11:* = 0;
if (!p__6){
l__11 = -60;
};
gotoY = ((p__2 * HEIGHT) + 100);
gotoX = ((p__3 * WIDTH) + p__8);
theY = (40 + l__11);
theX = gotoX;
y = theY;
x = theX;
rotation = (rotDeg = p__7);
this.delay = delay;
var l__12:* = 0;
if (((((p__10 % 2) == 0)) && ((p__1 == 1)))){
l__12 = 3;
};
target.gotoAndStop(((p__1 + 1) + l__12));
}
public function tick(p__1:Number, p__2:Number):void{
}
public function render(p__1:Number, p__2:Number):void{
}
public function getSpeed(){
return (speed);
}
public function updateSpeed(){
speed = Math.min((speed + 3), 40);
}
public function land(){
speed = 1;
collapsing = false;
firstLand = true;
}
public function updatePos(p__1, p__2){
yPos = p__1;
xPos = p__2;
gotoY = ((yPos * HEIGHT) + 100);
gotoX = ((xPos * WIDTH) + 250);
}
}
}//package src
Section 66
//PieceRolling (src.PieceRolling)
package src {
import flash.events.*;
import src.timing.*;
import src.comm.*;
import src.math.*;
import flash.display.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
public class PieceRolling extends MovieClip {
public var target;
public var mcWood:MovieClip;
public var type;
public var gotoY;
public var gotoX;
public var theY;// = 0
public var theX;// = 0
public var isBomb;// = false
public var isLineBlast;// = false
public var bombAnim;// = 1
public var bombAnimLength;// = 20
public var lineBlastAnim;// = 1
public var lineBlastAnimLength;// = 10
public var targetID;
private var level;
private static var WIDTH = 32;
private static var HEIGHT = 32;
public function PieceRolling(p__1, p__2, p__3, p__4, p__5, p__6){
super();
this.level = p__6;
targetID = p__5;
target = mcWood;
if (p__4){
this.theX = 50;
this.theY = -4;
} else {
this.theY = 10;
this.theX = 0;
};
x = p__2;
y = p__1;
gotoX = x;
gotoY = y;
this.type = p__3;
target.mcBomb.visible = false;
target.mcLineBlast.visible = false;
target.mcBlackFire.visible = false;
var l__7:* = 0;
if (((((p__6 % 2) == 0)) && ((p__3 == 1)))){
l__7 = 3;
};
target.gotoAndStop(((p__3 + 1) + l__7));
}
public function switchType(p__1:Number, p__2:Boolean, p__3:Boolean){
type = p__1;
isBomb = p__2;
isLineBlast = p__3;
target.mcBomb.visible = isBomb;
target.mcLineBlast.visible = isLineBlast;
var l__4:* = 0;
if (((((level % 2) == 0)) && ((type == 1)))){
l__4 = 3;
};
target.gotoAndStop(((type + 1) + l__4));
}
public function makeBomb(){
isBomb = true;
target.mcBomb.visible = true;
isLineBlast = false;
target.mcLineBlast.visible = false;
}
public function makeLineBlast(){
isLineBlast = true;
target.mcLineBlast.visible = true;
isBomb = false;
target.mcBomb.visible = false;
}
}
}//package src
Section 67
//RelaxGameOver (src.RelaxGameOver)
package src {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class RelaxGameOver extends MovieClip {
private var dropTime:int;
public function RelaxGameOver(){
super();
visible = false;
}
public function drop(){
if (!visible){
y = -213;
visible = true;
dropTime = -1;
addEventListener(Event.ENTER_FRAME, enterFrame);
};
}
public function enterFrame(p__1:Event):void{
var l__2:* = undefined;
if (!visible){
removeEventListener(Event.ENTER_FRAME, enterFrame);
return;
};
l__2 = getTimer();
if (dropTime == -1){
dropTime = l__2;
};
var l__3:* = (l__2 - dropTime);
if (l__3 < 200){
y = (-213 + ((l__3 / 200) * 213));
} else {
y = 0;
};
rotation = (((180 / Math.PI) * Math.sin((l__2 / 300))) * 0.2);
}
}
}//package src
Section 68
//ScorePop (src.ScorePop)
package src {
import flash.events.*;
import src.timing.*;
import src.comm.*;
import src.math.*;
import flash.display.*;
import flash.text.*;
import flash.system.*;
import flash.external.*;
public class ScorePop extends MovieClip {
public var animLength;// = 20
public var animAt;// = 1
public var delay;
public var mcScorePop:MovieClip;
private var min;// = 50
private var max;// = 1500
public var endScore;
public function ScorePop(p__1, p__2, p__3, p__4, p__5, p__6){
super();
x = p__3;
y = p__2;
this.endScore = p__6;
this.delay = p__5;
mcScorePop.mcScorePop.mcScore.txtScore.text = p__1;
var l__7:* = (Math.min(p__1, max) / max);
this.scaleX = Math.max(l__7, 0.4);
this.scaleY = Math.max(l__7, 0.4);
mcScorePop.mcScorePop.mcScorePopBG.gotoAndStop((p__4 + 1));
}
}
}//package src
Section 69
//Slider (src.Slider)
package src {
import flash.display.*;
public class Slider extends MovieClip {
public var animAt;// = 1
public var theY;// = 37
public var theX;// = 380
public var mcRight:MovieClip;
public var mcLeft:MovieClip;
public var switchAnimAt;// = 1
public function Slider(){
super();
x = theX;
y = theY;
}
}
}//package src
Section 70
//GameOverScreen (GameOverScreen)
package {
import flash.display.*;
import flash.text.*;
public dynamic class GameOverScreen extends MovieClip {
public var txtGameOverHeader:TextField;
public var mcScoreText:MovieClip;
public var mcScoreTextLabel:MovieClip;
public var mcTrophies:MovieClip;
public function GameOverScreen(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 71
//LevelNumbers (LevelNumbers)
package {
import flash.display.*;
public dynamic class LevelNumbers extends MovieClip {
public function LevelNumbers(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 72
//MultiFileBlock_amazon_survival_speed__1 (MultiFileBlock_amazon_survival_speed__1)
package {
import src.sound.*;
import src.timing.*;
import src.*;
import src.comm.*;
import src.math.*;
import flash.display.*;
public class MultiFileBlock_amazon_survival_speed__1 extends MovieClip {
public function MultiFileBlock_amazon_survival_speed__1(){
var Dummy1:SoundManager;
var Dummy2:MtRandom;
var Dummy3:Timer;
var Dummy4:Communicator;
var Dummy5:GameDataParser;
var Dummy6:IFloat;
var Dummy7:ManagedSound;
var Dummy8:ManagedSoundChannel;
var Dummy9:Aztec;
var Dummy10:BubbleAnim;
var Dummy11:Explosion;
var Dummy12:Game;
var Dummy13:Piece;
var Dummy14:PieceRolling;
var Dummy15:RelaxGameOver;
var Dummy16:ScorePop;
var Dummy17:Slider;
super();
}
}
}//package
Section 73
//MultiNumbers (MultiNumbers)
package {
import flash.display.*;
public dynamic class MultiNumbers extends MovieClip {
public function MultiNumbers(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 74
//Play (Play)
package {
import flash.display.*;
public dynamic class Play extends MovieClip {
}
}//package
Section 75
//ScoreNumbers (ScoreNumbers)
package {
import flash.display.*;
public dynamic class ScoreNumbers extends MovieClip {
public function ScoreNumbers(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 76
//SignupScreen (SignupScreen)
package {
import flash.display.*;
public dynamic class SignupScreen extends MovieClip {
public var mcInner:MovieClip;
public function SignupScreen(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 77
//Splash (Splash)
package {
import flash.display.*;
public dynamic class Splash extends MovieClip {
public function Splash(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 78
//Stone1 (Stone1)
package {
import flash.display.*;
public dynamic class Stone1 extends MovieClip {
}
}//package
Section 79
//Stone2 (Stone2)
package {
import flash.display.*;
public dynamic class Stone2 extends MovieClip {
}
}//package
Section 80
//WaterLevelPiece (WaterLevelPiece)
package {
import flash.display.*;
public dynamic class WaterLevelPiece extends MovieClip {
public function WaterLevelPiece(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package