Frame 1
stop();
Symbol 3 MovieClip Frame 10
stop();
Symbol 7 Button
on (rollOver) {
Set("../../:select" + getProperty("../", _name), 1);
}
on (rollOut) {
Set("../../:select" + getProperty("../", _name), 0);
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 7
play();
Symbol 53 MovieClip Frame 15
stop();
Symbol 53 MovieClip Frame 20
play();
Symbol 53 MovieClip Frame 28
stop();
Symbol 53 MovieClip Frame 34
play();
Symbol 53 MovieClip Frame 42
stop();
Symbol 53 MovieClip Frame 48
play();
Symbol 53 MovieClip Frame 56
stop();
Symbol 53 MovieClip Frame 80
stop();
Symbol 54 MovieClip Frame 1
while (setsquare < 7) {
setsquare = setsquare + 1;
this["x" + setsquare] = 0 + (setsquare * 20);
this["y" + setsquare] = 0 + (setsquare * 10);
this["x" + (setsquare + 7)] = -20 + (setsquare * 20);
this["y" + (setsquare + 7)] = 10 + (setsquare * 10);
this["x" + (setsquare + 14)] = -40 + (setsquare * 20);
this["y" + (setsquare + 14)] = 20 + (setsquare * 10);
this["x" + (setsquare + 21)] = -60 + (setsquare * 20);
this["y" + (setsquare + 21)] = 30 + (setsquare * 10);
this["x" + (setsquare + 28)] = -80 + (setsquare * 20);
this["y" + (setsquare + 28)] = 40 + (setsquare * 10);
this["x" + (setsquare + 35)] = -100 + (setsquare * 20);
this["y" + (setsquare + 35)] = 50 + (setsquare * 10);
this["x" + (setsquare + 42)] = -120 + (setsquare * 20);
this["y" + (setsquare + 42)] = 60 + (setsquare * 10);
}
square1 = 17;
row1 = 3;
col1 = 3;
square2 = 18;
row2 = 3;
col2 = 4;
square3 = 19;
row3 = 3;
col3 = 5;
square4 = 24;
row4 = 4;
col4 = 3;
square5 = 26;
row5 = 4;
col5 = 5;
square6 = 31;
row6 = 5;
col6 = 3;
square7 = 32;
row7 = 5;
col7 = 4;
square8 = 33;
row8 = 5;
col8 = 5;
while (dup < 8) {
dup++;
duplicateMovieClip ("man", "man" + dup, dup);
this["man" + dup]._x = dup * 50;
}
count = 0;
while (count < 8) {
count++;
this["man" + count]._x = this["x" + ("square" + count)];
this["man" + count]._y = this["y" + ("square" + count)];
}
count = 0;
this.man._visible = 0;
Symbol 54 MovieClip Frame 3
count = count + 1;
if (count > 8) {
count = 1;
}
call("random_direction");
while (check < 9) {
if (this["selectman" + check] == 1) {
this.test.gotoAndPlay(1);
this.test._x = this["man" + check]._x;
this.test._y = this["man" + check]._y;
}
check++;
if ((check != count) && ((this["square" + count] + this["nextsquare" + count]) == this["square" + check])) {
this["collide" + count] = this["collide" + count] + 1;
}
}
check = 0;
if ((this["collide" + count] == 0) && (this["selectman" + count] < 1)) {
if (this["direction" + count] == 1) {
call("one");
}
if (this["direction" + count] == 2) {
call("two");
}
if (this["direction" + count] == 3) {
call("three");
}
if (this["direction" + count] == 4) {
call("four");
}
} else if (this["selectman" + count] == 1) {
this["man" + count].gotoAndPlay(70);
}
this["collide" + count] = 0;
Symbol 54 MovieClip Frame 4
prevFrame();
play();
Symbol 54 MovieClip Frame 10
randomdir = int(Number(random(4)) + 1);
if (randomdir == 2) {
this["direction" + count] = this["direction" + count] - 1;
}
if (randomdir == 3) {
this["direction" + count] = this["direction" + count] + 1;
}
if (this["direction" + count] > 4) {
this["direction" + count] = 1;
}
if (this["direction" + count] < 1) {
this["direction" + count] = 4;
}
if (this["direction" + count] == 1) {
this["nextsquare" + count] = 7;
}
if (this["direction" + count] == 2) {
this["nextsquare" + count] = 1;
}
if (this["direction" + count] == 3) {
this["nextsquare" + count] = -7;
}
if (this["direction" + count] == 4) {
this["nextsquare" + count] = -1;
}
Symbol 54 MovieClip Frame 25
if (this["row" + count] < 7) {
Set("row" + count, eval ("row" + count) + 1);
Set("square" + count, eval ("square" + count) + 7);
Set("depth" + count, eval ("y" + eval ("square" + count)) + count);
removeMovieClip("man" + count);
duplicateMovieClip ("man", "man" + count, int(eval ("depth" + count)));
tellTarget ("man" + count) {
gotoAndPlay ("SW");
};
setProperty("man" + count, _x , eval ("x" + eval ("square" + count)));
setProperty("man" + count, _y , eval ("y" + eval ("square" + count)));
}
Symbol 54 MovieClip Frame 30
if (eval ("col" + count) < 7) {
Set("col" + count, eval ("col" + count) + 1);
Set("square" + count, eval ("square" + count) + 1);
Set("depth" + count, eval ("y" + eval ("square" + count)) + count);
removeMovieClip("man" + count);
duplicateMovieClip ("man", "man" + count, int(eval ("depth" + count)));
tellTarget ("man" + count) {
gotoAndPlay ("SE");
};
setProperty("man" + count, _x , eval ("x" + eval ("square" + count)));
setProperty("man" + count, _y , eval ("y" + eval ("square" + count)));
}
Symbol 54 MovieClip Frame 35
if (eval ("row" + count) > 1) {
Set("row" + count, eval ("row" + count) - 1);
Set("square" + count, eval ("square" + count) - 7);
Set("depth" + count, eval ("y" + eval ("square" + count)) + count);
removeMovieClip("man" + count);
duplicateMovieClip ("man", "man" + count, int(eval ("depth" + count)));
tellTarget ("man" + count) {
gotoAndPlay ("NE");
};
setProperty("man" + count, _x , eval ("x" + eval ("square" + count)));
setProperty("man" + count, _y , eval ("y" + eval ("square" + count)));
}
Symbol 54 MovieClip Frame 40
if (eval ("col" + count) > 1) {
Set("col" + count, eval ("col" + count) - 1);
Set("square" + count, eval ("square" + count) - 1);
Set("depth" + count, eval ("y" + eval ("square" + count)) + count);
removeMovieClip("man" + count);
duplicateMovieClip ("man", "man" + count, int(eval ("depth" + count)));
tellTarget ("man" + count) {
gotoAndPlay ("NW");
};
setProperty("man" + count, _x , eval ("x" + eval ("square" + count)));
setProperty("man" + count, _y , eval ("y" + eval ("square" + count)));
}