Frame 1
function gotoURL() {
getURL ("http://www.games2win.com");
}
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var newMenu = new ContextMenu();
newMenu.customItems.push(new ContextMenuItem("\u00A9Games2win.com", gotoURL));
this.menu = newMenu;
_root.playIntro = true;
_root.allSounds = new Sound();
_root.score = 0;
_root.timeScore = 0;
_root.levelScore = 0;
_root.isPause = false;
_root.levelArray = ["lblgame", "level2", "level3", "level4", ""];
_root.level = 1;
Frame 2
Frame 3
function playAgain() {
_root.intro = 0;
if (_root.Plevel == "") {
_root.gotoAndStop("lblgameintro");
} else {
_root.gotoAndStop(_root.Plevel);
}
}
var Sscore = 0;
System.security.allowDomain("shockwave.com", "www.game2win.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = "cocktailquest";
_level0.swHighScoreObject.gameTitle = "Cocktail Quest";
_level0.swHighScoreObject.screenWidth = 600;
_level0.swHighScoreObject.screenHeight = 450;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = 0;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
Frame 4
Frame 5
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
Instance of Symbol 245 MovieClip in Frame 8
on (release) {
this.gotoAndPlay(_currentframe + 1);
}
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
stopAllSounds();
Frame 13
stop();
stopAllSounds();
Frame 14
stop();
stopAllSounds();
Frame 15
stop();
stopAllSounds();
Frame 16
stop();
stopAllSounds();
_level0.swHighScoreObject.player1Score = _root.score;
trace("_level0.swHighScoreObject.player1Score " + _level0.swHighScoreObject.player1Score);
stop();
Symbol 13 Button
on (release) {
_parent.gotoAndStop("lblloader");
}
Symbol 23 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 29 Button
on (release) {
_parent.gotoAndStop(2);
}
Symbol 64 MovieClip Frame 104
_parent.gotoAndStop("lblloader");
Symbol 74 MovieClip Frame 1
stop();
var loaded = 0;
onEnterFrame = function () {
loaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (glas_mc._currentframe != (Math.round(loaded / 10) + 1)) {
glass_mc.gotoAndStop(Math.round(loaded / 10) + 1);
}
if (loaded >= 100) {
_root.gotoAndStop("lblgameintro");
}
};
Symbol 161 MovieClip Frame 1
if (!_root.playIntro) {
gotoAndStop(_totalframes);
}
_root.playIntro = false;
Symbol 161 MovieClip Frame 55
stop();
Symbol 172 Button
on (release) {
credit.gotoAndPlay(2);
}
Symbol 187 Button
on (rollOver) {
bb.useHandCursor = false;
}
Symbol 192 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 230 MovieClip Frame 97
stop();
Symbol 235 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 236 MovieClip Frame 1
stop();
Instance of Symbol 32 MovieClip in Symbol 236 MovieClip Frame 39
on (release) {
getURL ("http://www.media2win.com/admin/me2wbannertracking.asp?bannerid=969&campaign=Cocktail_Quest_Addicting_Games &client=Addicting_Games&site=Cocktail_Quest &creative=&b_section=&size=&fromsite=0 &link=www.games2win.com", "_blank");
}
Symbol 236 MovieClip Frame 40
stop();
Instance of Symbol 230 MovieClip in Symbol 236 MovieClip Frame 40
on (release) {
getURL ("http://www.media2win.com/admin/me2wbannertracking.asp?bannerid=969&campaign=Cocktail_Quest_Addicting_Games &client=Addicting_Games&site=Cocktail_Quest &creative=&b_section=&size=&fromsite=0 &link=www.games2win.com", "_blank");
}
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 18
stop();
G2W_CREDIT.gotoAndPlay(2);
Symbol 238 MovieClip Frame 1
if (_root.intro == 0) {
gotoAndStop(_totalframes);
}
Symbol 238 MovieClip Frame 291
stop();
story_btn.onRelease = function () {
_root.gotoAndStop("story");
};
instructions_btn.onRelease = function () {
_root.gotoAndStop("instructions");
};
start_btn.onRelease = function () {
stopAllSounds();
_root.gotoAndStop("lblgame");
};
credit_btn.onRelease = function () {
credit.gotoAndPlay(2);
};
Symbol 241 MovieClip [tile] Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.heroHit_mc)) {
if (this._currentframe == 2) {
}
if (this._currentframe == 3) {
_parent.hero_mc.hit = true;
var _local4 = this._x - _parent.heroHit_mc._x;
var _local3 = this._y - _parent.heroHit_mc._y;
var _local8 = (_parent.heroHit_mc._width / 2) - Math.abs(_local4);
var _local6 = (this._width + (_parent.heroHit_mc._width / 2)) - Math.abs(_local4);
var _local7 = (_parent.heroHit_mc._height / 2) - Math.abs(_local3);
var _local5 = (this._height + (_parent.heroHit_mc._height / 2)) - Math.abs(_local3);
if (((this.hitTest(_parent.heroHit_mc.leftTop_mc) && (!this.hitTest(_parent.heroHit_mc.leftBottom_mc))) && (!this.hitTest(_parent.heroHit_mc.rightTop_mc))) && (!this.hitTest(_parent.heroHit_mc.rightBottom_mc))) {
if ((_parent.hero_mc._currentframe == 1) or (_parent.hero_mc._currentframe == 4)) {
if (_local5 > _local8) {
_parent.hero_mc._x = (_parent.hero_mc._x - ((_parent.heroHit_mc._width / 2) - _local4)) - (_parent.hero_mc.Xspeed / 2);
} else {
_parent.hero_mc._y = (_parent.hero_mc._y + (((_parent.heroHit_mc._height / 2) + this._height) + _local3)) - (_parent.hero_mc.Yspeed / 2);
}
} else if (_local5 > _local8) {
_parent.hero_mc._x = (_parent.hero_mc._x - ((_parent.heroHit_mc._width / 2) - _local4)) - (_parent.hero_mc.Xspeed / 2);
} else {
_parent.hero_mc._y = (_parent.hero_mc._y + (((_parent.heroHit_mc._height / 2) + this._height) + _local3)) - (_parent.hero_mc.Yspeed / 2);
}
}
if ((((!this.hitTest(_parent.heroHit_mc.leftTop_mc)) && (this.hitTest(_parent.heroHit_mc.leftBottom_mc))) && (!this.hitTest(_parent.heroHit_mc.rightTop_mc))) && (!this.hitTest(_parent.heroHit_mc.rightBottom_mc))) {
if ((_parent.hero_mc._currentframe == 1) or (_parent.hero_mc._currentframe == 4)) {
if (_local7 > _local8) {
_parent.hero_mc._x = (_parent.hero_mc._x - ((_parent.heroHit_mc._width / 2) - _local4)) - (_parent.hero_mc.Xspeed / 2);
} else {
_parent.hero_mc._y = (_parent.hero_mc._y - ((_parent.heroHit_mc._height / 2) - _local3)) - (_parent.hero_mc.Yspeed / 2);
}
} else if (_local7 > _local8) {
_parent.hero_mc._x = (_parent.hero_mc._x - ((_parent.heroHit_mc._width / 2) - _local4)) - (_parent.hero_mc.Xspeed / 2);
} else {
_parent.hero_mc._y = (_parent.hero_mc._y - ((_parent.heroHit_mc._height / 2) - _local3)) - (_parent.hero_mc.Yspeed / 2);
}
}
if ((((!this.hitTest(_parent.heroHit_mc.leftTop_mc)) && (!this.hitTest(_parent.heroHit_mc.leftBottom_mc))) && (this.hitTest(_parent.heroHit_mc.rightTop_mc))) && (!this.hitTest(_parent.heroHit_mc.rightBottom_mc))) {
if ((_parent.hero_mc._currentframe == 1) or (_parent.hero_mc._currentframe == 4)) {
if (_local5 > _local6) {
_parent.hero_mc._x = (_parent.hero_mc._x + (((_parent.heroHit_mc._width / 2) + this._width) + _local4)) - (_parent.hero_mc.Xspeed / 2);
} else {
_parent.hero_mc._y = (_parent.hero_mc._y + (((_parent.heroHit_mc._height / 2) + this._height) + _local3)) - (_parent.hero_mc.Yspeed / 2);
}
} else if (_local5 > _local6) {
_parent.hero_mc._x = (_parent.hero_mc._x + (((_parent.heroHit_mc._width / 2) + this._width) + _local4)) - (_parent.hero_mc.Xspeed / 2);
} else {
_parent.hero_mc._y = (_parent.hero_mc._y + (((_parent.heroHit_mc._height / 2) + this._height) + _local3)) - (_parent.hero_mc.Yspeed / 2);
}
}
if ((((!this.hitTest(_parent.heroHit_mc.leftTop_mc)) && (!this.hitTest(_parent.heroHit_mc.leftBottom_mc))) && (!this.hitTest(_parent.heroHit_mc.rightTop_mc))) && (this.hitTest(_parent.heroHit_mc.rightBottom_mc))) {
if ((_parent.hero_mc._currentframe == 1) or (_parent.hero_mc._currentframe == 4)) {
if (_local7 > _local6) {
_parent.hero_mc._x = (_parent.hero_mc._x + (((_parent.heroHit_mc._width / 2) + this._width) + _local4)) - (_parent.hero_mc.Xspeed / 2);
} else {
_parent.hero_mc._y = (_parent.hero_mc._y - ((_parent.heroHit_mc._height / 2) - _local3)) - (_parent.hero_mc.Yspeed / 2);
}
} else if (_local7 > _local6) {
_parent.hero_mc._x = (_parent.hero_mc._x + (((_parent.heroHit_mc._width / 2) + this._width) + _local4)) - (_parent.hero_mc.Xspeed / 2);
} else {
_parent.hero_mc._y = (_parent.hero_mc._y - ((_parent.heroHit_mc._height / 2) - _local3)) - (_parent.hero_mc.Yspeed / 2);
}
}
if (((this.hitTest(_parent.heroHit_mc.leftTop_mc) && (this.hitTest(_parent.heroHit_mc.leftBottom_mc))) && (!this.hitTest(_parent.heroHit_mc.rightTop_mc))) && (!this.hitTest(_parent.heroHit_mc.rightBottom_mc))) {
_parent.hero_mc._x = (_parent.hero_mc._x - ((_parent.heroHit_mc._width / 2) - _local4)) - (_parent.hero_mc.Xspeed / 2);
}
if (((this.hitTest(_parent.heroHit_mc.leftTop_mc) && (!this.hitTest(_parent.heroHit_mc.leftBottom_mc))) && (this.hitTest(_parent.heroHit_mc.rightTop_mc))) && (!this.hitTest(_parent.heroHit_mc.rightBottom_mc))) {
_parent.hero_mc._y = (_parent.hero_mc._y + (((_parent.heroHit_mc._height / 2) + this._height) + _local3)) - (_parent.hero_mc.Yspeed / 2);
}
if ((((!this.hitTest(_parent.heroHit_mc.leftTop_mc)) && (this.hitTest(_parent.heroHit_mc.leftBottom_mc))) && (!this.hitTest(_parent.heroHit_mc.rightTop_mc))) && (this.hitTest(_parent.heroHit_mc.rightBottom_mc))) {
_parent.hero_mc._y = (_parent.hero_mc._y - ((_parent.heroHit_mc._height / 2) - _local3)) - (_parent.hero_mc.Yspeed / 2);
}
if ((((!this.hitTest(_parent.heroHit_mc.leftTop_mc)) && (!this.hitTest(_parent.heroHit_mc.leftBottom_mc))) && (this.hitTest(_parent.heroHit_mc.rightTop_mc))) && (this.hitTest(_parent.heroHit_mc.rightBottom_mc))) {
_parent.hero_mc._x = (_parent.hero_mc._x + (((_parent.heroHit_mc._width / 2) + this._width) + _local4)) - (_parent.hero_mc.Xspeed / 2);
}
} else {
_parent.hero_mc.hit = false;
}
if (this._currentframe == 5) {
_parent.drinkArea = true;
} else {
_parent.drinkArea = false;
}
}
};
stop();
Symbol 241 MovieClip [tile] Frame 2
stop();
Symbol 241 MovieClip [tile] Frame 3
stop();
Symbol 241 MovieClip [tile] Frame 4
stop();
Symbol 241 MovieClip [tile] Frame 5
stop();
Symbol 245 MovieClip Frame 1
stop();
_root.allSounds.setVolume(100);
Symbol 245 MovieClip Frame 2
stop();
_root.allSounds.setVolume(0);
Symbol 266 MovieClip Frame 87
stop();
start_btn.onRelease = function () {
stopAllSounds();
_root.gotoAndStop("lblgame");
};
back_btn.onRelease = function () {
_root.intro = 0;
_root.gotoAndStop("lblgameintro");
};
Symbol 290 MovieClip Frame 1
onEnterFrame = function () {
if (_currentframe == 1) {
if (_parent.hitTest(_parent._parent.hero_mc) && (_parent._parent.drinkArea == true)) {
if (Key.isDown(32)) {
if (_parent._currentframe == 2) {
_parent._parent.drinks++;
_root.score = _root.score + 200;
gotoAndStop (4);
} else {
_parent._parent._parent.gotoAndStop("lose");
}
}
}
}
};
stop();
Symbol 290 MovieClip Frame 2
stop();
Symbol 290 MovieClip Frame 3
stop();
Symbol 290 MovieClip Frame 4
stop();
_parent._parent[_parent._parent.pickupArray[_parent._parent.index]].glass_mc.enabled = true;
_parent._parent[_parent._parent.pickupArray[_parent._parent.index]].glass_mc._visible = true;
_parent._parent.index++;
_parent._parent.hero_mc.hangover = _parent._parent.hero_mc.hangover + _parent._parent.zonkStrength;
Symbol 293 MovieClip Frame 1
onEnterFrame = function () {
if (_currentframe == 1) {
if (_parent.hitTest(_parent._parent.hero_mc) && (_parent._parent.drinkArea == true)) {
if (Key.isDown(32)) {
if ((_parent.v1 && (_parent.v2)) && (_parent.v3)) {
_parent._parent.drinks++;
_root.score = _root.score + 200;
gotoAndStop (4);
} else {
_parent._parent._parent.gotoAndStop("lose");
}
}
}
}
};
stop();
Symbol 293 MovieClip Frame 2
stop();
Symbol 293 MovieClip Frame 3
stop();
Symbol 293 MovieClip Frame 4
stop();
_parent._parent[_parent._parent.pickupArray[_parent._parent.index]].glass_mc.enabled = true;
_parent._parent[_parent._parent.pickupArray[_parent._parent.index]].glass_mc._visible = true;
_parent._parent.index++;
_parent._parent.hero_mc.hangover = _parent._parent.hero_mc.hangover + _parent._parent.zonkStrength;
Symbol 298 MovieClip Frame 86
stop();
start_btn.onRelease = function () {
_root.gotoAndStop("lblgame");
};
back_btn.onRelease = function () {
_root.intro = 0;
_root.gotoAndStop("lblgameintro");
};
Symbol 307 MovieClip Frame 53
_parent._parent.table_mc.v1 = true;
_parent.gotoAndStop(2);
Symbol 308 MovieClip Frame 72
_parent._parent.table_mc.v1 = false;
_parent.gotoAndStop(1);
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 2
stop();
Symbol 318 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 330 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 333 MovieClip Frame 30
_parent.gotoAndStop(2);
Symbol 334 MovieClip Frame 60
_parent.gotoAndStop(1);
_parent.go = true;
Symbol 335 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 335 MovieClip Frame 2
stop();
Symbol 336 MovieClip Frame 1
var v1 = false;
var v2 = false;
var v3 = false;
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 338 MovieClip Frame 56
_parent._parent.table_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 339 MovieClip Frame 50
_parent._parent.table_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 340 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 341 MovieClip Frame 87
_parent._parent.table_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 342 MovieClip Frame 67
_parent._parent.table_mc.v3 = false;
_parent.gotoAndStop(1);
Symbol 343 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 343 MovieClip Frame 2
stop();
Symbol 344 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 344 MovieClip Frame 2
stop();
Symbol 347 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 349 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 350 MovieClip Frame 51
_parent._parent.table2_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 351 MovieClip Frame 50
_parent._parent.table2_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 352 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 352 MovieClip Frame 2
stop();
Symbol 353 MovieClip Frame 87
_parent._parent.table2_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 354 MovieClip Frame 67
_parent._parent.table2_mc.v3 = false;
_parent.gotoAndStop(1);
Symbol 355 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 355 MovieClip Frame 2
stop();
Symbol 356 MovieClip Frame 53
_parent._parent.table2_mc.v1 = true;
_parent.gotoAndStop(2);
Symbol 357 MovieClip Frame 72
_parent._parent.table2_mc.v1 = false;
_parent.gotoAndStop(1);
Symbol 358 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 358 MovieClip Frame 2
stop();
Symbol 359 MovieClip Frame 55
_parent.gotoAndStop(2);
Symbol 360 MovieClip Frame 55
_parent.gotoAndStop(1);
Symbol 361 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 361 MovieClip Frame 2
stop();
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 2
stop();
Symbol 370 MovieClip Frame 1
onEnterFrame = function () {
this._x = _parent.hero_mc._x + 2.5;
this._y = _parent.hero_mc._y + 39.8;
};
Symbol 376 MovieClip Frame 1
function zonked() {
var _local3 = 0;
var _local4 = [-1, 1];
count++;
if (val < count) {
count = 0;
val = _root.randomRange(6, 20 - hangover);
_local3 = _local4[_root.randomRange(0, 1)];
}
xpos = this._x;
ypos = this._y;
theta = theta - (0.1 * _local3);
newXpos = this._x + ((Math.sin(theta) * hangover) / 2);
newYpos = this._y + ((Math.cos(theta) * hangover) / 2);
this._x = newXpos;
this._y = newYpos;
}
var currentkey = "none";
var speed = 0;
var maxSpeed = 4;
var force = 1;
var Xspeed;
var Yspeed;
var moving;
var theta = 0;
var count = 0;
var moveLeft = false;
var moveRight = false;
var moveUp = false;
var moveDown = false;
var hit = false;
var prevframe;
var val = _root.randomRange(6, 20 - hangover);
stop();
onEnterFrame = function () {
if (((Key.isDown(37) && (!Key.isDown(39))) && (!Key.isDown(38))) && (!Key.isDown(40))) {
if (currentkey != "left") {
speed = 0;
currentkey = "left";
moving = true;
moveLeft = true;
}
gotoAndStop ("left");
target_mc.play();
Xspeed = -speed;
Yspeed = 0;
if (speed < (maxSpeed + hangover)) {
speed = speed + force;
}
} else {
moveLeft = false;
}
if ((((!Key.isDown(37)) && (Key.isDown(39))) && (!Key.isDown(38))) && (!Key.isDown(40))) {
if (currentkey != "right") {
speed = 0;
currentkey = "right";
moving = true;
moveRight = true;
}
gotoAndStop ("right");
target_mc.play();
Xspeed = -speed;
Yspeed = 0;
if (speed > (-(maxSpeed + hangover))) {
speed = speed - force;
}
} else {
moveRight = false;
}
if ((((!Key.isDown(37)) && (!Key.isDown(39))) && (Key.isDown(38))) && (!Key.isDown(40))) {
if (currentkey != "up") {
speed = 0;
currentkey = "up";
moving = true;
moveUp = true;
}
gotoAndStop ("back");
target_mc.play();
Yspeed = -speed;
Xspeed = 0;
if (speed < (maxSpeed + hangover)) {
speed = speed + force;
}
} else {
moveUp = false;
}
if ((((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) && (Key.isDown(40))) {
if (currentkey != "down") {
speed = 0;
currentkey = "down";
moving = true;
moveDown = true;
}
gotoAndStop ("front");
target_mc.play();
Yspeed = -speed;
Xspeed = 0;
if (speed > (-(maxSpeed + hangover))) {
speed = speed - force;
}
} else {
moveDown = false;
}
if ((((!moveUp) && (!moveDown)) && (!moveLeft)) && (!moveRight)) {
currentkey = "none";
moving = false;
Yspeed = 0;
Xspeed = 0;
}
if (moving) {
theta = theta + 0.1;
this._x = this._x + Xspeed;
this._y = this._y + Yspeed;
}
if (!hit) {
zonked();
}
};
stop();
Symbol 376 MovieClip Frame 2
stop();
Symbol 376 MovieClip Frame 3
stop();
Symbol 376 MovieClip Frame 4
stop();
Symbol 383 MovieClip Frame 1
var timer = 0;
var percent = 0;
onEnterFrame = function () {
time_txt.text = Math.round((_parent.levelTime - timer) / 24);
if (timer >= _parent.levelTime) {
_root.gotoAndStop("gameOver");
}
if (_parent.drinks >= _parent.totalDrinks) {
_root.levelScore = _parent.levelScore;
_root.timeScore = int(time_txt.text) * 100;
_root.score = (_root.score + _root.levelScore) + _root.timeScore;
_parent._parent.gotoAndStop("win");
}
percent = (_parent.drinks / _parent.totalDrinks) * 100;
glass_mc.mask_mc._yscale = percent;
timer++;
};
Symbol 386 MovieClip Frame 2
stop();
Symbol 387 MovieClip Frame 1
function buildMap() {
var _local7 = true;
var _local5 = Map[0].length;
var _local6 = Map.length;
var _local4 = 0;
while (_local4 < _local6) {
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = this.attachMovie("tile", (("t_" + _local4) + "_") + _local2, ++d);
_local3._x = int(_local2 - 1) * tileWidth;
_local3._y = int(_local4 - 1) * tileHeight;
_local3.gotoAndStop(Map[_local4][_local2] + 1);
if ((Map[_local4][_local2] + 1) == 3) {
_local3.walkable = false;
} else {
_local3.walkable = true;
}
_local2++;
}
_local4++;
}
}
_root.level = 1;
var levelScore = 5000;
var drinkArea = false;
var pickupArray = ["wait2_mc", "wait1_mc", "table_mc"];
var index = 1;
table2_mc.glass_mc._visible = false;
man1_mc.glass_mc._visible = false;
man1_mc.glass_mc.enabled = false;
j = 1;
while (j < pickupArray.length) {
this[pickupArray[j]].glass_mc.enabled = false;
this[pickupArray[j]].glass_mc._visible = false;
j++;
}
var totalDrinks = pickupArray.length;
var zonkStrength = 1.25;
hero_mc.hangover = 0;
var d = 0;
var levelTime = 960;
var drinks = 0;
var Map = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 1, 4, 4, 0, 0, 2], [2, 0, 0, 0, 0, 2, 2, 0, 0, 0, 4, 1, 0, 2], [2, 0, 1, 0, 2, 2, 2, 2, 0, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 2], [2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 2], [2, 0, 0, 0, 0, 4, 0, 0, 2, 2, 2, 2, 0, 2], [2, 0, 0, 0, 1, 4, 0, 0, 0, 4, 4, 0, 0, 2], [2, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
var tileWidth = 50;
var tileHeight = 33.3;
buildMap();
Instance of Symbol 363 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
var myClip = "table_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
var myClip = "wait1_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 366 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
var myClip = "wait1_mc";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if ((((_parent[myClip]._currentframe == 2) && (_parent.hero_mc.hitTest(_parent[myClip].glass_mc))) && (_parent[myClip].glass_mc._visible)) && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 366 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
var myClip = "table_mc";
}
onClipEvent (enterFrame) {
if (((((_parent[myClip].v1 && (_parent[myClip].v2)) && (_parent[myClip].v3)) && (_parent.hero_mc.hitTest(_parent[myClip].glass_mc))) && (_parent[myClip].glass_mc._visible)) && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
var myClip = "wait2_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 366 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
var myClip = "wait2_mc";
}
onClipEvent (enterFrame) {
if ((((_parent[myClip]._currentframe == 2) && (_parent.hero_mc.hitTest(_parent[myClip].glass_mc))) && (_parent[myClip].glass_mc._visible)) && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 418 MovieClip Frame 76
stop();
next_btn.onRelease = function () {
_root.level = 5;
_root.nextFrame();
};
Symbol 419 MovieClip Frame 80
stop();
_root.gotoAndStop("gameOver");
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 2
stop();
Symbol 420 MovieClip Frame 3
stop();
Symbol 437 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 439 MovieClip Frame 1
var v1 = true;
var v2 = false;
var v3 = false;
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 440 MovieClip Frame 51
_parent._parent.table_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 441 MovieClip Frame 50
_parent._parent.table_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 442 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 442 MovieClip Frame 2
stop();
Symbol 445 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 463 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 466 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 471 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 475 MovieClip Frame 87
_parent._parent.table1_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 476 MovieClip Frame 87
_parent._parent.table1_mc.v3 = false;
_parent.gotoAndStop(1);
Symbol 477 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 477 MovieClip Frame 2
stop();
Symbol 479 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 484 MovieClip Frame 1
onEnterFrame = function () {
if (_currentframe == 1) {
if (_parent.hitTest(_parent._parent.hero_mc) && (_parent._parent.drinkArea == true)) {
if (Key.isDown(32)) {
if (_parent._currentframe == 2) {
_parent._parent.drinks++;
_root.score = _root.score + 200;
gotoAndStop (4);
} else {
_parent._parent._parent.gotoAndStop("lose");
}
}
}
}
};
stop();
Symbol 484 MovieClip Frame 2
stop();
Symbol 484 MovieClip Frame 3
stop();
Symbol 484 MovieClip Frame 4
stop();
_parent._parent.hero_mc.hangover = _parent._parent.hero_mc.hangover + 0.1;
Symbol 488 MovieClip Frame 56
_parent._parent.table1_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 489 MovieClip Frame 50
_parent._parent.table_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 490 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 490 MovieClip Frame 2
stop();
Symbol 493 MovieClip Frame 40
_parent.gotoAndStop(2);
Symbol 501 MovieClip Frame 50
_parent.gotoAndStop(1);
Symbol 502 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 502 MovieClip Frame 2
stop();
Symbol 507 MovieClip Frame 2
stop();
Symbol 508 MovieClip Frame 1
function buildMap() {
var _local7 = true;
var _local5 = Map[0].length;
var _local6 = Map.length;
var _local4 = 0;
while (_local4 < _local6) {
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = this.attachMovie("tile", (("t_" + _local4) + "_") + _local2, ++d);
_local3._x = int(_local2 - 1) * tileWidth;
_local3._y = int(_local4 - 1) * tileHeight;
_local3.gotoAndStop(Map[_local4][_local2] + 1);
if ((Map[_local4][_local2] + 1) == 3) {
_local3.walkable = false;
} else {
_local3.walkable = true;
}
_local2++;
}
_local4++;
}
}
_root.level = 2;
var levelScore = 10000;
var drinkArea = false;
var pickupArray = ["special_mc", "table_mc", "wait2_mc", "wait1_mc"];
var index = 1;
table1_mc.glass_mc.enabled = false;
table1_mc.glass_mc._visible = false;
j = 1;
while (j < pickupArray.length) {
this[pickupArray[j]].glass_mc.enabled = false;
this[pickupArray[j]].glass_mc._visible = false;
j++;
}
var totalDrinks = pickupArray.length;
var zonkStrength = 1.25;
hero_mc.hangover = 0;
hero_mc.swapDepths(table_mc);
var d = 0;
var levelTime = 1440;
var drinks = 0;
var Map = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 4, 0, 2, 2, 0, 1, 2], [2, 0, 0, 1, 0, 0, 1, 4, 2, 2, 2, 2, 0, 2], [2, 0, 0, 0, 1, 0, 0, 4, 0, 4, 4, 0, 0, 2], [2, 2, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 2, 2, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2], [2, 2, 0, 0, 0, 2, 2, 2, 2, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 4, 4, 0, 2, 2, 0, 0, 2], [2, 0, 4, 0, 0, 0, 0, 0, 4, 2, 0, 0, 0, 2], [2, 1, 4, 0, 0, 0, 0, 0, 4, 4, 0, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
var tileWidth = 50;
var tileHeight = 33.3;
buildMap();
Instance of Symbol 363 MovieClip in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
var myClip = "wait2_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
var myClip = "special_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
var myClip = "wait1_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
var myClip = "table_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 514 MovieClip Frame 80
stop();
_root.gotoAndStop("gameOver");
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 2
stop();
Symbol 515 MovieClip Frame 3
stop();
Symbol 533 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 534 MovieClip Frame 1
var v1 = false;
var v2 = false;
var v3 = false;
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 536 MovieClip Frame 56
_parent._parent.table1_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 537 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 540 MovieClip Frame 142
_parent._parent.table1_mc.v3 = false;
_parent.gotoAndStop(1);
Symbol 541 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if (_currentframe == 1) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
} else {
if (this.getDepth() < _parent.hero_mc.getDepth()) {
this.swapDepths(_parent.hero_mc);
}
if (this.getDepth() > _parent.hero_mc.getDepth()) {
this.swapDepths(_parent.hero_mc);
}
}
}
};
stop();
Symbol 541 MovieClip Frame 2
stop();
Symbol 543 MovieClip Frame 77
_parent._parent.table1_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 544 MovieClip Frame 57
_parent._parent.table1_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 545 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 545 MovieClip Frame 2
stop();
Symbol 547 MovieClip Frame 125
_parent._parent.table1_mc.v1 = true;
_parent.gotoAndStop(2);
Symbol 548 MovieClip Frame 84
_parent._parent.table1_mc.v1 = false;
_parent.gotoAndStop(1);
Symbol 549 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 549 MovieClip Frame 2
stop();
Symbol 551 MovieClip Frame 2
stop();
Symbol 552 MovieClip Frame 1
function buildMap() {
var _local7 = true;
var _local5 = Map[0].length;
var _local6 = Map.length;
var _local4 = 0;
while (_local4 < _local6) {
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = this.attachMovie("tile", (("t_" + _local4) + "_") + _local2, ++d);
_local3._x = int(_local2 - 1) * tileWidth;
_local3._y = int(_local4 - 1) * tileHeight;
_local3.gotoAndStop(Map[_local4][_local2] + 1);
if ((Map[_local4][_local2] + 1) == 3) {
_local3.walkable = false;
} else {
_local3.walkable = true;
}
_local2++;
}
_local4++;
}
}
_root.level = 3;
var levelScore = 15000;
var drinkArea = false;
var pickupArray = ["table1_mc", "man1_mc", "table2_mc", "wait2_mc"];
var index = 1;
table_mc.glass_mc.enabled = false;
table_mc.glass_mc._visible = false;
j = 1;
while (j < pickupArray.length) {
this[pickupArray[j]].glass_mc.enabled = false;
this[pickupArray[j]].glass_mc._visible = false;
j++;
}
var totalDrinks = pickupArray.length;
var zonkStrength = 1.25;
hero_mc.hangover = 0;
var d = 0;
var levelTime = 1440;
var drinks = 0;
var Map = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 2, 2, 2, 2, 1, 4, 0, 0, 0, 0, 0, 0, 0], [2, 0, 2, 4, 4, 0, 4, 2, 2, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 2, 2, 2, 2, 0, 0, 1, 2], [2, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 1, 2], [2, 0, 2, 2, 2, 2, 0, 0, 2, 2, 0, 0, 0, 2], [2, 0, 0, 4, 4, 0, 0, 2, 2, 2, 2, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
var tileWidth = 50;
var tileHeight = 33.3;
buildMap();
Instance of Symbol 363 MovieClip in Symbol 552 MovieClip Frame 1
onClipEvent (load) {
var myClip = "man1_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 552 MovieClip Frame 1
onClipEvent (load) {
var myClip = "table1_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 552 MovieClip Frame 1
onClipEvent (load) {
var myClip = "table2_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 552 MovieClip Frame 1
onClipEvent (load) {
var myClip = "wait2_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 555 MovieClip Frame 80
stop();
_root.gotoAndStop("gameOver");
Symbol 556 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 2
stop();
Symbol 556 MovieClip Frame 3
stop();
Symbol 562 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 562 MovieClip Frame 2
stop();
Symbol 567 MovieClip Frame 50
_parent.gotoAndStop(2);
Symbol 578 MovieClip Frame 63
_parent.gotoAndStop(1);
Symbol 579 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 579 MovieClip Frame 2
stop();
Symbol 581 MovieClip Frame 1
var v1 = true;
var v2 = false;
var v3 = false;
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
Symbol 582 MovieClip Frame 56
_parent._parent.table_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 583 MovieClip Frame 126
_parent._parent.table_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 584 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if (_currentframe == 1) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
} else {
if (this.getDepth() < _parent.hero_mc.getDepth()) {
this.swapDepths(_parent.hero_mc);
}
if (this.getDepth() > _parent.hero_mc.getDepth()) {
this.swapDepths(_parent.hero_mc);
}
}
}
};
stop();
Symbol 584 MovieClip Frame 2
stop();
Symbol 585 MovieClip Frame 56
_parent._parent.table3_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 586 MovieClip Frame 69
_parent._parent.table3_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 587 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 587 MovieClip Frame 2
stop();
Symbol 588 MovieClip Frame 87
_parent._parent.table3_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 589 MovieClip Frame 87
_parent._parent.table3_mc.v3 = false;
_parent.gotoAndStop(1);
Symbol 590 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 590 MovieClip Frame 2
stop();
Symbol 591 MovieClip Frame 87
_parent._parent.table1_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 592 MovieClip Frame 87
_parent._parent.table1_mc.v3 = false;
_parent.gotoAndStop(1);
Symbol 593 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
if ((this._y > _parent.hero_mc._y) && (this.getDepth() < _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
if ((this._y < _parent.hero_mc._y) && (this.getDepth() > _parent.hero_mc.getDepth())) {
trace("hi");
this.swapDepths(_parent.hero_mc);
}
}
};
stop();
Symbol 593 MovieClip Frame 2
stop();
Symbol 595 MovieClip Frame 2
stop();
Symbol 596 MovieClip Frame 1
function buildMap() {
var _local7 = true;
var _local5 = Map[0].length;
var _local6 = Map.length;
var _local4 = 0;
while (_local4 < _local6) {
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = this.attachMovie("tile", (("t_" + _local4) + "_") + _local2, ++d);
_local3._x = int(_local2 - 1) * tileWidth;
_local3._y = int(_local4 - 1) * tileHeight;
_local3.gotoAndStop(Map[_local4][_local2] + 1);
if ((Map[_local4][_local2] + 1) == 3) {
_local3.walkable = false;
} else {
_local3.walkable = true;
}
_local2++;
}
_local4++;
}
}
_root.level = 4;
var levelScore = 20000;
var drinkArea = false;
var pickupArray = ["table2_mc", "wait1_mc", "table1_mc", "table3_mc", "man1_mc"];
var index = 1;
table_mc.glass_mc.enabled = false;
table_mc.glass_mc._visible = false;
j = 1;
while (j < pickupArray.length) {
this[pickupArray[j]].glass_mc.enabled = false;
this[pickupArray[j]].glass_mc._visible = false;
j++;
}
var totalDrinks = pickupArray.length;
var zonkStrength = 1.25;
hero_mc.hangover = 0;
var d = 0;
var levelTime = 1920;
var drinks = 0;
var Map = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 0, 0, 0, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2], [2, 0, 0, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0, 2], [2, 1, 0, 0, 0, 4, 1, 0, 4, 1, 0, 0, 0, 2], [2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 2, 2, 2, 2, 0, 0, 0, 0, 2, 2, 0, 2], [2, 0, 0, 4, 4, 0, 0, 0, 0, 2, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 2], [2, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 0, 2, 2, 2, 2, 0, 2, 2, 0, 0, 0, 2], [2, 0, 0, 0, 4, 4, 0, 2, 2, 2, 2, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
var tileWidth = 50;
var tileHeight = 33.3;
buildMap();
Instance of Symbol 363 MovieClip in Symbol 596 MovieClip Frame 1
onClipEvent (load) {
var myClip = "man1_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 596 MovieClip Frame 1
onClipEvent (load) {
var myClip = "table3_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 596 MovieClip Frame 1
onClipEvent (load) {
var myClip = "table1_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 596 MovieClip Frame 1
onClipEvent (load) {
var myClip = "wait1_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 596 MovieClip Frame 1
onClipEvent (load) {
var myClip = "table2_mc";
}
onClipEvent (enterFrame) {
if (_parent[myClip].glass_mc._visible && (_parent[myClip].glass_mc._currentframe == 1)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 601 MovieClip Frame 80
stop();
_root.gotoAndStop("gameOver");
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 2
stop();
Symbol 602 MovieClip Frame 3
stop();
Symbol 611 Button
on (release) {
_root.swHighScoreObject.showTab = "submit";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 613 Button
on (release) {
_root.swHighScoreObject.showTab = "view";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 620 Button
on (release) {
_root.playAgain();
}
Instance of Symbol 614 MovieClip in Symbol 622 MovieClip Frame 88
onClipEvent (load) {
this.swapDepths(100033);
docount = false;
}
onClipEvent (enterFrame) {
if (docount) {
trycount++;
if ((_level2.getBytesTotal() == -1) && (trycount > 60)) {
docount = false;
trycount = 0;
}
}
}
Symbol 622 MovieClip Frame 118
stop();
_root.Plevel = _root.levelArray[int(_root.level - 1)];