Frame 1
function getRoot() {
var _local2 = _root._url;
if (_local2.indexOf("file:") != -1) {
_local2 = "localFile";
}
return(_local2);
}
var GAMEID = "AquaBubbleOnline";
var GOTOPATH = "http://realore.com";
var ADSLINK = ((((("http://realore.com/bitrix/redirect.php?event1=FLA_ADS&event2=" + getRoot()) + "&event3=") + GAMEID) + "&goto=") + GOTOPATH);
EndLoading = function () {
_root.gotoAndStop("frameLoadPhase2");
};
var loaded = 0;
var total = 100;
_root.onEnterFrame = function () {
var _local6 = _root.getBytesLoaded();
var _local4 = _root.getBytesTotal();
var _local8 = _root.languageXml.getBytesLoaded();
var _local10 = _root.languageXml.getBytesTotal();
var _local7 = _root.urlXml.getBytesLoaded();
var _local9 = _root.urlXml.getBytesTotal();
var _local2 = 0;
if ((_local4 != 0) && (_local4 != undefined)) {
_local2 = _local2 + Math.floor((_local6 * 100) / _local4);
}
if (!((_local2 >= 0) && (_local2 <= 100))) {
_local2 = 0;
}
if (isNaN(_local2)) {
_local2 = 0;
}
sliderLoading.SetValue(_local2);
if (!((_local2 >= 0) && (_local2 <= 100))) {
_local2 = 0;
}
var _local3 = 0;
if (_local2 >= 0) {
if (_local2 <= 100) {
_local3 = _local2;
}
}
if (_local3 == Number.NaN) {
_local3 = 0;
}
var _local5 = String(_local3);
if (_local5 == "NaN") {
_local5 = "0";
}
strLoading = ("LOADING " + _local5) + "%";
if (_local2 == 100) {
_root.EndLoading();
}
};
_root.createEmptyMovieClip("custom_logo", _root.getNextHighestDepth());
_root.custom_logo._x = 5;
_root.custom_logo._y = 5;
loadMovie ("customlogo.jpg", custom_logo);
stop();
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function afterPreload() {
if (Helper.HASSCORES == true) {
_root.attachMovie("mcInputName", "inputname1", this.getNextHighestDepth());
_root.inputname1.mcPlay.onRelease = function () {
Helper.PLAYERNAME = _root.inputname1.text_Player.text;
_root.gotoNext();
};
} else {
_root.gotoNext();
}
}
function gotoNext() {
removeMovieClip(_root.inputname1);
ClipMask = _root.createEmptyMovieClip("ScreenMask", 100001);
ClipMask.beginFill(16777215, 100);
ClipMask.lineStyle(0, 16777215, 100);
ClipMask.moveTo(0, 0);
ClipMask.lineTo(480, 0);
ClipMask.lineTo(480, 360);
ClipMask.lineTo(0, 360);
ClipMask.lineTo(0, 0);
ClipMask.endFill();
ClipMask._visible = false;
_root.setMask(ClipMask);
_root.attachMovie("Preloader", "pPreloader", 100000);
pPreloader._x = 0;
pPreloader._y = 0;
}
fscommand ("fullscreen", false);
fscommand ("allowscale", false);
delete _root.onEnterFrame;
if (Helper.HASMOCHIBOT) {
__com_mochibot__("d0f2d0a9", this, 10301, true);
}
Dictionary.\u0421reate();
if (Helper.SHOWMOCHIPRELOAD == true) {
MochiAd.showPreGameAd({id:"132ad681e2ad9681", res:"480x360", ad_finished:afterPreload});
} else {
afterPreload();
}
stop();
Frame 5
function gotoNextLevel() {
adISplaing = false;
_root.Slime.WinStatus = 0;
_root.pCurrentScreen.gotoAndPlay("Stop");
}
MapPosX0 = 88;
MapPosY0 = 64;
MapSizeX = 276;
MapSizeY = 299;
MapPosX1 = MapPosX0 + MapSizeX;
MapPosY1 = MapPosY0 + MapSizeY;
BallPosX0 = MapPosX0 + 12;
BallPosY0 = MapPosY0 - 12;
BallPosX1 = MapPosX1 - 12;
BallPosY1 = MapPosY1 + 12;
TopPosY = BallPosY0 - 12;
LeftPosX = BallPosX0 - 12;
StartPosY = TopPosY;
BallNumX = 11;
BallNumY = 15;
FlyNum = 10;
FallNum = 500;
FxNum = 1000;
BallTypeEnabled = 3;
PreparedLine = 4;
GameLevel = 0;
GameScoreMax = 10;
GameScore = 0;
StartTime = 0;
FallDelay0 = 5;
FallDelay1 = 20;
TotalScore = 0;
TotalTime = 0;
LevelBarLayer = 1;
FallLayer = LevelBarLayer + 5;
BallLayer = FallLayer + FallNum;
FlyLayer = BallLayer + ((BallNumX * BallNumY) * 2);
FxLayer = (FlyLayer + FlyNum) + 1;
DeepWaterLayer = (FxLayer + FxNum) + 1;
GunLayer = DeepWaterLayer + 1;
UpWaterLayer = GunLayer + 100;
MenuLayer = UpWaterLayer + 1000;
FlyID = 0;
FallID = 0;
FxID = 0;
Prepared = false;
Started = false;
WaitTime = 23;
LockFire = false;
LineList = new Array(BallNumY);
MapList = new Array(BallNumY);
LevelParamNum = 10;
LevelParam = new Array(LevelParamNum);
this.MakeLevelParam = function (ind, start_delay, end_delay, ball_num, score) {
LevelParam[ind] = new Object();
LevelParam[ind].StartDelay = start_delay;
LevelParam[ind].EndDelay = end_delay;
LevelParam[ind].BallNum = ball_num;
LevelParam[ind].ScoreCaps = score;
};
MakeLevelParam(0, 8, 50, 4, 1000);
MakeLevelParam(1, 8, 50, 5, 1000);
MakeLevelParam(2, 1, 2, 3, 1000);
MakeLevelParam(3, 8, 50, 6, 1000);
MakeLevelParam(4, 8, 50, 7, 1000);
MakeLevelParam(5, 1, 2, 3, 2000);
MakeLevelParam(6, 8, 50, 8, 1000);
MakeLevelParam(7, 8, 50, 8, 1700);
MakeLevelParam(8, 1, 2, 3, 3000);
MakeLevelParam(9, 8, 50, 8, 2500);
HelpMode = false;
AboutMode = false;
MainMode = false;
GameOverMode = false;
SubmitMode = false;
pCurrentScreen = null;
HitCombo = 0;
DropCombo = 0;
SoundStatus = 1;
SendCount = 1;
Transfer = new LoadVars();
SoundVolume = new Sound();
SoundVolume.setVolume(100);
GameMusic = new Sound(Slime);
GameMusic.attachSound("music");
FindX = -1;
FindY = -1;
BallHit = 0;
BallDrop = 0;
this.NewGame = function () {
TotalScore = 0;
TotalTime = 0;
GameLevel = 0;
};
this.InitLevel = function () {
WaitCount = 0;
MoveCount = 0;
LineOffset = 12;
MapLineNum = 0;
FindX = -1;
FindY = -1;
var _local1 = 0;
while (_local1 < BallNumY) {
LineList[_local1] = null;
MapList[_local1] = null;
_local1++;
}
};
InitLevel();
this.cWaterFall = function (t) {
t.Status = 0;
t.OpenPhase = 0;
t.FrontPhase = 0;
t.FallPhase = 0;
t.WaveSound = new Sound(t);
t.WaveSound.attachSound("wave");
t.UpdateMask = function () {
this.Mask.clear();
this.Mask.beginFill(16777215, 100);
this.Mask.lineStyle(0, 16777215, 100);
this.Mask.moveTo(78, 20);
this.Mask.lineTo(373, 20);
this.Mask.lineTo(373, 360 - this.OpenPhase);
this.Mask.lineTo(78, 360 - this.OpenPhase);
this.Mask.endFill();
this.pBalka._y = 360 - this.OpenPhase;
};
t.SetStatus = function (enable) {
this.Status = enable;
this.WaveSound.start();
};
t.onEnterFrame = function () {
if (this.Status == true) {
if (this.OpenPhase < 310) {
this.OpenPhase = this.OpenPhase + 10.3333333333333;
} else {
this.OpenPhase = 310;
}
} else if (this.OpenPhase > 0) {
this.OpenPhase = this.OpenPhase - 10.3333333333333;
} else {
this.OpenPhase = 0;
}
this.UpdateMask();
this.FallPhase = (this.FallPhase + 3) % 170;
this.FrontPhase = (this.FrontPhase + 1) % 150;
this.pFall.pWater._y = 20 + this.FallPhase;
this.pFall.pFront._x = 74 + this.FrontPhase;
};
t.attachMovie("Balka", "pBalka", 4);
t.pBalka._x = 225.5;
t.createEmptyMovieClip("pFall", 1);
t.pFall._x = 0;
t.pFall._y = 0;
t.pFall.attachMovie("water0", "pWater", 1);
t.pFall.pWater._x = 78;
t.pFall.pWater._y = 20;
t.pFall.attachMovie("water1", "pFront", 2);
t.pFall.pFront._x = 74;
t.pFall.pFront._y = 20;
t.createEmptyMovieClip("Mask", 3);
t.UpdateMask();
t.Mask._visible = false;
t.pFall.setMask(t.Mask);
};
this.createEmptyMovieClip("pWaterFall", UpWaterLayer);
cWaterFall(this.pWaterFall);
pWaterFall._x = 0;
pWaterFall._y = 0;
pWaterFall.Status = false;
WindX = 0;
WindPhase = 0;
WindDeltaPhase = 0.1;
this.attachMovie("LevelBar", "pLevelBar", LevelBarLayer);
pLevelBar._x = 22;
pLevelBar._y = 74;
this.cDeepWater = function (t) {
t._x = 0;
t._y = 0;
t.colors = [2581638, 12303359];
t.alphas = [50, 50];
t.ratios = [0, 255];
t.matrix = {matrixType:"box", x:240, y:355, w:1, h:5, r:1.57};
t.Init = function () {
this.HitPhase = Math.PI;
this.TargetLevel = 360;
this.Level = 360;
this.AddDelta = 0;
this.AddVolume = 0;
this.Delta = 69;
this.Pos = new Array(5);
this.Vel = new Array(5);
var _local2 = 0;
while (_local2 < 5) {
this.Pos[_local2] = (Math.PI*2) * Math.random();
this.Vel[_local2] = 0.0314159265358979 + (0.0314159265358979 * Math.random());
_local2++;
}
};
t.Hit = function () {
this.HitPhase = 0;
};
t.onEnterFrame = function () {
if (this.Level < this.TargetLevel) {
this.Level = this.Level + 0.1;
} else if (this.Level > this.TargetLevel) {
this.Level = this.Level - 0.1;
}
if (this.HitPhase < Math.PI) {
if (this.HitPhase < (Math.PI/2)) {
this.HitPhase = this.HitPhase + 0.15707963267949;
} else {
this.HitPhase = this.HitPhase + 0.010471975511966;
}
this.AddDelta = Math.sin(this.HitPhase) * 0.1;
this.AddVolume = Math.sin(this.HitPhase) * 2.5;
} else {
this.AddDelta = 0;
this.AddVolume = 0;
}
this.clear();
this.lineStyle(0, 0, 50);
t.matrix = {matrixType:"box", x:240, y:this.Level + 10, w:1, h:-10, r:1.57};
this.beginGradientFill("linear", this.colors, this.alphas, this.ratios, this.matrix);
this.moveTo(87, 360);
var _local3 = 87;
this.lineTo(_local3, this.Level + (Math.sin(this.Pos[0]) * (2.5 + this.AddVolume)));
this.Pos[0] = ((this.Pos[0] + this.Vel[0]) + this.AddDelta) % (Math.PI*2);
var _local2 = 1;
while (_local2 < 5) {
_local3 = _local3 + this.Delta;
this.curveTo(_local3 - (this.Delta / 2), this.Level + (Math.sin(this.Pos[_local2]) * (2.5 + this.AddVolume)), _local3, this.Level + (Math.sin(this.Pos[_local2]) * (2.5 + this.AddVolume)));
this.Pos[_local2] = ((this.Pos[_local2] + this.Vel[_local2]) + this.AddDelta) % (Math.PI*2);
if (random(100) < 5) {
this.Vel[_local2] = 0.0314159265358979 + (0.0314159265358979 * Math.random());
}
_local2++;
}
this.lineTo(363, 360);
this.endFill();
};
};
this.createEmptyMovieClip("pDeepWater", DeepWaterLayer);
cDeepWater(pDeepWater);
pDeepWater.Init();
cParticle = function () {
this.Init = function (x, y, dx, dy, time) {
this._x = x;
this._y = y;
this.DeltaX = dx;
this.DeltaY = dy;
this.Time = time;
};
this.onEnterFrame = function () {
this._x = this._x + (this.DeltaX + WindX);
this._y = this._y + this.DeltaY;
this.DeltaY = this.DeltaY - 0.2;
if ((this.Time > 0) && (this._y > BallPosY0)) {
this.Time--;
} else {
this.removeMovieClip();
}
};
this.canDeleted = function () {
return(true);
};
};
cParticle.prototype = new MovieClip();
Object.registerClass("part0", cParticle);
Object.registerClass("part1", cParticle);
Object.registerClass("part2", cParticle);
Object.registerClass("part3", cParticle);
Object.registerClass("part4", cParticle);
this.MakeExplosion = function (x, y) {
var _local3;
var _local2;
FxID++;
if (FxID > FxNum) {
FxID = 0;
}
_local3 = this.attachMovie("part" + random(3), ("part" + FxLayer) + FxID, FxLayer + FxID);
_local3.Init((x + 10) - random(20), (y + 10) - random(20), 1 - (Math.random() * 2), 1 + (Math.random() * 2), 80 + random(40));
_local2 = 0;
while (_local2 < 3) {
FxID++;
if (FxID > FxNum) {
FxID = 0;
}
_local3 = this.attachMovie("part" + (3 + random(2)), ("part" + FxLayer) + FxID, FxLayer + FxID);
_local3.Init((x + 10) - random(20), (y + 10) - random(20), 2 - (Math.random() * 4), 2 - (Math.random() * 4), 20 + random(20));
_local2++;
}
};
cFallBall = function () {
this._visible = false;
this.Init = function (x, y, id, dx, dy) {
this._x = x;
this._y = y;
this.DeltaX = dx;
this.DeltaY = dy;
this.gotoAndStop(id);
this._visible = true;
};
this.onEnterFrame = function () {
this._x = this._x + (this.DeltaX + WindX);
this._y = this._y + this.DeltaY;
this.DeltaY = this.DeltaY + 1;
if (this._x < BallPosX0) {
this._x = BallPosX0;
this.DeltaX = Math.abs(this.DeltaX);
} else if (this._x > BallPosX1) {
this._x = BallPosX1;
this.DeltaX = -Math.abs(this.DeltaX);
}
if (this._y < MapPosY0) {
this.DeltaY = Math.abs(this.DeltaY);
this._y = MapPosY0;
}
if (this._y > BallPosY1) {
var _local2 = new Sound(Slime);
_local2.attachSound("bubble_drop");
_local2.start();
pDeepWater.Hit();
this.removeMovieClip();
}
};
this.canDeleted = function () {
return(true);
};
};
cFallBall.prototype = new MovieClip();
Object.registerClass("fall_ball", cFallBall);
cLine = function (t) {
t._visible = false;
t.InitLine = function (ind) {
this.Index = ind;
this.BallList = new Array(BallNumX);
var _local2 = 0;
while (_local2 < BallNumX) {
this.BallList[_local2] = this.attachMovie("map_ball", "mb" + _local2, ((BallLayer + (ind * (BallNumX + 1))) + 1) + _local2);
this.BallList[_local2].gotoAndStop(random(BallTypeEnabled) + 1);
this.BallList[_local2]._x = 24 * _local2;
this.BallList[_local2]._y = 0;
this.BallList[_local2]._visible = true;
this.BallList[_local2].Link = new Array(6);
this.BallList[_local2].ScanID = 0;
_local2++;
}
};
t.AddBall = function (x, y, id) {
this.BallList[x] = this.attachMovie("map_ball", "mb" + x, ((BallLayer + (this.Index * (BallNumX + 1))) + 1) + x);
this.BallList[x].gotoAndStop(id + 1);
this.BallList[x]._x = 24 * x;
this.BallList[x]._y = 0;
this.BallList[x]._visible = true;
this.BallList[x].Link = new Array(6);
this.BallList[x].ScanID = 0;
};
t.Init = function (ind) {
this.Index = ind;
this.BallList = new Array(BallNumX);
var _local2 = 0;
while (_local2 < BallNumX) {
this.BallList[_local2] = null;
_local2++;
}
};
t.RemoveLink = function (x, y) {
if ((x > 0) && (this.BallList[x - 1] != null)) {
this.BallList[x - 1].Link[1] = null;
}
if ((x < (BallNumX - 1)) && (this.BallList[x + 1] != null)) {
this.BallList[x + 1].Link[0] = null;
}
if (this._x != BallPosX0) {
if (y > 0) {
if (MapList[y - 1].BallList[x] != null) {
MapList[y - 1].BallList[x].Link[5] = null;
}
if ((x < (BallNumX - 1)) && (MapList[y - 1].BallList[x + 1] != null)) {
MapList[y - 1].BallList[x + 1].Link[4] = null;
}
}
if (y < (MapLineNum - 1)) {
if (MapList[y + 1].BallList[x] != null) {
MapList[y + 1].BallList[x].Link[3] = null;
}
if ((x < (BallNumX - 1)) && (MapList[y + 1].BallList[x + 1] != null)) {
MapList[y + 1].BallList[x + 1].Link[2] = null;
}
}
} else {
if (y > 0) {
if ((x > 0) && (MapList[y - 1].BallList[x - 1] != null)) {
MapList[y - 1].BallList[x - 1].Link[5] = null;
}
if (MapList[y - 1].BallList[x] != null) {
MapList[y - 1].BallList[x].Link[4] = null;
}
}
if (y < (MapLineNum - 1)) {
if ((x > 0) && (MapList[y + 1].BallList[x - 1] != null)) {
MapList[y + 1].BallList[x - 1].Link[3] = null;
}
if (MapList[y + 1].BallList[x] != null) {
MapList[y + 1].BallList[x].Link[2] = null;
}
}
}
};
t.UpdateLink = function (x, y) {
if (x > 0) {
this.BallList[x].Link[0] = this.BallList[x - 1];
if (this.BallList[x - 1] != null) {
this.BallList[x - 1].Link[1] = this.BallList[x];
}
} else {
this.BallList[x].Link[0] = null;
}
if (x < (BallNumX - 1)) {
this.BallList[x].Link[1] = this.BallList[x + 1];
if (this.BallList[x + 1] != null) {
this.BallList[x + 1].Link[0] = this.BallList[x];
}
} else {
this.BallList[x].Link[1] = null;
}
if (this._x != BallPosX0) {
if (y > 0) {
this.BallList[x].Link[2] = MapList[y - 1].BallList[x];
if (MapList[y - 1].BallList[x] != null) {
MapList[y - 1].BallList[x].Link[5] = this.BallList[x];
}
if (x < (BallNumX - 1)) {
this.BallList[x].Link[3] = MapList[y - 1].BallList[x + 1];
if (MapList[y - 1].BallList[x + 1] != null) {
MapList[y - 1].BallList[x + 1].Link[4] = this.BallList[x];
}
} else {
this.BallList[x].Link[3] = null;
}
} else {
this.BallList[x].Link[2] = null;
this.BallList[x].Link[3] = null;
}
if (y < (MapLineNum - 1)) {
this.BallList[x].Link[4] = MapList[y + 1].BallList[x];
if (MapList[y + 1].BallList[x] != null) {
MapList[y + 1].BallList[x].Link[3] = this.BallList[x];
}
if (x < (BallNumX - 1)) {
this.BallList[x].Link[5] = MapList[y + 1].BallList[x + 1];
if (MapList[y + 1].BallList[x + 1] != null) {
MapList[y + 1].BallList[x + 1].Link[2] = this.BallList[x];
}
} else {
this.BallList[x].Link[5] = null;
}
} else {
this.BallList[x].Link[4] = null;
this.BallList[x].Link[5] = null;
}
} else {
if (y > 0) {
if (x > 0) {
this.BallList[x].Link[2] = MapList[y - 1].BallList[x - 1];
if (MapList[y - 1].BallList[x - 1] != null) {
MapList[y - 1].BallList[x - 1].Link[5] = this.BallList[x];
}
} else {
this.BallList[x].Link[2] = null;
}
this.BallList[x].Link[3] = MapList[y - 1].BallList[x];
if (MapList[y - 1].BallList[x] != null) {
MapList[y - 1].BallList[x].Link[4] = this.BallList[x];
}
} else {
this.BallList[x].Link[2] = null;
this.BallList[x].Link[3] = null;
}
if (y < (MapLineNum - 1)) {
if (x > 0) {
this.BallList[x].Link[4] = MapList[y + 1].BallList[x - 1];
if (MapList[y + 1].BallList[x - 1] != null) {
MapList[y + 1].BallList[x - 1].Link[3] = this.BallList[x];
}
} else {
this.BallList[x].Link[4] = null;
}
this.BallList[x].Link[5] = MapList[y + 1].BallList[x];
if (MapList[y + 1].BallList[x] != null) {
MapList[y + 1].BallList[x].Link[2] = this.BallList[x];
}
} else {
this.BallList[x].Link[4] = null;
this.BallList[x].Link[5] = null;
}
}
};
t.LineLink = function (y) {
var _local2 = 0;
while (_local2 < BallNumX) {
this.UpdateLink(_local2, y);
_local2++;
}
};
t.canDeleted = function () {
return(true);
};
};
this.RemoveMapLine = function (index) {
var _local1 = index;
while (_local1 < MapLineNum) {
LineList[MapList[_local1].Index] = null;
MapList[_local1].removeMovieClip();
MapList[_local1] = null;
_local1++;
}
MapLineNum = index;
};
this.ColorScan = function (x, y, id) {
var _local2;
var _local3;
BallHit = 0;
BallDrop = 0;
if (CoInf(MapList[y].BallList[x]) > 2) {
_local2 = 0;
while (_local2 < BallNumX) {
if ((MapList[0].BallList[_local2] != null) && (MapList[0].BallList[_local2].ScanID == 0)) {
FaInf(MapList[0].BallList[_local2]);
}
_local2++;
}
var _local6 = MapLineNum;
var _local5;
_local2 = 0;
while (_local2 < MapLineNum) {
_local5 = 0;
_local3 = 0;
while (_local3 < BallNumX) {
if (MapList[_local2].BallList[_local3] != null) {
if (MapList[_local2].BallList[_local3].ScanID == 1) {
MakeExplosion(MapList[_local2]._x + MapList[_local2].BallList[_local3]._x, MapList[_local2]._y + MapList[_local2].BallList[_local3]._y);
MapList[_local2].RemoveLink(_local3, _local2);
MapList[_local2].BallList[_local3].removeMovieClip();
MapList[_local2].BallList[_local3] = null;
BallHit++;
} else if (MapList[_local2].BallList[_local3].ScanID != 2) {
FallID++;
if (FallID > FallNum) {
FallID = 0;
}
var _local4 = this.attachMovie("fall_ball", ("lb" + FallLayer) + FallID, FallLayer + FallID);
_local4.Init(MapList[_local2]._x + MapList[_local2].BallList[_local3]._x, MapList[_local2]._y + MapList[_local2].BallList[_local3]._y, MapList[_local2].BallList[_local3]._currentframe, 5 - (Math.random() * 10), (-Math.random()) * 6);
MapList[_local2].RemoveLink(_local3, _local2);
MapList[_local2].BallList[_local3].removeMovieClip();
MapList[_local2].BallList[_local3] = null;
BallDrop++;
} else {
MapList[_local2].BallList[_local3].ScanID = 0;
_local5++;
}
}
_local3++;
}
if (_local6 > _local2) {
if (_local5 == 0) {
_local6 = _local2;
}
}
_local2++;
}
if (_local6 < MapLineNum) {
RemoveMapLine(_local6);
}
} else {
_local2 = 0;
while (_local2 < MapLineNum) {
_local3 = 0;
while (_local3 < BallNumX) {
if (MapList[_local2].BallList[_local3] != null) {
MapList[_local2].BallList[_local3].ScanID = 0;
}
_local3++;
}
_local2++;
}
}
};
this.FaInf = function (p) {
var _local1;
p.ScanID = 2;
_local1 = 0;
while (_local1 < 6) {
if ((p.Link[_local1] != null) && (p.Link[_local1].ScanID == 0)) {
FaInf(p.Link[_local1]);
}
_local1++;
}
};
this.CoInf = function (p) {
var _local1;
var _local3 = 1;
p.ScanID = 1;
_local1 = 0;
while (_local1 < 6) {
if (((p.Link[_local1] != null) && (p.Link[_local1]._currentframe == p._currentframe)) && (p.Link[_local1].ScanID == 0)) {
_local3 = _local3 + CoInf(p.Link[_local1]);
}
_local1++;
}
return(_local3);
};
this.AddFirstLine = function (index) {
var _local1 = MapLineNum - 1;
while (_local1 >= 0) {
MapList[_local1 + 1] = MapList[_local1];
_local1--;
}
MapList[0] = LineList[index];
MapLineNum++;
};
this.AddLastLine = function (index) {
MapList[MapLineNum] = LineList[index];
MapLineNum++;
};
cFlyBall = function () {
this._visible = false;
this.Init = function (id, x, y, angle) {
this._x = x;
this._y = y;
this.DeltaX = Math.cos(angle);
this.DeltaY = Math.sin(angle);
this.gotoAndStop(id + 1);
this.ID = id;
this._visible = true;
var _local2 = new Sound(this);
_local2.attachSound("bubble_launch");
_local2.start();
};
this.onEnterFrame = function () {
var _local3 = this._x;
var _local5 = this._y;
var _local2;
var _local4;
var _local9;
var _local8;
StartPosY = (TopPosY + WaitTime) - WaitCount;
var _local7 = 0;
while (_local7 < 25) {
_local3 = _local3 + this.DeltaX;
_local5 = _local5 + this.DeltaY;
if (_local3 < BallPosX0) {
_local3 = BallPosX0;
this.DeltaX = -this.DeltaX;
var _local6 = new Sound(this);
_local6.attachSound("bubble_wall");
_local6.start();
} else if (_local3 > BallPosX1) {
_local3 = BallPosX1;
this.DeltaX = -this.DeltaX;
var _local6 = new Sound(this);
_local6.attachSound("bubble_wall");
_local6.start();
}
_local4 = Math.floor((_local5 - StartPosY) / 24);
if (_local4 < MapLineNum) {
if ((_local4 % 2) == 0) {
_local2 = Math.floor((_local3 - (LeftPosX + ((LineOffset == 0) ? 12 : 0))) / 24);
} else {
_local2 = Math.floor((_local3 - (LeftPosX + ((LineOffset == 0) ? 0 : 12))) / 24);
}
if (_local4 >= 0) {
if ((((_local2 >= 0) && (_local2 < BallNumX)) && (MapList[_local4].BallList[_local2] != null)) && (this.Collision(_local2, _local4, _local3, _local5) == true)) {
this.Install(_local2, _local4, _local3, _local5);
return(undefined);
}
} else {
if (_local2 < 0) {
_local2 = 0;
}
if (_local2 >= BallNumX) {
_local2 = BallNumX - 1;
}
_local4 = 0;
this.Install(_local2, _local4, _local3, _local5);
return(undefined);
}
}
_local7++;
}
this._x = _local3;
this._y = _local5;
};
this.Collision = function (px, py, x, y) {
if (MapList[py].BallList[px] != null) {
var _local2 = (((BallPosY0 + (py * 24)) + WaitTime) - WaitCount) - y;
var _local1;
if ((py % 2) == 0) {
_local1 = ((BallPosX0 + ((LineOffset == 0) ? 12 : 0)) + (px * 24)) - x;
} else {
_local1 = ((BallPosX0 + ((LineOffset == 0) ? 0 : 12)) + (px * 24)) - x;
}
if (((_local1 * _local1) + (_local2 * _local2)) < 2304) {
return(true);
}
}
return(false);
};
this.Install = function (px, py, x, y) {
this.FindPos(px, py, x, y);
if (FindX != -1) {
this.AddBall(FindX, FindY);
ColorScan(FindX, FindY, this._currentframe);
if (BallDrop) {
var _local2 = new Sound(this);
_local2.attachSound("bubble_fall_bonus");
_local2.start();
DropCombo++;
} else {
DropCombo = 0;
}
if (BallHit) {
var _local2 = new Sound(this);
_local2.attachSound("bubble_fall_regular");
_local2.start();
HitCombo++;
GameScore = GameScore + (((BallHit * 3) + (BallDrop * 9)) + (HitCombo * 7));
UpdateScore();
Slime.JoyStatus = 5;
} else {
HitCombo = 0;
}
if ((FindY < MapLineNum) && (MapList[FindY].BallList[FindX] != null)) {
var _local2 = new Sound(this);
_local2.attachSound("bubble_stick");
_local2.start();
}
}
this.removeMovieClip();
return(undefined);
};
this.FindPos = function (px, py, x, y) {
var _local1;
var _local5 = 65535;
FindX = -1;
var _local6 = ((BallPosY0 + (py * 24)) + WaitTime) - WaitCount;
var _local3;
if ((((py % 2) == 0) && (LineOffset == 0)) || (((py % 2) != 0) && (LineOffset != 0))) {
_local3 = (BallPosX0 + 12) + (px * 24);
if (py > 0) {
if (MapList[py - 1].BallList[px] == null) {
_local1 = (((_local3 - 12) - x) * ((_local3 - 12) - x)) + (((_local6 - 24) - y) * ((_local6 - 24) - y));
if (_local1 < _local5) {
FindX = px;
FindY = py - 1;
_local5 = _local1;
}
}
if ((px < (BallNumX - 1)) && (MapList[py - 1].BallList[px + 1] == null)) {
_local1 = (((_local3 + 12) - x) * ((_local3 + 12) - x)) + (((_local6 - 24) - y) * ((_local6 - 24) - y));
if (_local1 < _local5) {
FindX = px + 1;
FindY = py - 1;
_local5 = _local1;
}
}
}
if (py < (MapLineNum - 1)) {
if (MapList[py + 1].BallList[px] == null) {
_local1 = (((_local3 - 12) - x) * ((_local3 - 12) - x)) + (((_local6 + 24) - y) * ((_local6 + 24) - y));
if (_local1 < _local5) {
FindX = px;
FindY = py + 1;
_local5 = _local1;
}
}
if ((px < (BallNumX - 1)) && (MapList[py + 1].BallList[px + 1] == null)) {
_local1 = (((_local3 + 12) - x) * ((_local3 + 12) - x)) + (((_local6 + 24) - y) * ((_local6 + 24) - y));
if (_local1 < _local5) {
FindX = px + 1;
FindY = py + 1;
_local5 = _local1;
}
}
} else {
_local1 = (((_local3 - 12) - x) * ((_local3 - 12) - x)) + (((_local6 + 24) - y) * ((_local6 + 24) - y));
if (_local1 < _local5) {
FindX = px;
FindY = py + 1;
_local5 = _local1;
}
if (px < (BallNumX - 1)) {
_local1 = (((_local3 + 12) - x) * ((_local3 + 12) - x)) + (((_local6 + 24) - y) * ((_local6 + 24) - y));
if (_local1 < _local5) {
FindX = px + 1;
FindY = py + 1;
_local5 = _local1;
}
}
}
} else {
_local3 = BallPosX0 + (px * 24);
if (py > 0) {
if ((px > 0) && (MapList[py - 1].BallList[px - 1] == null)) {
_local1 = (((_local3 - 12) - x) * ((_local3 - 12) - x)) + (((_local6 - 24) - y) * ((_local6 - 24) - y));
if (_local1 < _local5) {
FindX = px - 1;
FindY = py - 1;
_local5 = _local1;
}
}
if (MapList[py - 1].BallList[px] == null) {
_local1 = (((_local3 + 12) - x) * ((_local3 + 12) - x)) + (((_local6 - 24) - y) * ((_local6 - 24) - y));
if (_local1 < _local5) {
FindX = px;
FindY = py - 1;
_local5 = _local1;
}
}
}
if (py < (MapLineNum - 1)) {
if ((px > 0) && (MapList[py + 1].BallList[px - 1] == null)) {
_local1 = (((_local3 - 12) - x) * ((_local3 - 12) - x)) + (((_local6 + 24) - y) * ((_local6 + 24) - y));
if (_local1 < _local5) {
FindX = px - 1;
FindY = py + 1;
_local5 = _local1;
}
}
if (MapList[py + 1].BallList[px] == null) {
_local1 = (((_local3 + 12) - x) * ((_local3 + 12) - x)) + (((_local6 + 24) - y) * ((_local6 + 24) - y));
if (_local1 < _local5) {
FindX = px;
FindY = py + 1;
_local5 = _local1;
}
}
} else {
if (px > 0) {
_local1 = (((_local3 - 12) - x) * ((_local3 - 12) - x)) + (((_local6 + 24) - y) * ((_local6 + 24) - y));
if (_local1 < _local5) {
FindX = px - 1;
FindY = py + 1;
_local5 = _local1;
}
}
_local1 = (((_local3 + 12) - x) * ((_local3 + 12) - x)) + (((_local6 + 24) - y) * ((_local6 + 24) - y));
if (_local1 < _local5) {
FindX = px;
FindY = py + 1;
_local5 = _local1;
}
}
}
if (MapList[py].BallList[px] == null) {
_local1 = ((_local3 - x) * (_local3 - x)) + ((_local6 - y) * (_local6 - y));
if (_local1 < _local5) {
FindX = px;
FindY = py;
_local5 = _local1;
}
}
if ((px > 0) && (MapList[py].BallList[px - 1] == null)) {
_local1 = (((_local3 - 24) - x) * ((_local3 - 24) - x)) + ((_local6 - y) * (_local6 - y));
if (_local1 < _local5) {
FindX = px - 1;
FindY = py;
_local5 = _local1;
}
}
if ((px < (BallNumX - 1)) && (MapList[py].BallList[px + 1] == null)) {
_local1 = (((_local3 + 24) - x) * ((_local3 + 24) - x)) + ((_local6 - y) * (_local6 - y));
if (_local1 < _local5) {
FindX = px + 1;
FindY = py;
_local5 = _local1;
}
}
};
this.AddBall = function (x, y) {
if (y >= MapLineNum) {
var _local2 = 0;
while (_local2 < BallNumY) {
if (LineList[_local2] == null) {
var _local3 = this._parent.createEmptyMovieClip(("line" + BallLayer) + (_local2 * (BallNumX + 1)), BallLayer + (_local2 * (BallNumX + 1)));
cLine(_local3);
_local3._y = ((BallPosY0 + WaitTime) - WaitCount) + (y * 24);
if ((y % 2) == 0) {
_local3._x = BallPosX0 + ((LineOffset == 0) ? 12 : 0);
} else {
_local3._x = BallPosX0 + ((LineOffset == 0) ? 0 : 12);
}
_local3.Init(_local2);
_local3._visible = true;
LineList[_local2] = _local3;
AddLastLine(_local2);
break;
}
_local2++;
}
}
MapList[y].AddBall(x, y, this.ID);
MapList[y].UpdateLink(x, y);
};
this.canDeleted = function () {
return(true);
};
};
cFlyBall.prototype = new MovieClip();
Object.registerClass("fly_ball", cFlyBall);
cGun = function () {
this._visible = false;
this._x = MapPosX0 + (MapSizeX / 2);
this._y = 342;
this.p0.stop();
this.p1.stop();
this.p2.stop();
this.p3.stop();
this.ChargeStatus = false;
this.FireStatus = false;
this.ID = 0;
this.NextID = 0;
this.Open = function () {
this.NextID = random(BallTypeEnabled);
this.Change();
this._visible = true;
};
this.Close = function () {
this._visible = false;
};
this.Change = function () {
this.ID = this.NextID;
this.NextID = random(BallTypeEnabled);
this.p0.gotoAndStop((this.ID * 8) + 1);
this.p1.gotoAndStop(this.ID + 1);
this.p2.gotoAndStop(this.ID + 1);
this.p3.gotoAndStop(this.NextID + 1);
};
this.Fire = function () {
if ((this.ChargeStatus == false) && (this.FireStatus == false)) {
FlyID++;
if (FlyID > FlyNum) {
FlyID = 0;
}
var _local2 = this._parent.attachMovie("fly_ball", ("fb" + FlyLayer) + FlyID, FlyLayer + FlyID);
_local2.Init(this.ID, this._x, this._y, ((this.p0._rotation * Math.PI) / 180) - (Math.PI/2));
this.Change();
this.p3._xscale = 0.1;
this.p3._yscale = 0.1;
this.p1._xscale = 0.1;
this.p1._yscale = 0.1;
this.ChargeStatus = true;
this.FireStatus = true;
}
};
this.onEnterFrame = function () {
if (this.FireStatus) {
if (this.p0._currentframe < ((8 * this.ID) + 8)) {
this.p0.nextFrame();
} else {
this.p0.gotoAndStop((8 * this.ID) + 1);
this.FireStatus = false;
}
}
if (this.ChargeStatus) {
this.p3._xscale = this.p3._xscale + 12.5;
this.p3._yscale = this.p3._yscale + 12.5;
this.p1._xscale = this.p1._xscale + 12.5;
this.p1._yscale = this.p1._yscale + 12.5;
if (this.p1._xscale >= 100) {
this.p3._xscale = 100;
this.p3._yscale = 100;
this.p1._xscale = 100;
this.p1._yscale = 100;
this.ChargeStatus = false;
}
}
};
this.Update = function () {
var _local4 = this._parent._xmouse - this._x;
var _local3 = this._parent._ymouse - this._y;
if ((Math.abs(_local4) > 0) || (Math.abs(_local3) > 0)) {
var _local2 = 90 + ((Math.atan2(_local3, _local4) * 180) / Math.PI);
if (_local2 < -87) {
this.p0._rotation = -87;
} else if (_local2 > 87) {
this.p0._rotation = 87;
} else {
this.p0._rotation = _local2;
}
}
};
};
cGun.prototype = new MovieClip();
Object.registerClass("gun", cGun);
pGun = this.attachMovie("gun", "pGun", GunLayer);
this.Intro = function () {
HitCombo = 0;
DropCombo = 0;
GameScore = 0;
if (GameLevel < LevelParamNum) {
BallTypeEnabled = LevelParam[GameLevel].BallNum;
FallDelay0 = LevelParam[GameLevel].StartDelay;
FallDelay1 = LevelParam[GameLevel].EndDelay;
GameScoreMax = LevelParam[GameLevel].ScoreCaps;
} else if (((GameLevel - LevelParamNum) % 3) == 2) {
FallDelay0 = 1 / (((GameLevel - LevelParamNum) / 10) + 1);
FallDelay1 = 5 / (((GameLevel - LevelParamNum) / 10) + 1);
BallTypeEnabled = 3;
GameScoreMax = 1500 + (((GameLevel - LevelParamNum) + 1) * 200);
} else {
FallDelay0 = 8 / (((GameLevel - LevelParamNum) / 10) + 1);
FallDelay1 = 50 / (((GameLevel - LevelParamNum) / 10) + 1);
BallTypeEnabled = 8;
GameScoreMax = 1200 + (((GameLevel - LevelParamNum) + 1) * 200);
}
pGun.Open();
pDeepWater._visible = true;
InitLevel();
var _local4 = 0;
while (_local4 < PreparedLine) {
var _local2 = 0;
while (_local2 < BallNumY) {
if (LineList[_local2] == null) {
var _local3 = this.createEmptyMovieClip(("line" + BallLayer) + (_local2 * (BallNumX + 1)), BallLayer + (_local2 * (BallNumX + 1)));
cLine(_local3);
_local3._x = BallPosX0 + LineOffset;
_local3._y = BallPosY0 + ((PreparedLine - _local2) * 24);
_local3.InitLine(_local2, MapLineNum);
_local3._visible = true;
LineList[_local2] = _local3;
AddFirstLine(_local2);
_local3.LineLink(0);
break;
}
_local2++;
}
LineOffset = 12 - LineOffset;
_local4++;
}
pDeepWater.Level = 360 - ((70 * MapLineNum) / BallNumY);
pDeepWater.TargetLevel = pDeepWater.Level;
Prepared = true;
pWaterFall.SetStatus(true);
this.attachMovie("ScorePanel", "pScorePanel", LevelBarLayer + 1);
pScorePanel._x = 400;
pScorePanel._y = 0;
pScorePanel.stop();
pScorePanel.ScoreBar.Title = Dictionary.DICT.SCORES;
pScorePanel.ScoreBar.Value = TotalScore + GameScore;
pScorePanel.LevelBar.Title = Dictionary.DICT.LEVEL;
pScorePanel.LevelBar.Value = GameLevel + 1;
};
this.Outro = function () {
Prepared = false;
Mouse.show();
pGun._visible = false;
pDeepWater._visible = false;
FinitLevel();
pScorePanel.removeMovieClip();
};
this.Start = function () {
Started = true;
StartTime = getTimer();
GameMusic.start(0, 99999999999);
};
this.Stop = function () {
Started = false;
pWaterFall.SetStatus(false);
pLevelBar.FillFactor = 0;
TotalTime = TotalTime + (getTimer() - StartTime);
TotalScore = TotalScore + GameScore;
GameLevel++;
GameMusic.stop();
};
var adISplaing;
this.onEnterFrame = function () {
if (Prepared) {
WindX = Math.sin(WindPhase) * 2;
WindPhase = (WindPhase + WindDeltaPhase) % 6.28;
if (random(100) < 15) {
WindDeltaPhase = 0.1 + (Math.random() * 0.1);
}
}
if (Started) {
if (MoveCount > 0) {
MoveCount--;
} else {
pDeepWater.TargetLevel = 360 - ((70 * MapLineNum) / BallNumY);
var _local3 = 0;
while (_local3 < BallNumY) {
if (LineList[_local3] != null) {
LineList[_local3]._y++;
}
_local3++;
}
if ((MapLineNum > 0) && (MapList[MapLineNum - 1]._y >= 280)) {
Slime.PanicStatus = 5;
} else {
Slime.PanicStatus = 0;
}
if (WaitCount > 0) {
WaitCount--;
} else {
_local3 = 0;
while (_local3 < BallNumY) {
if (LineList[_local3] == null) {
var _local4 = this.createEmptyMovieClip(("line" + BallLayer) + (_local3 * (BallNumX + 1)), BallLayer + (_local3 * (BallNumX + 1)));
cLine(_local4);
_local4._x = BallPosX0 + LineOffset;
_local4._y = BallPosY0;
_local4.InitLine(_local3, MapLineNum);
_local4._visible = true;
LineList[_local3] = _local4;
AddFirstLine(_local3);
_local4.LineLink(0);
break;
}
_local3++;
}
WaitCount = WaitTime;
LineOffset = 12 - LineOffset;
}
if (MapLineNum > 0) {
MoveCount = FallDelay0 + ((FallDelay1 - FallDelay0) * Math.pow((MapList[MapLineNum - 1]._y - BallPosY0) / (pDeepWater.TargetLevel - BallPosY0), 4));
} else {
MoveCount = FallDelay0;
}
}
if (GameScore >= GameScoreMax) {
this.Stop();
Slime.PanicStatus = 0;
Slime.JoyStatus = 0;
Slime.WinStatus = 1;
if (GameLevel < LevelParamNum) {
_root.gotoAndPlay("NextLevel");
} else {
gotoAndPlay ("Win");
}
} else if ((MapLineNum > 0) && (MapList[MapLineNum - 1]._y > pDeepWater.TargetLevel)) {
this.Stop();
gotoAndPlay ("GameOver");
Slime.PanicStatus = 0;
Slime.JoyStatus = 0;
Slime.WinStatus = 0;
}
}
};
this.onMouseMove = function () {
if (Prepared) {
pGun.Update();
}
};
this.onMouseUp = function () {
if (Started && (LockFire == false)) {
pGun.Fire();
}
};
this.UpdateScore = function () {
pLevelBar.FillFactor = (GameScore * 100) / GameScoreMax;
pScorePanel.ScoreBar.Value = TotalScore + GameScore;
};
this.menuPress = function (n) {
var _local2 = new Sound(this);
_local2.attachSound("menu_button");
_local2.start();
};
this.menuRelease = function (n) {
if (n == "Done") {
pCurrentScreen.gotoAndPlay("Stop");
}
if (n == "Play") {
pCurrentScreen.gotoAndPlay("Stop");
NewGame();
}
if (n == "NextLevel") {
if (Helper.MOCHIEVERYLEVEL == true) {
if (adISplaing != true) {
adISplaing = true;
MochiAd.showInterLevelAd({id:"132ad681e2ad9681", res:"480x360", ad_finished:gotoNextLevel});
}
} else {
gotoNextLevel();
}
}
if (n == "Submit") {
pCurrentScreen.gotoAndPlay("Stop");
SubmitMode = true;
}
if (n == "Help") {
pCurrentScreen.gotoAndPlay("Stop");
HelpMode = true;
}
if (n == "About") {
pCurrentScreen.gotoAndPlay("Stop");
AboutMode = true;
}
if (n == "MainMenu") {
pCurrentScreen.gotoAndPlay("Stop");
MainMode = true;
}
if (n == "More") {
getURL (Helper.ADSLINK, "_blank");
}
if (n == "getFull") {
getURL (Helper.DNLDLINK, "_blank");
}
if (n == "mcScores") {
this.attachMovie("mcScores", "scoreTab", this.getNextHighestDepth());
this.scoreTab.onRelease = function () {
this.removeMovieClip();
};
MochiScores.ShowScores(this.scoreTab);
}
if (n == "mcMoreGames") {
getURL (Helper.ADSLINK, "_blank");
}
};
this.menuNormal = function (n) {
};
this.menuOver = function (n) {
var _local2 = new Sound(this);
_local2.attachSound("menu_toggle");
_local2.start();
};
this.FinitLevel = function () {
for (var _local2 in this) {
if (this[_local2].canDeleted() == true) {
this[_local2].removeMovieClip();
}
}
};
this.MusicOn = function () {
MusicStatus = 1;
MusicButton.icon = "\u0407";
MusicButton.sicon = "\u0407";
MusicButton.uicon = "";
MusicButton.usicon = "";
GameMusic.setVolume(100);
};
this.MusicOff = function () {
MusicStatus = 0;
MusicButton.icon = "\u0407";
MusicButton.sicon = "\u0407";
MusicButton.uicon = "x";
MusicButton.usicon = "x";
GameMusic.setVolume(0);
};
MusicOn();
this.SoundOn = function () {
SoundStatus = 1;
MuteButton.icon = "V";
MuteButton.sicon = "V";
MuteButton.uicon = "";
MuteButton.usicon = "";
SoundVolume.setVolume(100);
MusicButton._visible = true;
};
this.SoundOff = function () {
SoundStatus = 0;
MuteButton.icon = "V";
MuteButton.sicon = "V";
MuteButton.uicon = "x";
MuteButton.usicon = "x";
SoundVolume.setVolume(0);
MusicButton._visible = false;
};
SoundOn();
Frame 6
Slime.Init();
Slime.gotoAndPlay("Stop0");
Frame 20
pCurrentScreen = this.attachMovie("MainMenu", "pMainMenu", MenuLayer);
pMainMenu._x = 0;
pMainMenu._y = 0;
pMainMenu.gotoAndPlay("Start");
pMainMenu.Play.Name = Dictionary.DICT.PLAY;
pMainMenu.Help.Name = Dictionary.DICT.HELP;
pMainMenu.About.Name = Dictionary.DICT.ABOUT;
pMainMenu.Highscores.Name = Dictionary.DICT.HIGHSCORES;
pMainMenu.mcScores.Name = Dictionary.DICT.HIGHSCORES;
if (Helper.MOCHISCORES != true) {
pMainMenu.mcScores._visible = false;
}
pMainMenu.mcMoreGames.Name = Dictionary.DICT.MORE_GAMES;
pMainMenu.MyRoot = this;
MainMode = true;
Frame 28
pPreloader.removeMovieClip();
stop();
Frame 29
pCurrentScreen = null;
pMainMenu.removeMovieClip();
if (HelpMode == true) {
gotoAndPlay ("Help");
} else if (AboutMode) {
gotoAndPlay ("About");
}
Frame 30
Intro();
MainMode = false;
Frame 47
pScorePanel.gotoAndPlay("Start");
Frame 59
Start();
stop();
Frame 60
pScorePanel.gotoAndPlay("Stop");
Frame 89
Outro();
pCurrentScreen = this.attachMovie("NextLevel", "pNextLevel", MenuLayer);
pNextLevel._x = 0;
pNextLevel._y = 0;
pNextLevel.gotoAndPlay("Start");
pNextLevel.NextLevel.Name = Dictionary.DICT.NEXT_LEVEL;
pNextLevel.More.Name = Dictionary.DICT.MORE_GAMES;
stop();
pNextLevel.MyRoot = this;
Frame 90
function doNextL() {
pNextLevel.removeMovieClip();
gotoAndPlay ("Intro");
pCurrentScreen = null;
}
doNextL();
Frame 91
Helper.PLAYERSCORE = TotalScore;
if (Helper.MOCHISCORES == true) {
MochiScores.sendScores();
}
pScorePanel.gotoAndPlay("Stop");
GameOverMode = true;
Frame 120
Outro();
Frame 121
pCurrentScreen = this.attachMovie("GameOver", "pGameOver", MenuLayer);
pGameOver._x = 0;
pGameOver._y = 0;
pGameOver.gotoAndPlay("Start");
pGameOver.getFull.Name = Dictionary.DICT.FULL_VERSION;
pGameOver.Play.Name = Dictionary.DICT.PLAY_AGAIN;
pGameOver.Help.Name = Dictionary.DICT.HELP;
pGameOver.canEnterName = true;
pGameOver.MyRoot = this;
HelpMode = false;
MainMode = false;
SubmitMode = false;
stop();
Frame 122
pGameOver.removeMovieClip();
if (HelpMode == true) {
gotoAndPlay ("Help");
} else if (AboutMode == true) {
gotoAndPlay ("About");
} else if (MainMode == true) {
gotoAndPlay ("Main0");
GameOverMode = false;
} else {
GameOverMode = false;
gotoAndPlay ("Intro");
}
pCurrentScreen = null;
Frame 123
pCurrentScreen = this.attachMovie("Help", "pHelp", MenuLayer);
pHelp._x = 0;
pHelp._y = 0;
pHelp.gotoAndPlay("Start");
pHelp.Done.Name = "BACK";
pHelp.MyRoot = this;
HelpMode = 0;
stop();
Frame 124
pHelp.removeMovieClip();
if (MainMode == true) {
gotoAndPlay ("Main0");
} else if (GameOverMode == true) {
gotoAndPlay ("Over0");
} else {
gotoAndPlay ("Win0");
}
pCurrentScreen = null;
Frame 125
pCurrentScreen = this.attachMovie("About", "pAbout", MenuLayer);
pAbout._x = 0;
pAbout._y = 0;
pAbout.gotoAndPlay("Start");
pAbout.Done.Name = "BACK";
pAbout.MyRoot = this;
AboutMode = false;
stop();
Frame 126
pAbout.removeMovieClip();
if (MainMode == true) {
gotoAndPlay ("Main0");
} else if (GameOverMode == true) {
gotoAndPlay ("Over0");
} else {
gotoAndPlay ("Win0");
}
pCurrentScreen = null;
Frame 127
pScorePanel.gotoAndPlay("Stop");
Frame 156
Outro();
Frame 157
pCurrentScreen = this.attachMovie("YouWin", "pYouWin", MenuLayer);
pYouWin._x = 0;
pYouWin._y = 0;
pYouWin.gotoAndPlay("Start");
pYouWin.More.Name = "FULL VERSION";
pYouWin.Play.Name = "PLAY AGAIN";
pYouWin.Help.Name = "HELP";
pYouWin.canEnterName = true;
pYouWin.MyRoot = this;
HelpMode = false;
MainMode = false;
SubmitMode = false;
stop();
Frame 158
pYouWin.removeMovieClip();
if (HelpMode == true) {
gotoAndPlay ("Help");
} else if (AboutMode == true) {
gotoAndPlay ("About");
} else if (MainMode == true) {
Slime.WinStatus = 0;
gotoAndPlay ("Main0");
} else {
gotoAndPlay ("Intro");
Slime.WinStatus = 0;
}
pCurrentScreen = null;
Symbol 4 MovieClip Frame 1
BlobID = 0;
BlobNum = 1000;
BlobLayer = 1000;
BlobCnt = 0;
cBlob = function () {
this.Init = function () {
this._x = 100 + random(280);
this._y = 360;
this._xscale = 50 + random(50);
this._yscale = this._xscale;
this._alpha = 20 + (((this._xscale - 50) * 80) / 50);
this.DeltaY = ((-2 - (Math.random() * 4)) * this._alpha) / 100;
this.DeltaX = ((1 - (Math.random() * 2)) * this._alpha) / 100;
this.Noise = (2 * this._alpha) / 100;
this.Phase = Math.random() * Math.PI;
this.DeltaPhase = 0.0261799387799149 + ((Math.random() * Math.PI) / 60);
this.Percents = Percents;
};
this.onEnterFrame = function () {
this._x = this._x + (this.DeltaX + (Math.sin(this.Phase) * this.Noise));
this._y = this._y + this.DeltaY;
this.Phase = this.Phase + this.DeltaPhase;
this.Percents = Percents;
if (this._y < -40) {
this.removeMovieClip();
}
};
};
cBlob.prototype = new MovieClip();
Object.registerClass("blob", cBlob);
this.MakeBlob = function () {
var _local2;
var _local3;
BlobID++;
if (BlobID > BlobNum) {
BlobID = 0;
}
_local2 = this.attachMovie("blob", ("part" + BlobLayer) + BlobID, BlobLayer + BlobID);
_local2.Init();
};
Percents = "00%";
_root.stop();
_parent.stop();
Loaded = false;
this.onEnterFrame = function () {
if (Loaded == false) {
if (BlobCnt > 0) {
BlobCnt--;
} else {
this.MakeBlob();
BlobCnt = 20 + random(20);
}
}
};
Symbol 4 MovieClip Frame 2
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
Percents = "99%";
Loaded = true;
} else {
var t = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
Percents = t + "%";
}
Symbol 4 MovieClip Frame 3
if (Loaded == false) {
gotoAndPlay ("frame1");
} else {
stop();
_parent.play();
_root.play();
}
Symbol 5 MovieClip [Preloader] Frame 25
stop();
Symbol 11 MovieClip Frame 1
this.useHandCursor = true;
this.onRelease = function () {
getURL (_root.ADSLINK, "_blank");
};
stop();
Symbol 34 MovieClip [mc_ADS] Frame 1
#initclip 11
Object.registerClass("mc_ADS", mc_ADS);
#endinitclip
Symbol 461 MovieClip [__Packages.Helper] Frame 0
class Helper
{
function Helper () {
}
static function getRoot() {
var _local2 = _root._url;
if (_local2.indexOf("file:") != -1) {
_local2 = "localFile";
}
return(_local2);
}
static var LANGUAGE = "ENG";
static var SHOWMOCHIPRELOAD = true;
static var MOCHIEVERYLEVEL = false;
static var HASMOCHIBOT = true;
static var MOCHIADID = "132ad681e2ad9681";
static var HASSCORES = true;
static var INGAMECLICK = true;
static var GAMEID = "AquaBubbleOnline";
static var GOTOPATH = "http://realore.com";
static var DOWNLOADPATH = "http://realore.com/aqua";
static var SHOWMOCHIADS = true;
static var MOCHISCORES = true;
static var ADSLINK = (((("http://realore.com/bitrix/redirect.php?event1=FLA_ADS&event2=" + getRoot()) + "&event3=") + GAMEID) + "&goto=") + GOTOPATH;
static var DNLDLINK = (((("http://realore.com/bitrix/redirect.php?event1=FLA_GET&event2=" + getRoot()) + "&event3=") + GAMEID) + "&goto=") + DOWNLOADPATH;
}
Symbol 462 MovieClip [__Packages.Dictionary] Frame 0
class Dictionary
{
static var DICT;
function Dictionary () {
}
static function Сreate() {
DICT = new Array();
switch (Helper.LANGUAGE) {
case "ENG" :
DICT.PLAY = "PLAY";
DICT.HELP = "HELP";
DICT.ABOUT = "ABOUT";
DICT.MORE_GAMES = "MORE GAMES";
DICT.FULL_VERSION = "FULL VERSION";
DICT.PLAY_AGAIN = "PLAY AGAIN";
DICT.HIGHSCORES = "HIGHSCORES";
DICT.NEXT_LEVEL = "NEXT LEVEL";
DICT.LEVEL = "LEVEL";
DICT.SCORES = "SCORES";
DICT.TIME = "TIME";
DICT.YOUR_SCORE = "YOUR SCORE";
DICT.FETCHING = "Fetching highscores...";
DICT.CLICKLEFT = "Click left button to exit";
DICT.GOTO = "WWW.REALORE.COM";
DICT.FULL = "GET FULL";
DICT.MORE_GAMES = "MORE GAMES";
return;
case "RUS" :
DICT.PLAY = "\u0418\u0413\u0420\u0410\u0422\u042C";
DICT.HELP = "\u041F\u041E\u041C\u041E\u0429\u042C";
DICT.ABOUT = "\u041E\u0411 \u0418\u0413\u0420\u0415";
DICT.FULL_VERSION = "\u041F\u041E\u041B\u041D. \u0412\u0415\u0420\u0421.";
DICT.PLAY_AGAIN = "\u041F\u0415\u0420\u0415\u0418\u0413\u0420\u0410\u0422\u042C";
DICT.HIGHSCORES = "\u0414\u041E\u0421\u0422\u0418\u0416\u0415\u041D\u0418\u042F";
DICT.NEXT_LEVEL = "\u0418\u0413\u0420\u0410\u0422\u042C";
DICT.LEVEL = "\u0423\u0420\u041E\u0412\u0415\u041D\u042C";
DICT.SCORES = "\u041E\u0427\u041A\u0418";
DICT.TIME = "\u0412\u0420\u0415\u041C\u042F";
DICT.YOUR_SCORE = "\u0412\u0410\u0428 \u0421\u0427\u0415\u0422";
DICT.FETCHING = "\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u0434\u0430\u043D\u043D\u044B\u0445...";
DICT.CLICKLEFT = "\u0414\u043B\u044F \u0432\u044B\u0445\u043E\u0434\u0430, \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043B\u0435\u0432\u0443\u044E \u043A\u043D\u043E\u043F\u043A\u0443";
DICT.GOTO = "WWW.REALORE.RU";
DICT.FULL = "\u041F\u041E\u041B\u041D\u0410\u042F \u0412\u0415\u0420\u0421\u0418\u042F";
DICT.MORE_GAMES = "\u0414\u0420\u0423\u0413\u0418\u0415 \u0418\u0413\u0420\u042B";
}
}
}
Symbol 463 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.2");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
}
return(_local4);
}
}
Symbol 464 MovieClip [__Packages.mc_ADS] Frame 0
class mc_ADS extends MovieClip
{
static var hasChild, CLICKURL, exFunc, exCaller, exArgs, CLIPINSTANCE, remId, clockId, clockTxt;
var createEmptyMovieClip, onRelease, removeMovieClip, attachBitmap;
function mc_ADS () {
super();
}
static function showIngameAds(mc_Parent, aFunc, aCaller, aArgs, aChild, clockLength, bitmapName, url) {
hasChild = false;
CLICKURL = url;
var _local3 = mc_Parent.attachMovie("mc_ADS", "mc_ADS1", mc_Parent.getNextHighestDepth(), {_alpha:0});
if (clockLength != undefined) {
CLOCKLENGTH = clockLength;
}
if (aChild != undefined) {
var _local5 = mc_Parent.mc_ADS1.attachMovie(aChild, aChild + "1", CHILDDEPTH);
}
_local3.create(aFunc, aCaller, aArgs, bitmapName);
}
function create(aFunc, aCaller, aArgs, aBitmapName) {
exFunc = aFunc;
exCaller = aCaller;
exArgs = aArgs;
if (addBitmap(aBitmapName)) {
CLIPINSTANCE = this;
remId = setInterval(this, "removeIt", CLOCKLENGTH);
clockId = setInterval(this, "showClock", 1000);
clockTxt = createEmptyMovieClip("mc_Clock", CLOCKDEPTH);
var _local2 = clockTxt.createTextField("mc_txt", 0, Stage.width - 50, 0, 50, 30);
var _local3 = new TextFormat();
_local3.bold = true;
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
_local2.selectable = false;
_local2.text = String(CLOCKLENGTH / 1000);
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_alpha", [100], 1, mx.transitions.easing.Regular.easeIn, 0);
} else {
removeIt();
}
if (Helper.INGAMECLICK == true) {
if (hasChild == false) {
onRelease = function () {
this.getURL(Helper.ADSLINK, "_blank");
};
}
}
}
function showClock() {
if ((Number(CLIPINSTANCE.mc_Clock.mc_txt.text) - 1) >= 10) {
CLIPINSTANCE.mc_Clock.mc_txt.text = String(Number(CLIPINSTANCE.mc_Clock.mc_txt.text) - 1);
} else {
CLIPINSTANCE.mc_Clock.mc_txt.text = "0" + String(Number(CLIPINSTANCE.mc_Clock.mc_txt.text) - 1);
}
}
function removeIt() {
exFunc.apply(exCaller, exArgs);
clearInterval(remId);
clearInterval(clockId);
removeMovieClip();
}
function addBitmap(aName) {
var _local3;
if (aName == undefined) {
_local3 = "splash" + LASTNUM;
} else {
_local3 = aName;
}
LASTNUM++;
if (LASTNUM > 3) {
LASTNUM = 1;
}
var _local2 = flash.display.BitmapData.loadBitmap(_local3);
if (_local2 == undefined) {
return(false);
}
attachBitmap(_local2, BITMAPDEPTH);
return(true);
}
static var CLOCKDEPTH = 1000;
static var CHILDDEPTH = 100;
static var BITMAPDEPTH = 50;
static var LASTNUM = 1;
static var CLOCKLENGTH = 7000;
}
Symbol 465 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] Frame 0
class com.mosesSupposes.fuse.FuseKitCommon
{
static var logOutput;
function FuseKitCommon () {
}
static function _cts() {
return("|_tint|_tintPercent|_brightness|_brightOffset|_contrast|_invertColor|_colorReset|_colorTransform|");
}
static function _resetTo100() {
return("|_alpha|_contrast|_invertColor|_tintPercent|_xscale|_yscale|_scale|");
}
static function _resetTo0() {
return("|_brightness|_brightOffset|_colorReset|_rotation|");
}
static function _underscoreable() {
return(_cts() + "_frame|_x|_y|_xscale|_yscale|_scale|_width|_height|_size|_rotation|_alpha|_fade|_visible|");
}
static function _cbprops() {
return("|skipLevel|cycles|roundResults|extra1|extra2|func|scope|args|startfunc|startscope|startargs|updfunc|updscope|updargs|");
}
static function _fuseEvents() {
return("|onStart|onStop|onPause|onResume|onAdvance|onComplete|");
}
static function _fuseprops() {
return("|command|label|delay|event|eventparams|target|addTarget|trigger|startAt|ease|easing|seconds|duration|time|");
}
static function _validateFuseCommand(c, inGroup, hasArg, outputLevel, simple) {
var _local1 = false;
var _local2 = false;
switch (c) {
case "start" :
case "stop" :
case "pause" :
case "resume" :
case "setStartProps" :
if (inGroup != true) {
_local1 = true;
}
break;
case "delay" :
case "trigger" :
if (simple == true) {
if (hasArg == true) {
_local1 = true;
}
} else {
_local2 = true;
}
inGroup = false;
break;
case "skipTo" :
if (!((hasArg == true) && (inGroup != true))) {
break;
}
_local1 = true;
}
if ((outputLevel > 0) && (_local1 == false)) {
error("109", c, inGroup, _local2);
}
return(_local1);
}
static function output(s) {
if (typeof(logOutput) == "function") {
logOutput(s);
}
}
static function error(errorCode) {
var _local3 = arguments[1];
var _local4 = arguments[2];
var _local6 = arguments[3];
if (VERBOSE != true) {
output(("[FuseKitCommon#" + errorCode) + "]");
return(undefined);
}
var _local2 = "";
var _local5 = newline;
switch (errorCode) {
case "001" :
_local2 = _local2 + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **";
_local2 = _local2 + (_local5 + " import com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local5 + " ZigoEngine.simpleSetup(Shortcuts);") + _local5);
break;
case "002" :
_local2 = _local2 + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **";
break;
case "003" :
_local2 = _local2 + ((_local5 + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _local5);
break;
case "004" :
_local2 = _local2 + (("** ZigoEngine.doTween - too few arguments [" + _local3) + "].");
if (Boolean(_local4) == true) {
_local2 = _local2 + " If you are trying to use Object Syntax without Fuse, pass FuseItem in your register() or simpleSetup() call. **";
} else {
_local2 = _local2 + " Object syntax call failed. **";
}
break;
case "005" :
_local2 = _local2 + (((("** ZigoEngine.doTween - missing targets[" + _local3) + "] and/or props[") + _local4) + "] **");
break;
case "006" :
_local2 = _local2 + (("** Error: easing shortcut string not recognized (\"" + _local3) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **");
break;
case "007" :
_local2 = _local2 + (((("- ZigoEngine: Target locked [" + _local3) + "], ignoring tween call [") + _local4) + "]");
break;
case "008" :
_local2 = _local2 + "** You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "009" :
_local2 = _local2 + (("** ZigoEngine: A callback parameter \"" + _local3) + "\" was not recognized. **");
break;
case "010" :
_local2 = _local2 + ((((("** " + ((_local3 == true) ? "ZigoEngine" : "FuseItem")) + " unable to parse ") + ((_local4 == 1) ? "callback[" : (String(_local4) + " callbacks["))) + _local6) + "]. Try using the syntax {scope:this, func:\"myFunction\"} **");
break;
case "011" :
_local2 = _local2 + (((("- ZigoEngine: Callbacks discarded via skipLevel 2 option [" + _local3) + "|") + _local4) + "].");
break;
case "012" :
_local2 = _local2 + (((((("- Engine set props or ignored no-change tween on: " + _local3) + ", props passed:[") + _local4) + "], endvals passed:[") + _local6) + "]");
break;
case "013" :
_local2 = _local2 + (((((("- Engine added tween on:\n\ttargets:[" + _local3) + "]\n\tprops:[") + _local4) + "]\n\tendvals:[") + _local6) + "]");
break;
case "014" :
_local2 = _local2 + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **";
break;
case "015" :
_local2 = _local2 + "** Error: The CustomEasing class must be passed during setup (register or simpleSetup) to use custom easing Arrays. **";
break;
case "016" :
_local2 = _local2 + (("[ ZigoEngine.TIME_MULTIPLIER: " + String(Number(Number(_local3) * 100))) + "% ]");
break;
case "101" :
_local2 = _local2 + "** ERROR: Fuse simpleSetup was removed in version 2.0! **";
_local2 = _local2 + (_local5 + " You must now use the following commands:");
_local2 = _local2 + ((_local5 + _local5) + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + (_local5 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);");
_local2 = _local2 + ((_local5 + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _local5);
break;
case "102" :
_local2 = _local2 + (((("** Fuse " + _local3) + " index or label not found (") + _local4) + ") or out of range. **");
break;
case "103" :
_local2 = _local2 + (((("** Fuse skipTo (" + _local3) + ") ignored - targets the current index (") + _local4) + "). **");
break;
case "104" :
_local2 = _local2 + (("** Fuse fastForward index out of play range (" + _local3) + ") - skipTo has been called instead. **");
break;
case "105" :
_local2 = _local2 + "** An unsupported Array method was called on Fuse. **";
break;
case "106" :
_local2 = _local2 + "** ERROR: You have not set up Fuse correctly. **";
_local2 = _local2 + (_local5 + "You must now use the following commands (PennerEasing is optional).");
_local2 = _local2 + (_local5 + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local5 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _local5);
break;
case "107" :
_local2 = _local2 + "** Fuse :: id not found - Aborting open(). **";
break;
case "108" :
_local2 = _local2 + "** Fuse.startRecent: No recent Fuse found to start! **";
break;
case "109" :
_local2 = _local2 + (("** Command \"" + _local3) + "\" discarded. ");
if (_local4 == true) {
_local2 = _local2 + "Not allowed within a group. **";
} else if (_local6 == true) {
_local2 = _local2 + (("Not supported in Object Syntax, use the " + _local3) + " property instead. **");
} else {
_local2 = _local2 + "The command may be unrecognized or missing an argument. **";
}
break;
case "110" :
_local2 = _local2 + (((("** " + _local3) + " illegal Fuse property discarded:\"") + _local4) + "\". Bezier keywords other than x and y cannot be set as start values. **");
break;
case "112" :
_local2 = _local2 + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **";
break;
case "113" :
_local2 = _local2 + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **";
break;
case "115" :
_local2 = _local2 + ((_local3 + " overlapping prop discarded: ") + _local4);
break;
case "116" :
_local2 = _local2 + ("** FuseItem Error: Delays within groups (arrays) and start/update callbacks are not supported when using Fuse without ZigoEngine. Although you need to restructure your Fuse, it should be possible to achieve the same results. **" + _local5);
break;
case "117" :
_local2 = _local2 + (("** " + _local3) + ": infinite cycles are not allowed within Fuses - discarded. **");
break;
case "118" :
_local2 = _local2 + ((("** " + _local3) + ": No targets found!") + ((_local4 == true) ? " [Unable to set start props] **" : " [Skipping tween parameters in this action] **"));
break;
case "119" :
_local2 = _local2 + ((((("** " + _local3) + ": ") + ((_local4 == 1) ? "" : (_local4 + " actions in the group"))) + " missing targets") + ((_local6 == true) ? " during setStartProps **" : " **"));
break;
case "120" :
_local2 = _local2 + (((("** " + _local3) + ": conflict with \"") + _local4) + "\". Property might be doubled within a grouped-action array. **");
break;
case "121" :
_local2 = _local2 + "** Fuse timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **";
break;
case "122" :
_local2 = _local2 + (("** Event \"" + _local3) + "\" reserved by Fuse. **");
break;
case "123" :
_local2 = _local2 + (("** A Fuse event parameter failed in " + _local3) + " **");
break;
case "124" :
_local2 = _local2 + (((("** " + _local3) + ": trigger:") + _local4) + " ignored - only one trigger is allowed per action **");
break;
case "125" :
_local2 = _local2 + (_local3 + " Warning - fastForward hit an item during its tween cycle, may malfunction.");
break;
case "201" :
_local2 = _local2 + (("**** FuseFMP cannot initialize argument " + _local3) + " (BitmapFilters cannot be applied to this object type) ****");
break;
case "202" :
_local2 = _local2 + (((("** FuseFMP error: A " + _local3) + " could not be created for ") + _local4) + " **");
break;
case "203" :
_local2 = _local2 + (("** FuseFMP.setFilterProps - too few arguments passed (" + _local3) + ") - minimum 2 required. **");
break;
case "204" :
_local2 = _local2 + (("** FuseFMP.setFilterProps could not locate the filter passed. (" + _local3) + ") **");
}
output(_local2);
}
static function parseCallback(callback, targets, outputLevel, callerIsEngine, addprefix) {
if (callback._vcb == true) {
return(callback);
}
var validCBs = {_vcb:true, skipLevel:_global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL, cycles:1};
if (callback == undefined) {
return(validCBs);
}
var cbErrors = [];
if (typeof(callback) == "object") {
if (((callback.skipLevel != undefined) && (typeof(callback.skipLevel) == "number")) && (callback.skipLevel != _global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL)) {
if ((callback.skipLevel >= 0) && (callback.skipLevel <= 2)) {
validCBs.skipLevel = callback.skipLevel;
}
}
if (callback.cycles != undefined) {
if ((typeof(callback.cycles) == "number") && (callback.cycles > -1)) {
validCBs.cycles = callback.cycles;
} else if (callback.cycles.toUpperCase() == "LOOP") {
validCBs.cycles = 0;
}
}
if (callback.extra1 != undefined) {
validCBs.extra1 = callback.extra1;
}
if (callback.extra2 != undefined) {
validCBs.extra2 = callback.extra2;
}
if ((callback.roundResults === true) || (callback.roundResults === false)) {
validCBs.roundResults = callback.roundResults;
}
} else {
callback = {func:callback};
}
var prefixes = ["start", "upd", ""];
var easyfuncparse = _global.com.mosesSupposes.fuse.Shortcuts.parseStringTypeCallback;
for (var i in prefixes) {
var prefix = prefixes[i];
var fstr = callback[prefix + "func"];
if (((fstr != undefined) && (typeof(fstr) == "string")) && (fstr.indexOf("(") > -1)) {
if (easyfuncparse != undefined) {
var efc = easyfuncparse(fstr);
if (efc.func != undefined) {
callback[prefix + "scope"] = efc.scope;
callback[prefix + "func"] = efc.func;
callback[prefix + "args"] = efc.args;
}
} else if (outputLevel > 0) {
error("008");
}
}
}
var basescope = callback.scope;
for (var i in callback) {
var fi = i.toLowerCase().indexOf("func");
if (fi > -1) {
var prefix = i.slice(0, fi);
var func = callback[i];
var args = callback[prefix + "args"];
var scope = ((callback[prefix + "scope"] == undefined) ? (basescope) : (callback[prefix + "scope"]));
if ((typeof(func) == "string") && (scope[func] == undefined)) {
for (var j in targets) {
var targ = targets[j];
if (typeof(targ[func]) == "function") {
scope = targ;
break;
}
if (typeof(targ._parent[func]) == "function") {
scope = targ._parent;
break;
}
}
if ((scope == undefined) && (_level0[func] != undefined)) {
scope = _level0;
}
if ((scope == undefined) && (_global[func] != undefined)) {
scope = _global;
}
}
if (typeof(func) != "function") {
if (typeof(scope[String(func)]) == "function") {
func = scope[String(func)];
} else {
func = eval (String(func));
}
}
if (func == undefined) {
cbErrors.push(String((((((((addprefix == null) ? (i) : (addprefix + i)) + ":") + ((typeof(callback[i]) == "string") ? (("\"" + callback[i]) + "\"") : (callback[i]))) + "/") + prefix) + "scope:") + scope));
} else {
if ((args != undefined) && (!(args instanceof Array))) {
args = [args];
}
if (prefix == "") {
prefix = "end";
}
validCBs[prefix] = {s:scope, f:func, a:args};
if (callerIsEngine == true) {
validCBs[prefix].id = ++cbTicker;
}
if (prefix == "start") {
validCBs.start.fired = false;
}
}
} else if (_cbprops().indexOf(("|" + i) + "|") == -1) {
error("009", i);
}
}
if ((cbErrors.length > 0) && (outputLevel > 0)) {
if (outputLevel > 0) {
error("010", callerIsEngine, cbErrors.length, cbErrors.toString());
}
}
return(validCBs);
}
static var VERSION = "Fuse Kit 2.1.3r1 Copyright (c) 2006 Moses Gunesch, MosesSupposes.com under MIT Open Source License";
static var VERBOSE = true;
static var ALL = "ALL";
static var ALLCOLOR = "ALLCOLOR";
static var cbTicker = 0;
}
Symbol 466 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0
class com.mosesSupposes.fuse.ZigoEngine
{
static var extensions, updateTime, tweenHolder, instance, _listeners, broadcastMessage, updateIntId;
function ZigoEngine () {
}
static function addListener(handler) {
AsBroadcaster.initialize(com.mosesSupposes.fuse.ZigoEngine);
addListener(handler);
}
static function removeListener(handler) {
}
static function isPlaying() {
return(_playing);
}
static function simpleSetup(shortcutsClass) {
if (arguments.length > 0) {
register.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
}
_global.ZigoEngine = com.mosesSupposes.fuse.ZigoEngine;
if (extensions.fuse != undefined) {
_global.Fuse = extensions.fuse;
}
if (extensions.fuseFMP != undefined) {
extensions.fuseFMP.simpleSetup();
}
initialize(MovieClip.prototype, Button.prototype, TextField.prototype);
if (extensions.shortcuts == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("001");
}
}
static function register(classReference) {
if (extensions == undefined) {
extensions = {};
}
var _local3 = "|fuse|fuseItem|fuseFMP|shortcuts|pennerEasing|customEasing|";
for (var _local4 in arguments) {
var _local2 = arguments[_local4].registryKey;
if ((extensions[_local2] == undefined) && (_local3.indexOf(("|" + _local2) + "|") > -1)) {
extensions[_local2] = arguments[_local4];
if ((_local2 == "fuseFMP") || (_local2 == "shortcuts")) {
Object(extensions[_local2]).initialize();
}
}
}
}
static function initialize(target) {
if (arguments.length > 0) {
initializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.addShortcutsTo.apply(extensions.shortcuts, arguments);
}
}
}
static function deinitialize(target) {
if ((arguments.length == 0) || (target == null)) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
deinitializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.removeShortcutsFrom.apply(extensions.shortcuts, arguments);
}
}
static function getUpdateInterval() {
return(updateTime);
}
static function setUpdateInterval(time) {
if (_playing) {
setup(true);
updateTime = time;
setup();
} else {
updateTime = time;
}
}
static function getControllerDepth() {
return(tweenHolder.getDepth());
}
static function setControllerDepth(depth) {
if ((depth == null) || (_global.isNaN(depth) == true)) {
depth = 6789;
}
if (Object(tweenHolder).proof != null) {
tweenHolder.swapDepths(depth);
} else {
tweenHolder = _root.createEmptyMovieClip("ZigoEnginePulse", depth);
}
}
static function doShortcut(targets, methodName) {
if (extensions.shortcuts == undefined) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("002");
}
return(null);
}
return(extensions.shortcuts.doShortcut.apply(extensions.shortcuts, arguments));
}
static function doTween(targets, props, endvals, seconds, ease, delay, callback) {
if (extensions.fuse.addBuildItem(arguments) == true) {
return(null);
}
if (TIME_MULTIPLIER != prevTimeMult) {
TIME_MULTIPLIER = Math.abs(TIME_MULTIPLIER);
if (_global.isNaN(TIME_MULTIPLIER) == true) {
TIME_MULTIPLIER = 1;
}
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("016", TIME_MULTIPLIER);
}
prevTimeMult = TIME_MULTIPLIER;
}
if ((instance == undefined) || ((Object(tweenHolder).proof == undefined) && (updateTime == undefined))) {
if ((MovieClip.prototype.tween != null) && (typeof(_global.$tweenManager) == "object")) {
com.mosesSupposes.fuse.FuseKitCommon.error("003");
}
instance = new com.mosesSupposes.fuse.ZManager();
_playing = false;
}
var _local4 = instance.paramsObj(targets, props, endvals, true);
var _local7 = (((_local4.tg[0] == null) || (_local4.tg.length == 0)) ? undefined : (_local4.tg));
if (((_local4.pa == undefined) || (_local7 == undefined)) || (arguments.length < 3)) {
if (((extensions.fuseItem != null) && (arguments.length == 1)) && (typeof(arguments[0]) == "object")) {
return(extensions.fuseItem.doTween(arguments[0]));
}
if (OUTPUT_LEVEL > 0) {
if (arguments.length < 3) {
com.mosesSupposes.fuse.FuseKitCommon.error("004", (((arguments.length == 1) && (arguments[0] == null)) ? "1 (null)" : (String(arguments.length))), Boolean(extensions.fuseItem == null));
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("005", _local7.toString(), _local4.pa.toString());
}
}
return(null);
}
if (_playing != true) {
setup();
}
if ((seconds == null) || (_global.isNaN(seconds) == true)) {
seconds = DURATION || 1;
} else if (seconds < 0.01) {
seconds = 0;
}
seconds = seconds * TIME_MULTIPLIER;
if (((delay < 0.01) || (delay == null)) || (_global.isNaN(delay) == true)) {
delay = 0;
}
delay = delay * TIME_MULTIPLIER;
var _local12 = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(callback, _local7, OUTPUT_LEVEL, true);
var _local9;
if (typeof(ease) == "function") {
if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") {
_local9 = Function(ease);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("014", ease);
}
} else if ((ease == null) || (ease == "")) {
if (EASING instanceof Function) {
_local9 = Function(EASING);
} else if (extensions.pennerEasing != undefined) {
ease = EASING;
}
}
if ((typeof(ease) == "string") && (ease != "")) {
if (extensions.pennerEasing[ease] != undefined) {
_local9 = extensions.pennerEasing[ease];
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("006", ease);
}
} else if (ease instanceof Array) {
if (extensions.customEasing != undefined) {
_local12.extra1 = ease;
if (typeof(ease[0]) == "number") {
_local9 = extensions.customEasing.precalced;
} else {
_local9 = extensions.customEasing.fromCurve;
}
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("015", ease);
}
}
if (typeof(_local9) != "function") {
_local9 = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
}
if (_listeners.length > 0) {
broadcastMessage.call(com.mosesSupposes.fuse.ZigoEngine, "onTweenAdd", _local7, _local4.pa, _local4.va, seconds, _local9, delay, _local12);
}
var _local6 = "";
for (var _local13 in _local7) {
var _local3 = _local7[_local13];
if (_local3.__zigoID__ == null) {
initializeTargets(_local3);
} else if (instance.getStatus("locked", _local3) == true) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("007", ((_local3._name != undefined) ? (_local3._name) : (_local3.toString())), _local4.pa.toString());
}
continue;
}
var _local5 = instance.addTween(_local3, _local4.pa, _local4.va, seconds, _local9, delay, _local12);
_local6 = ((_local5 == null) ? "|" : (_local5 + "|")) + _local6;
}
_local6 = _local6.slice(0, -1);
return((((_local6 == "") || (_local6 == "|")) ? null : (_local6)));
}
static function removeTween(targs, props) {
instance.removeTween(targs, props);
}
static function isTweening(targ, prop) {
return(Boolean(instance.getStatus("active", targ, prop)));
}
static function getTweens(targ) {
if (instance == undefined) {
return(0);
}
return(Number(instance.getStatus("count", targ)));
}
static function lockTween(targ, setLocked) {
instance.alterTweens("lock", targ, setLocked == true);
}
static function isTweenLocked(targ) {
return(Boolean(instance.getStatus("locked", targ)));
}
static function ffTween(targs, props, suppressEndEvents) {
instance.alterTweens("ff", targs, props, null, suppressEndEvents);
}
static function skipTweenTo(seconds, targs, props) {
instance.alterTweens("skipTo", targs, props, false, false, seconds);
}
static function rewTween(targs, props, pauseFlag, suppressStartEvents) {
instance.alterTweens("rewind", targs, props, pauseFlag, suppressStartEvents);
}
static function isTweenPaused(targ, prop) {
return(Boolean(instance.getStatus("paused", targ, prop)));
}
static function pauseTween(targs, props) {
instance.alterTweens("pause", targs, props);
}
static function unpauseTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function resumeTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function setColorByKey(targetObj, type, amt, rgb) {
new Color(targetObj).setTransform(getColorTransObj(type, amt, rgb));
}
static function getColorTransObj(type, amt, rgb) {
switch (type) {
case "brightness" :
var _local3 = 100 - Math.abs(amt);
var _local4 = ((amt > 0) ? (255 * (amt / 100)) : 0);
return({ra:_local3, rb:_local4, ga:_local3, gb:_local4, ba:_local3, bb:_local4});
case "brightOffset" :
return({ra:100, rb:255 * (amt / 100), ga:100, gb:255 * (amt / 100), ba:100, bb:255 * (amt / 100)});
case "contrast" :
return({ra:amt, rb:128 - (1.28 * amt), ga:amt, gb:128 - (1.28 * amt), ba:amt, bb:128 - (1.28 * amt)});
case "invertColor" :
return({ra:100 - (2 * amt), rb:amt * 2.55, ga:100 - (2 * amt), gb:amt * 2.55, ba:100 - (2 * amt), bb:amt * 2.55});
case "tint" :
if (rgb == null) {
break;
}
var _local5;
if (typeof(rgb) == "string") {
if (rgb.charAt(0) == "#") {
rgb = rgb.slice(1);
}
rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb));
}
_local5 = Number(rgb);
return({ra:100 - amt, rb:(_local5 >> 16) * (amt / 100), ga:100 - amt, gb:((_local5 >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(_local5 & 255) * (amt / 100)});
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
}
static function getColorKeysObj(targOrTransObj) {
var _local1 = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform()));
var _local6 = (_local1.ra == _local1.ga) && (_local1.ga == _local1.ba);
var _local8 = (_local1.rb == _local1.gb) && (_local1.gb == _local1.bb);
var _local3 = {tintPercent:Number(((_local6 == true) ? (100 - _local1.ra) : 0))};
if (_local3.tintPercent != 0) {
var _local5 = 100 / _local3.tintPercent;
_local3.tint = (((_local1.rb * _local5) << 16) | ((_local1.gb * _local5) << 8)) | (_local1.bb * _local5);
var _local2 = _local3.tint.toString(16);
var _local4 = 6 - _local2.length;
while ((_local4--) > 0) {
_local2 = "0" + _local2;
}
_local3.tintString = "0x" + _local2.toUpperCase();
}
if ((_local6 == true) && (_local8 == true)) {
if (_local1.ra < 0) {
_local3.invertColor = _local1.rb * 0.392156862745098;
} else if ((_local1.ra == 100) && (_local1.rb != 0)) {
_local3.brightOffset = _local1.rb * 0.392156862745098;
}
if (_local1.ra != 100) {
if ((_local1.rb == 0) || ((_local1.rb != 0) && (((255 * ((100 - _local1.ra) / 100)) - _local1.rb) <= 1))) {
_local3.brightness = ((_local1.rb != 0) ? (100 - _local1.ra) : (_local1.ra - 100));
}
if (((128 - (1.28 * _local1.ra)) - _local1.rb) <= 1) {
_local3.contrast = _local1.ra;
}
}
}
return(_local3);
}
static function initializeTargets() {
for (var _local5 in arguments) {
var _local4 = arguments[_local5];
if ((((_local4 == MovieClip.prototype) || (_local4 == Button.prototype)) || (_local4 == TextField.prototype)) || (_local4 == Object.prototype)) {
if (_local4.oldAddListener == undefined) {
if (_local4 == TextField.prototype) {
_local4.oldAddListener = _local4.addListener;
_global.ASSetPropFlags(_local4, "oldAddListener", 7, 1);
}
_local4.addListener = function (o) {
if (this.__zigoID__ == undefined) {
com.mosesSupposes.fuse.ZigoEngine.initializeTargets(this);
}
if (this instanceof TextField) {
Function(this.oldAddListener).call(this, o);
} else {
this.addListener(o);
}
};
if (_local4 == MovieClip.prototype) {
_global.ASSetPropFlags(_local4, "addListener", 7, 1);
}
}
} else if (_local4.__zigoID__ == undefined) {
_local4.__zigoID__ = zigoIDs;
_global.ASSetPropFlags(_local4, "__zigoID__", 7, 1);
zigoIDs++;
if ((_local4._listeners == null) || (_local4.addListener == null)) {
AsBroadcaster.initialize(_local4);
}
}
}
}
static function deinitializeTargets() {
for (var _local4 in arguments) {
var _local3 = arguments[_local4];
if (_local3.__zigoID__ != undefined) {
_global.ASSetPropFlags(_local3, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2);
delete _local3.__zigoID__;
delete _local3._listeners;
delete _local3.broadcastMessage;
delete _local3.addListener;
delete _local3.removeListener;
}
if (_local3.oldAddListener != undefined) {
_global.ASSetPropFlags(_local3, "oldAddListener", 0, 2);
_local3.addListener = _local3.oldAddListener;
delete _local3.oldAddListener;
}
}
}
static function __mgrRelay(inst, method, args) {
if (inst == instance) {
Function(com.mosesSupposes.fuse.ZigoEngine[method]).apply(com.mosesSupposes.fuse.ZigoEngine, args);
}
}
static function setup(deinitFlag) {
if (deinitFlag == true) {
_playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
return(undefined);
}
instance.cleanUp();
clearInterval(updateIntId);
delete updateIntId;
if ((updateTime != null) && (updateTime > 0)) {
updateIntId = setInterval(instance, "update", updateTime);
} else {
if (Object(tweenHolder).proof == null) {
setControllerDepth(6789);
Object(tweenHolder).proof = 1;
}
var _inst = instance;
tweenHolder.onEnterFrame = function () {
_inst.update.call(_inst);
};
}
_playing = true;
instance.now = getTimer();
}
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION + ", ZigoEngine based on concepts by L.Zigo";
static var EASING = "easeOutQuint";
static var DURATION = 1;
static var TIME_MULTIPLIER = 1;
static var ROUND_RESULTS = false;
static var OUTPUT_LEVEL = 1;
static var AUTOSTOP = false;
static var SKIP_LEVEL = 0;
static var _playing = false;
static var zigoIDs = 0;
static var prevTimeMult = 1;
}
Symbol 467 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] Frame 0
class com.mosesSupposes.fuse.ZManager
{
var tweens, now;
function ZManager () {
tweens = {};
numTweens = 0;
}
function addTween(obj, props, endvals, seconds, ease, delay, callback) {
var _local24 = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel));
var _local44 = ((callback.cycles == undefined) ? 1 : (callback.cycles));
var _local30 = callback.extra1;
var _local29 = callback.extra2;
var _local23 = [];
var _local14 = _global.com.mosesSupposes.fuse.FuseFMP;
var _local43 = String(("|" + _local14.getAllShortcuts().join("|")) + "|");
var _local42 = com.mosesSupposes.fuse.FuseKitCommon._cts();
var _local25 = "";
var _local28 = "";
var _local22 = obj.__zigoID__;
var _local7 = tweens[String(_local22)];
if ((_local7 != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) {
if (obj._listeners.length > 0) {
for (var _local40 in _local7.props) {
_local23.unshift(_local40);
}
}
_local7.numProps = 0;
cleanUp(true);
}
for (var _local47 in props) {
var _local5 = props[_local47];
var _local4 = endvals[_local47];
var _local15 = 0;
if (_local5 == "_fade") {
_local5 = "_alpha";
_local15 = ((_local4 < 50) ? -1 : 1);
}
var _local16 = _local42.indexOf(("|" + _local5) + "|") > -1;
var _local18 = _local7.colorProp;
if (_local7 != undefined) {
if ((_local16 == true) && (_local18 != undefined)) {
_local23.unshift(_local18);
delete _local7.props[_local18];
delete _local7.colorProp;
_local7.numProps--;
} else if (_local7.props[_local5] != undefined) {
_local23.unshift(_local5);
delete _local7[_local5];
_local7.numProps--;
}
}
var _local3 = {c:-1, fmp:-1, complex:-1};
var _local11 = ((_local24 == 0) && ((seconds + delay) == 0)) || ((_local24 > 0) && (seconds == 0));
var _local10 = false;
var _local13 = (_local14 != undefined) && (_local43.indexOf(("|" + _local5) + "|") > -1);
var _local19 = (_local5.toLowerCase().indexOf("colors") > -1) && (_local4 instanceof Array);
var _local27 = ((_local13 == true) && (_local5.indexOf("lor") > -1)) && (_local5.charAt(2) != "l");
if (_local13 == true) {
_local3.fmp = _local14;
_local3.ps = _local14.getFilterProp(obj, _local5, true);
_local3.special = true;
}
if (((_local16 == true) || (_local19 == true)) || (_local27 && (_local11 == false))) {
_local3.complex = 1;
if (_local16 == true) {
_local3.c = new Color(obj);
_local3.ps = Color(_local3.c).getTransform();
var _local17 = ((((_local5 == "_tint") || (_local5 == "_tintPercent")) || (_local5 == "_colorReset")) ? "tint" : (_local5.slice(1)));
var _local9 = null;
var _local12 = null;
if (_local5 != "_colorTransform") {
if (_local17 == "tint") {
if (typeof(_local4) == "object") {
_local12 = _local4.tint;
_local9 = ((_global.isNaN(_local4.percent) == true) ? 100 : (_local4.percent));
} else if ((_local5 == "_tintPercent") || (_local5 == "_colorReset")) {
var _local20 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent;
if (_local5 == "_colorReset") {
_local9 = Math.min(_local20, 100 - Math.abs(Number(_local4)));
} else {
_local9 = ((typeof(_local4) == "string") ? ((_local20 || 0) + Number(_local4)) : Number(_local4));
}
_local9 = Math.max(0, Math.min(_local9, 100));
_local12 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0;
} else {
_local12 = _local4;
_local9 = 100;
}
} else {
_local9 = ((typeof(_local4) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[_local17] || 0) + Number(_local4)) : (_local4));
}
_local4 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(_local17, _local9, _local12);
}
if (_local11 == true) {
if (_local5 == "_colorTransform") {
Color(_local3.c).setTransform(_local4);
} else {
com.mosesSupposes.fuse.ZigoEngine.setColorByKey(obj, _local17, _local9, _local12);
}
} else {
var _local21 = getChangeObj(_local3.ps, _local4, false, false);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
} else if (_local11 == true) {
_local14.setFilterProp(obj, _local5, _local4);
} else if (_local19 == true) {
_local3.c = 2;
_local3.ch = [];
for (var _local40 in _local4) {
if (_local4[_local40] != null) {
if (_local3.ps == null) {
_local3.ps = [];
}
_local3.ps[_local40] = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, ((_local3.ps[_local40] == null) ? obj[_local5][_local40] : _local3.ps[_local40]));
var _local21 = getChangeObj(_local3.ps[_local40], com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4[_local40]), true, false);
_local3.ch[_local40] = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
}
} else {
_local3.c = 1;
_local3.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local3.ps);
var _local21 = getChangeObj(_local3.ps, com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4), true, false);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
} else if (_local5 == "_bezier_") {
removeTween(obj, "_x,_y", true);
if (_local11 == true) {
if ((_local4.x != null) && (_global.isNaN(Number(_local4.x)) == false)) {
obj._x = ((typeof(_local4.x) == "string") ? (obj._x + Number(_local4.x)) : (_local4.x));
}
if ((_local4.y != null) && (_global.isNaN(Number(_local4.y)) == false)) {
obj._y = ((typeof(_local4.y) == "string") ? (obj._y + Number(_local4.y)) : (_local4.y));
}
} else {
_local3.special = true;
_local3.ps = 0;
_local3.ch = 1;
_local3.bz = {sx:obj._x, sy:obj._y};
if ((_local4.x == null) || (_global.isNaN(Number(_local4.x)))) {
_local4.x = _local3.bz.sx;
}
if ((_local4.y == null) || (_global.isNaN(Number(_local4.y)))) {
_local4.y = _local3.bz.sy;
}
_local3.bz.chx = ((typeof(_local4.x) == "string") ? (Number(_local4.x)) : (_local4.x - _local3.bz.sx));
if (_global.isNaN(_local3.bz.chx) == true) {
_local3.bx.chx = 0;
}
_local3.bz.chy = ((typeof(_local4.y) == "string") ? (Number(_local4.y)) : (_local4.y - _local3.bz.sy));
if (_global.isNaN(_local3.bz.chy) == true) {
_local3.bx.chy = 0;
}
if ((_local4.controlX == null) || (_global.isNaN(Number(_local4.controlX)))) {
_local3.bz.ctrlx = _local3.bz.sx + (_local3.bz.chx / 2);
} else {
_local3.bz.ctrlx = ((typeof(_local4.controlX) == "string") ? (_local3.bz.sx + Number(_local4.controlX)) : (_local4.controlX));
}
if ((_local4.controlY == null) || (_global.isNaN(Number(_local4.controlY)))) {
_local3.bz.ctrly = _local3.bz.sy + (_local3.bz.chy / 2);
} else {
_local3.bz.ctrly = ((typeof(_local4.controlY) == "string") ? (_local3.bz.sy + Number(_local4.controlY)) : (_local4.controlY));
}
_local3.bz.ctrlx = _local3.bz.ctrlx - _local3.bz.sx;
_local3.bz.ctrly = _local3.bz.ctrly - _local3.bz.sy;
_local10 = (_local3.bz.chx + _local3.bz.chy) != 0;
}
} else {
if (typeof(_local4) == "object") {
_local3.complex = ((_local4 instanceof Array) ? 0 : 1);
}
if ((_local5 == "_x") || (_local5 == "_y")) {
removeTween(obj, "_bezier_", true);
}
if ((_local5 == "_frame") && (typeof(obj) == "movieclip")) {
_local3.ps = obj._currentframe;
_local3.special = true;
} else if (_local13 == false) {
if (_local3.complex > -1) {
_local3.ps = ((_local3.complex == 0) ? ([]) : ({}));
for (var _local40 in _local4) {
_local3.ps[_local40] = obj[_local5][_local40];
}
} else {
_local3.ps = obj[_local5];
}
}
if (_local11 == true) {
if (_local13 == true) {
_local14.setFilterProp(obj, _local5, ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4)));
} else if (_local3.complex > -1) {
for (var _local40 in _local4) {
if ((_local4[_local40] != null) && (_global.isNaN(Number(_local4[_local40])) == false)) {
obj[_local5][_local40] = ((typeof(_local4[_local40]) == "string") ? (_local3.ps[_local40] + Number(_local4[_local40])) : _local4[_local40]);
if (_global.isNaN(obj[_local5][_local40]) == true) {
obj[_local5][_local40] = 0;
}
}
}
} else {
obj[_local5] = ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4));
if (_local15 == 1) {
obj._visible = true;
} else if (_local15 == -1) {
obj._visible = false;
}
}
} else if (_local3.complex > -1) {
var _local21 = getChangeObj(_local3.ps, _local4, _local13, _local3.complex == 0);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
} else {
if ((_local4 == null) || (_global.isNaN(Number(_local4)))) {
_local4 = _local3.ps;
}
_local3.ch = ((typeof(_local4) == "string") ? (Number(_local4)) : (Number(_local4) - _local3.ps));
if (_global.isNaN(_local3.ch) == true) {
_local3.ch = 0;
}
_local10 = _local3.ch != 0;
}
}
if (((_local24 == 0) && ((_local10 == true) || (_local11 == false))) || ((_local10 == true) && (_local11 == false))) {
if ((_local3.complex > -1) && (!(_local3.c === 2))) {
_local3.ps = [_local3.ps];
_local3.ch = [_local3.ch];
}
_local3.ts = now + (delay * 1000);
_local3.pt = -1;
_local3.d = seconds * 1000;
_local3.ef = ease;
_local3.sf = false;
_local3.cycles = _local44;
if (_local30 != undefined) {
_local3.e1 = _local30;
}
if (_local29 != undefined) {
_local3.e2 = _local29;
}
_local3.v = _local15;
if (callback.start != undefined) {
_local3.scb = callback.start;
}
if (callback.upd != undefined) {
_local3.ucb = callback.upd;
}
if (callback.end != undefined) {
_local3.ecb = callback.end;
}
if (callback.roundResults != undefined) {
_local3.rr = callback.roundResults;
}
if (tweens[String(_local22)] == undefined) {
_local7 = (tweens[String(_local22)] = {numProps:0, locked:false, targ:obj, targID:String(("\"" + ((obj._name != undefined) ? (obj._name) : (obj.toString()))) + "\""), targZID:_local22, props:{}});
numTweens++;
}
if (_local16 == true) {
_local7.colorProp = _local5;
}
_local7.props[_local5] = _local3;
_local7.numProps++;
_local25 = (_local5 + ",") + _local25;
_local28 = (((typeof(_local4) == "string") ? (("\"" + _local4) + "\"") : (_local4)) + ",") + _local28;
}
_local3 = undefined;
}
if ((_local7 == undefined) || (_local7.numProps <= 0)) {
cleanUp();
}
if ((_local23.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) {
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:_local23, __zigoID__:_local22, during:"add"});
}
if (_local25 == "") {
if (_local24 == 2) {
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("011", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString());
}
} else {
var _local48 = obj._listeners.length > 0;
if (_local48 == true) {
obj.broadcastMessage("onTweenStart", {target:obj, props:props});
}
if (callback.start != undefined) {
callback.start.f.apply(callback.start.s, callback.start.a);
}
if (_local48 == true) {
obj.broadcastMessage("onTweenUpdate", {target:obj, props:props});
}
if (callback.upd != undefined) {
callback.upd.f.apply(callback.upd.s, callback.upd.a);
}
if (_local48 == true) {
obj.broadcastMessage("onTweenEnd", {target:obj, props:props});
}
if (callback.end != undefined) {
callback.end.f.apply(callback.end.s, callback.end.a);
}
}
cleanUp();
}
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
if (_local25 == "") {
com.mosesSupposes.fuse.FuseKitCommon.error("012", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString(), endvals.toString());
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("013", ((obj._name != undefined) ? (obj._name) : (obj.toString())), _local25.slice(0, -1), _local28.slice(0, -1));
}
}
return(((_local25 == "") ? null : (_local25.slice(0, -1))));
}
function removeTween(targs, props, noInit) {
var _local4 = {};
var _local12 = paramsObj(targs, props);
if (_local12.none == true) {
return(undefined);
}
var _local16 = _local12.all;
var _local17 = _local12.allprops;
var _local9 = ((_local16 == true) ? (tweens) : (Object(_local12.tg)));
var _local8 = false;
for (var _local20 in _local9) {
var _local3 = ((_local16 == true) ? (_local20) : (String(_local9[_local20].__zigoID__)));
var _local2 = tweens[_local3];
var _local6 = ((_local17 == true) ? (_local2.props) : (_local12.props));
for (var _local14 in _local6) {
var _local5 = (_local14 == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (_local2.colorProp != undefined);
if ((_local2.props[_local14] != undefined) || (_local5 == true)) {
if (_local4[_local3] == null) {
_local4[_local3] = [];
}
_local4[_local3].unshift(_local14);
if ((_local14 == _local2.colorProp) || (_local5 == true)) {
delete _local2.props[_local2.colorProp];
delete _local2.colorProp;
} else {
delete _local2.props[_local14];
}
_local2.numProps--;
if (_local2.numProps <= 0) {
_local8 = true;
break;
}
}
}
}
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
for (var _local19 in _local4) {
var _local7 = tweens[_local19].targ;
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local7.addProperty) == "function") ? (_local7) : (("[MISSING(\"" + tweens[_local19].targID) + "\")]")), props:_local4[_local19], __zigoID__:tweens[_local19].targZID, during:((noInit == true) ? "add" : "remove")});
}
}
if (_local8 == true) {
cleanUp(noInit);
}
}
function alterTweens(type, targs, props, pauseFlag, noEvents, skipTo) {
if (type == "lock") {
tweens[String(targs.__zigoID__)].locked = props;
return(undefined);
}
var _local11 = paramsObj(targs, props);
if (_local11.none == true) {
return(undefined);
}
var _local14 = _local11.all;
var _local15 = _local11.allprops;
var _local9 = ((_local14 == true) ? (tweens) : (Object(_local11.tg)));
var _local8 = 0;
for (var _local16 in _local9) {
var _local7 = ((_local14 == true) ? (_local16) : (String(_local9[_local16].__zigoID__)));
var _local5 = tweens[_local7];
var _local4 = ((_local15 == true) ? (_local5.props) : (_local11.props));
if (_local4.ALLCOLOR == true) {
_local4[_local5.colorProp] = true;
delete _local4.ALLCOLOR;
}
for (var _local10 in _local4) {
_local8++;
var _local2 = _local5.props[_local10];
if (type == "rewind") {
if (pauseFlag == true) {
_local2.pt = now;
}
_local2.ts = now;
if (noEvents != true) {
_local2.sf = false;
if (_local2.scb != undefined) {
_local2.scb.fired = false;
}
}
} else if (type == "ff") {
if (noEvents == true) {
_local2.suppressEnd = true;
}
_local2.o = true;
_local2.pt = -1;
_local2.ts = now - _local2.d;
} else if (type == "skipTo") {
_local2.ts = Math.min(now, (_local2.ts + (now - _local2.ts)) - (skipTo * 1000));
} else if (type == "pause") {
if (_local2.pt == -1) {
_local2.pt = now;
}
} else if (type == "unpause") {
if (_local2.pt != -1) {
_local2.ts = now - (_local2.pt - _local2.ts);
_local2.pt = -1;
}
}
}
}
if ((type == "ff") && (_local8 > 0)) {
update();
} else if ((type == "rewind") && (_local8 > 0)) {
update(true);
}
}
function getStatus(type, targ, param) {
if (targ == null) {
return(null);
}
var _local8 = String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
var _local4 = tweens[String(targ.__zigoID__)];
switch (type) {
case "paused" :
var _local2 = _local4.props;
if (param != null) {
if (_local2[String(param)] == undefined) {
return(false);
}
return(Boolean(_local2[String(param)].pt != -1));
}
for (var _local6 in _local2) {
if (_local2[_local6].pt != -1) {
return(true);
}
}
return(false);
case "active" :
if (param == null) {
return(Boolean(_local4 != undefined));
}
if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
return(Boolean(_local4.colorProp != undefined));
}
return(Boolean(_local4.props[String(param)] != undefined));
case "count" :
if (!_local8) {
return(_local4.numProps);
}
var _local3 = 0;
for (var _local6 in tweens) {
_local3 = _local3 + tweens[_local6].numProps;
}
return(_local3);
case "locked" :
return(_local4.locked);
}
}
function update(force) {
var _local22 = {};
var _local24 = {};
var _local23 = {};
var _local15 = {};
var _local13 = {};
var _local14 = {};
var _local26 = false;
var _local20 = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS;
for (var _local35 in tweens) {
var _local12 = tweens[_local35];
var _local5 = _local12.targ;
var _local34 = _local12.props;
var _local21 = _local5._listeners.length > 0;
if (_local5.__zigoID__ == undefined) {
_local26 = true;
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
var _local25 = [];
for (var _local30 in _local34) {
_local25.unshift(_local30);
}
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local5.addProperty) == "function") ? (_local5) : (("[MISSING:" + _local12.targID) + "]")), props:_local25, __zigoID__:_local12.targZID, during:"update"});
}
continue;
}
for (var _local30 in _local34) {
var _local3 = _local34[_local30];
if (((_local3.ts > now) || (_local3.pt != -1)) && (force != true)) {
continue;
}
var _local9 = now >= (_local3.ts + _local3.d);
if (_local3.complex == -1) {
var _local6;
if (_local9 == true) {
_local6 = _local3.ps + _local3.ch;
if ((_local3.cycles > 1) || (_local3.cycles == 0)) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local3.ps = _local6;
_local3.ch = -_local3.ch;
_local3.ts = now;
_local9 = false;
}
} else {
_local6 = _local3.ef(now - _local3.ts, _local3.ps, _local3.ch, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local6) == false) {
if ((_local30 != "_bezier_") && ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false))))) {
_local6 = Math.round(Number(_local6));
}
if (_local3.special != true) {
_local5[_local30] = _local6;
} else if (_local3.fmp != -1) {
_local3.fmp.setFilterProp(_local5, _local30, _local6);
} else if (_local30 == "_bezier_") {
var _local10 = _local3.bz;
var _local18 = _local10.sx + (_local6 * (((2 * (1 - _local6)) * _local10.ctrlx) + (_local6 * _local10.chx)));
var _local17 = _local10.sy + (_local6 * (((2 * (1 - _local6)) * _local10.ctrly) + (_local6 * _local10.chy)));
if ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false)))) {
_local18 = Math.round(Number(_local18));
_local17 = Math.round(Number(_local17));
}
_local5._x = _local18;
_local5._y = _local17;
} else if (_local30 == "_frame") {
MovieClip(_local5).gotoAndStop(Math.ceil(_local6));
}
}
} else {
var _local16 = (_local9 == true) && ((_local3.cycles > 1) || (_local3.cycles == 0));
var _local7 = [];
for (var _local27 in _local3.ch) {
var _local4 = ((_local3.complex == 0) ? ([]) : ({}));
for (var _local28 in _local3.ch[_local27]) {
var _local8 = _local3.ch[_local27][_local28];
var _local11 = _local3.ps[_local27][_local28];
if (_local9 == true) {
_local4[_local28] = _local11 + _local8;
if (_local16 == true) {
_local3.ch[_local27][_local28] = -_local8;
}
} else {
_local4[_local28] = _local3.ef(now - _local3.ts, _local11, _local8, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local4[_local28]) == false) {
if ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false)))) {
_local4[_local28] = Math.round(_local4[_local28]);
}
}
if ((_local3.fmp == -1) && (_local3.c == -1)) {
_local5[_local30][_local28] = _local4[_local28];
}
}
_local7.push(_local4);
if ((_local3.fmp == -1) && (_local3.c == 2)) {
_local5[_local30][_local27] = Number(((_local4.rb << 16) | (_local4.gb << 8)) | _local4.bb);
}
}
if (_local3.fmp != -1) {
if (_local3.c == 1) {
_local3.fmp.setFilterProp(_local5, _local30, ((_local7[0].rb << 16) | (_local7[0].gb << 8)) | _local7[0].bb);
} else if (_local3.c == 2) {
var _local19 = [];
for (var _local28 in _local7) {
_local19.unshift(((_local7[_local28].rb << 16) | (_local7[_local28].gb << 8)) | _local7[_local28].bb);
}
_local3.fmp.setFilterProp(_local5, _local30, _local19);
}
} else if (_local3.c != -1) {
_local3.c.setTransform(_local7[0]);
}
if (_local16 == true) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local9 = false;
_local3.ts = now;
_local3.ps = _local7;
}
}
if (_local3.sf == false) {
if (_local3.v != 0) {
_local5._visible = true;
}
if (_local21 == true) {
if (_local15[_local35] == undefined) {
_local15[_local35] = [_local5, []];
}
_local15[_local35][1].unshift(_local30);
}
_local3.sf = true;
}
if (_local3.scb.fired == false) {
_local22[String(_local3.scb.id)] = _local3.scb;
_local3.scb.fired = true;
}
if (_local21 == true) {
if (_local13[_local35] == undefined) {
_local13[_local35] = [_local5, []];
}
_local13[_local35][1].unshift(_local30);
}
if (_local3.ucb != undefined) {
_local24[String(_local3.ucb.id)] = _local3.ucb;
}
if (_local9 == true) {
if (_local3.v === -1) {
_local5._visible = false;
}
if (_local3.suppressEnd != true) {
if (_local21 == true) {
if (_local14[_local35] == undefined) {
_local14[_local35] = [_local5, []];
}
_local14[_local35][1].unshift(_local30);
}
if (_local3.ecb != undefined) {
_local23[String(_local3.ecb.id)] = _local3.ecb;
}
}
delete _local34[_local30];
if (_local30 == _local12.colorProp) {
delete _local12.colorProp;
}
_local12.numProps--;
if (_local12.numProps <= 0) {
_local26 = true;
}
}
delete _local3.suppressEnd;
}
}
for (var _local35 in _local15) {
_local15[_local35][0].broadcastMessage("onTweenStart", {target:_local15[_local35][0], props:_local15[_local35][1]});
}
for (var _local35 in _local22) {
_local22[_local35].f.apply(_local22[_local35].s, _local22[_local35].a);
}
for (var _local35 in _local13) {
_local13[_local35][0].broadcastMessage("onTweenUpdate", {target:_local13[_local35][0], props:_local13[_local35][1]});
}
for (var _local35 in _local24) {
_local24[_local35].f.apply(_local24[_local35].s, _local24[_local35].a);
}
for (var _local35 in _local14) {
_local14[_local35][0].broadcastMessage("onTweenEnd", {target:_local14[_local35][0], props:_local14[_local35][1]});
}
for (var _local35 in _local23) {
_local23[_local35].f.apply(_local23[_local35].s, _local23[_local35].a);
}
if (_local26) {
cleanUp();
}
now = getTimer();
}
function cleanUp(noInit) {
for (var _local4 in tweens) {
var _local2 = tweens[_local4].targ;
if ((tweens[_local4].numProps <= 0) || (_local2.__zigoID__ == undefined)) {
if ((((_local2 != undefined) && (_local2.tween == undefined)) && (noInit != true)) && (_local2._listeners.length <= 0)) {
com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(_local2);
}
delete tweens[_local4];
numTweens--;
}
}
if (numTweens <= 0) {
numTweens = 0;
delete tweens;
tweens = {};
if (noInit != true) {
com.mosesSupposes.fuse.ZigoEngine.__mgrRelay(this, "setup", [true]);
}
}
}
function paramsObj(targs, props, endvals, retainFade) {
var _local6 = {};
_local6.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
_local6.none = Boolean(targs == null);
if (_local6.all == true) {
_local6.tg = [null];
} else {
_local6.tg = ((targs instanceof Array) ? (targs) : ([targs]));
for (var _local11 in _local6.tg) {
var _local7 = _local6.tg[_local11];
if ((_local7 == null) || (!((typeof(_local7) == "object") || (typeof(_local7) == "movieclip")))) {
_local6.tg.splice(Number(_local11), 1);
}
}
}
_local6.allprops = props == null;
var _local1;
var _local4;
var _local3 = {};
if (_local6.allprops == false) {
if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) {
props = String(props.split(" ").join("")).split(",");
}
_local1 = ((props instanceof Array) ? (props.slice()) : ([props]));
if (endvals != undefined) {
if ((typeof(endvals) == "string") && ((String(endvals).indexOf(" ") > -1) || (String(endvals).indexOf(",") > -1))) {
endvals = String(endvals.split(" ").join("")).split(",");
}
_local4 = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals]));
while (_local4.length < _local1.length) {
_local4.push(_local4[_local4.length - 1]);
}
_local4.splice(_local1.length, _local4.length - _local1.length);
}
for (var _local11 in _local1) {
var _local2 = Number(_local11);
if ((_local1[_local11] != "_scale") && (_local1[_local11] != "_size")) {
if (_local3[_local1[_local11]] == undefined) {
if ((_local1[_local11] == "_fade") && (retainFade != true)) {
_local1[_local11] = "_alpha";
}
if (String(_local1[_local11]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
_local1[_local11] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR;
}
_local3[_local1[_local11]] = true;
} else {
_local1.splice(_local2, 1);
_local4.splice(_local2, 1);
}
} else {
var _local8 = String(_local1.splice(_local2, 1)[0]);
var _local5 = _local4.splice(_local2, 1)[0];
if (_local8 == "_scale") {
if (_local3._xscale == undefined) {
_local1.splice(_local2, 0, "_xscale");
_local4.splice(_local2, 0, _local5);
_local3._xscale = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_yscale");
_local4.splice(_local2, 0, _local5);
_local3._yscale = true;
}
}
if (_local8 == "_size") {
if (_local3._width == undefined) {
_local1.splice(_local2, 0, "_width");
_local4.splice(_local2, 0, _local5);
_local3._width = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_height");
_local4.splice(_local2, 0, _local5);
_local3._height = true;
}
}
}
}
for (var _local11 in _local1) {
if (((_local1[_local11] == "_xscale") && (_local3._width == true)) || ((_local1[_local11] == "_yscale") && (_local3._height == true))) {
_local1.splice(Number(_local11), 1);
_local4.splice(Number(_local11), 1);
delete _local3[_local1[_local11]];
}
}
}
_local6.pa = _local1;
_local6.va = _local4;
_local6.props = _local3;
return(_local6);
}
function getChangeObj(ps, ep, isFMP, useArray) {
var _local3 = {map:((useArray == true) ? ([]) : ({})), changed:false};
for (var _local7 in ep) {
if ((((((isFMP == true) && (_local7.charAt(1) == "b")) || (ep[_local7] != ps[_local7])) || (useArray == true)) && (ep[_local7] != null)) && (_global.isNaN(Number(ep[_local7])) == false)) {
_local3.map[_local7] = ((typeof(ep[_local7]) == "string") ? (Number(ep[_local7])) : (ep[_local7] - ps[_local7]));
if (_global.isNaN(_local3.map[_local7]) == true) {
_local3.map[_local7] = 0;
} else if (_local3.map[_local7] != 0) {
_local3.changed = true;
}
}
}
return(_local3);
}
var numTweens = 0;
}
Symbol 468 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 469 MovieClip [__Packages.MochiScores] Frame 0
class MochiScores
{
function MochiScores () {
}
static function RefreshScores(mcScoreTable) {
var _local1 = new MochiScoreTable(mcScoreTable);
_local1.reset("Fetching high scores...");
var _local2 = MochiAd.fetchHighScores({id:Helper.MOCHIADID}, _local1, "gotScores");
if (!_local2) {
_local1.reset("Local sandbox does not allow network, try playing online.");
}
}
static function ShowScores(mcScoreTable) {
RefreshScores(mcScoreTable);
}
static function sendScores() {
MochiAd.sendHighScore({id:Helper.MOCHIADID, name:Helper.PLAYERNAME, score:Helper.PLAYERSCORE});
}
}
Symbol 470 MovieClip [__Packages.MochiScoreTable] Frame 0
class MochiScoreTable
{
var mc, max_scores;
function MochiScoreTable (mc, max_scores) {
this.mc = mc;
this.max_scores = max_scores || 10;
}
function gotScores(scores, playerIndex) {
var _local7 = scores.length;
if (_local7 == 0) {
mc.status_text = "No high scores yet!";
mc.status_text = "";
} else {
mc.status_text = "";
}
var _local4 = 0;
var _local3 = new Array(4);
var _local6 = 0;
_local4 = 0;
while ((_local6 < _local7) && (_local4 < 11)) {
var _local5 = scores[_local6];
_local3[0] = (_local4 + 1) + ".";
_local3[1] = _local5[0];
_local3[2] = commafy(String(_local5[1]));
_local3[3] = msecToDateString(_local5[2]);
_local4++;
var _local2 = 0;
while (_local2 < 4) {
mc["column" + _local2].text = mc["column" + _local2].text + (_local3[_local2] + newline);
_local2++;
}
_local6++;
}
}
function commafy(n) {
var _local1 = parseInt(n, 10) + "";
var _local2 = new Array();
while (_local1.length > 3) {
_local2.unshift(_local1.slice(_local1.length - 3, _local1.length));
_local1 = _local1.slice(0, _local1.length - 3);
}
_local2.unshift(_local1);
return(_local2.join(" "));
}
function msecToDateString(msec) {
var _local1 = new Date(msec);
return([_local1.getFullYear(), 1 + _local1.getMonth(), _local1.getDate()].join("-"));
}
function reset(statusText) {
var _local3 = 0;
while (true) {
var _local2 = mc["column" + _local3];
if (_local2 != undefined) {
_local2.text = "";
_local3++;
} else {
break;
}
}
mc.status_text = statusText;
}
}
Symbol 50 MovieClip [LevelBar] Frame 1
this.FillFactor = 0;
stop();
this.onEnterFrame = function () {
if ((this.FillFactor > this._currentframe) && ((this.FillFactor - this._currentframe) >= 1)) {
if (this._currentframe < this._totalframes) {
this.nextFrame();
}
} else if ((this.FillFactor < this._currentframe) && ((this._currentframe - this.FillFactor) >= 1)) {
if (this._currentframe > 1) {
this.prevFrame();
}
}
};
Symbol 76 MovieClip [aButton] Frame 1
DefaultButton.onPress = function () {
_parent.MyRoot.menuPress(_name);
};
DefaultButton.onRelease = function () {
_parent.MyRoot.menuRelease(_name);
};
DefaultButton.onRollOut = function () {
_parent.MyRoot.menuNormal(_name);
};
DefaultButton.onRollOver = function () {
_parent.MyRoot.menuOver(_name);
};
Symbol 84 MovieClip Frame 1
Symbol 85 MovieClip [ScorePanel] Frame 9
stop();
Symbol 85 MovieClip [ScorePanel] Frame 17
stop();
Symbol 196 MovieClip [SlimeMan] Frame 1
this.Init = function () {
PanicStatus = 0;
JoyStatus = 0;
WinStatus = 0;
JoyCount = 0;
RandomCount = 0;
WinCount = 0;
Status = true;
Chain = 0;
WinSound = new Sound(this);
WinSound.attachSound("aquabubble_win");
};
this.onEnterFrame = function () {
JoyStatus--;
PanicStatus--;
if (RequestChain() < Chain) {
ChangeChain();
}
};
this.RequestChain = function () {
if (WinStatus > 0) {
return(0);
}
if (JoyStatus > 0) {
return(1);
}
if (PanicStatus > 0) {
return(2);
}
return(3);
};
this.ChangeChain = function () {
if (WinStatus > 0) {
Chain = 0;
if (WinCount == 0) {
gotoAndPlay ("Win1");
Status = false;
} else {
if (WinCount == 1) {
WinSound.start(0, 99999999999);
}
gotoAndPlay ("Win2");
Status = true;
}
WinCount++;
} else {
if (WinCount > 0) {
WinSound.stop();
WinCount = 0;
}
if (JoyStatus > 0) {
Chain = 1;
if (JoyCount > 0) {
gotoAndPlay ("BestShot");
JoyCount = 0;
Status = true;
} else {
gotoAndPlay ("Joy");
JoyCount = 1;
Status = false;
JoyStatus = 0;
}
} else if (PanicStatus > 0) {
Chain = 2;
gotoAndPlay ("Warning");
Status = false;
} else {
Chain = 3;
if (StopCount > 0) {
StopCount--;
gotoAndPlay ("Stop0");
Status = true;
} else {
if (random(100) < 50) {
gotoAndPlay ("Stop1");
Status = true;
} else {
gotoAndPlay ("Stop2");
Status = false;
}
StopCount = 5 + random(10);
}
}
}
};
Symbol 196 MovieClip [SlimeMan] Frame 30
ChangeChain();
Symbol 196 MovieClip [SlimeMan] Frame 63
ChangeChain();
Symbol 196 MovieClip [SlimeMan] Frame 107
ChangeChain();
Symbol 196 MovieClip [SlimeMan] Frame 122
ChangeChain();
Symbol 196 MovieClip [SlimeMan] Frame 158
ChangeChain();
Symbol 196 MovieClip [SlimeMan] Frame 174
ChangeChain();
Symbol 196 MovieClip [SlimeMan] Frame 186
ChangeChain();
Symbol 196 MovieClip [SlimeMan] Frame 219
ChangeChain();
Symbol 377 MovieClip Frame 1
Score = _parent.MyRoot.TotalScore;
scoretxt = Dictionary.DICT.YOUR_SCORE;
Symbol 381 MovieClip [GameOver] Frame 1
mcOverScore.txt_YOUSCORE._text = "SCORES";
Symbol 381 MovieClip [GameOver] Frame 45
stop();
Symbol 381 MovieClip [GameOver] Frame 77
stop();
_parent.play();
Symbol 384 MovieClip [About] Frame 20
stop();
Symbol 384 MovieClip [About] Frame 30
stop();
_parent.play();
Symbol 391 MovieClip [Help] Frame 25
stop();
Symbol 391 MovieClip [Help] Frame 41
stop();
_parent.play();
Symbol 405 MovieClip Frame 1
dtLevel.text = Dictionary.DICT.LEVEL;
dtScore.text = Dictionary.DICT.SCORES;
dtTime.text = Dictionary.DICT.TIME;
var num;
if (_parent.MyRoot.GameLevel < _parent.MyRoot.LevelParamNum) {
num = _parent.MyRoot.LevelParam[_parent.MyRoot.GameLevel].BallNum;
} else if (((_parent.MyRoot.GameLevel - _parent.MyRoot.LevelParamNum) % 3) == 2) {
num = 3;
} else {
num = 8;
}
var i = 1;
while (i <= 8) {
if (i <= num) {
eval ("Bub" + i).gotoAndStop(i);
} else {
eval ("Bub" + i).gotoAndStop(9);
}
i++;
}
Level = _parent.MyRoot.GameLevel + 1;
Score = _parent.MyRoot.TotalScore;
var time_sec = Math.round((_parent.MyRoot.TotalTime / 1000) % 60);
var time_min = Math.round(_parent.MyRoot.TotalTime / 60000);
Time = "";
if (time_min < 10) {
Time = Time + "0";
}
Time = Time + time_min;
Time = Time + " : ";
if (time_sec < 10) {
Time = Time + "0";
}
Time = Time + time_sec;
Promo.onRelease = function () {
getURL ("http://www.realore.com/aqua/", "_blank");
};
Symbol 409 MovieClip [NextLevel] Frame 1
Symbol 409 MovieClip [NextLevel] Frame 40
stop();
Symbol 409 MovieClip [NextLevel] Frame 41
function afterInter() {
_parent.play();
}
NextLevel._visible = false;
if ((_root.GameLevel % 2) == 0) {
mc_ADS.showIngameAds(_root, afterInter, this, undefined, undefined, 10000, undefined, Helper.ADSLINK);
_root.mc_ADS1.adsRealore1.textValue = Dictionary.DICT.GOTO;
_root.mc_ADS1.adsRealore1._x = 230 - (_root.mc_ADS1.adsRealore1._width / 2);
_root.mc_ADS1.adsRealore1._y = 235;
} else if ((_root.GameLevel % 1) == 0) {
MochiAd.showInterLevelAd({id:"132ad681e2ad9681", res:"480x360", ad_finished:afterInter});
} else {
afterInter();
}
stop();
Symbol 409 MovieClip [NextLevel] Frame 70
stop();
_parent.play();
Symbol 416 MovieClip [MainMenu] Frame 1
logo.onPress = function () {
getURL ("http://www.games2girls.com", "_blank");
};
Symbol 416 MovieClip [MainMenu] Frame 40
stop();
Symbol 416 MovieClip [MainMenu] Frame 69
stop();
_parent.play();
Symbol 420 MovieClip [YouWin] Frame 45
stop();
Symbol 420 MovieClip [YouWin] Frame 77
stop();
_parent.play();
Symbol 428 MovieClip [mcScores] Frame 1
status_text = Dictionary.DICT.FETCHING;
exit_text = Dictionary.DICT.CLICKLEFT;
Symbol 459 MovieClip Frame 1
MusicButton.onRelease = function () {
if (_parent.MusicStatus) {
_parent.MusicOff();
} else {
_parent.MusicOn();
}
};
MusicButton.onRollOver = function () {
_parent.LockFire = true;
};
MusicButton.onDragOver = function () {
_parent.LockFire = true;
};
MusicButton.onDragOut = function () {
_parent.LockFire = false;
};
MusicButton.onRollOut = function () {
_parent.LockFire = false;
};
MusicButton.onReleaseOutside = function () {
_parent.LockFire = false;
};
Symbol 460 MovieClip Frame 1
MuteButton.onRelease = function () {
if (_parent.SoundStatus) {
_parent.SoundOff();
} else {
_parent.SoundOn();
}
};
MuteButton.onRollOver = function () {
_parent.LockFire = true;
};
MuteButton.onDragOver = function () {
_parent.LockFire = true;
};
MuteButton.onDragOut = function () {
_parent.LockFire = false;
};
MuteButton.onRollOut = function () {
_parent.LockFire = false;
};
MuteButton.onReleaseOutside = function () {
_parent.LockFire = false;
};