Frame 2
ifFrameLoaded (19) {
gotoAndStop (14);
}
Frame 10
ifFrameLoaded (19) {
gotoAndStop (14);
}
Frame 11
gotoAndPlay (10);
Frame 14
fscommand ("fullscreen", "1");
fscommand ("allowscale", "0");
stop();
text = "You know that game you play in the pub, where you flick the beermat on the edge of the table and then catch it?\r\rNo? Well you do now.\r\rClick the flick button when the flickometer is at it's optimal speed and then click catch to grab the mat. Watch out though, 'cos all the time the counter is ticking down.\r\rOh! I nearly forgot to mention - miss a mat and you have to take a drink from your pint making your drunkometer rise. If this happens the mat becomes more difficult to catch.\r\rGot that? Then click ‘Burd’ or ‘Bloke’ and start a game";
stopAllSounds();
Frame 15
Set("_level0:max", "0");
Set("_level0:gameStart", "0");
Set("_level0:hotspot", "-20");
Set("_level0:soberness", "10");
Set("_level0:drunkeness", "10" - _level0:soberness);
Set("_level0:score", "0");
Set("_level0:countdownMax", "30");
Set("_level0:timerReadOut", "30");
stop();
Frame 20
Set("_level0:max", "0");
Set("_level0:gameStart", "0");
Set("_level0:hotspot", "-20");
Set("_level0:soberness", "10");
Set("_level0:drunkeness", "10" - _level0:soberness);
Set("_level0:score", "0");
Set("_level0:countdownMax", "30");
Set("_level0:timerReadOut", "30");
stop();
Symbol 7 MovieClip Frame 44
gotoAndPlay (1);
Symbol 16 Button
on (release) {
gotoAndPlay (15);
}
Symbol 20 Button
on (release) {
gotoAndPlay (20);
}
Symbol 26 Button
on (release, releaseOutside) {
Set("_level0:scroller", "0");
}
on (press) {
Set("_level0:scroller", "up");
}
Symbol 27 Button
on (release, releaseOutside) {
Set("_level0:scroller", "0");
}
on (press) {
Set("_level0:scroller", "down");
}
Symbol 28 MovieClip Frame 9
call("code");
gotoAndPlay (5);
Symbol 28 MovieClip Frame 23
if (_level0:scroller eq "up") {
Set("/:text.scroll", /:text.scroll - "1");
} else if (_level0:scroller eq "down") {
Set("/:text.scroll", /:text.scroll + "1");
}
Symbol 32 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 1
Set("_level0:fillState", "1");
stop();
Symbol 41 MovieClip Frame 6
Set("_level0:fillState", "2");
stop();
Symbol 41 MovieClip Frame 11
Set("_level0:fillState", "3");
stop();
Symbol 41 MovieClip Frame 16
Set("_level0:fillState", "4");
stop();
Symbol 43 Button
on (release) {
gotoAndStop (15);
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 10
call("code");
Symbol 72 MovieClip Frame 11
call("code");
gotoAndPlay (10);
Symbol 72 MovieClip Frame 45
maxHeight = _level0:flickStrength * "-50";
if (_level0:gameStart eq "1") {
setProperty("/beermat", _y , (getProperty("/gauge/arrow", _y) * "5") + "281");
yPosition = getProperty("/beermat", _y) - "281";
if (_level0:cardState eq "up") {
frame = (yPosition / maxHeight) * "13";
tellTarget ("/beermat/beermatAnimation") {
gotoAndStop(int(/beermat/:frame));
};
}
if (_level0:cardState eq "down") {
frame = "13" + ("13" - ((yPosition / maxHeight) * "13"));
tellTarget ("/beermat/beermatAnimation") {
gotoAndStop(int(/beermat/:frame));
};
}
}
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 8
Set("_level0:handState", "0");
Symbol 86 MovieClip Frame 10
stop();
Symbol 86 MovieClip Frame 25
Set("_level0:handState", "1");
Symbol 86 MovieClip Frame 26
Set("_level0:handState", "0");
stop();
Symbol 90 Button
on (release) {
if (_level0:timerOn eq "0") {
tellTarget ("/timer") {
play();
};
}
Set("_level0:timerState", "1");
tellTarget ("_level0/hand") {
gotoAndPlay ("start_flick");
};
tellTarget ("_level0/flickometer") {
stop();
};
Set("_level0:flickStrength", _level0:strength);
Set("_level0:gameStart", "1");
gotoAndStop (10);
}
Symbol 93 Button
on (release) {
tellTarget ("_level0/hand") {
gotoAndPlay ("start_catch");
};
gotoAndStop (1);
}
Symbol 96 Button
on (release) {
tellTarget ("_level0/hand") {
gotoAndStop ("default");
};
tellTarget ("/beermat/beermatAnimation") {
gotoAndStop (1);
};
setProperty("/beermat", _y , "281");
setProperty("/gauge/arrow", _y , "0");
tellTarget ("/flickometer") {
play();
};
if (_level0:catchSuccess eq "0") {
if ("1" < /:soberness) {
Set("/:soberness", /:soberness - "1");
Set("/:drunkeness", /:drunkeness + "1");
}
if (/:fillState <> "4") {
Set("/:fillState", /:fillState + "1");
} else {
Set("/:fillState", "1");
}
Set("/:nextPosition", "fill" add /:fillstate);
tellTarget ("/pint") {
gotoAndStop(/:nextPosition);
};
}
gotoAndStop (1);
}
Symbol 100 Button
on (release) {
tellTarget ("/") {
gotoAndStop ("start");
};
}
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 10
stop();
Symbol 106 MovieClip Frame 20
stop();
Symbol 106 MovieClip Frame 30
stop();
Symbol 106 MovieClip Frame 43
if (/:score < "2") {
sCharacter = "";
} else {
sCharacter = "S";
}
if (/:score < "2") {
message = "MOVE OUTSIDE PLEASE!";
} else if (/:score < "4") {
message = "CAN'T HANDLE YOUR DRINK?";
} else if (/:score < "6") {
message = "STAY OFF THE DRINK";
} else if (/:score < "8") {
message = "NICE FLICKIN’";
} else if (/:score >= "8") {
message = "HAVE A PINT ON ME!";
}
youCaught = ((("YOU CAUGHT " add _level:score) add " BEERMAT") add sCharacter) add " IN 30 SECONDS";
Symbol 109 MovieClip Frame 10
call("code");
Symbol 109 MovieClip Frame 11
call("code");
gotoAndPlay (10);
Symbol 109 MovieClip Frame 45
yPosition = _y;
upDifference = (_level0:flickStrength * "-10") - yPosition;
downDifference = yPosition - "0";
Set("_level0:accuracyDistance", _level0:hotspot - yPosition);
tellTarget ("") {
if ((_level0:max eq "0") and (_level0:gameStart eq "1")) {
_y = (yPosition + (upDifference / ((_level0:soberness / "3") + "5")));
Set("_level0:cardState", "up");
if ((upDifference < "2") and ("-2" < upDifference)) {
upDifference = "0";
Set("_level0:max", "1");
}
} else if ((_level0:max eq "1") and (_level0:gameStart eq "1")) {
_y = ((yPosition + (_level0:drunkeness / "2")) + "3");
Set("_level0:cardState", "down");
if (_level0:handState eq "1") {
if (((_level0:hotspot - (_level0:soberness * "1.9")) < yPosition) and (yPosition < (_level0:hotspot + (_level0:soberness * "1.5")))) {
Set("_level0:max", "0");
Set("_level0:gameStart", "0");
tellTarget ("/beermat/beermatAnimation/") {
gotoAndStop ("caught");
};
setProperty("/beermat", _y , (_level0:hotspot * "5") + "281");
Set("/:score", /:score + "1");
tellTarget ("/buttons") {
gotoAndStop ("next");
};
Set("_level0:catchSuccess", "1");
Set("_level0:cardState", "off");
}
}
if ("-1" < downDifference) {
downDifference = "1";
Set("_level0:max", "0");
Set("_level0:gameStart", "0");
tellTarget ("/beermat/beermatAnimation") {
gotoAndStop (1);
};
tellTarget ("/buttons") {
gotoAndStop ("next");
};
Set("_level0:catchSuccess", "0");
Set("_level0:cardState", "off");
}
}
};
Symbol 117 MovieClip Frame 1
Set("_level0:strength", "1");
Symbol 117 MovieClip Frame 3
Set("_level0:strength", "2");
Symbol 117 MovieClip Frame 5
Set("_level0:strength", "3");
Symbol 117 MovieClip Frame 7
Set("_level0:strength", "4");
Symbol 117 MovieClip Frame 9
Set("_level0:strength", "5");
Symbol 117 MovieClip Frame 11
Set("_level0:strength", "6");
Symbol 117 MovieClip Frame 13
Set("_level0:strength", "7");
Symbol 117 MovieClip Frame 15
Set("_level0:strength", "8");
Symbol 117 MovieClip Frame 17
Set("_level0:strength", "9");
Symbol 117 MovieClip Frame 19
Set("_level0:strength", "10");
Symbol 117 MovieClip Frame 21
Set("_level0:strength", "9");
Symbol 117 MovieClip Frame 23
Set("_level0:strength", "8");
Symbol 117 MovieClip Frame 25
Set("_level0:strength", "7");
Symbol 117 MovieClip Frame 27
Set("_level0:strength", "6");
Symbol 117 MovieClip Frame 29
Set("_level0:strength", "5");
Symbol 117 MovieClip Frame 31
Set("_level0:strength", "4");
Symbol 117 MovieClip Frame 33
Set("_level0:strength", "3");
Symbol 117 MovieClip Frame 35
Set("_level0:strength", "2");
Symbol 117 MovieClip Frame 37
Set("_level0:strength", "2");
Symbol 117 MovieClip Frame 39
Set("_level0:strength", "1");
gotoAndPlay (1);
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 8
gotoAndStop (1);
Symbol 134 MovieClip Frame 15
gotoAndStop (1);
Symbol 134 MovieClip Frame 22
gotoAndStop (1);
Symbol 134 MovieClip Frame 29
gotoAndStop (1);
Symbol 134 MovieClip Frame 39
gotoAndStop (1);
Symbol 135 MovieClip Frame 1
Set("_level0:timerOn", "0");
stop();
Symbol 135 MovieClip Frame 2
Set("_level0:startTime", getTimer());
Set("_level0:timerOn", "1");
soundCounter = _level0:countdownMax;
Symbol 135 MovieClip Frame 10
call("code");
Symbol 135 MovieClip Frame 11
call("code");
gotoAndPlay (10);
Symbol 135 MovieClip Frame 40
if (_level0:timerState eq "1") {
Set("_level0:timeDifference", getTimer() - _level0:startTime);
Set("_level0:timerReadOut", _level0:countdownMax - int(_level0:timeDifference / "1000"));
if (_level0:timerReadOut < "1") {
Set("_level0:max", "0");
Set("_level0:gameStart", "0");
tellTarget ("/buttons") {
gotoAndStop ("restart");
};
tellTarget ("/flickometer") {
stop();
};
Set("_level0:timerState", "0");
tellTarget ("countdownSound") {
gotoAndPlay ("horn");
};
}
if (_level0:timerReadOut < soundCounter) {
soundCounter = soundcounter - "1";
if ("22" < soundCounter) {
tellTarget ("countdownSound") {
gotoAndPlay ("activate1");
};
} else if ("14" < soundCounter) {
tellTarget ("countdownSound") {
gotoAndPlay ("activate2");
};
} else if ("8" < soundCounter) {
tellTarget ("countdownSound") {
gotoAndPlay ("activate3");
};
} else if ("0" < soundCounter) {
tellTarget ("countdownSound") {
gotoAndPlay ("activate4");
};
}
}
}
Symbol 138 MovieClip Frame 1
stopAllSounds();
Symbol 138 MovieClip Frame 3
stop();
Symbol 139 Button
on (release) {
gotoAndStop (20);
}
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 8
Set("_level0:handState", "0");
Symbol 152 MovieClip Frame 10
stop();
Symbol 152 MovieClip Frame 25
Set("_level0:handState", "1");
Symbol 152 MovieClip Frame 26
Set("_level0:handState", "0");
stop();