Frame 1
stop();
Frame 2
n = 1;
i = 1;
while (4 >= i) {
j = 1;
while (4 >= j) {
tile.duplicateMovieClip("T" + n, n);
obj = this["T" + n];
obj._x = 40 * i;
obj._y = 40 * j;
obj.pic._x = -40 * i;
obj.pic._y = -40 * j;
n++;
j++;
}
i++;
}
X = new Array();
Y = new Array();
n = 1;
while (15 >= n) {
eval ("T" + n)._x = 40 * Math.floor((Math.random() * 4) + 1);
eval ("T" + n)._y = 40 * Math.floor((Math.random() * 4) + 1);
X[n] = eval ("T" + n)._x;
Y[n] = eval ("T" + n)._y;
m = 1;
while (m < n) {
if ((X[m] == X[n]) && (Y[m] == Y[n])) {
eval ("T" + n)._x = 40 * Math.floor((Math.random() * 4) + 1);
eval ("T" + n)._y = 40 * Math.floor((Math.random() * 4) + 1);
X[n] = eval ("T" + n)._x;
Y[n] = eval ("T" + n)._y;
m = 0;
}
m++;
}
n++;
}
T16._x = T16._x + 40;
aki._x = 40 * Math.floor((Math.random() * 4) + 1);
aki._y = 40 * Math.floor((Math.random() * 4) + 1);
X[16] = aki._x;
Y[16] = aki._y;
m = 1;
while (m < 16) {
if ((X[m] == X[16]) && (Y[m] == Y[16])) {
aki._x = 40 * Math.floor((Math.random() * 4) + 1);
aki._y = 40 * Math.floor((Math.random() * 4) + 1);
X[16] = aki._x;
Y[16] = aki._y;
m = 0;
}
m++;
}
aki._x = aki._x - 20;
aki._y = aki._y - 20;
stop();
Instance of Symbol 39 MovieClip in Frame 2
onClipEvent (load) {
checkX = new Array();
checkY = new Array();
G = 1;
_parent.clear._visible = 0;
}
onClipEvent (keyUp) {
x = 1;
n = 1;
while (16 >= n) {
D = "_parent.T" + n;
checkX[n] = eval (D)._x;
checkY[n] = eval (D)._y;
n++;
}
n = 1;
while (4 >= n) {
m = 1;
while (4 >= m) {
if ((checkX[G] == (40 * n)) && (checkY[G] == (40 * m))) {
D = "_parent.T" + x;
eval (D).waku.gotoAndStop(2);
CLEAR++;
} else {
D = "_parent.T" + x;
eval (D).waku.gotoAndStop(1);
}
G++;
x++;
m++;
}
n++;
}
trace(CLEAR);
if (CLEAR == 16) {
trace("CLEAR");
n = 1;
while (16 >= n) {
D = "_parent.T" + n;
eval (D).removeMovieClip();
n++;
}
_parent.aki._visible = 0;
_parent.clear._visible = 1;
} else {
_parent.sound.gotoAndPlay(2);
CLEAR = 0;
G = 1;
}
}
Instance of Symbol 45 MovieClip in Frame 2
onClipEvent (load) {
this.swapDepths(500);
}
Frame 3
gotoAndStop (2);
Symbol 2 MovieClip Frame 15
stop();
Symbol 11 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 14 MovieClip Frame 2
stop();
Instance of Symbol 4 MovieClip in Symbol 14 MovieClip Frame 2
onClipEvent (load) {
comp = 0;
a = 1;
_root.stop();
}
onClipEvent (enterFrame) {
if (((0 < _root.getBytesLoaded()) && (comp < ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100))) && (comp < 100)) {
comp = comp + 1;
this._width = comp;
} else if (comp >= 100) {
_parent.gotoAndPlay(3);
}
}
Symbol 14 MovieClip Frame 45
stop();
Symbol 22 MovieClip Frame 1
stop();
Instance of Symbol 24 MovieClip in Symbol 28 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.aki._x, _root.aki._y, false)) {
_root.UP = 1;
_root.UP_name = _parent._name;
}
}
Instance of Symbol 25 MovieClip in Symbol 28 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.aki._x, _root.aki._y, false)) {
_root.LEFT = 1;
_root.LEFT_name = _parent._name;
}
}
Instance of Symbol 26 MovieClip in Symbol 28 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.aki._x, _root.aki._y, false)) {
_root.RIGHT = 1;
_root.RIGHT_name = _parent._name;
}
}
Instance of Symbol 27 MovieClip in Symbol 28 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.aki._x, _root.aki._y, false)) {
_root.DOWN = 1;
_root.DOWN_name = _parent._name;
}
}
Symbol 30 Button
on (keyPress "<Up>") {
if (UP == 1) {
DX = eval (UP_name)._x;
DY = eval (UP_name)._y;
eval (UP_name)._x = aki._x + 20;
eval (UP_name)._y = aki._y + 20;
aki._x = DX - 20;
aki._y = DY - 20;
UP = 0;
DOWN = 0;
LEFT = 0;
RIGHT = 0;
}
}
on (keyPress "<Down>") {
if (DOWN == 1) {
DX = eval (DOWN_name)._x;
DY = eval (DOWN_name)._y;
eval (DOWN_name)._x = aki._x + 20;
eval (DOWN_name)._y = aki._y + 20;
aki._x = DX - 20;
aki._y = DY - 20;
UP = 0;
DOWN = 0;
LEFT = 0;
RIGHT = 0;
}
}
on (keyPress "<Left>") {
if (LEFT == 1) {
DX = eval (LEFT_name)._x;
DY = eval (LEFT_name)._y;
eval (LEFT_name)._x = aki._x + 20;
eval (LEFT_name)._y = aki._y + 20;
aki._x = DX - 20;
aki._y = DY - 20;
UP = 0;
DOWN = 0;
LEFT = 0;
RIGHT = 0;
}
}
on (keyPress "<Right>") {
if (RIGHT == 1) {
DX = eval (RIGHT_name)._x;
DY = eval (RIGHT_name)._y;
eval (RIGHT_name)._x = aki._x + 20;
eval (RIGHT_name)._y = aki._y + 20;
aki._x = DX - 20;
aki._y = DY - 20;
UP = 0;
DOWN = 0;
LEFT = 0;
RIGHT = 0;
}
}
Symbol 34 Button
on (release) {
_root.gotoAndPlay(3);
}
Symbol 41 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 66
stop();