Frame 1
Frame 3
var total = _root.getBytesTotal();
var loaded = _root.getBytesLoaded();
var percentLoaded = (String(math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100)) + "%");
if (loaded >= total) {
gotoAndPlay (9);
}
Frame 8
gotoAndPlay (3);
Frame 50
stop();
Frame 51
var booGameOn = false;
var strSex = "man";
var lngDrunkenness = 0;
Instance of Symbol 122 MovieClip "leftHandRoad" in Frame 51
onClipEvent (enterFrame) {
if (_root.booGameOn == false) {
_root.leftHandRoad.stop();
}
}
Instance of Symbol 127 MovieClip "kerb" in Frame 51
onClipEvent (enterFrame) {
if (_root.booGameOn == false) {
_root.kerb.stop();
}
}
Instance of Symbol 129 MovieClip in Frame 51
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 141 MovieClip "timer" in Frame 51
onClipEvent (load) {
var startTime;
var countAmount = 120;
var elapsed = 0;
var lngTimeStore = 0;
var lngTimeCount = 0;
booEnabled = false;
this.min = Math.floor(countAmount / 60);
this.sec = countAmount - (this.min * 60);
if (this.sec < 10) {
this.sec = "0" + this.sec;
}
counterDisplay = (this.min + ":") + this.sec;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
if (this.booEnabled == false) {
this.booEnabled = true;
startTime = getTimer();
} else {
elapsed = getTimer() - startTime;
if (lngTimeStore != Math.floor(elapsed / 1000)) {
lngTimeStore = Math.floor(elapsed / 1000);
lngTimeCount++;
if (lngTimeCount == _root.lngDrunkPeriod) {
lngTimeCount = 0;
_root.changeDrunkeness(2);
}
}
if (elapsed <= (countAmount * 1000)) {
counterOutput = countAmount - Math.floor(elapsed / 1000);
this.sec = int(counterOutput % 60);
this.min = int(counterOutput / 60);
if (min < 10) {
min = min;
}
if (sec < 10) {
sec = "0" + sec;
}
counterDisplay = (this.min + ":") + this.sec;
counterOutput = this.min + this.sec;
} else {
this.sec = "00";
this.counterOutput = "00";
}
}
}
}
Instance of Symbol 144 MovieClip "lifeCount" in Frame 51
onClipEvent (load) {
i = 1;
while (i < 4) {
this["lifeMan" + i]._visible = false;
this["lifeWoman" + i]._visible = false;
i++;
}
}
Instance of Symbol 146 MovieClip "pissometer" in Frame 51
onClipEvent (load) {
this._xscale = _root.lngDrunkenness;
}
onClipEvent (enterFrame) {
this._xscale = _root.lngDrunkenness;
}
Frame 71
stop();
Frame 72
function initialiseGame() {
booGameOver = false;
booShowPlayer = true;
booClearSprites = true;
lngDrunkenness = 0;
lngLifeCount = lngLifeTotal;
lifeCount.showLives();
objGameOn.attachSound("gameOn");
objGameOn.start(0, 100);
timer.booEnabled = false;
readySteadyGo.gotoAndPlay(2);
}
function startGame() {
booGameOn = true;
booClearSprites = false;
players.player1.gotoAndPlay("run");
timerClock.booEnabled = true;
}
function stopGame() {
timerClock.booEnabled = false;
if (booSuccess == true) {
players.player1.gotoAndPlay("stop");
home._visible = true;
home.play();
} else if (lngLifeCount == 0) {
booGameOver = true;
gameOver._visible = true;
gameOver.play();
} else if (lngDrunkenness >= 100) {
lngDrunkenness = 100;
booClearSprites = true;
players.player1.gotoAndPlay("stop");
tooDrunk._visible = true;
tooDrunk.play();
}
booGameOn = false;
}
function loseLife(strDeathType) {
if (strDeathType == "snogged") {
objDeath.attachSound("smash");
} else {
objDeath.attachSound("punch");
}
objDeath.start();
lngLifeCount--;
lifeCount.showLives();
players.player1.gotoAndPlay(strDeathType);
stopGame();
}
function eatDrink(lngUnits, strSpriteName) {
if (lngUnits > 0) {
objScore.attachSound("losePoints");
} else {
objScore.attachSound("winPoints");
}
objScore.start();
removeSprite(strSpriteName);
booShowScore = true;
lngScoreUnits = lngUnits;
changeDrunkeness(lngScoreUnits);
}
function changeDrunkeness(lngScoreUnits) {
lngDrunkenness = lngDrunkenness + lngScoreUnits;
if (lngDrunkenness < 0) {
lngDrunkenness = 0;
}
if (lngDrunkenness >= 100) {
stopGame();
}
}
function gameSuccess() {
timer.booEnabled = false;
booSuccess = true;
timer.sec = "00";
booClearSprites = true;
house._visible = true;
house.play();
}
function showEnding(strEnding) {
objGameOn.stop();
if (strEnding == "mugged") {
gotoAndPlay (73);
} else if (strEnding == "home") {
gotoAndPlay (289);
} else if (strEnding == "drunk") {
gotoAndPlay (155);
}
}
function removeSprite(strSpriteName) {
removeMovieClip(sprites[strSpriteName]);
if ((sprites.lngLiveSprites - 1) > 0) {
sprites.lngLiveSprites = sprites.lngLiveSprites - 1;
}
}
function removeScore(strSpriteName) {
removeMovieClip(scores[strSpriteName]);
scores.lngLiveSprites = scores.lngLiveSprites - 1;
}
var booGameOn = false;
var booGameOver = false;
var booClearSprites = false;
var booShowPlayer = false;
var booSuccess = false;
var lngLeftBound = -500;
var lngRightBound = 600;
var lngCenterX = 285;
var lngCenterY = 260;
var lngLifeTotal = 3;
var lngLifeCount = lngLifeTotal;
var lngDrunkenness = 0;
var lngDrunkPeriod = 3;
var lngScoreUnits = 0;
var booShowScore = false;
aStrAdvSprites = new Array();
aStrAdvSprites[0] = "henClip";
aStrAdvSprites[1] = "thugClip";
aStrAdvSprites[2] = "burgerClip";
aStrAdvSprites[3] = "pizzaClip";
aStrAdvSprites[4] = "wineClip";
aStrAdvSprites[5] = "beerClip";
var speed = 20;
var lngSpriteLeftBound = -250;
var lngSpriteRightBound = 200;
objGameOn = new Sound();
objScore = new Sound();
objDeath = new Sound();
initialiseGame();
stop();
Instance of Symbol 122 MovieClip "leftHandRoad" in Frame 72
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 127 MovieClip "kerb" in Frame 72
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 129 MovieClip in Frame 72
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 134 MovieClip "sky" in Frame 72
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 169 MovieClip "house" in Frame 72
onClipEvent (load) {
this._visible = false;
this.stop();
}
Instance of Symbol 173 MovieClip "sprites" in Frame 72
onClipEvent (load) {
var lngSpriteCount = 1;
var lngMaxDepth = 15000;
var lngMaxSprites = 5;
var lngLiveSprites = 0;
var strSpriteName = "";
var lngDepth = 0;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
if ((math.floor(Math.random() * 11) + 1) == 5) {
if (lngLiveSprites < lngMaxSprites) {
strSpriteName = _root.aStrAdvSprites[math.floor(Math.random() * (_root.aStrAdvSprites.length - 0)) + 0];
lngDepth = lngMaxDepth - lngSpriteCount;
this.attachMovie(strSpriteName, "clip" + lngDepth, lngDepth);
lngSpriteCount = lngSpriteCount + 1;
lngLiveSprites = lngLiveSprites + 1;
}
}
}
}
Instance of Symbol 174 MovieClip "scores" in Frame 72
onClipEvent (load) {
var lngSpriteCount = 1;
var lngMaxSprites = 5;
var lngLiveSprites = 0;
var strSpriteName = "";
var lngDepth = 0;
}
onClipEvent (enterFrame) {
if (lngLiveSprites == 0) {
lngSpriteCount = 1;
}
if (_root.booGameOn == true) {
if (_root.booShowScore == true) {
_root.booShowScore = false;
if (lngLiveSprites < lngMaxSprites) {
strSpriteName = "scoreClip";
lngDepth = lngSpriteCount;
this.attachMovie(strSpriteName, "clip" + lngDepth, lngDepth);
lngSpriteCount = lngSpriteCount + 1;
lngLiveSprites = lngLiveSprites + 1;
}
}
}
}
Instance of Symbol 175 MovieClip "players" in Frame 72
onClipEvent (load) {
this.attachMovie("player" + _root.strSex, "player1", 500);
}
onClipEvent (enterFrame) {
this._visible = _root.booShowPlayer;
if (_root.booGameOn == true) {
if (Key.isDown(37) && (!Key.isDown(39))) {
this.player1._x = this.player1._x - _root.speed;
}
if (Key.isDown(39) && (!Key.isDown(37))) {
if (this.player1._x < 530) {
this.player1._x = this.player1._x + _root.speed;
}
}
if (this.player1._x < 100) {
if (_root.booGameOver == false) {
_root.car.play();
}
}
}
}
Instance of Symbol 144 MovieClip "lifeCount" in Frame 72
onClipEvent (load) {
i = 1;
while (i < 4) {
this["lifeMan" + i]._visible = false;
this["lifeWoman" + i]._visible = false;
this[("life" + _root.strSex) + i]._visible = true;
i++;
}
}
Instance of Symbol 141 MovieClip "timerClock" in Frame 72
onClipEvent (load) {
var startTime;
var countAmount = 120;
var elapsed = 0;
var lngTimeStore = 0;
var lngTimeCount = 0;
booEnabled = false;
this.min = Math.floor(countAmount / 60);
this.sec = countAmount - (this.min * 60);
if (this.sec < 10) {
this.sec = "0" + this.sec;
}
counterDisplay = (this.min + ":") + this.sec;
}
onClipEvent (enterFrame) {
if (booEnabled == true) {
elapsed = getTimer() - startTime;
if (lngTimeStore != Math.floor(elapsed / 1000)) {
lngTimeStore = Math.floor(elapsed / 1000);
lngTimeCount++;
if (lngTimeCount == _root.lngDrunkPeriod) {
lngTimeCount = 0;
_root.changeDrunkeness(3);
}
}
if (elapsed <= (countAmount * 1000)) {
counterOutput = countAmount - Math.floor(elapsed / 1000);
this.sec = int(counterOutput % 60);
this.min = int(counterOutput / 60);
if (min < 10) {
min = min;
}
if (sec < 10) {
sec = "0" + sec;
}
counterDisplay = (this.min + ":") + this.sec;
counterOutput = this.min + this.sec;
} else {
this.sec = "00";
this.counterOutput = "00";
_root.gameSuccess();
}
}
}
Instance of Symbol 146 MovieClip "pissometer" in Frame 72
onClipEvent (load) {
this._xscale = _root.lngDrunkenness;
}
onClipEvent (enterFrame) {
this._xscale = _root.lngDrunkenness;
}
Instance of Symbol 184 MovieClip "gameOver" in Frame 72
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 187 MovieClip "tooDrunk" in Frame 72
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 189 MovieClip "home" in Frame 72
onClipEvent (load) {
this._visible = false;
this.stop();
}
Frame 73
function pause() {
play();
clearInterval(timer);
}
Frame 74
stop();
timer = setInterval(pause, 10000);
Frame 75
stop();
timer = setInterval(pause, 3000);
Frame 153
stop();
timer = setInterval(pause, 3000);
Frame 154
stop();
Frame 155
function pause() {
play();
clearInterval(timer);
}
Frame 156
stop();
timer = setInterval(pause, 10000);
Frame 157
if (_root.strSex == "Man") {
gotoAndPlay (158);
} else {
gotoAndPlay (223);
}
Frame 158
stop();
timer = setInterval(pause, 2000);
Frame 161
stop();
timer = setInterval(pause, 2000);
Frame 208
stop();
timer = setInterval(pause, 2000);
Frame 221
stop();
timer = setInterval(pause, 2000);
Frame 222
gotoAndPlay (288);
Frame 223
stop();
timer = setInterval(pause, 2000);
Frame 226
stop();
timer = setInterval(pause, 2000);
Frame 273
stop();
timer = setInterval(pause, 2000);
Frame 286
stop();
timer = setInterval(pause, 2000);
Frame 288
stop();
Frame 289
function pause() {
play();
clearInterval(timer);
}
objHomeSound = new Sound();
Frame 292
stop();
timer = setInterval(pause, 1000);
Frame 387
objHomeSound.attachSound("letsMakeLove");
objHomeSound.onSoundComplete = function () {
gotoAndPlay (389);
};
objHomeSound.start();
stop();
Frame 392
objHomeSound.attachSound("kiss1");
objHomeSound.onSoundComplete = function () {
gotoAndPlay (394);
};
objHomeSound.start();
stop();
Frame 397
objHomeSound.attachSound("kiss2");
objHomeSound.onSoundComplete = function () {
gotoAndPlay (401);
};
objHomeSound.start();
stop();
Frame 401
stop();
timer = setInterval(pause, 1000);
Frame 402
stop();
timer = setInterval(pause, 4000);
Frame 403
stop();
timer = setInterval(pause, 1000);
Frame 404
stop();
Symbol 21 MovieClip [playerMan] Frame 1
function initialise() {
this._x = _root.lngCenterX - 20;
this._y = _root.lngCenterY;
}
function pause() {
play();
clearInterval(timer);
}
Instance of Symbol 11 MovieClip "character" in Symbol 21 MovieClip [playerMan] Frame 1
onClipEvent (load) {
_parent.initialise();
}
Symbol 21 MovieClip [playerMan] Frame 2
stop();
Symbol 21 MovieClip [playerMan] Frame 11
if (_root.booGameOn == true) {
gotoAndPlay (4);
}
Symbol 21 MovieClip [playerMan] Frame 12
trace(_root.booGameOn);
Symbol 21 MovieClip [playerMan] Frame 14
gotoAndPlay (52);
Symbol 21 MovieClip [playerMan] Frame 23
gotoAndPlay (52);
Symbol 21 MovieClip [playerMan] Frame 29
stop();
timer = setInterval(pause, 500);
Symbol 21 MovieClip [playerMan] Frame 48
gotoAndPlay (52);
Symbol 21 MovieClip [playerMan] Frame 52
if (_root.booGameOver == false) {
initialise();
stop();
timer = setInterval(pause, 2000);
} else {
stop();
}
Symbol 21 MovieClip [playerMan] Frame 69
_root.startGame();
Symbol 25 MovieClip [scoreClip] Frame 1
var lngDepth = _root.scores.lngDepth;
this._x = (_root.players.player1._x - _root.lngCenterX) + 20;
this._y = _root.players.player1._y - _root.lngCentery;
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip [scoreClip] Frame 1
onClipEvent (load) {
this._visible = false;
var lngMoveStep = 15;
var lngXPos = 0;
var lngYPos = -10;
this._x = lngXPos;
this._y = lngYPos;
this._xscale = lngMinScale;
this._yscale = lngMinScale;
var lngDestinationY = (lngYPos + 60);
var count = 0;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this._visible = true;
count++;
if (count < lngMoveStep) {
this._y = this._y - (lngDestinationY / lngMoveStep);
} else {
_root.removeScore(_parent._name);
count = 0;
}
}
if (_root.booClearSprites == true) {
_root.removeScore(_parent._name);
}
}
Symbol 28 MovieClip [henClip] Frame 1
var lngDepth = _root.sprites.lngDepth;
this._x = _root.lngCenterX;
this._y = _root.lngCenterY;
Instance of Symbol 27 MovieClip "character" in Symbol 28 MovieClip [henClip] Frame 1
onClipEvent (load) {
this._visible = false;
var lngDestinationX = (math.floor(Math.random() * (_root.lngSpriteRightBound - _root.lngSpriteLeftBound)) + _root.lngSpriteLeftBound);
var lngMoveStep = 30;
var lngMinScale = 5;
var lngMaxScale = (52 - lngMinScale);
var lngXPos = 0;
var lngYPos = -10;
this._x = lngXPos;
this._y = lngYPos;
this._xscale = lngMinScale;
this._yscale = lngMinScale;
var count = 0;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this._visible = true;
count++;
if (count < lngMoveStep) {
this._x = this._x + (lngDestinationX / lngMoveStep);
this._xscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
this._yscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
if (count == (lngMoveStep - 2)) {
if (_parent.hitTest(_root.players.player1._x, _root.players.player1._y, true) == true) {
_root.loseLife("snogged");
}
}
} else {
_root.removeSprite(_parent._name);
count = 0;
}
}
if (_root.booClearSprites == true) {
_root.removeSprite(_parent._name);
}
}
Symbol 33 MovieClip [thugClip] Frame 1
var lngDepth = _root.sprites.lngDepth;
this._x = _root.lngCenterX;
this._y = _root.lngCenterY;
var xStore = 0;
var yStore = 0;
var xScaleStore = 0;
var yScaleStore = 0;
stop();
Instance of Symbol 30 MovieClip [thugImage] "character" in Symbol 33 MovieClip [thugClip] Frame 1
onClipEvent (load) {
this._visible = false;
var lngDestinationX = (math.floor(Math.random() * (_root.lngSpriteRightBound - _root.lngSpriteLeftBound)) + _root.lngSpriteLeftBound);
var lngMoveStep = 30;
var lngMinScale = 5;
var lngMaxScale = (50 - lngMinScale);
var lngXPos = 0;
var lngYPos = -15;
var lngYShift = -1;
this._x = lngXPos;
this._y = lngYPos;
this._xscale = lngMinScale;
this._yscale = lngMinScale;
var count = 0;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this._visible = true;
count++;
if (count < lngMoveStep) {
this._x = this._x + (lngDestinationX / lngMoveStep);
this._y = this._y + lngYShift;
this._xscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
this._yscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
if (count == (lngMoveStep - 2)) {
if (_parent.hitTest(_root.players.player1._x, _root.players.player1._y, false) == true) {
_root.loseLife("mugged");
_parent.xStore = this._x;
_parent.yStore = this._y;
_parent.xScaleStore = this._xscale;
_parent.yScaleStore = this._yscale;
_parent.play();
}
}
} else {
_root.removeSprite(_parent._name);
count = 0;
}
}
if (_root.booClearSprites == true) {
_root.removeSprite(_parent._name);
}
}
Symbol 33 MovieClip [thugClip] Frame 2
stop();
Instance of Symbol 32 MovieClip "character" in Symbol 33 MovieClip [thugClip] Frame 2
onClipEvent (load) {
this._xscale = _parent.xScaleStore;
this._yscale = _parent.xScaleStore;
this._x = _parent.xStore;
this._y = _parent.yStore;
}
onClipEvent (enterFrame) {
if (_root.booClearSprites == true) {
_root.removeSprite(_parent._name);
}
if (_root.booGameOn == true) {
_root.removeSprite(_parent._name);
}
}
Symbol 41 MovieClip [beerClip] Frame 1
var lngDepth = _root.sprites.lngDepth;
this._x = _root.lngCenterX;
this._y = _root.lngCenterY;
Instance of Symbol 40 MovieClip "character" in Symbol 41 MovieClip [beerClip] Frame 1
onClipEvent (load) {
this._visible = false;
var lngDestinationX = (math.floor(Math.random() * (_root.lngSpriteRightBound - _root.lngSpriteLeftBound)) + _root.lngSpriteLeftBound);
var lngMoveStep = 30;
var lngMinScale = 5;
var lngMaxScale = (60 - lngMinScale);
var lngXPos = 0;
var lngYPos = -5;
this._x = lngXPos;
this._y = lngYPos;
this._xscale = lngMinScale;
this._yscale = lngMinScale;
var count = 0;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this._visible = true;
count++;
if (count < lngMoveStep) {
this._x = this._x + (lngDestinationX / lngMoveStep);
this._xscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
this._yscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
if (count == (lngMoveStep - 2)) {
if (_parent.hitTest(_root.players.player1) == true) {
_root.eatDrink(3, _parent._name);
}
}
} else {
_root.removeSprite(_parent._name);
count = 0;
}
}
if (_root.booClearSprites == true) {
_root.removeSprite(_parent._name);
}
}
Symbol 50 MovieClip [burgerClip] Frame 1
var lngDepth = _root.sprites.lngDepth;
this._x = _root.lngCenterX;
this._y = _root.lngCenterY;
Instance of Symbol 49 MovieClip "character" in Symbol 50 MovieClip [burgerClip] Frame 1
onClipEvent (load) {
this._visible = false;
var lngDestinationX = (math.floor(Math.random() * (_root.lngSpriteRightBound - _root.lngSpriteLeftBound)) + _root.lngSpriteLeftBound);
var lngMoveStep = 30;
var lngMinScale = 5;
var lngMaxScale = (65 - lngMinScale);
var lngXPos = 0;
var lngYPos = -5;
this._x = lngXPos;
this._y = lngYPos;
this._xscale = lngMinScale;
this._yscale = lngMinScale;
var count = 0;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this._visible = true;
count++;
if (count < lngMoveStep) {
this._x = this._x + (lngDestinationX / lngMoveStep);
this._xscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
this._yscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
if (count == (lngMoveStep - 2)) {
if (_parent.hitTest(_root.players.player1) == true) {
_root.eatDrink(-1, _parent._name);
}
}
} else {
_root.removeSprite(_parent._name);
count = 0;
}
}
if (_root.booClearSprites == true) {
_root.removeSprite(_parent._name);
}
}
Symbol 58 MovieClip [pizzaClip] Frame 1
var lngDepth = _root.sprites.lngDepth;
this._x = _root.lngCenterX;
this._y = _root.lngCenterY;
Instance of Symbol 57 MovieClip "character" in Symbol 58 MovieClip [pizzaClip] Frame 1
onClipEvent (load) {
this._visible = false;
var lngDestinationX = (math.floor(Math.random() * (_root.lngSpriteRightBound - _root.lngSpriteLeftBound)) + _root.lngSpriteLeftBound);
var lngMoveStep = 30;
var lngMinScale = 5;
var lngMaxScale = (80 - lngMinScale);
var lngXPos = 5;
var lngYPos = 0;
this._x = lngXPos;
this._y = lngYPos;
this._xscale = lngMinScale;
this._yscale = lngMinScale;
var count = 0;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this._visible = true;
count++;
if (count < lngMoveStep) {
this._x = this._x + (lngDestinationX / lngMoveStep);
this._xscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
this._yscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
if (count == (lngMoveStep - 2)) {
if (_parent.hitTest(_root.players.player1) == true) {
_root.eatDrink(-2, _parent._name);
}
}
} else {
_root.removeSprite(_parent._name);
count = 0;
}
}
if (_root.booClearSprites == true) {
_root.removeSprite(_parent._name);
}
}
Symbol 66 MovieClip [wineClip] Frame 1
var lngDepth = _root.sprites.lngDepth;
this._x = _root.lngCenterX;
this._y = _root.lngCenterY;
Instance of Symbol 65 MovieClip "character" in Symbol 66 MovieClip [wineClip] Frame 1
onClipEvent (load) {
this._visible = false;
var lngDestinationX = (math.floor(Math.random() * (_root.lngSpriteRightBound - _root.lngSpriteLeftBound)) + _root.lngSpriteLeftBound);
var lngMoveStep = 30;
var lngMinScale = 5;
var lngMaxScale = (80 - lngMinScale);
var lngXPos = 5;
var lngYPos = 0;
this._x = lngXPos;
this._y = lngYPos;
this._xscale = lngMinScale;
this._yscale = lngMinScale;
var count = 0;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
this._visible = true;
count++;
if (count < lngMoveStep) {
this._x = this._x + (lngDestinationX / lngMoveStep);
this._xscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
this._yscale = lngMinScale + ((lngMaxScale / lngMoveStep) * count);
if (count == (lngMoveStep - 2)) {
if (_parent.hitTest(_root.players.player1) == true) {
_root.eatDrink(8, _parent._name);
}
}
} else {
_root.removeSprite(_parent._name);
count = 0;
}
}
if (_root.booClearSprites == true) {
_root.removeSprite(_parent._name);
}
}
Symbol 78 MovieClip [playerWoman] Frame 1
function initialise() {
this._x = _root.lngCenterX - 20;
this._y = _root.lngCenterY;
}
function pause() {
play();
clearInterval(timer);
}
Instance of Symbol 68 MovieClip in Symbol 78 MovieClip [playerWoman] Frame 1
onClipEvent (load) {
_parent.initialise();
}
Symbol 78 MovieClip [playerWoman] Frame 2
stop();
Symbol 78 MovieClip [playerWoman] Frame 11
if (_root.booGameOn == true) {
gotoAndPlay (4);
}
Symbol 78 MovieClip [playerWoman] Frame 14
gotoAndPlay (52);
Symbol 78 MovieClip [playerWoman] Frame 23
gotoAndPlay (52);
Symbol 78 MovieClip [playerWoman] Frame 29
stop();
timer = setInterval(pause, 500);
Symbol 78 MovieClip [playerWoman] Frame 48
gotoAndPlay (52);
Symbol 78 MovieClip [playerWoman] Frame 52
if (_root.booGameOver == false) {
initialise();
stop();
timer = setInterval(pause, 2000);
} else {
stop();
}
Instance of Symbol 68 MovieClip in Symbol 78 MovieClip [playerWoman] Frame 54
onClipEvent (load) {
_parent.initialise();
}
Instance of Symbol 68 MovieClip in Symbol 78 MovieClip [playerWoman] Frame 56
onClipEvent (load) {
_parent.initialise();
}
Instance of Symbol 68 MovieClip in Symbol 78 MovieClip [playerWoman] Frame 58
onClipEvent (load) {
_parent.initialise();
}
Instance of Symbol 68 MovieClip in Symbol 78 MovieClip [playerWoman] Frame 60
onClipEvent (load) {
_parent.initialise();
}
Instance of Symbol 68 MovieClip in Symbol 78 MovieClip [playerWoman] Frame 62
onClipEvent (load) {
_parent.initialise();
}
Instance of Symbol 68 MovieClip in Symbol 78 MovieClip [playerWoman] Frame 64
onClipEvent (load) {
_parent.initialise();
}
Symbol 78 MovieClip [playerWoman] Frame 69
_root.startGame();
Symbol 90 MovieClip Frame 1
setProperty(this, _xscale , (_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
Symbol 100 MovieClip Frame 15
stop();
Symbol 118 Button
on (release) {
gotoAndPlay (51);
}
Symbol 122 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 1
var lngForeSpeed = 1;
var lngBackSpeed = 1;
var lngForeDirection = -1;
var lngBackDirection = 1;
Instance of Symbol 132 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
var count = 0;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
count = count + 1;
if (count > _parent.lngBackSpeed) {
count = 0;
this._x = this._x + (0.3 * _parent.lngBackDirection);
}
if ((this._x > _root.lngRightBound) || (this._x < _root.lngLeftBound)) {
_parent.lngBackDirection = _parent.lngBackDirection * -1;
}
}
}
Instance of Symbol 132 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
var count = 0;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
count = count + 1;
if (count > _parent.lngBackSpeed) {
count = 0;
this._x = this._x + (0.3 * _parent.lngBackDirection);
}
if ((this._x > _root.lngRightBound) || (this._x < _root.lngLeftBound)) {
_parent.lngBackDirection = _parent.lngBackDirection * -1;
}
}
}
Instance of Symbol 132 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
var count = 0;
}
onClipEvent (enterFrame) {
if (_root.booGameOn == true) {
count = count + 1;
if (count > _parent.lngForeSpeed) {
count = 0;
this._x = this._x + (0.3 * _parent.lngForeDirection);
}
if ((this._x > _root.lngRightBound) || (this._x < _root.lngLeftBound)) {
_parent.lngForeDirection = _parent.lngForeDirection * -1;
}
}
}
Symbol 144 MovieClip Frame 1
function showLives() {
i = 1;
while (i < (_root.lngLifeTotal + 1)) {
if (i <= _root.lngLifeCount) {
this[("life" + _root.strSex) + i]._visible = true;
} else {
this[("life" + _root.strSex) + i]._visible = false;
}
i++;
}
}
Symbol 163 Button
on (release) {
strSex = "Man";
gotoAndPlay (72);
}
Symbol 166 Button
on (release) {
strSex = "Woman";
gotoAndPlay (72);
}
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 11
_root.stopGame();
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 6
_root.loseLife("splatted");
Symbol 172 MovieClip Frame 7
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 2
play();
Symbol 179 MovieClip Frame 25
_root.timerClock.startTime = getTimer();
_root.startGame();
Symbol 179 MovieClip Frame 28
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 85
_root.showEnding("mugged");
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 85
_root.showEnding("drunk");
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
_root.booGameOn = false;
Symbol 189 MovieClip Frame 76
_root.showEnding("home");
stop();
Symbol 206 Button
on (release) {
gotoAndPlay (51);
}
Symbol 209 Button
on (release) {
getURL ("http://www.dontdodrunk.com");
}
Symbol 218 MovieClip Frame 31
stop();
Symbol 221 Button
on (release) {
getURL ("http://www.dontdodrunk.com");
}
Symbol 228 MovieClip Frame 15
stop();
Symbol 235 Button
on (release) {
getURL ("http://www.dontdodrunk.com/theGames/getHomeGetLucky/sendGame.asp");
}