Frame 1
stop();
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (enterFrame) {
text = ((int(_parent.getBytesLoaded() / 1000) add " kbytes of ") add int(_parent.getBytesTotal() / 1000)) add " Blix loaded ...";
if (_parent.getBytesTotal() == _parent.getBytesLoaded()) {
_parent.gotoAndPlay(2);
}
}
Frame 2
function setTiles() {
var _local1 = this;
x = 0;
y = 0;
c = 0;
while (x < 12) {
while (y < 3) {
duplicateMovieClip ("tiles", (("t" + x) + "_") + y, ++d);
_local1[(("t" + x) + "_") + y]._x = (x * 31) + 60;
_local1[(("t" + x) + "_") + y]._y = (y * 31) + 60;
ctemp = c;
c = int(random(3)) + 1;
if (ctemp != c) {
_local1[(("t" + x) + "_") + y].gotoAndStop(c);
_local1[(("t" + x) + "_") + y].col = c;
y++;
}
}
y = 0;
x++;
}
}
mySound = new Sound(_root.gameSound);
moves = 4;
score = 0;
setTiles();
Instance of Symbol 18 MovieClip "tiles" in Frame 2
onClipEvent (load) {
n = random(5) + 5;
r = random(2) + 1;
if (r == 1) {
r = n;
} else {
r = -n;
}
}
onClipEvent (enterFrame) {
if (_root.moves <= 0) {
_root.moves = 0;
_root.gotoAndStop(16);
this._y = this._y + r;
if ((this._y < -20) or (this._y > 220)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 20 MovieClip "gameSound" in Frame 2
onClipEvent (enterFrame) {
_root.mySound.setVolume(_root.myslider.ratio * 2);
}
Frame 3
stop();
Frame 4
stop();
flag = true;
if (pos == "right") {
x = 11;
y = 0;
while (x >= 0) {
if (flag) {
if ((this[(("t" + x) + "_") + y].col == this[(("t" + x) + "_") + (y + 1)].col) and (this[(("t" + x) + "_") + (y + 1)].col == this[(("t" + x) + "_") + (y + 2)].col)) {
num = x;
this[(("t" + x) + "_") + y].gotoAndPlay(4);
this[(("t" + x) + "_") + (y + 1)].gotoAndPlay(4);
this[(("t" + x) + "_") + (y + 2)].gotoAndPlay(4);
flag = false;
play();
}
}
x--;
}
} else {
x = 0;
y = 0;
while (x < 12) {
if (flag) {
if ((this[(("t" + x) + "_") + y].col == this[(("t" + x) + "_") + (y + 1)].col) and (this[(("t" + x) + "_") + (y + 1)].col == this[(("t" + x) + "_") + (y + 2)].col)) {
num = x;
this[(("t" + x) + "_") + y].gotoAndPlay(4);
this[(("t" + x) + "_") + (y + 1)].gotoAndPlay(4);
this[(("t" + x) + "_") + (y + 2)].gotoAndPlay(4);
flag = false;
play();
}
}
x++;
}
}
if (flag == true) {
if (mv == 0) {
moves = moves - 2;
}
prevFrame();
}
Frame 15
function replaceRight(y) {
var _local1 = this;
var _local2 = y;
x = num;
while (x > 0) {
c = _local1[(("t" + (x - 1)) + "_") + _local2].col;
_local1[(("t" + x) + "_") + _local2].col = c;
_local1[(("t" + x) + "_") + _local2].gotoAndStop(c);
x--;
}
c = int(random(3)) + 1;
_local1["t0_" + _local2].col = c;
_local1["t0_" + _local2].gotoAndStop(c);
}
function replaceLeft(y) {
var _local1 = this;
var _local2 = y;
x = num;
while (x < 11) {
c = _local1[(("t" + (x + 1)) + "_") + _local2].col;
_local1[(("t" + x) + "_") + _local2].col = c;
_local1[(("t" + x) + "_") + _local2].gotoAndStop(c);
x++;
}
c = int(random(3)) + 1;
_local1["t11_" + _local2].col = c;
_local1["t11_" + _local2].gotoAndStop(c);
}
if (pos == "right") {
replaceRight(0);
replaceRight(1);
replaceRight(2);
} else {
replaceLeft(0);
replaceLeft(1);
replaceLeft(2);
}
score = score + 100;
mv++;
if ((((((mv == 2) or (mv == 4)) or (mv == 6)) or (mv == 8)) or (mv == 10)) or (mv == 12)) {
moves++;
}
gotoAndPlay (4);
Instance of Symbol 45 MovieClip in Frame 16
onClipEvent (load) {
this._x = 600;
}
onClipEvent (enterFrame) {
if (this._x > 320) {
this._x = this._x - 4;
}
}
Symbol 12 Button
on (press) {
getURL ("http://www.freestuff.gr/lightforce", "_blank");
}
Symbol 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 9
stop();
Symbol 20 MovieClip Frame 2
stop();
Symbol 20 MovieClip Frame 3
stop();
Symbol 25 MovieClip Frame 1
this.ratio = 100;
dragger.onPress = function () {
var _local1 = this;
_local1.startDrag(true, 0, 0, line._width, 0);
_local1.onEnterFrame = function () {
ratio = Math.round(this._x);
};
};
dragger.onRelease = (dragger.onreleaseOutside = stopDrag);
Symbol 31 Button
on (press) {
x = 11;
y = 0;
while (x > 0) {
c = this[(("t" + (x - 1)) + "_") + y].col;
this[(("t" + x) + "_") + y].col = c;
this[(("t" + x) + "_") + y].gotoAndStop(c);
x--;
}
c = int(random(3)) + 1;
this["t0_" + y].col = c;
this["t0_" + y].gotoAndStop(c);
mv = 0;
pos = "right";
play();
}
Symbol 32 Button
on (press) {
x = 11;
y = 1;
while (x > 0) {
c = this[(("t" + (x - 1)) + "_") + y].col;
this[(("t" + x) + "_") + y].col = c;
this[(("t" + x) + "_") + y].gotoAndStop(c);
x--;
}
c = int(random(3)) + 1;
this["t0_" + y].col = c;
this["t0_" + y].gotoAndStop(c);
mv = 0;
pos = "right";
play();
}
Symbol 33 Button
on (press) {
x = 11;
y = 2;
while (x > 0) {
c = this[(("t" + (x - 1)) + "_") + y].col;
this[(("t" + x) + "_") + y].col = c;
this[(("t" + x) + "_") + y].gotoAndStop(c);
x--;
}
c = int(random(3)) + 1;
this["t0_" + y].col = c;
this["t0_" + y].gotoAndStop(c);
mv = 0;
pos = "right";
play();
}
Symbol 34 Button
on (press) {
x = 0;
y = 0;
while (x < 11) {
c = this[(("t" + (x + 1)) + "_") + y].col;
this[(("t" + x) + "_") + y].col = c;
this[(("t" + x) + "_") + y].gotoAndStop(c);
x++;
}
c = int(random(3)) + 1;
this["t11_" + y].col = c;
this["t11_" + y].gotoAndStop(c);
mv = 0;
pos = "left";
play();
}
Symbol 35 Button
on (press) {
x = 0;
y = 1;
while (x < 11) {
c = this[(("t" + (x + 1)) + "_") + y].col;
this[(("t" + x) + "_") + y].col = c;
this[(("t" + x) + "_") + y].gotoAndStop(c);
x++;
}
c = int(random(3)) + 1;
this["t11_" + y].col = c;
this["t11_" + y].gotoAndStop(c);
mv = 0;
pos = "left";
play();
}
Symbol 36 Button
on (press) {
x = 0;
y = 2;
while (x < 11) {
c = this[(("t" + (x + 1)) + "_") + y].col;
this[(("t" + x) + "_") + y].col = c;
this[(("t" + x) + "_") + y].gotoAndStop(c);
x++;
}
c = int(random(3)) + 1;
this["t11_" + y].col = c;
this["t11_" + y].gotoAndStop(c);
mv = 0;
pos = "left";
play();
}
Symbol 44 Button
on (press) {
_root.gotoAndPlay(2);
}