Frame 1
loadMovieNum ("logo.swf", 10);
Frame 2
setProperty("_level10", _y , "0");
setProperty("_level10", _x , "0");
ifFrameLoaded (10) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 4
ifFrameLoaded (48) {
gotoAndStop (11);
}
play();
Frame 10
gotoAndStop (4);
Frame 11
setProperty("_level10", _y , "0");
setProperty("_level10", _x , "0");
stop();
Frame 12
play();
Frame 46
gotoAndStop (47);
Frame 47
setProperty("_level10", _y , "0");
setProperty("_level10", _x , "0");
sheepmk = "0";
while (sheepmk <> sheepno) {
duplicateMovieClip ("/sheep", "sheep" add sheepmk, sheepmk);
setProperty("/sheep" add sheepmk, _x , "25" + random("475"));
setProperty("/sheep" add sheepmk, _y , "25" + random("325"));
sheepmk = sheepmk + "1";
}
stop();
startDrag ("/mouse pointer", true);
sheep = "0";
caught = "0";
gotaway = "0";
timer = "0";
escape1x = getProperty("/escape1", _x);
escape1y = getProperty("/escape1", _y);
escape1w = escape1x + getProperty("/escape1", _width);
escape1h = escape1y + getProperty("/escape1", _height);
escape2y = getProperty("/escape2", _y);
escape2x = getProperty("/escape2", _x);
escape2w = escape2x + getProperty("/escape2", _width);
escape2h = escape2y + getProperty("/escape2", _height);
escape3y = getProperty("/escape3", _y);
escape3x = getProperty("/escape3", _x);
escape3w = escape3x + getProperty("/escape3", _width);
escape3h = escape3y + getProperty("/escape3", _height);
escape4y = getProperty("/escape4", _y);
escape4x = getProperty("/escape4", _x);
escape4w = escape4x + getProperty("/escape4", _width);
escape4h = escape4y + getProperty("/escape4", _height);
peny = getProperty("/pen", _y);
penx = getProperty("/pen", _x);
penw = penx + getProperty("/pen", _width);
penh = peny + getProperty("/pen", _height);
pen2y = getProperty("/pen2", _y);
pen2x = getProperty("/pen2", _x);
pen2w = pen2x + getProperty("/pen2", _width);
pen2h = pen2y + getProperty("/pen2", _height);
pen3y = getProperty("/pen3", _y);
pen3x = getProperty("/pen3", _x);
pen3w = pen3x + getProperty("/pen3", _width);
pen3h = pen3y + getProperty("/pen3", _height);
hoty = getProperty("/hotspot", _y);
hotx = getProperty("/hotspot", _x);
hotw = hotx + getProperty("/hotspot", _width);
hoth = hoty + getProperty("/hotspot", _height);
Frame 48
setProperty("_level10", _y , "40");
setProperty("_level10", _x , "250");
stop();
sheepmk = "0";
while (sheepmk <> sheepno) {
removeMovieClip("sheep" add sheepmk);
sheepmk = sheepmk + "1";
}
Symbol 20 MovieClip Frame 1
x = random("2") - random("2");
y = random("2") - random("2");
movex = x * "0.125";
movey = y * "0.125";
_x = (_x - movex);
_y = (_y - movey);
play();
Symbol 20 MovieClip Frame 3
play();
Symbol 24 MovieClip Frame 4
call("40");
Symbol 24 MovieClip Frame 19
call("40");
Symbol 24 MovieClip Frame 22
call("40");
Symbol 24 MovieClip Frame 40
where = random("4");
if (where == "1") {
gotoAndPlay (1);
}
if (where == "2") {
gotoAndPlay (5);
}
if (where == "3") {
gotoAndPlay (20);
}
if (where == "4") {
gotoAndPlay (1);
}
Symbol 26 Button
on (rollOver) {
gotoAndPlay (61);
}
Symbol 28 MovieClip Frame 1
play();
Symbol 28 MovieClip Frame 4
call("60");
Symbol 28 MovieClip Frame 16
call("60");
Symbol 28 MovieClip Frame 25
call("60");
Symbol 28 MovieClip Frame 56
call("60");
Symbol 28 MovieClip Frame 60
where = random("4");
if (where == "1") {
gotoAndPlay (1);
}
if (where == "2") {
gotoAndPlay (5);
}
if (where == "3") {
gotoAndPlay (17);
}
if (where == "4") {
gotoAndPlay (26);
}
if (where == "0") {
gotoAndPlay (1);
}
Symbol 28 MovieClip Frame 90
gotoAndStop (1);
Symbol 30 Button
on (release) {
play();
sheepno = "8";
}
Symbol 32 Button
on (release) {
getURL ("http://www.sheepgame.co.uk", "_blank");
}
Symbol 54 MovieClip Frame 1
sheepis = ../:caught + ../:gotaway;
if (../:sheepno < sheepis) {
Set("../:isok", "yes");
tellTarget ("/timer info") {
stop();
tellTarget ("/") {
gotoAndStop ("end");
};
}
}
Symbol 56 Button
on (rollOver) {
play();
}
Symbol 57 MovieClip Frame 1
stop();
stopAllSounds();
Symbol 57 MovieClip Frame 22
gotoAndStop (1);
Symbol 59 MovieClip Frame 1
call("controls");
Symbol 59 MovieClip Frame 2
gotoAndPlay (1);
Symbol 59 MovieClip Frame 3
call("controls");
Symbol 59 MovieClip Frame 4
gotoAndPlay (3);
Symbol 59 MovieClip Frame 5
call("controls");
Symbol 59 MovieClip Frame 6
gotoAndPlay (5);
Symbol 59 MovieClip Frame 7
call("controls");
Symbol 59 MovieClip Frame 8
gotoAndPlay (7);
Symbol 59 MovieClip Frame 9
gotoAndPlay (1);
Symbol 59 MovieClip Frame 10
call("variables");
call("directiona");
Symbol 59 MovieClip Frame 11
distance = "100" + random("25");
speed = faster + "10";
faster = random("5");
idle = random1 - random2;
random1 = random("3");
random2 = random("3");
mousey = getProperty("/mouse pointer", _y);
mousex = getProperty("/mouse pointer", _x);
squarey = _y;
squarex = _x;
squarew = squarex + _width;
squareh = squarey + _height;
Symbol 59 MovieClip Frame 12
if (((((((squarex < ../:escape1w) and (../:escape1x < squarew)) and (squarey < ../:escape1h)) and (../:escape1y < squareh)) or ((((squarex < ../:escape2w) and (../:escape2x < squarew)) and (squarey < ../:escape2h)) and (../:escape2y < squareh))) or ((((squarex < ../:escape3w) and (../:escape3x < squarew)) and (squarey < ../:escape3h)) and (../:escape3y < squareh))) or ((((squarex < ../:escape4w) and (../:escape4x < squarew)) and (squarey < ../:escape4h)) and (../:escape4y < squareh))) {
_visible = "0";
Set("../:gotaway", ../:gotaway + "1");
stop();
} else if ((((squarex < ../:hotw) and (../:hotx < squarew)) and (squarey < ../:hoth)) and (../:hoty < squareh)) {
Set("../:caught", ../:caught + "1");
stop();
} else {
if (((((squarex < ../:pen2w) and (../:pen2x < squarex)) and (squarey < ../:pen2h)) and (../:pen2y < squareh)) or ((((squarex < ../:pen3w) and (../:pen3x < squarex)) and (squarey < ../:pen3h)) and (../:pen3y < squareh))) {
_x = (squarex + speed);
} else if (((((../:penx < squarew) and (squarew < ../:penw)) and (squarey < ../:penh)) and (../:peny < squareh)) or ((((../:pen3x < squarew) and (squarew < ../:pen3w)) and (squarey < ../:pen3h)) and (../:pen3y < squareh))) {
_x = (squarex - speed);
} else {
call("direction1");
}
if ((((((squarey < ../:penh) and (../:peny < squarey)) and (squarex < ../:penw)) and (../:penx < squarew)) or ((((squarey < ../:pen2h) and (../:pen2y < squarey)) and (squarex < ../:pen2w)) and (../:pen2x < squarew))) or ((((squarey < ../:pen3h) and (../:pen3y < squarey)) and (squarex < ../:pen3w)) and (../:pen3x < squarew))) {
_y = (squarey + speed);
} else if (((((squareh < ../:penh) and (../:peny < squareh)) and (squarex < ../:penw)) and (../:penx < squarew)) or ((((squareh < ../:pen2h) and (../:pen2y < squareh)) and (squarex < ../:pen2w)) and (../:pen2x < squarew))) {
_y = (squarey - speed);
} else {
call("direction2");
}
}
Symbol 59 MovieClip Frame 13
if ((((mousex < squarex) and ((squarex - distance) < mousex)) and (squarey < mousey)) and (mousey < squareh)) {
_x = (squarex + speed);
gotoAndPlay (1);
} else if ((((squarew < mousex) and (mousex < (squarew + distance))) and (squarey < mousey)) and (mousey < squareh)) {
_x = (squarex - speed);
gotoAndPlay (5);
} else {
_x = (squarex + idle);
}
Symbol 59 MovieClip Frame 14
if ((((mousey < squarey) and ((squarey - distance) < mousey)) and (squarex < mousex)) and (mousex < squarew)) {
_y = (squarey + speed);
gotoAndPlay (7);
} else if ((((squareh < mousey) and (mousey < (squareh + distance))) and (squarex < mousex)) and (mousex < squarew)) {
_y = (squarey - speed);
gotoAndPlay (3);
} else {
_y = (squarey + idle);
}
Symbol 71 MovieClip Frame 1
timerno = ../:timer + "1";
if (../:timer == "999") {
stop();
} else {
Set("../:timer", timerno);
}
Symbol 73 Button
on (release) {
gotoAndStop (47);
}
Symbol 82 Button
on (release) {
gotoAndStop (11);
}
Symbol 85 Button
on (release) {
gotoAndStop (47);
}