Frame 1
Stage.showMenu = false;
Frame 2
ifFrameLoaded (19) {
gotoAndStop (14);
}
Frame 10
ifFrameLoaded (19) {
gotoAndStop (14);
}
Frame 11
gotoAndPlay (10);
Frame 14
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", "60");
Set("_level0:timerReadOut", "60");
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 2 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "beermat";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 6 MovieClip Frame 44
gotoAndPlay (1);
Symbol 12 Button
on (release) {
gotoAndPlay (15);
}
Symbol 17 Button
on (release) {
gotoAndPlay (20);
}
Symbol 23 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 30 MovieClip Frame 1
stop();
Symbol 33 Button
on (release) {
gotoAndPlay (15);
}
Symbol 35 Button
on (release) {
gotoAndPlay (20);
}
Symbol 37 MovieClip Frame 1
Set("_level0:fillState", "1");
stop();
Symbol 37 MovieClip Frame 6
Set("_level0:fillState", "2");
stop();
Symbol 37 MovieClip Frame 11
Set("_level0:fillState", "3");
stop();
Symbol 37 MovieClip Frame 16
Set("_level0:fillState", "4");
stop();
Symbol 44 Button
on (release, releaseOutside) {
Set("_level0:scroller", "0");
}
on (press) {
Set("_level0:scroller", "up");
}
Symbol 45 Button
on (release) {
gotoAndStop (15);
}
Symbol 47 Button
on (release, releaseOutside) {
Set("_level0:scroller", "0");
}
on (press) {
Set("_level0:scroller", "down");
}
Symbol 49 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 10
call("code");
Symbol 48 MovieClip Frame 11
call("code");
gotoAndPlay (10);
Symbol 48 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 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 8
Set("_level0:handState", "0");
Symbol 77 MovieClip Frame 10
stop();
Symbol 77 MovieClip Frame 25
Set("_level0:handState", "1");
Symbol 77 MovieClip Frame 26
Set("_level0:handState", "0");
stop();
Symbol 92 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 95 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 96 Button
on (release) {
tellTarget ("_level0/hand") {
gotoAndPlay ("start_catch");
};
gotoAndStop (1);
}
Symbol 99 Button
on (release) {
tellTarget ("_level0/hand") {
gotoAndPlay ("start_catch");
};
gotoAndStop (1);
}
Symbol 100 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 103 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 104 Button
on (release) {
tellTarget ("/") {
gotoAndStop ("start");
};
}
Symbol 107 Button
on (release) {
_root.gameover = 1;
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 10
stop();
Symbol 91 MovieClip Frame 20
stop();
Symbol 91 MovieClip Frame 30
stop();
Symbol 91 MovieClip Frame 43
if (/:score < 2) {
sCharacter = "";
} else {
sCharacter = "S";
}
if (/:score < 4) {
message = "MOVE OUTSIDE PLEASE!";
} else if (/:score < 8) {
message = "CAN'T HANDLE YOUR DRINK?";
} else if (/:score < 12) {
message = "STAY OFF THE DRINK";
} else if (/:score < 16) {
message = "NICE FLICKIN!";
} else if (/:score >= 16) {
message = "HAVE A PINT ON ME!";
}
youCaught = ((("YOU CAUGHT " + _level:score) + " BEERMAT") + sCharacter) + " IN 60 SECONDS";
Symbol 120 MovieClip Frame 10
call("code");
Symbol 120 MovieClip Frame 11
call("code");
gotoAndPlay (10);
Symbol 120 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 125 MovieClip Frame 1
Set("_level0:strength", "1");
Symbol 125 MovieClip Frame 3
Set("_level0:strength", "2");
Symbol 125 MovieClip Frame 5
Set("_level0:strength", "3");
Symbol 125 MovieClip Frame 7
Set("_level0:strength", "4");
Symbol 125 MovieClip Frame 9
Set("_level0:strength", "5");
Symbol 125 MovieClip Frame 11
Set("_level0:strength", "6");
Symbol 125 MovieClip Frame 13
Set("_level0:strength", "7");
Symbol 125 MovieClip Frame 15
Set("_level0:strength", "8");
Symbol 125 MovieClip Frame 17
Set("_level0:strength", "9");
Symbol 125 MovieClip Frame 19
Set("_level0:strength", "10");
Symbol 125 MovieClip Frame 21
Set("_level0:strength", "9");
Symbol 125 MovieClip Frame 23
Set("_level0:strength", "8");
Symbol 125 MovieClip Frame 25
Set("_level0:strength", "7");
Symbol 125 MovieClip Frame 27
Set("_level0:strength", "6");
Symbol 125 MovieClip Frame 29
Set("_level0:strength", "5");
Symbol 125 MovieClip Frame 31
Set("_level0:strength", "4");
Symbol 125 MovieClip Frame 33
Set("_level0:strength", "3");
Symbol 125 MovieClip Frame 35
Set("_level0:strength", "2");
Symbol 125 MovieClip Frame 37
Set("_level0:strength", "2");
Symbol 125 MovieClip Frame 39
Set("_level0:strength", "1");
gotoAndPlay (1);
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 8
gotoAndStop (1);
Symbol 148 MovieClip Frame 15
gotoAndStop (1);
Symbol 148 MovieClip Frame 22
gotoAndStop (1);
Symbol 148 MovieClip Frame 29
gotoAndStop (1);
Symbol 148 MovieClip Frame 39
gotoAndStop (1);
Symbol 141 MovieClip Frame 1
Set("_level0:timerOn", "0");
stop();
Symbol 141 MovieClip Frame 2
Set("_level0:startTime", getTimer());
Set("_level0:timerOn", "1");
soundCounter = _level0:countdownMax;
Symbol 141 MovieClip Frame 10
call("code");
Symbol 141 MovieClip Frame 11
call("code");
gotoAndPlay (10);
Symbol 141 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 153 MovieClip Frame 1
stopAllSounds();
Symbol 153 MovieClip Frame 3
stop();
Symbol 156 Button
on (release) {
gotoAndStop (15);
}
Symbol 157 Button
on (release) {
gotoAndStop (20);
}
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 8
Set("_level0:handState", "0");
Symbol 158 MovieClip Frame 10
stop();
Symbol 158 MovieClip Frame 25
Set("_level0:handState", "1");
Symbol 158 MovieClip Frame 26
Set("_level0:handState", "0");
stop();