Frame 1
this.onEnterFrame = function () {
this.percent = (this.getBytesLoaded() / this.getBytesTotal()) * 100;
if (!isNan(percent)) {
this.loading_mc.gotoAndStop(Math.ceil(this.percent));
if (Math.ceil(this.percent) < 10) {
this.loading_mc.percent = (" " + Math.ceil(this.percent).toString()) + "%";
} else if (Math.ceil(this.percent) < 100) {
this.loading_mc.percent = (" " + Math.ceil(this.percent).toString()) + "%";
} else {
this.loading_mc.percent = Math.ceil(this.percent).toString() + "%";
}
if (this.percent < 10) {
this.loading_mc.percent_DF = ("loading " + Math.ceil(this.percent)) + "%";
} else {
this.loading_mc.percent_DF = ("loading " + Math.ceil(this.percent)) + "%";
}
}
if (this.percent == 100) {
_root.gotoAndPlay(5);
delete this.onEnterFrame;
}
};
stop();
_global.mplay = 0;
_global.combo = false;
_root.createEmptyMovieClip("effe", 10000);
gameover = new Sound();
gameover.attachSound("gameover_m");
gameover.stop();
combom = new Sound();
combom.attachSound("combo_m");
combom.stop();
hit = new Sound(effe);
hit.attachSound("hit_m");
hit.setVolume(50);
hit.stop();
access = new Sound();
access.attachSound("access_m");
access.stop();
insert = new Sound();
insert.attachSound("insert_m");
insert.stop();
impact = new Sound(effe);
impact.attachSound("impact_m1");
impact.stop();
alert = new Sound();
alert.attachSound("alert_m");
alert.stop();
sopen = new Sound();
sopen.attachSound("open_m");
sopen.stop();
dead = new Sound();
dead.attachSound("dead_m");
dead.stop();
sclick = new Sound();
sclick.attachSound("click_m");
sclick.stop();
music1 = new Sound();
music1.attachSound("music1_m");
music1.stop();
music2 = new Sound();
music2.attachSound("music2_m");
music2.stop();
music3 = new Sound();
music3.attachSound("music3_m");
music3.stop();
music4 = new Sound();
music4.attachSound("music4_m");
music4.stop();
music5 = new Sound();
music5.attachSound("music5_m");
music5.stop();
music6 = new Sound();
music6.attachSound("music6_m");
music6.stop();
intro = new Sound();
intro.attachSound("intro_m");
intro.stop();
Frame 6
_root.GameOver_mc._visible = false;
_root.LevelUp_mc._visible = false;
_root.Pause_mc._visible = false;
_root.pause_btn._visible = false;
_root.menu_btn._visible = false;
function PlayMusic() {
intro.stop();
ms = random(6) + 1;
if (ms == _global.mplay) {
ms++;
if (ms > 6) {
ms = 1;
}
}
_global.mplay = ms;
eval ("music" + ms).start();
}
function StopMusic() {
music1.stop();
music2.stop();
music3.stop();
music4.stop();
music5.stop();
music6.stop();
intro.start();
}
music1.onSoundComplete = function () {
m = random(6) + 1;
if (m == _global.mplay) {
m++;
if (m > 6) {
m = 1;
}
}
_global.mplay = m;
eval ("music" + m).start();
};
music2.onSoundComplete = function () {
m = random(6) + 1;
if (m == _global.mplay) {
m++;
if (m > 6) {
m = 1;
}
}
_global.mplay = m;
eval ("music" + m).start();
};
music3.onSoundComplete = function () {
m = random(6) + 1;
if (m == _global.mplay) {
m++;
if (m > 6) {
m = 1;
}
}
_global.mplay = m;
eval ("music" + m).start();
};
music4.onSoundComplete = function () {
m = random(6) + 1;
if (m == _global.mplay) {
m++;
if (m > 6) {
m = 1;
}
}
_global.mplay = m;
eval ("music" + m).start();
};
music5.onSoundComplete = function () {
m = random(6) + 1;
if (m == _global.mplay) {
m++;
if (m > 6) {
m = 1;
}
}
_global.mplay = m;
eval ("music" + m).start();
};
music6.onSoundComplete = function () {
m = random(6) + 1;
if (m == _global.mplay) {
m++;
if (m > 6) {
m = 1;
}
}
_global.mplay = m;
eval ("music" + m).start();
};
intro.onSoundComplete = function () {
intro.start();
};
Instance of Symbol 67 MovieClip "pause_btn" in Frame 6
on (release) {
this.gotoAndStop(3);
_root.Pause_fn();
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 70 MovieClip "menu_btn" in Frame 6
on (release) {
this.gotoAndStop(3);
_root.Menu_fn(2);
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Frame 7
_root.GameOver_mc._visible = false;
_root.LevelUp_mc._visible = false;
_root.Pause_mc._visible = false;
_root.pause_btn._visible = false;
function Block(seg, lin) {
this.seg = seg;
this.lin = lin;
}
function FillColorArray() {
_global.col.splice(0, _global.col.length);
i = 0;
while (i < (_global.curMaxColor + 1)) {
_global.col.push(_global.col_ALL[i]);
i++;
}
}
_global.C1a8 = 0.923879532511287;
_global.C2a7 = 0.38268343236509;
_global.C3a6 = -0.38268343236509;
_global.C4a5 = -0.923879532511287;
_global.col_ALL = Array("0xB61F1F", "0xF8F825", "0x1EC825", "0x3028C4", "0xA61ECE", "0xEB9301", "0xFCC5FC", "0x60DBE1");
_global.curMaxColor = 3;
_global.money = 0;
_global.money_ring = 0;
_global.col = new Array();
_root.FillColorArray();
_global.ReactorCount = 1;
_global.boost = 1;
_global.kill_list = new Array();
_global.NextLine = new Array();
_global.KillNum = 3;
_global.InsertInterval = 15;
_global.InsertIntervalCount = _global.InsertInterval;
_global.InsertIntervalHALF = 0;
_global.LinesNum = 0;
_global.LinesNumMax = 1;
_global.blockAnim = 0;
_global.ActualSegment = 0;
_global.GameOver = false;
_global.springAnim = 0;
_global.AutoClickCount = 0;
_global.colToSkip = new Array();
_global.LastColor = false;
_global.LevelUp = false;
_global.FirstLineInserted = false;
_global.Collapsing = false;
_global.springM = new Array(2, 0, -1, 1, 0);
_global.planetC = false;
_global.pg = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_global.level = new Array([4, 3, 20, 3], [4, 3, 15, 3], [4, 3, 13, 4], [4, 3, 11, 4], [4, 3, 9, 5], [4, 3, 7, 5], [4, 3, 6, 5], [5, 3, 20, 3], [5, 3, 17, 3], [5, 3, 14, 4], [5, 3, 12, 4], [5, 3, 10, 5], [5, 3, 9, 5], [5, 3, 8, 5]);
var myCT = {ra:0, rb:0, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0};
var myCTHighlight = {ra:0, rb:50, ga:0, gb:50, ba:0, bb:50, aa:100, ab:0};
upsellURL = "http://www.moclix.com/";
function InitSCR() {
i = 0;
while (i < 8) {
eval ("bl" + c)._visible = false;
i++;
}
rc = _global.LinesNumMax - _global.LinesNum;
if (rc < 10) {
_root.info_mc.ringcount_var = "0" + rc.toString();
} else {
_root.info_mc.ringcount_var = rc.toString();
}
if (_global.InsertIntervalCount > 9) {
_root.info_mc.ringtimer_var = _global.InsertIntervalCount.toString();
} else {
_root.info_mc.ringtimer_var = "0" + _global.InsertIntervalCount.toString();
}
}
function Main() {
_root.AutoClick();
if (_global.InsertIntervalHALF < 1) {
_global.InsertIntervalHALF++;
} else {
_global.InsertIntervalHALF = 0;
_global.InsertIntervalCount--;
if (_global.InsertIntervalCount > 9) {
_root.info_mc.ringtimer_var = _global.InsertIntervalCount.toString();
} else {
_root.info_mc.ringtimer_var = "0" + _global.InsertIntervalCount.toString();
}
if (_global.InsertIntervalCount == 3) {
FillNextLine(true);
}
if (((_global.InsertIntervalCount < 9) and checkFirstLine()) and (_global.InsertIntervalCount > 0)) {
_root.alert.start();
}
if (_global.InsertIntervalCount == 0) {
InsertNextLine();
_root.insert.start();
_global.InsertIntervalCount = _global.InsertInterval;
_global.LinesNum++;
rc = _global.LinesNumMax - _global.LinesNum;
if (rc < 0) {
rc = 0;
}
if (rc < 10) {
_root.info_mc.ringcount_var = "0" + rc.toString();
} else {
_root.info_mc.ringcount_var = rc.toString();
}
}
}
updateAfterEvent();
}
function checkFirstLine() {
var _local1 = false;
i = 0;
while (i < 8) {
if (pg[i][1] != 0) {
_local1 = true;
}
i++;
}
return(_local1);
}
function LevelUp_fn() {
_global.LevelUp = false;
clearInterval(MainID);
_root.info_mc.reactor_var++;
switch (_root.info_mc.reactor_var) {
case 8 :
access.start();
trace("case 4, reactor=" + _root.info_mc.reactor_var);
_root.LevelUp_mc.LeveUpl_var = "Planet Cleared!";
_global.planetC = true;
_root.menu_mc.r1._visible = false;
_root.menu_mc.planet02_mc._visible = true;
this.onMouseDown = function () {
Menu_fn(4);
};
break;
case 15 :
access.start();
trace("case 7, reactor=" + _root.info_mc.reactor_var);
_root.LevelUp_mc.LeveUpl_var = "Planet Cleared!";
_root.info_mc.reactor_var = 14;
this.onMouseDown = function () {
Menu_fn(6);
};
break;
default :
sopen.start();
trace("case default, reactor=" + _root.info_mc.reactor_var);
_root.LevelUp_mc.LeveUpl_var = "Level Up!";
this.onMouseDown = function () {
_root.ClickToContinue();
};
}
trace("after switch r=" + _root.info_mc.reactor_var);
_root.pause_btn.enabled = false;
_root.menu_btn.enabled = false;
_root.w.dopress = false;
_root.w._visible = false;
_root.reactor_mc._visible = false;
_root.LevelUp_mc._visible = true;
rc = _global.LinesNumMax - _global.LinesNum;
if (rc < 0) {
rc = 0;
}
_global.money = _global.money + ((_root.info_mc.ringtimer_var * rc) * 100);
_root.info_mc.money_var = _global.money.toString();
trace("LevelUp ManyExtra=" + (rc * 100));
_root.SetNewLevel(_root.info_mc.reactor_var - 1);
_root.SetNextColor();
_root.FillNextLine(false);
}
function Lostlife_fn() {
_global.GameOver = true;
_root.pause_btn.enabled = false;
_root.menu_btn.enabled = false;
clearInterval(MainID);
if (_root.info_mc.life_var.lastIndexOf("*") >= 1) {
dead.start();
_root.GameOver_mc.GO_var = "Life Lost!";
_root.info_mc.life_var = _root.info_mc.life_var.slice(0, _root.info_mc.life_var.lastIndexOf("*"));
this.onMouseDown = function () {
_root.ClickToContinue();
};
} else {
eval ("music" + _global.mplay).stop();
gameover.start();
_root.GameOver_mc.GO_var = "Game Over!";
_global.money = 0;
_root.info_mc.life_var = "***";
_root.info_mc.reactor_var = 1;
_root.info_mc.money_var = _global.money.toString();
this.onMouseDown = function () {
Menu_fn(3);
};
}
_root.w.dopress = false;
_root.w._visible = false;
_root.reactor_mc._visible = false;
_root.GameOver_mc._visible = true;
trace("GameOver");
_root.SetNewLevel(_root.info_mc.reactor_var - 1);
_root.SetNextColor();
_root.FillNextLine(false);
}
function Pause_fn() {
StopMusic();
clearInterval(MainID);
_root.pause_btn.enabled = false;
_root.menu_btn.enabled = false;
_root.BorderLights(false);
_root.w.dopress = false;
_root.w._visible = false;
_root.reactor_mc._visible = false;
_root.Pause_mc._visible = true;
trace("Pause");
this.onMouseDown = function () {
PlayMusic();
_root.ClickToContinue();
};
}
function Menu_fn(state) {
_root.StopMusic();
clearInterval(MainID);
_root.menu_mc.gotoAndPlay(state);
_root.menu_mc._visible = true;
_root.pause_btn.enabled = false;
_root.pause_btn._visible = false;
_root.menu_btn.enabled = false;
_root.menu_btn._visible = false;
_root.BorderLights(false);
_root.w.dopress = false;
_root.w._visible = false;
_root.Back_mc._visible = false;
_root.w_back._visible = false;
_root.info_mc._visible = false;
_root.reactor_mc._visible = false;
_root.Pause_mc._visible = false;
_root.LevelUp_mc._visible = false;
_root.GameOver_mc._visible = false;
_global.LevelUp = false;
this.onMouseDown = function () {
};
_global.GameOver = false;
_root.menu_mc.stop_fn();
}
function ClickToContinue() {
trace("ClickToContinue CALL");
_global.LevelUp = false;
_root.pause_btn.enabled = true;
_root.pause_btn.gotoAndStop(1);
_root.menu_btn.enabled = true;
_root.menu_btn.gotoAndStop(1);
if ((_global.InsertIntervalCount <= 3) and (_global.LinesNumMax > _global.LinesNum)) {
_root.BorderLights(true);
}
this.onMouseDown = function () {
};
_root.w.dopress = true;
_root.w._visible = true;
_root.reactor_mc._visible = true;
_root.LevelUp_mc._visible = false;
_root.GameOver_mc._visible = false;
_root.Pause_mc._visible = false;
_global.GameOver = false;
_root.pause_btn._visible = true;
_root.menu_btn._visible = true;
_root.Back_mc._visible = true;
_root.w_back._visible = true;
_root.info_mc._visible = true;
_root.InitSCR();
_root.w.wTmpRot.RefreshScreen();
MainID = setInterval(Main, 500);
}
function BorderLights(state) {
i = 0;
while (i < 8) {
eval ("bl" + i)._visible = state;
i++;
}
}
function SetNewLevel(L) {
_global.curMaxColor = _global.level[L][0] - 1;
_global.LinesNum = 0;
_global.LinesNumMax = _global.level[L][3];
_global.KillNum = _global.level[L][1];
_global.InsertInterval = _global.level[L][2];
_root.FillColorArray();
_global.InsertIntervalCount = _global.InsertInterval;
_global.InsertIntervalHALF = 0;
_global.pg = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
}
function FillNextLine(ShowBL) {
var iC;
var myCTbl = {ra:0, rb:0, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0};
_global.NextLine.splice(0, _global.NextLine.length);
iC = 0;
while (iC < 8) {
if (_global.LinesNum >= _global.LinesNumMax) {
_global.NextLine[iC] = 25;
} else {
_global.NextLine[iC] = Math.round((Math.random() * (_global.col.length - 1)) + 1);
if (_global.NextLine[iC] == _global.NextLine[iC - 1]) {
if (_global.NextLine[iC] < _global.col.length) {
_global.NextLine[iC] = _global.NextLine[iC] + 1;
} else {
_global.NextLine[iC] = 1;
}
}
myCTbl.ra = (Number("0x" + _global.col[_global.NextLine[iC] - 1].slice(2, 4)) / 255) * 100;
myCTbl.ga = (Number("0x" + _global.col[_global.NextLine[iC] - 1].slice(4, 6)) / 255) * 100;
myCTbl.ba = (Number("0x" + _global.col[_global.NextLine[iC] - 1].slice(6, 8)) / 255) * 100;
eval ("bl" + iC).c.setTransform(myCTbl);
eval ("bl" + iC)._visible = true;
}
iC++;
}
if (!ShowBL) {
trace("ShowBL=" + ShowBL);
_root.InsertNextLine();
}
}
function InsertNextLine() {
var diC = _global.ActualSegment;
var c = 0;
_global.Collapsing = true;
while (c < 8) {
_global.pg[diC].shift();
_global.pg[diC][9] = _global.NextLine[c];
if (diC == 7) {
diC = 0;
} else {
diC++;
}
eval ("bl" + c)._visible = false;
c++;
}
_root.w.wTmpRot.RefreshScreen();
_global.Collapsing = false;
_root.CheckPar();
}
function RemoveLine() {
var _local3 = _global.ActualSegment;
var _local4 = 0;
_global.Collapsing = true;
while (_local4 < 8) {
_global.pg[_local3].pop();
_global.pg[_local3].unshift(0);
if (_local3 == 7) {
_local3 = 0;
} else {
_local3++;
}
_local4++;
}
_root.w.wTmpRot.RefreshScreen();
_global.Collapsing = false;
_root.CheckPar();
}
function SetNextColor() {
var _local3 = 0;
var _local4 = false;
while (_local3 < _global.col.length) {
if (_global.col[_local3] != 0) {
_local4 = true;
break;
}
_local3++;
}
if (_local4) {
do {
_global.NextColor = Math.round(Math.random() * (_global.col.length - 1)) + 1;
} while (_global.col[_global.NextColor - 1] == 0);
_root.myCT.ra = (Number("0x" + _global.col[_global.NextColor - 1].slice(2, 4)) / 255) * 100;
_root.myCT.ga = (Number("0x" + _global.col[_global.NextColor - 1].slice(4, 6)) / 255) * 100;
_root.myCT.ba = (Number("0x" + _global.col[_global.NextColor - 1].slice(6, 8)) / 255) * 100;
_root.reactor_mc.c.setTransform(_root.myCT);
}
}
function AutoClick() {
_global.AutoClickCount++;
_global.comboPTS = 0;
_global.combo = false;
_root.UpdateActualClickLights();
if (_global.AutoClickCount > 7) {
_global.AutoClickCount = 0;
_root.UpdateActualClickLights();
w.dopress = false;
_global.CurrentColor = _global.NextColor;
_root.SetNextColor();
clearInterval(_root.AnimID);
_global.blockAnim = 0;
_root.myCT.ra = (Number("0x" + _global.col[_global.CurrentColor - 1].slice(2, 4)) / 255) * 100;
_root.myCT.ga = (Number("0x" + _global.col[_global.CurrentColor - 1].slice(4, 6)) / 255) * 100;
_root.myCT.ba = (Number("0x" + _global.col[_global.CurrentColor - 1].slice(6, 8)) / 255) * 100;
_root.AnimID = setInterval(_root.w.wTmpRot.UpdateScreen, 5, _global.ActualSegment, _root.myCT, _global.CurrentColor);
}
updateAfterEvent();
}
function UpdateActualClickLights() {
_root.reactor_mc.light.gotoAndStop(_global.AutoClickCount + 1);
updateAfterEvent();
}
function CheckPar() {
var _local5 = 1;
var _local4 = 0;
var _local3 = 9;
var _local7 = false;
var _local6 = true;
if (!_global.Collapsing) {
do {
if ((_global.pg[_local4][_local3] != 0) and (_global.pg[_local4][_local3] != 25)) {
_local7 = true;
if (_global.col[_global.pg[_local4][_local3] - 1] == 0) {
_global.pg[_local4][_local3] = 0;
_local7 = false;
_root.w.wTmpRot.RefreshScreen();
}
}
if (_global.pg[_local4][_local3 - 1] == 0) {
_local4++;
_local3 = 9;
} else if (_local3 > 0) {
_local3--;
} else {
_local4++;
_local3 = 9;
}
} while (_local4 <= 7);
if (_local7) {
_local6 = true;
_local5 = 1;
while (_local5 <= _global.col.length) {
_global.kill_list.splice(0, _global.kill_list.length);
if (CheckColor(_local5)) {
am = (10 * (_global.KillNum + Math.round(Math.exp(((_global.kill_list.length % _global.KillNum) - 2) * 1.5) * _global.KillNum))) * _global.boost;
_global.money = _global.money + am;
_global.comboPTS = _global.comboPTS + am;
am = 0;
_root.info_mc.money_var = _global.money.toString();
_global.boost++;
kill_fn(_global.kill_list);
_global.kill_list.splice(0, _global.kill_list.length);
if (_local6) {
_local6 = false;
}
}
_local5++;
}
if ((_global.money - _global.money_ring) >= 200) {
_global.money_ring = _global.money_ring + 200;
}
} else {
_global.LevelUp = true;
}
if (_local6) {
_global.boost = 1;
}
if (_global.LevelUp) {
_root.LevelUp_fn();
}
i = 0;
while (i < 8) {
if (_global.pg[i][0] != 0) {
_root.Lostlife_fn();
}
i++;
}
}
}
function CheckColor(b) {
var _local5 = false;
var _local3 = new Array();
var _local6 = new Array();
_local3.splice(0, _local3.length);
i = 0;
while (i < 8) {
j = 0;
while (j < 10) {
if (_global.pg[i][j] == b) {
_local3.push([i, j]);
}
j++;
}
i++;
}
if ((_local3.length == 0) and (_global.LinesNum >= _global.LinesNumMax)) {
_global.col[b - 1] = 0;
if (_global.NextColor == b) {
_root.SetNextColor();
}
}
CheckN(_local3);
if (_global.kill_list.length > (_global.KillNum - 1)) {
_local5 = true;
}
return(_local5);
}
function CheckN(kill_l) {
var Kill_1 = new Array();
var pole;
var LastArray = 1;
var IsNotPutIn = true;
var isAll = false;
if (kill_l.length > (_global.KillNum - 1)) {
Kill_1.push(kill_l[0]);
i = 1;
while (i < kill_l.length) {
pole = 1;
IsNotPutIn = true;
while (IsNotPutIn) {
if (IsTouching(kill_l[i][0], kill_l[i][1], eval ("Kill_" + pole))) {
eval ("Kill_" + pole).push(kill_l[i]);
IsNotPutIn = false;
} else {
pole++;
if (eval ("Kill_" + pole) == null) {
switch (pole) {
case 2 :
var Kill_2 = new Array();
break;
case 3 :
var Kill_3 = new Array();
break;
case 4 :
var Kill_4 = new Array();
break;
case 5 :
var Kill_5 = new Array();
break;
case 6 :
var Kill_6 = new Array();
break;
case 7 :
var Kill_7 = new Array();
break;
case 8 :
var Kill_8 = new Array();
break;
case 9 :
var Kill_9 = new Array();
break;
case 10 :
var Kill_10 = new Array();
break;
case 11 :
var Kill_11 = new Array();
break;
case 12 :
var Kill_12 = new Array();
break;
case 13 :
var Kill_13 = new Array();
}
LastArray = pole;
eval ("Kill_" + pole).push(kill_l[i]);
IsNotPutIn = false;
}
}
}
i++;
}
_global.kill_list.splice(0, _global.kill_list.length);
pole = 1;
a = 1;
while (a < LastArray) {
b = LastArray;
while (b > 0) {
if (a != b) {
if (IsTouchingArrays(eval ("Kill_" + a), eval ("Kill_" + b))) {
x = 0;
while (x < eval ("Kill_" + b).length) {
eval ("Kill_" + a).push(eval ("Kill_" + b)[x]);
x++;
}
eval ("Kill_" + b).splice(0, eval ("Kill_" + b).length);
}
}
b--;
}
a++;
}
while (eval ("Kill_" + pole) != null) {
if (eval ("Kill_" + pole).length > (_global.KillNum - 1)) {
i = 0;
while (i < eval ("Kill_" + pole).length) {
_global.kill_list.push(eval ("Kill_" + pole)[i]);
i++;
}
}
pole++;
}
}
if (Kill_2 == null) {
isAll = true;
}
return(isAll);
}
function IsTouching(s, l, list) {
var _local1;
_local1 = 0;
while (_local1 < list.length) {
if (((Math.abs(list[_local1][0] - s) == 1) or (Math.abs(list[_local1][0] - s) == 7)) and (list[_local1][1] == l)) {
return(true);
}
if ((Math.abs(list[_local1][1] - l) == 1) and (list[_local1][0] == s)) {
return(true);
}
_local1++;
}
return(false);
}
function IsTouchingArrays(list_a, list_b) {
var _local2;
var _local1;
_local2 = 0;
while (_local2 < list_a.length) {
_local1 = 0;
while (_local1 < list_b.length) {
if (((Math.abs(list_a[_local2][0] - list_b[_local1][0]) == 1) or (Math.abs(list_a[_local2][0] - list_b[_local1][0]) == 7)) and (list_a[_local2][1] == list_b[_local1][1])) {
return(true);
}
if ((Math.abs(list_a[_local2][1] - list_b[_local1][1]) == 1) and (list_a[_local2][0] == list_b[_local1][0])) {
return(true);
}
_local1++;
}
_local2++;
}
return(false);
}
function kill_fn(kill_l) {
_global.Collapsing = true;
i = 0;
while (i < kill_l.length) {
_root.myCTHighlight.ra = (Number("0x" + _global.col[_global.pg[kill_l[i][0]][kill_l[i][1]] - 1].slice(2, 4)) / 255) * 100;
_root.myCTHighlight.ga = (Number("0x" + _global.col[_global.pg[kill_l[i][0]][kill_l[i][1]] - 1].slice(4, 6)) / 255) * 100;
_root.myCTHighlight.ba = (Number("0x" + _global.col[_global.pg[kill_l[i][0]][kill_l[i][1]] - 1].slice(6, 8)) / 255) * 100;
eval ((("_root.w.wTmpRot.segment" + kill_l[i][0]) + ".l") + kill_l[i][1]).c.setTransform(_root.myCTHighlight);
_global.pg[kill_l[i][0]][kill_l[i][1]] = 0;
i++;
}
clearInterval(_root.w.wTmpRot.refreschID);
hit.start();
if (_global.combo) {
combom.start();
_global.money = _global.money + _global.comboPTS;
var lvl = this.getNextHighestDepth();
comboRef = this.attachMovie("combo_mc", "combo_mc" + lvl, lvl);
trace((comboRef + " ") + (lvl - 10000));
comboRef.txt_c.combo_txt = "+" + _global.comboPTS;
comboRef._x = 290;
comboRef._y = 190 + ((lvl - 10000) * 25);
_root.info_mc.money_var = _global.money.toString();
}
_root.w.wTmpRot.refreschID = setInterval(_root.colapse_fn, 250);
}
function colapse_fn() {
_global.combo = true;
var _local6;
var _local5;
var _local3;
var _local4;
_local3 = 0;
while (_local3 < 8) {
_local5 = false;
_local4 = 9;
while (_local4 >= 0) {
if ((!_local5) and (_global.pg[_local3][_local4] == 0)) {
_local6 = _local4;
_local5 = true;
}
if (_local5 and (_global.pg[_local3][_local4] != 0)) {
_global.pg[_local3][_local6] = _global.pg[_local3][_local4];
_global.pg[_local3][_local4] = 0;
_local6--;
}
_local4--;
}
_local3++;
}
clearInterval(_root.w.wTmpRot.refreschID);
_root.w.wTmpRot.RefreshScreen();
updateAfterEvent();
_global.Collapsing = false;
_local3 = 0;
while (_local3 < 8) {
if (_global.pg[_local3][0] != 0) {
_root.Lostlife_fn();
}
_local3++;
}
_root.CheckPar();
}
function RotatePG(seg) {
var _local3 = new Array();
var _local2 = new Array();
var _local1 = seg;
i = 0;
while (i < 8) {
_local2.push(_local3[_local1]);
_local1++;
if (_local1 > 7) {
_local1 = 0;
}
i++;
}
}
reactor_mc.c = new Color(_root.reactor_mc.light);
w.dopress = true;
_global.comboPTS = 0;
SetNextColor();
SetNewLevel(0);
FillNextLine(false);
Menu_fn(1);
Frame 8
stop();
function Vector2(x, y) {
this.x = x;
this.y = y;
}
Vector2.prototype.ToString = function () {
return(((("(" + this.x) + ",") + this.y) + ")");
};
Vector2.prototype.ToLoc = function (xc, yc) {
this.x = this.x - xc;
this.y = this.y - yc;
};
Vector2.prototype.clone = function () {
var _local2 = new Vector2(this.x, this.y);
return(_local2);
};
Vector2.prototype.plus = function (v2) {
var _local2 = new Vector2(this.x + v2.x, this.y + v2.y);
return(_local2);
};
Vector2.prototype.minus = function (v2) {
var _local2 = new Vector2(this.x - v2.x, this.y - v2.y);
return(_local2);
};
Vector2.prototype.normR = function () {
var _local2 = new Vector2(this.y * -1, this.x);
return(_local2);
};
Vector2.prototype.dir = function () {
var _local2 = this.clone();
_local2.normalize();
return(_local2);
};
Vector2.prototype.proj = function (v2) {
var _local3 = v2.dot(v2);
if (_local3 == 0) {
trace("WARNING! Vector.proj() was given a zero-length projection vector!");
var _local2 = this.clone();
} else {
var _local2 = v2.clone();
_local2.mult(this.dot(v2) / _local3);
}
return(_local2);
};
Vector2.prototype.projLen = function (v2) {
var _local2 = v2.dot(v2);
if (_local2 == 0) {
trace("WARNING! Vector.projLen() was given a zero-length projection vector!");
return(0);
}
return(Math.abs(this.dot(v2) / _local2));
};
Vector2.prototype.dot = function (v2) {
return((this.x * v2.x) + (this.y * v2.y));
};
Vector2.prototype.cross = function (v2) {
return((this.x * v2.y) - (this.y * v2.x));
};
Vector2.prototype.len = function () {
return(Math.sqrt((this.x * this.x) + (this.y * this.y)));
};
Vector2.prototype.copy = function (v2) {
this.x = v2.x;
this.y = v2.y;
};
Vector2.prototype.mult = function (s) {
this.x = this.x * s;
this.y = this.y * s;
};
Vector2.prototype.rot = function (u) {
bx = this.x;
by = this.y;
r = (u * Math.PI) / 180;
this.x = (bx * Math.sin(r)) - (by * Math.cos(r));
this.y = (by * Math.sin(r)) + (bx * Math.cos(r));
trace((((((("oldX=" + bx) + " oldY=") + by) + " newX=") + this.x) + " newY=") + this.y);
};
Vector2.prototype.normalize = function () {
var _local2 = this.len();
if (_local2 != 0) {
this.x = this.x / _local2;
this.y = this.y / _local2;
} else {
trace("WARNING! Vector.normalize() was called on a zero-length vector!");
}
};
Vector2.prototype.pluseq = function (v2) {
this.x = this.x + v2.x;
this.y = this.y + v2.y;
};
Vector2.prototype.minuseq = function (v2) {
this.x = this.x - v2.x;
this.y = this.y - v2.y;
};
w.DoRotate = function () {
w.deltaR = w.deltaR + w.step;
if (Math.abs(w.deltaR) < Math.abs(w.drmax)) {
w.wTmpRot._rotation = w.deltaR;
w_back._rotation = w.deltaR;
} else {
w._rotation = w._rotation + w.drmax;
w.wTmpRot._rotation = 0;
w_back._rotation = 0;
clearInterval(w.RotationID);
clearInterval(_root.AnimID);
_global.blockAnim = 0;
_root.myCT.ra = (Number("0x" + _global.col[_global.CurrentColor - 1].slice(2, 4)) / 255) * 100;
_root.myCT.ga = (Number("0x" + _global.col[_global.CurrentColor - 1].slice(4, 6)) / 255) * 100;
_root.myCT.ba = (Number("0x" + _global.col[_global.CurrentColor - 1].slice(6, 8)) / 255) * 100;
_root.AnimID = setInterval(_root.w.wTmpRot.UpdateScreen, 5, _global.ActualSegment, _root.myCT, _global.CurrentColor);
}
updateAfterEvent();
};
w.onMouseDown = function () {
if (w.dopress) {
this.M = new Vector2();
this.M.x = _root._xmouse;
this.M.y = 360 - _root._ymouse;
this.M.ToLoc(300, 180);
L = this.M.len();
this.M.normalize();
this.drmax = 0;
if (this.M.x >= 0) {
this.dir = -1;
if (this.M.y >= 0) {
if ((this.M.x >= _global.C2a7) and (this.M.x < _global.C1a8)) {
this.drmax = -45;
this.segment = 1;
}
if (this.M.x >= _global.C1a8) {
this.segment = 2;
this.drmax = -90;
}
if (this.M.x < _global.C2a7) {
this.segment = 0;
}
} else {
if ((this.M.x >= _global.C2a7) and (this.M.x < _global.C1a8)) {
this.segment = 3;
this.drmax = -135;
}
if (this.M.x >= _global.C1a8) {
this.segment = 2;
this.drmax = -90;
}
if (this.M.x < _global.C2a7) {
this.segment = 4;
this.drmax = -180;
}
}
} else {
this.dir = 1;
if (this.M.y >= 0) {
if ((this.M.x <= _global.C3a6) and (this.M.x > _global.C4a5)) {
this.segment = 7;
this.drmax = 45;
}
if (this.M.x <= _global.C4a5) {
this.segment = 6;
this.drmax = 90;
}
if (this.M.x > _global.C3a6) {
this.segment = 0;
}
} else {
if ((this.M.x <= _global.C3a6) and (this.M.x > _global.C4a5)) {
this.segment = 5;
this.drmax = 135;
}
if (this.M.x <= _global.C4a5) {
this.segment = 6;
this.drmax = 90;
}
if (this.M.x > _global.C3a6) {
this.segment = 4;
this.drmax = 180;
}
}
}
this.deltaR = 0;
this.step = this.dir * 25;
if (L < 175) {
_global.comboPTS = 0;
_global.combo = false;
_global.AutoClickCount = 0;
_root.UpdateActualClickLights();
_global.ActualSegment = _global.ActualSegment + this.segment;
if (_global.ActualSegment > 7) {
_global.ActualSegment = _global.ActualSegment - 8;
}
w.dopress = false;
_global.CurrentColor = _global.NextColor;
_root.SetNextColor();
w.RotationID = setInterval(_root.w.DoRotate, 25);
}
}
};
Symbol 38 MovieClip [segment_mc] Frame 1
function spring() {
_global.springAnim = 0;
clearInterval(_root.w.wTmpRot.springID);
_root.w.wTmpRot.springID = setInterval(doSpring, 33, this);
}
function doSpring(mc) {
if (_global.springAnim < _global.springM.length) {
mc._x = Math.sin((mc._rotation * Math.PI) / 180) * _global.springM[_global.springAnim];
mc._y = (-Math.cos((mc._rotation * Math.PI) / 180)) * _global.springM[_global.springAnim];
} else {
mc._y = 0;
mc._x = 0;
clearInterval(_root.w.wTmpRot.springID);
}
_global.springAnim++;
updateAfterEvent();
}
Symbol 40 MovieClip [bublinka] Frame 1
stop();
Symbol 40 MovieClip [bublinka] Frame 2
stop();
Symbol 40 MovieClip [bublinka] Frame 3
stop();
Symbol 40 MovieClip [bublinka] Frame 4
stop();
Symbol 40 MovieClip [bublinka] Frame 5
stop();
Symbol 40 MovieClip [bublinka] Frame 6
stop();
Symbol 40 MovieClip [bublinka] Frame 7
stop();
Symbol 40 MovieClip [bublinka] Frame 8
stop();
Symbol 40 MovieClip [bublinka] Frame 9
stop();
Symbol 40 MovieClip [bublinka] Frame 10
stop();
Symbol 40 MovieClip [bublinka] Frame 11
stop();
Symbol 40 MovieClip [bublinka] Frame 12
stop();
Symbol 40 MovieClip [bublinka] Frame 13
stop();
Symbol 40 MovieClip [bublinka] Frame 14
stop();
Symbol 40 MovieClip [bublinka] Frame 15
stop();
Symbol 40 MovieClip [bublinka] Frame 16
stop();
Symbol 40 MovieClip [bublinka] Frame 17
stop();
Symbol 40 MovieClip [bublinka] Frame 18
stop();
Symbol 40 MovieClip [bublinka] Frame 19
stop();
Symbol 40 MovieClip [bublinka] Frame 20
stop();
Symbol 40 MovieClip [bublinka] Frame 21
stop();
Symbol 40 MovieClip [bublinka] Frame 22
stop();
Symbol 40 MovieClip [bublinka] Frame 23
stop();
Symbol 40 MovieClip [bublinka] Frame 24
stop();
Symbol 40 MovieClip [bublinka] Frame 25
stop();
Symbol 40 MovieClip [bublinka] Frame 26
stop();
Symbol 40 MovieClip [bublinka] Frame 27
stop();
Symbol 40 MovieClip [bublinka] Frame 28
stop();
Symbol 40 MovieClip [bublinka] Frame 29
stop();
Symbol 40 MovieClip [bublinka] Frame 30
stop();
Symbol 40 MovieClip [bublinka] Frame 31
stop();
Symbol 40 MovieClip [bublinka] Frame 32
stop();
Symbol 40 MovieClip [bublinka] Frame 33
stop();
Symbol 40 MovieClip [bublinka] Frame 34
stop();
Symbol 40 MovieClip [bublinka] Frame 35
stop();
Symbol 40 MovieClip [bublinka] Frame 36
stop();
Symbol 40 MovieClip [bublinka] Frame 37
stop();
Symbol 40 MovieClip [bublinka] Frame 38
stop();
Symbol 40 MovieClip [bublinka] Frame 39
stop();
Symbol 40 MovieClip [bublinka] Frame 40
stop();
gotoAndPlay (1);
Symbol 44 MovieClip [combo_mc] Frame 25
this.removeMovieClip();
Symbol 50 MovieClip [wtemp] Frame 1
function InitScreen() {
i = 0;
while (i <= 7) {
this.attachMovie("segment_mc", "segment" + i, i + 1);
eval ("segment" + i)._rotation = i * 45;
j = 0;
while (j <= 10) {
eval ((("segment" + i) + ".l") + j).c = new Color(eval ((("segment" + i) + ".l") + j));
if (_global.pg[i][j] == 0) {
eval ((("segment" + i) + ".l") + j)._visible = false;
} else {
_root.myCT.ra = (Number("0x" + _global.col[_global.pg[i][j] - 1].slice(2, 4)) / 255) * 100;
_root.myCT.ga = (Number("0x" + _global.col[_global.pg[i][j] - 1].slice(4, 6)) / 255) * 100;
_root.myCT.ba = (Number("0x" + _global.col[_global.pg[i][j] - 1].slice(6, 8)) / 255) * 100;
eval ((("segment" + i) + ".l") + j).c.setTransform(_root.myCT);
eval ((("segment" + i) + ".l") + j)._visible = true;
}
j++;
}
i++;
}
}
function RefreshScreen() {
var rCT = {ra:20, rb:0, ga:20, gb:0, ba:20, bb:0, aa:100, ab:0};
i = 0;
while (i < 8) {
j = 0;
while (j < 10) {
if (_global.pg[i][j] == 0) {
eval ((("segment" + i) + ".l") + j)._visible = false;
} else if (_global.pg[i][j] != 25) {
rCT.ra = (Number("0x" + _global.col[_global.pg[i][j] - 1].slice(2, 4)) / 255) * 100;
rCT.ga = (Number("0x" + _global.col[_global.pg[i][j] - 1].slice(4, 6)) / 255) * 100;
rCT.ba = (Number("0x" + _global.col[_global.pg[i][j] - 1].slice(6, 8)) / 255) * 100;
eval ((("segment" + i) + ".l") + j).c.setTransform(rCT);
eval ((("segment" + i) + ".l") + j)._visible = true;
} else {
rCT = {ra:50, rb:0, ga:55, gb:0, ba:70, bb:0, aa:100, ab:0};
eval ((("segment" + i) + ".l") + j).c.setTransform(rCT);
eval ((("segment" + i) + ".l") + j)._visible = true;
}
j++;
}
i++;
}
}
function UpdateScreen(seg, CT, setBlockColor) {
if ((_global.blockAnim < 10) and (_global.pg[seg][_global.blockAnim] == 0)) {
eval ((("segment" + seg) + ".l") + _global.blockAnim).c.setTransform(CT);
eval ((("segment" + seg) + ".l") + _global.blockAnim)._visible = true;
eval ((("segment" + seg) + ".l") + (_global.blockAnim - 1))._visible = false;
if (_global.pg[seg][_global.blockAnim + 1] != 0) {
_global.pg[seg][_global.blockAnim] = setBlockColor;
_root.impact.start();
}
} else {
_root.w.dopress = true;
clearInterval(_root.AnimID);
_root.CheckPar();
clearInterval(_root.w.wTmpRot.springID);
i = 0;
while (i <= 7) {
eval ("segment" + i)._x = 0;
eval ("segment" + i)._y = 0;
i++;
}
eval ("_root.w.wTmpRot.segment" + _global.ActualSegment).spring();
}
_global.blockAnim++;
updateAfterEvent();
}
InitScreen();
Symbol 54 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
this.c = new Color(this);
this._visible = false;
Symbol 67 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
Symbol 114 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 100
gotoAndPlay (1);
Symbol 157 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 1
function play_fn() {
this._visible = false;
for (a in this) {
if (typeof(this[a]) == "movieclip") {
this[a].r_mc.r.stop();
}
}
_root.ClickToContinue();
}
function stop_fn() {
this._visible = true;
for (a in this) {
if (typeof(this[a]) == "movieclip") {
this[a].r_mc.r.play();
}
}
}
stop();
Instance of Symbol 114 MovieClip in Symbol 161 MovieClip Frame 1
on (press) {
this.gotoAndStop(1);
getURL (_root.upsellURL, "_blank");
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 117 MovieClip in Symbol 161 MovieClip Frame 1
on (press) {
this.gotoAndStop(1);
_parent.gotoAndStop(4);
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 120 MovieClip in Symbol 161 MovieClip Frame 1
on (press) {
this.gotoAndStop(1);
_parent.gotoAndStop(5);
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 123 MovieClip in Symbol 161 MovieClip Frame 1
on (press) {
this.gotoAndStop(1);
getURL (_root.upsellURL + "game_page.php?id=1", "_blank");
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 161 MovieClip Frame 2
stop();
Instance of Symbol 126 MovieClip in Symbol 161 MovieClip Frame 2
on (press) {
_root.PlayMusic();
this.gotoAndStop(1);
_parent.play_fn();
_parent.gotoAndStop(5);
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 129 MovieClip in Symbol 161 MovieClip Frame 2
on (press) {
this.gotoAndStop(1);
_root.info_mc.reactor_var = 1;
_root.info_mc.money_var = 0;
_global.money = 0;
_global.money_ring = 0;
_parent.gotoAndStop(4);
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 161 MovieClip Frame 3
stop();
Symbol 161 MovieClip Frame 4
if (_global.planetC) {
this.planet02_mc._visible = true;
} else {
this.planet02_mc._visible = false;
}
stop();
Instance of Symbol 137 MovieClip "planet_01" in Symbol 161 MovieClip Frame 4
on (rollOver) {
_root.sclick.start();
this._xscale = 100;
this._yscale = 100;
}
on (rollOut) {
this._xscale = 80;
this._yscale = 80;
}
on (press) {
_root.PlayMusic();
_root.info_mc.reactor_var = 1;
_root.info_mc.money_var = 0;
_global.money = 0;
_global.money_ring = 0;
_root.SetNewLevel(_root.info_mc.reactor_var - 1);
_root.SetNextColor();
_root.FillNextLine(false);
_parent.play_fn();
_parent.gotoAndStop(5);
this._xscale = 80;
this._yscale = 80;
}
Instance of Symbol 145 MovieClip "r1" in Symbol 161 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 49 MovieClip [planet02] "planet02_mc" in Symbol 161 MovieClip Frame 4
on (rollOver) {
_root.sclick.start();
this._xscale = 100;
this._yscale = 100;
}
on (rollOut) {
this._xscale = 80;
this._yscale = 80;
}
on (press) {
_root.PlayMusic();
_root.info_mc.reactor_var = 8;
_root.SetNewLevel(_root.info_mc.reactor_var - 1);
_root.SetNextColor();
_root.FillNextLine(false);
_parent.play_fn();
_parent.gotoAndStop(5);
this._xscale = 80;
this._yscale = 80;
}
Symbol 161 MovieClip Frame 5
stop();
Instance of Symbol 114 MovieClip in Symbol 161 MovieClip Frame 5
on (press) {
this.gotoAndStop(1);
getURL (_root.upsellURL, "_blank");
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 117 MovieClip in Symbol 161 MovieClip Frame 5
on (press) {
this.gotoAndStop(1);
_parent.gotoAndStop(4);
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 157 MovieClip in Symbol 161 MovieClip Frame 6
on (press) {
this.gotoAndStop(1);
getURL (_root.upsellURL + "game_page.php?id=1", "_blank");
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 129 MovieClip in Symbol 161 MovieClip Frame 6
on (press) {
this.gotoAndStop(1);
_root.info_mc.reactor_var = 1;
_root.info_mc.money_var = 0;
_global.money = 0;
_global.money_ring = 0;
_parent.gotoAndStop(4);
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 114 MovieClip in Symbol 161 MovieClip Frame 8
on (press) {
this.gotoAndStop(1);
getURL (_root.upsellURL, "_blank");
}
on (rollOver) {
this.gotoAndStop(2);
_root.sclick.start();
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 161 MovieClip Frame 15
stop();