Frame 1
function initialiseScores(playAgain) {
c = clipLevelTop;
while (c > clipLevelBottom) {
removeMovieClip(eval ("mcDrinkHolder.mcDrink" + c));
c--;
}
_level0.returnToForm = false;
movieStatus = "play";
gameLevel = 1;
gameMode = "intro";
glassesHit = 0;
glassesSmashed = 0;
numberMoves = 0;
keyToHit = "";
clipToHit = "";
clipLevelTop = 10000;
clipLevelBottom = 10000;
keyHit = "off";
if (playAgain) {
firstPlay = false;
mcDial.gotoAndStop("off");
mcDrinkmeter.mcDrinkhead._y = 189;
} else {
firstPlay = true;
soundActive = true;
}
_level0.gotoAndPlay("select");
}
function moveCheck() {
if ((keyToHit ne "success") && (keyToHit ne "")) {
movieStatus = "pause";
keyHit = "off";
eval ("mcDrinkHolder.mcDrink" + clipToHit).gotoAndPlay("miss");
} else {
movieStatus = "play";
keyToHit = "";
clipToHit = "";
addMove();
}
}
function addMove() {
clipsToAdd = 1;
clipLevelBottomNew = clipLevelBottom - clipsToAdd;
if (aRandomChoices.length == 0) {
aRandomChoices = new array("0", "1", "2");
}
randomArrayPos = random(aRandomChoices.length);
randomPos = aRandomChoices[randomArrayPos];
removeItem = aRandomChoices.splice(randomArrayPos, 1);
randomDrinkNum = random(4);
randomDrink = aDrinks[randomDrinkNum];
i = clipLevelBottom;
while (i > clipLevelBottomNew) {
duplicateMovieClip ("mcDrinkHolder.mcDrink", "mcDrink" + i, i);
setProperty("mcDrinkHolder.mcDrink" + i, _rotation , aRotations[randomPos]);
setProperty("mcDrinkHolder.mcDrink" + i, _xscale , aScales[0]);
setProperty("mcDrinkHolder.mcDrink" + i, _yscale , aScales[0]);
Set(("mcDrinkHolder.mcDrink" + i) + ".myNum", i);
Set(("mcDrinkHolder.mcDrink" + i) + ".myType", randomDrink);
Set(("mcDrinkHolder.mcDrink" + i) + ".myPosTravel", 0);
Set(("mcDrinkHolder.mcDrink" + i) + ".myPosRandom", randomPos);
eval ("mcDrinkHolder.mcDrink" + i).gotoAndPlay("serve");
if (gameLevel > 4) {
blurLevel = 4;
} else {
blurLevel = gameLevel;
}
eval (("mcDrinkHolder.mcDrink" + i) + ".mcGlassHolder").gotoAndPlay("level" + blurLevel);
i--;
}
mcSounds.StartASnd("s13", 40, 0);
c = clipLevelTop;
while (c > clipLevelBottom) {
eval ("mcDrinkHolder.mcDrink" + c).gotoAndPlay("refresh");
c--;
}
clipLevelBottom = clipLevelBottomNew;
currentTime = getCurrentTime();
newTime = aGameLevels[gameLevel - 1][1];
refreshTime = int(currentTime) + int(newTime);
gotoAndPlay (34);
}
function getCurrentTime() {
currentTime = getTimer();
return(currentTime);
}
function checkTimer() {
currentTime = getCurrentTime();
if (currentTime >= refreshTime) {
moveCheck();
}
}
function checkHit(keyPressed) {
if (keyPressed != keyToHit) {
clipWrong(keyPressed);
} else {
movieStatus = "pause";
_level0.keyToHit = "success";
mcSounds.StartASnd("s5", 100, 0);
eval ("mcDrinkHolder.mcDrink" + clipToHit).gotoAndPlay("hit");
}
}
function clipHit(myNum) {
removeMovieClip("mcDrinkHolder.mcDrink" + myNum);
updateScores("increase");
}
function clipMiss(myNum) {
_level0.mcSounds.StartASnd("s4", 100, 0);
removeMovieClip("mcDrinkHolder.mcDrink" + myNum);
_level0.keyToHit = "";
updateScores("reduce");
}
function clipWrong(keyPressed) {
if (keyPressed == 90) {
mcError.gotoAndPlay("left");
} else if (keyPressed == 88) {
mcError.gotoAndPlay("middle");
} else {
mcError.gotoAndPlay("right");
}
}
function updateScores(scoreChange) {
if (scoreChange eq "increase") {
glassesHit++;
drunkLevel("increase");
} else if (glassesSmashed >= 5) {
gameMode = "gameOver";
keyHit = "off";
mcDial.gotoAndPlay("smashed5");
} else {
glassesSmashed++;
mcDial.gotoAndPlay("smashed" + glassesSmashed);
keyHit = "on";
moveCheck();
}
}
function levelAnimations() {
_level0.mcSounds.StartASnd("s2", 100, 0);
_level0.levelMessage.gotoAndPlay("gameLevel" + _level0.gameLevel);
c = clipLevelTop;
while (c > clipLevelBottom) {
eval (("mcDrinkHolder.mcDrink" + c) + ".mcGlassHolder").gotoAndPlay("level" + gameLevel);
c--;
}
}
function drunkLevel(clipAction) {
if (glassesHit < aGameLevels[3][0]) {
drinkPercent = Math.round(100 * ((glassesHit - aGameLevels[gameLevel - 2][0]) / (aGameLevels[gameLevel - 1][0] - aGameLevels[gameLevel - 2][0])));
_level0.mcDrinkmeter.mcMask._yscale = drinkPercent;
_level0.mcDrinkmeter.mcDrinkhead._y = 189 - (150 * (drinkPercent / 100));
}
if (glassesHit == aGameLevels[gameLevel - 1][0]) {
gameLevel++;
if (gameLevel <= 4) {
_level0.mcBarman.gotoAndPlay(_level0.selectedSex + _level0.gameLevel);
_level0.mcDrinkmeter.thermometerUp.gotoAndPlay("up");
c = clipLevelTop;
while (c > clipLevelBottom) {
eval (("mcDrinkHolder.mcDrink" + c) + ".mcGlassHolder.mcGlassFlash").gotoAndPlay("flash");
c--;
}
} else {
movieStatus = "play";
gotoAndPlay (34);
}
} else if (clipAction eq "reduce") {
keyHit = "on";
moveCheck();
} else {
movieStatus = "play";
gotoAndPlay (34);
}
}
function updateLevel() {
movieStatus = "play";
gotoAndPlay (34);
}
function soundToggle() {
if (soundActive) {
soundActive = false;
mcSounds.stopAllSnds();
mcSounds.StopASnd("s1");
soundbut.gotoAndStop(2);
} else {
soundActive = true;
mcSounds.StartASnd("s1", 100, 0);
soundbut.gotoAndStop(1);
}
soundbut.play();
}
function qualityToggle() {
if (this._quality eq "HIGH") {
this._quality = "MEDIUM";
qualbut.gotoAndStop(2);
} else {
this._quality = "HIGH";
qualbut.gotoAndStop(1);
}
}
stage.showMenu = false;
myListener = new Object();
myListener.onKeyDown = function () {
if (keyHit eq "on") {
keyHit = "off";
if (gameMode ne "playing") {
mcSounds.StartASnd("s8", 100, 0);
mcSymbol.gotoAndPlay("wait");
} else {
keyPressed = Key.getCode();
if (((keyPressed != 90) && (keyPressed != 88)) && (keyPressed != 67)) {
mcSounds.StartASnd("s8", 100, 0);
keyHit = "on";
} else {
checkHit(keyPressed);
}
}
}
};
Key.addListener(myListener);
_global.debug = function (msg) {
trace(msg);
};
debug("FT: included FlashTrack.as");
var path = "com.preloaded";
var a = path.split(".");
var o = _global;
var i = 0;
while (i < a.length) {
var name = a[i];
if (o[name] == undefined) {
o[name] = new Object();
}
o = o[name];
i++;
}
_global.com.preloaded.FlashTrack = function () {
debug("FT: inited FlashTrack object");
this.script = "flashTrackGET.php";
this.method = "GET";
this.obj = this;
this.startSession = function () {
debug("\tFT: startSession()");
this.lv = new LoadVars();
this.lv.obj = this.obj;
this.lv.safari = fix;
this.lv.session = "start";
this.lv.sendAndLoad(this.script, this.lv, this.method);
this.lv.onLoad = function () {
debug("\t\tFT - sessionStart - onLoad");
this.obj.uid = this.uid;
this.obj.listVars();
};
};
this.hit = function (theHit) {
debug("\tFT: hit()");
this.lv = new LoadVars();
this.lv.safari = fix;
this.lv.hit = theHit;
this.lv.uid = this.uid;
this.lv.sendAndLoad(this.script, this.lv, this.method);
this.lv.onLoad = function () {
debug("\t\tFT: hit() onLoad");
};
};
this.newURL = function (theURL) {
debug("\tFT: hit()");
this.lv = new LoadVars();
this.lv = new LoadVars();
this.lv.safari = fix;
this.lv.clickThru = theURL;
this.lv.uid = this.uid;
this.lv.sendAndLoad(this.script, this.lv, this.method);
this.lv.onLoad = function () {
debug("\t\tFT: hit() onLoad");
};
getURL (theURL, "_blank");
};
this.listVars = function () {
debug("LISTVARS:");
for (var i in this) {
if ((typeof(this[i]) != "function") && (typeof(this[i]) != "object")) {
debug((("\t\t" + i) + " : ") + this[i]);
}
}
};
};
_global.tracker = new com.preloaded.FlashTrack();
_global.tracker.startSession();
_global.scriptURL = "formHandle.php";
aPositions = new array();
aPositions[0] = new array(["100", "234"], ["154", "234"], ["200", "234"]);
aPositions[1] = new array(["93", "258"], ["154", "258"], ["213", "258"]);
aPositions[2] = new array(["86", "282"], ["154", "280"], ["221", "280"]);
aPositions[3] = new array(["72", "316"], ["154", "316"], ["234", "316"]);
aRotations = new array("-3", "0", "2");
aScales = new array("55", "70", "85", "100");
aRandomChoices = new array("0", "1", "2");
aGameLevels = new array(["10", "1000"], ["25", "800"], ["45", "550"], ["70", "350"], ["95", "250"], ["120", "200"], ["140", "150"], ["160", "100"], ["180", "75"], ["200", "50"], ["999", "25"]);
aDrinks = new array("beer", "wineRed", "guinness", "cocktail");
aKeyCodes = new array("90", "88", "67");
Frame 2
mcPreloader.gotoAndPlay("loadGame");
stop();
Frame 11
stop();
Frame 16
if (gameQuality eq "MEDIUM") {
this._quality = "MEDIUM";
qualbut.gotoAndStop(2);
}
_global.tracker.hit("Start Game");
mcNeon.gotoAndPlay("on");
_level0.mcBarman.gotoAndPlay(_level0.selectedSex + _level0.gameLevel);
_level0.levelMessage.gotoAndPlay("gameLevel" + _level0.gameLevel);
if (soundActive && (firstPlay)) {
mcSounds.StartASnd("s1", 100, 0);
}
mcDrinkmeter.mcMask._yscale = 0;
delete _global.lv;
Frame 17
stop();
Frame 24
gameMode = "playing";
keyHit = "on";
moveCheck();
stop();
Frame 34
if (movieStatus eq "pause") {
trace("movieStatus: " + movieStatus);
stop();
} else {
checkTimer();
play();
}
Frame 35
gotoAndPlay (34);
Frame 45
if (this._quality eq "MEDIUM") {
gameQuality = "MEDIUM";
this._quality = "HIGH";
qualbut.gotoAndStop(1);
} else {
gameQuality = "HI";
}
play();
Frame 57
stop();
Frame 61
stop();
Symbol 14 MovieClip Frame 1
this.onPress = function () {
if (this._currentframe == 2) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
};
stop();
Symbol 14 MovieClip Frame 2
stop();
Symbol 24 Button
on (release) {
delete _global.lv;
_level0.returnToForm = true;
_level0.gotoAndPlay("gameOver");
}
Symbol 28 Button
on (release) {
_level0.initialiseScores(true);
}
Symbol 42 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_global.tracker.newURL("http://www.gamingclubsportsbook.com/index.jsp?id=preload&img=various");
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 2
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 60 MovieClip [sendFriend] Frame 1
Selection.setFocus(name_txt);
name_txt.tabIndex = 1;
email_txt.tabIndex = 2;
friend1.tabIndex = 3;
friend2.tabIndex = 3;
friend3.tabIndex = 3;
stop();
marketingCheck.gotoAndStop(2);
name_txt.text = _global.name;
email_txt.text = _global.email;
if (_global.lv.error.length > 1) {
errorMsg.gotoAndStop(2);
_global.lv.error = "";
}
if (_global.mailSent == true) {
errorMsg.gotoAndStop("sent");
_global.mailSent = false;
}
delete _global.lv;
send_btn.onRelease = function () {
_global.name = name_txt.text;
_global.email = email_txt.text;
if (((name_txt.text != "") && (email_txt.text.length >= 6)) && (friend1.text.length >= 6)) {
_global.tmp = {};
_global.tmp.name = name_txt.text;
_global.tmp.email = email_txt.text;
_global.tmp.friend1 = friend1.text;
_global.tmp.friend2 = friend2.text;
_global.tmp.friend3 = friend3.text;
_global.tmp.marketingFlag = this._parent.marketingCheck._currentframe - 1;
this._parent.errorMsg.gotoAndStop(1);
this._parent.gotoAndStop(2);
} else {
this._parent.errorMsg.gotoAndStop(3);
}
};
Symbol 60 MovieClip [sendFriend] Frame 2
stop();
_global.lv = new LoadVars();
_global.lv.form = this;
_global.lv.safari = "bug";
_global.lv.name = _global.tmp.name;
_global.lv.email = _global.tmp.email;
_global.lv.friend1 = _global.tmp.friend1;
_global.lv.friend2 = _global.tmp.friend2;
_global.lv.friend3 = _global.tmp.friend3;
_global.lv.marketingFlag = _global.tmp.marketingFlag;
_global.lv.task = "send";
_global.lv.score = _level0.glassesHit;
_global.lv.safari2 = "bug";
_global.lv.sendAndLoad(_global.scriptURL, lv, "POST");
_global.lv.onLoad = function () {
if (lv.success) {
_global.mailSent = true;
errorMsg.gotoAndStop("sent");
}
lv.form.gotoAndStop(1);
};
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 3
stop();
Symbol 76 MovieClip Frame 4
stop();
Symbol 76 MovieClip Frame 5
stop();
Symbol 76 MovieClip Frame 6
stop();
Symbol 76 MovieClip Frame 7
stop();
Symbol 76 MovieClip Frame 8
stop();
Symbol 76 MovieClip Frame 9
stop();
Symbol 76 MovieClip Frame 10
stop();
Symbol 76 MovieClip Frame 11
stop();
Symbol 76 MovieClip Frame 12
stop();
Symbol 76 MovieClip Frame 13
stop();
Symbol 76 MovieClip Frame 14
stop();
Symbol 76 MovieClip Frame 15
stop();
Symbol 76 MovieClip Frame 16
stop();
Symbol 76 MovieClip Frame 17
stop();
Symbol 76 MovieClip Frame 18
stop();
Symbol 76 MovieClip Frame 19
stop();
Symbol 76 MovieClip Frame 20
stop();
Symbol 76 MovieClip Frame 21
stop();
Symbol 76 MovieClip Frame 22
stop();
Symbol 76 MovieClip Frame 23
stop();
Symbol 76 MovieClip Frame 24
stop();
Symbol 76 MovieClip Frame 25
stop();
Symbol 76 MovieClip Frame 26
stop();
Symbol 76 MovieClip Frame 27
stop();
Symbol 76 MovieClip Frame 28
stop();
Symbol 76 MovieClip Frame 29
stop();
Symbol 76 MovieClip Frame 30
stop();
Symbol 76 MovieClip Frame 31
stop();
Symbol 76 MovieClip Frame 32
stop();
Symbol 76 MovieClip Frame 33
stop();
Symbol 76 MovieClip Frame 34
stop();
Symbol 76 MovieClip Frame 35
stop();
Symbol 76 MovieClip Frame 36
stop();
Symbol 76 MovieClip Frame 37
stop();
Symbol 76 MovieClip Frame 38
stop();
Symbol 76 MovieClip Frame 39
stop();
Symbol 76 MovieClip Frame 40
stop();
Symbol 76 MovieClip Frame 41
stop();
Symbol 76 MovieClip Frame 42
stop();
Symbol 76 MovieClip Frame 43
stop();
Symbol 76 MovieClip Frame 44
stop();
Symbol 76 MovieClip Frame 45
stop();
Symbol 76 MovieClip Frame 46
stop();
Symbol 76 MovieClip Frame 47
stop();
Symbol 76 MovieClip Frame 48
stop();
Symbol 76 MovieClip Frame 49
stop();
Symbol 76 MovieClip Frame 50
stop();
Symbol 76 MovieClip Frame 51
stop();
Symbol 76 MovieClip Frame 52
stop();
Symbol 76 MovieClip Frame 53
stop();
Symbol 76 MovieClip Frame 54
stop();
Symbol 76 MovieClip Frame 55
stop();
Symbol 76 MovieClip Frame 56
stop();
Symbol 76 MovieClip Frame 57
stop();
Symbol 76 MovieClip Frame 58
stop();
Symbol 76 MovieClip Frame 59
stop();
Symbol 76 MovieClip Frame 60
stop();
Symbol 76 MovieClip Frame 61
stop();
Symbol 76 MovieClip Frame 62
stop();
Symbol 76 MovieClip Frame 63
stop();
Symbol 76 MovieClip Frame 64
stop();
Symbol 76 MovieClip Frame 65
stop();
Symbol 76 MovieClip Frame 66
stop();
Symbol 76 MovieClip Frame 67
stop();
Symbol 76 MovieClip Frame 68
stop();
Symbol 76 MovieClip Frame 69
stop();
Symbol 76 MovieClip Frame 70
stop();
Symbol 76 MovieClip Frame 71
stop();
Symbol 76 MovieClip Frame 72
stop();
Symbol 76 MovieClip Frame 73
stop();
Symbol 76 MovieClip Frame 74
stop();
Symbol 76 MovieClip Frame 75
stop();
Symbol 76 MovieClip Frame 76
stop();
Symbol 76 MovieClip Frame 77
stop();
Symbol 76 MovieClip Frame 78
stop();
Symbol 76 MovieClip Frame 79
stop();
Symbol 76 MovieClip Frame 80
stop();
Symbol 76 MovieClip Frame 81
stop();
Symbol 76 MovieClip Frame 82
stop();
Symbol 76 MovieClip Frame 83
stop();
Symbol 76 MovieClip Frame 84
stop();
Symbol 76 MovieClip Frame 85
stop();
Symbol 76 MovieClip Frame 86
stop();
Symbol 76 MovieClip Frame 87
stop();
Symbol 76 MovieClip Frame 88
stop();
Symbol 76 MovieClip Frame 89
stop();
Symbol 76 MovieClip Frame 90
stop();
Symbol 76 MovieClip Frame 91
stop();
Symbol 76 MovieClip Frame 92
stop();
Symbol 76 MovieClip Frame 93
stop();
Symbol 76 MovieClip Frame 94
stop();
Symbol 76 MovieClip Frame 95
stop();
Symbol 76 MovieClip Frame 96
stop();
Symbol 76 MovieClip Frame 97
stop();
Symbol 76 MovieClip Frame 98
stop();
Symbol 76 MovieClip Frame 99
stop();
Symbol 76 MovieClip Frame 100
stop();
Symbol 93 Button
on (release) {
_level0.initialiseScores(false);
}
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 5
play();
Symbol 95 MovieClip Frame 13
currentBytes = _parent.getBytesLoaded();
totalBytes = _parent.getBytesTotal();
if (currentBytes == totalBytes) {
gotoAndPlay (27);
} else {
percentLoaded = Math.round(80 * (currentBytes / totalBytes));
percentTxt = percentLoaded + "%";
mcBeerLoader.gotoAndStop(percentLoaded);
}
play();
Symbol 95 MovieClip Frame 14
currentBytes = _parent.getBytesLoaded();
totalBytes = _parent.getBytesTotal();
if (currentBytes == totalBytes) {
gotoAndPlay (27);
} else {
percentLoaded = Math.round(80 * (currentBytes / totalBytes));
percentTxt = percentLoaded + "%";
mcBeerLoader.gotoAndStop(percentLoaded);
}
gotoAndPlay (13);
Symbol 95 MovieClip Frame 27
loadMovieNum ("sinkYaDrinkSounds.swf", 0.mcSounds);
Symbol 95 MovieClip Frame 41
soundCurrentBytes = _level0.mcSounds.getBytesLoaded();
soundBytes = _level0.mcSounds.getBytesTotal();
if (soundCurrentBytes == soundBytes) {
gotoAndPlay (52);
} else {
percentLoaded = 80 + Math.round(20 * (soundCurrentBytes / soundBytes));
percentTxt = percentLoaded + "%";
mcBeerLoader.gotoAndStop(percentLoaded);
}
play();
Symbol 95 MovieClip Frame 42
soundCurrentBytes = _level0.mcSounds.getBytesLoaded();
soundBytes = _level0.mcSounds.getBytesTotal();
if (soundCurrentBytes == soundBytes) {
gotoAndPlay (52);
} else {
percentLoaded = 80 + Math.round(20 * (soundCurrentBytes / soundBytes));
percentTxt = percentLoaded + "%";
mcBeerLoader.gotoAndStop(percentLoaded);
}
gotoAndPlay (41);
Symbol 95 MovieClip Frame 52
mcBeerLoader.gotoAndStop(100);
Symbol 95 MovieClip Frame 104
stop();
Symbol 101 Button
on (release) {
_global.tracker.newURL("http://www.gamingclubsportsbook.com/index.jsp?id=preload&img=various");
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 11
stop();
Symbol 149 MovieClip Frame 16
stop();
Symbol 149 MovieClip Frame 21
stop();
Symbol 149 MovieClip Frame 26
stop();
Symbol 149 MovieClip Frame 35
_parent.gameMode = "gameOver";
_parent.keyHit = "off";
_parent.movieStatus = "pause";
Symbol 149 MovieClip Frame 40
_level0.mcSounds.stopASnd("s12");
_level0.mcSounds.StartASnd("s7", 100, 0);
Symbol 149 MovieClip Frame 55
_level0.levelMessage.gotoAndPlay("gameOver");
Symbol 149 MovieClip Frame 115
_parent.gotoAndPlay("gameOver");
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 5
play();
Symbol 159 MovieClip Frame 13
_level0.mcDrinkmeter.mcMask._yscale = 0;
_level0.mcDrinkmeter.mcDrinkhead._y = 189;
Symbol 159 MovieClip Frame 17
gotoAndStop (1);
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
stop();
Symbol 178 Button
on (release) {
qualityToggle();
}
Symbol 179 Button
on (release) {
soundToggle();
}
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 6
stop();
Symbol 194 MovieClip Frame 11
stop();
Symbol 194 MovieClip Frame 21
stop();
Symbol 194 MovieClip Frame 29
stop();
Symbol 194 MovieClip Frame 41
stop();
Symbol 194 MovieClip Frame 49
stop();
Symbol 194 MovieClip Frame 61
stop();
Symbol 194 MovieClip Frame 68
stop();
Symbol 198 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.myType);
Symbol 198 MovieClip Frame 5
stop();
Symbol 198 MovieClip Frame 14
stop();
Symbol 198 MovieClip Frame 24
stop();
Symbol 198 MovieClip Frame 35
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 19
gotoAndStop (1);
Symbol 204 MovieClip Frame 1
gotoAndStop(_parent._parent.myType);
stop();
Symbol 204 MovieClip Frame 5
stop();
Symbol 204 MovieClip Frame 10
stop();
Symbol 204 MovieClip Frame 18
stop();
Symbol 204 MovieClip Frame 26
stop();
Symbol 205 MovieClip Frame 2
stop();
Symbol 205 MovieClip Frame 10
play();
Symbol 205 MovieClip Frame 58
gotoAndPlay (24);
Symbol 205 MovieClip Frame 69
play();
Symbol 205 MovieClip Frame 116
gotoAndPlay (69);
Symbol 205 MovieClip Frame 130
play();
Symbol 205 MovieClip Frame 190
gotoAndPlay (130);
Symbol 210 MovieClip Frame 1
gotoAndStop(_parent._parent.myType);
stop();
Symbol 210 MovieClip Frame 5
stop();
Symbol 210 MovieClip Frame 10
stop();
Symbol 210 MovieClip Frame 20
stop();
Symbol 210 MovieClip Frame 30
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 5
myPosTravel++;
this._xscale = _level0.aScales[myPosTravel];
this._yscale = _level0.aScales[myPosTravel];
this._x = _level0.aPositions[myPosTravel][myPosRandom][0];
this._y = _level0.aPositions[myPosTravel][myPosRandom][1];
if (myPosTravel == 3) {
_level0.keyToHit = _level0.aKeyCodes[myPosRandom];
_level0.clipToHit = myNum;
}
Symbol 211 MovieClip Frame 6
stop();
Symbol 211 MovieClip Frame 15
mcGlassHolder.mcGlass.gotoAndStop(myType);
this._x = _level0.aPositions[myPosTravel][myPosRandom][0];
this._y = _level0.aPositions[myPosTravel][myPosRandom][1];
stop();
Symbol 211 MovieClip Frame 16
stop();
Symbol 211 MovieClip Frame 35
mcGlassHolder.mcGlass.gotoAndStop(myType + "Hit");
play();
Symbol 211 MovieClip Frame 39
_level0.keyHit = "on";
_level0.clipHit(myNum);
Symbol 211 MovieClip Frame 50
mcGlassMiss.gotoAndStop(myType);
play();
Symbol 211 MovieClip Frame 54
_level0.clipMiss(myNum);
stop();
Symbol 234 Button
on (release, keyPress "m") {
_level0.selectedSex = "men";
_level0.gotoAndPlay("gameOn");
}
on (keyPress "M") {
_level0.selectedSex = "men";
_level0.gotoAndPlay("gameOn");
}
Symbol 237 Button
on (release, keyPress "f") {
_level0.selectedSex = "women";
_level0.gotoAndPlay("gameOn");
}
on (keyPress "F") {
_level0.selectedSex = "women";
_level0.gotoAndPlay("gameOn");
}
Symbol 238 MovieClip Frame 6
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 3
stop();
Symbol 316 MovieClip Frame 16
_parent.levelAnimations();
Symbol 316 MovieClip Frame 17
stop();
Symbol 316 MovieClip Frame 31
_parent.levelAnimations();
Symbol 316 MovieClip Frame 32
stop();
Symbol 316 MovieClip Frame 46
_parent.levelAnimations();
Symbol 316 MovieClip Frame 47
stop();
Symbol 316 MovieClip Frame 57
stop();
Symbol 316 MovieClip Frame 71
_parent.levelAnimations();
Symbol 316 MovieClip Frame 72
stop();
Symbol 316 MovieClip Frame 86
_parent.levelAnimations();
Symbol 316 MovieClip Frame 87
stop();
Symbol 316 MovieClip Frame 101
_parent.levelAnimations();
Symbol 316 MovieClip Frame 102
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 5
_level0.mcSounds.StartASnd("s8", -100, 0);
play();
Symbol 319 MovieClip Frame 15
_level0.keyHit = "on";
gotoAndStop (1);
Symbol 319 MovieClip Frame 20
_level0.mcSounds.StartASnd("s8", 100, 0);
play();
Symbol 319 MovieClip Frame 30
_level0.keyHit = "on";
gotoAndStop (1);
Symbol 319 MovieClip Frame 35
_level0.mcSounds.StartASnd("s8", 100, 0);
play();
Symbol 319 MovieClip Frame 45
_level0.keyHit = "on";
gotoAndStop (1);
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 2
play();
Symbol 336 MovieClip Frame 48
_level0.gotoAndPlay("gamePlay");
Symbol 336 MovieClip Frame 52
stop();
Symbol 336 MovieClip Frame 55
play();
Symbol 336 MovieClip Frame 102
_level0.updateLevel();
Symbol 336 MovieClip Frame 110
stop();
Symbol 336 MovieClip Frame 112
play();
Symbol 336 MovieClip Frame 158
_level0.updateLevel();
Symbol 336 MovieClip Frame 167
stop();
Symbol 336 MovieClip Frame 169
play();
Symbol 336 MovieClip Frame 216
_level0.updateLevel();
Symbol 336 MovieClip Frame 225
stop();
Symbol 336 MovieClip Frame 230
play();
Symbol 336 MovieClip Frame 234
_level0.mcSounds.StartASnd("s3", 100, 0);
Symbol 336 MovieClip Frame 277
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 2
stop();
Symbol 352 Button
on (release) {
_global.tracker.newURL("http://www.sinkyadrink.com/terms.html");
}
Symbol 360 Button
on (release) {
delete _global.lv;
_level0.gotoAndPlay("challenge");
}
Symbol 368 MovieClip Frame 1
if (_level0.returnToForm) {
gotoAndPlay (5);
}
Symbol 368 MovieClip Frame 5
Selection.setFocus(name_txt);
name_txt.tabIndex = 1;
age_txt.tabIndex = 2;
email_txt.tabIndex = 3;
stop();
if (_level0.glassesHit == 0) {
msgHeader = "Bad Luck!";
endMsg = ("<font size=\"15\">Unfortunately you sunk</font> " + _level0.glassesHit) + " <font size=\"15\">drinks</font>";
msgQualify = "Don't worry, you've still qualified for the <font size=\"20\">\u00A31000</font> \rcash prize! Enter your details below and hit the submit button! Its as simple as that!";
} else if (_level0.glassesHit == 1) {
msgHeader = "Nice Drinking!";
endMsg = ("<font size=\"15\">Congratulations, you sunk</font> " + _level0.glassesHit) + " <font size=\"15\">drink</font>";
msgQualify = "You have now qualified for the fantastic <font size=\"20\">\u00A31000</font> \rcash prize! Enter your details below and hit the submit button! Its as simple as that!";
} else {
msgHeader = "Nice Drinking!";
endMsg = ("<font size=\"15\">Congratulations, you sunk</font> " + _level0.glassesHit) + " <font size=\"15\">drinks</font>";
msgQualify = "You have now qualified for the fantastic <font size=\"20\">\u00A31000</font> \rcash prize! Enter your details below and hit the submit button! Its as simple as that!";
}
marketingCheck.gotoAndStop(2);
name_txt.text = _global.name;
email_txt.text = _global.email;
if (_global.lv.error.length > 1) {
errorMsg.gotoAndStop(2);
_global.lv.error = "";
}
if (_global.success.length > 1) {
errorMsg.gotoAndStop(4);
_global.lv.success = "";
}
_global.country = "";
_global.gender = "";
switchGenders = function (clicked) {
if (clicked._name == "radio_male") {
trace(clicked);
clicked.gotoAndStop(2);
radio_female.gotoAndStop(1);
_global.gender = "male";
} else {
clicked.gotoAndStop(2);
radio_male.gotoAndStop(1);
_global.gender = "female";
}
};
radio_male.onPress = function () {
switchGenders(this);
};
radio_female.onPress = function () {
switchGenders(this);
};
switchCountries = function (clicked) {
var btns = [radio_uk, radio_us, radio_other];
var countries = ["UK", "USA", "OTHER"];
var i = 0;
while (i < 3) {
if (clicked._name != btns[i]._name) {
btns[i].gotoAndStop(1);
} else {
btns[i].gotoAndStop(2);
_global.country = countries[i];
}
i++;
}
};
radio_uk.onPress = function () {
switchCountries(this);
};
radio_us.onPress = function () {
switchCountries(this);
};
radio_other.onPress = function () {
switchCountries(this);
};
send_btn.onRelease = function () {
_global.name = name_txt.text;
_global.email = email_txt.text;
if ((((name_tx.text == "") || (email_txt.text.length < 6)) || (_global.gender.length < 1)) || (_global.country.length < 1)) {
errorMsg.gotoAndStop(3);
} else if (int(age_txt.text) < 18) {
errorMsg.gotoAndStop("underage");
} else if (toc_check._currentframe != 2) {
errorMsg.gotoAndStop("terms");
} else {
_global.tmp = {};
_global.tmp.name = name_txt.text;
_global.tmp.email = email_txt.text;
_global.tmp.age = age_txt.text;
_global.tmp.country = _global.country;
_global.tmp.gender = _global.gender;
errorMsg.gotoAndStop(1);
this._parent.gotoAndStop("sending");
}
};
Symbol 368 MovieClip Frame 6
stop();
_global.lv = new LoadVars();
_global.lv.form = this;
_global.lv.safari = "bug";
_global.lv.name = _global.tmp.name;
_global.lv.email = _global.tmp.email;
_global.lv.age = _global.tmp.age;
_global.lv.country = _global.tmp.country;
_global.lv.gender = _global.tmp.gender;
_global.lv.marketingFlag = 1;
_global.lv.prizeFlag = 1;
_global.lv.task = "enter";
_global.lv.safari2 = "bug";
_global.lv.sendAndLoad(_global.scriptURL, lv, "POST");
_global.lv.onLoad = function () {
trace("lv.error = " + lv.error);
trace("lv.success = " + lv.success);
if (lv.error.length > 1) {
lv.form.gotoAndStop("form");
} else {
_root.gotoAndPlay("challenge");
}
};