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 displayScores(mc) {
names = _root.topnickname.split(",");
scores = _root.topscore.split(",");
i = 0;
while (i <= 19) {
if (names[i] == undefined) {
names[i] = "";
}
if (scores[i] == undefined) {
scores[i] = "";
}
eval ((mc + ".n") + (i + 1)).text = names[i];
eval ((mc + ".p") + (i + 1)).text = scores[i];
i++;
}
}
function cancelSubmit(mc, useridframe) {
trace("cancelSubmit");
delete _root.send_lv.onLoad;
_root.skipsubmit = true;
mc.gotoAndStop(useridframe);
}
function _newUser() {
getURL (_root._registerurl, "_blank");
}
function _trackClickThru(mc) {
if (_root._allowclick) {
mc.hit_area.onRelease = function () {
getURL (_root._clickthru, "_blank");
};
} else {
mc.hit_area.useHandCursor = false;
}
}
function _resetUsername(txt) {
txt.onSetFocus = function () {
if ((this.text == "Invalid User ID!") or (this.text == "Connecting Error!")) {
this.text = "";
}
};
}
function _readSharedData() {
_root.so_uname = ((_root.my_so.data.so_uname == undefined) ? "" : (_root.my_so.data.so_uname));
_root.so_jumpframe = ((_root.my_so.data.so_jumpframe == undefined) ? "" : (_root.my_so.data.so_jumpframe));
_root.so_sound = ((_root.my_so.data.so_sound == undefined) ? 1 : (_root.my_so.data.so_sound));
_root.so_level = _root.my_so.data.so_levelgame;
_root.so_levelvalue = _root.my_so.data.so_levelvalue;
trace("ddddd " + _root.so_levelvalue);
trace("==========================");
trace((("_root.so_jumpframe : " + _root.my_so.data.so_jumpframe) + " : ") + _root.so_uname);
if (_root.so_jumpframe != "") {
_root.createEmptyMovieClip("eye", _root.getNextHighestDepth());
_root.eye.onEnterFrame = function () {
if ((_root.getBytesTotal() == _root.getBytesLoaded()) and (_root.getBytesLoaded() > 50000)) {
_root.intro = 0;
_root.my_so.flush();
this.onEnterFrame = null;
if (_root.so_level == "") {
_root.my_so.data.so_jumpframe = "";
_root.gotoAndStop(_root.so_jumpframe);
} else {
_root.my_so.data.so_levelgame = "";
_root.my_so.data.so_jumpframe = "";
_root.gotoAndStop(_root.so_level);
}
}
};
} else {
_root.intro = 1;
play();
}
_root.uname = _root.so_uname;
_root.gamesound = _root.so_sound;
}
function _writeSharedData(jumpframe, jumpurl, Lgame, Lvalue) {
_root.my_so.data.so_uname = ((_root.so_uname == undefined) ? "" : (_root.so_uname));
_root.my_so.data.so_sound = _root.so_sound;
_root.my_so.data.so_levelgame = Lgame;
_root.my_so.data.so_levelvalue = Lvalue;
trace("sssss " + Lvalue);
_root.my_so.data.so_jumpframe = jumpframe;
_root.my_so.flush();
if (jumpurl != "") {
getURL (jumpurl);
} else {
gotoAndPlay (1);
}
}
function _playAgain(mc, jumpframe, Lgame, Lvalue) {
_root.so_uname = _root.uname;
if ((_root.gurl != undefined) and (_root.gurl != "")) {
_writeSharedData(jumpframe, _root.gurl, Lgame, Lvalue);
} else {
mc.gotoAndStop(jumpframe);
}
}
stop();
_root._google_txt.text = "Cocktail_quest";
_root._gameid = "1006 ";
_root._clickthru = "http://www.games2win.com";
_root._customer_id = "games2win";
_root.uname = "";
_root.submiturl = "/gamesubmit.asp";
_root.topnickname = [];
_root.topscore = [];
dataSubmit = function (myname, myscore, mygameid, destmc, useridframe, connframe, top10frame, _ord) {
trace("dataSubmit");
_root.skipsubmit = false;
myname = myname.trim();
_loc = eval (destmc);
if (((myname.length == 0) or (myname == "Invalid Nickname!")) or (myname == "Connecting Error!")) {
_root.uname = "Invalid Nickname!";
} else {
_root.send_lv = new LoadVars();
_root.send_lv.onLoad = function (success) {
if (success and (!_root.skipsubmit)) {
if (_root.send_lv.isreg == 0) {
_root.uname = "Invalid Nickname!";
_loc.gotoAndStop(useridframe);
} else if (_root.send_lv.isreg == 1) {
_root.topnickname = send_lv.topnicknames;
_root.topscore = send_lv.topscores;
_loc.gotoAndPlay(top10frame);
}
}
};
_root.send_lv.nickname = myname;
_root.send_lv.points = myscore;
_root.send_lv.gameid = mygameid;
_root.send_lv.order = _ord;
_root.send_lv.sendAndLoad(submiturl, _root.send_lv, "POST");
_loc.gotoAndPlay(connframe);
}
};
String.prototype.trim = function () {
var _local3 = 0;
var _local2 = this.length;
white = new Object();
white._32 = 1;
_local2--;
while (white["_" + ord(this.charAt(_local2))]) {
}
while (white["_" + ord(this.charAt(_local3++))]) {
}
return(this.slice(_local3 - 1, _local2 + 1));
};
_root._registerurl = "http://www.games2win.com/register.asp";
_root._allowclick = true;
_root._allowsubmit = true;
var my_so = SharedObject.getLocal("gamestatus", "/");
_readSharedData();
if (_root.uname == "Invalid Nickname!") {
_root.uname = "";
}
Frame 4
Frame 5
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
Instance of Symbol 196 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();
Frame 17
stop();
Frame 18
stop();
Symbol 70 MovieClip Frame 139
_root.gotoAndStop("lblloader");
Symbol 73 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 83 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 166 MovieClip Frame 1
if (!_root.playIntro) {
gotoAndStop(_totalframes);
}
_root.playIntro = false;
Symbol 166 MovieClip Frame 55
stop();
Symbol 189 MovieClip Frame 1
if (!_root.playIntro) {
gotoAndStop(_totalframes);
}
Symbol 189 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");
};
Symbol 192 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 192 MovieClip [tile] Frame 2
stop();
Symbol 192 MovieClip [tile] Frame 3
stop();
Symbol 192 MovieClip [tile] Frame 4
stop();
Symbol 192 MovieClip [tile] Frame 5
stop();
Symbol 196 MovieClip Frame 1
stop();
_root.allSounds.setVolume(100);
Symbol 196 MovieClip Frame 2
stop();
_root.allSounds.setVolume(0);
Symbol 216 MovieClip Frame 87
stop();
start_btn.onRelease = function () {
stopAllSounds();
_root.gotoAndStop("lblgame");
};
back_btn.onRelease = function () {
_root.gotoAndStop("lblgameintro");
};
Symbol 240 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 240 MovieClip Frame 2
stop();
Symbol 240 MovieClip Frame 3
stop();
Symbol 240 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 243 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 243 MovieClip Frame 2
stop();
Symbol 243 MovieClip Frame 3
stop();
Symbol 243 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 248 MovieClip Frame 86
stop();
start_btn.onRelease = function () {
_root.gotoAndStop("lblgame");
};
back_btn.onRelease = function () {
_root.gotoAndStop("lblgameintro");
};
Symbol 257 MovieClip Frame 53
_parent._parent.table_mc.v1 = true;
_parent.gotoAndStop(2);
Symbol 258 MovieClip Frame 72
_parent._parent.table_mc.v1 = false;
_parent.gotoAndStop(1);
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 268 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 280 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 282 MovieClip Frame 30
_parent.gotoAndStop(2);
Symbol 283 MovieClip Frame 60
_parent.gotoAndStop(1);
_parent.go = true;
Symbol 284 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 284 MovieClip Frame 2
stop();
Symbol 285 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 287 MovieClip Frame 56
_parent._parent.table_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 288 MovieClip Frame 50
_parent._parent.table_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 289 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 289 MovieClip Frame 2
stop();
Symbol 290 MovieClip Frame 87
_parent._parent.table_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 291 MovieClip Frame 67
_parent._parent.table_mc.v3 = false;
_parent.gotoAndStop(1);
Symbol 292 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 292 MovieClip Frame 2
stop();
Symbol 293 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 293 MovieClip Frame 2
stop();
Symbol 296 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 298 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 299 MovieClip Frame 51
_parent._parent.table2_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 300 MovieClip Frame 50
_parent._parent.table2_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 301 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 301 MovieClip Frame 2
stop();
Symbol 302 MovieClip Frame 87
_parent._parent.table2_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 303 MovieClip Frame 67
_parent._parent.table2_mc.v3 = false;
_parent.gotoAndStop(1);
Symbol 304 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 304 MovieClip Frame 2
stop();
Symbol 305 MovieClip Frame 53
_parent._parent.table2_mc.v1 = true;
_parent.gotoAndStop(2);
Symbol 306 MovieClip Frame 72
_parent._parent.table2_mc.v1 = false;
_parent.gotoAndStop(1);
Symbol 307 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 307 MovieClip Frame 2
stop();
Symbol 308 MovieClip Frame 55
_parent.gotoAndStop(2);
Symbol 309 MovieClip Frame 55
_parent.gotoAndStop(1);
Symbol 310 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 310 MovieClip Frame 2
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
stop();
Symbol 319 MovieClip Frame 1
onEnterFrame = function () {
this._x = _parent.hero_mc._x + 2.5;
this._y = _parent.hero_mc._y + 39.8;
};
Symbol 325 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 325 MovieClip Frame 2
stop();
Symbol 325 MovieClip Frame 3
stop();
Symbol 325 MovieClip Frame 4
stop();
Symbol 332 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 335 MovieClip Frame 2
stop();
Symbol 336 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 312 MovieClip in Symbol 336 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 312 MovieClip in Symbol 336 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 315 MovieClip in Symbol 336 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 315 MovieClip in Symbol 336 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 312 MovieClip in Symbol 336 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 315 MovieClip in Symbol 336 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 366 MovieClip Frame 76
stop();
next_btn.onRelease = function () {
_root.level = 5;
_root.nextFrame();
};
Symbol 367 MovieClip Frame 80
stop();
_root.gotoAndStop("gameOver");
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 2
stop();
Symbol 368 MovieClip Frame 3
stop();
Symbol 385 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 387 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 388 MovieClip Frame 51
_parent._parent.table_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 389 MovieClip Frame 50
_parent._parent.table_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 390 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 390 MovieClip Frame 2
stop();
Symbol 393 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 411 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 414 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 419 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 423 MovieClip Frame 87
_parent._parent.table1_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 424 MovieClip Frame 87
_parent._parent.table1_mc.v3 = false;
_parent.gotoAndStop(1);
Symbol 425 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 425 MovieClip Frame 2
stop();
Symbol 427 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 432 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 432 MovieClip Frame 2
stop();
Symbol 432 MovieClip Frame 3
stop();
Symbol 432 MovieClip Frame 4
stop();
_parent._parent.hero_mc.hangover = _parent._parent.hero_mc.hangover + 0.1;
Symbol 436 MovieClip Frame 56
_parent._parent.table1_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 437 MovieClip Frame 50
_parent._parent.table_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 438 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 438 MovieClip Frame 2
stop();
Symbol 440 MovieClip Frame 40
_parent.gotoAndStop(2);
Symbol 448 MovieClip Frame 50
_parent.gotoAndStop(1);
Symbol 449 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 449 MovieClip Frame 2
stop();
Symbol 454 MovieClip Frame 2
stop();
Symbol 455 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 312 MovieClip in Symbol 455 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 312 MovieClip in Symbol 455 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 312 MovieClip in Symbol 455 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 312 MovieClip in Symbol 455 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 461 MovieClip Frame 80
stop();
_root.gotoAndStop("gameOver");
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 2
stop();
Symbol 462 MovieClip Frame 3
stop();
Symbol 480 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 481 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 483 MovieClip Frame 56
_parent._parent.table1_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 484 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 487 MovieClip Frame 142
_parent._parent.table1_mc.v3 = false;
_parent.gotoAndStop(1);
Symbol 488 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 488 MovieClip Frame 2
stop();
Symbol 490 MovieClip Frame 77
_parent._parent.table1_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 491 MovieClip Frame 57
_parent._parent.table1_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 492 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 492 MovieClip Frame 2
stop();
Symbol 494 MovieClip Frame 125
_parent._parent.table1_mc.v1 = true;
_parent.gotoAndStop(2);
Symbol 495 MovieClip Frame 84
_parent._parent.table1_mc.v1 = false;
_parent.gotoAndStop(1);
Symbol 496 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 496 MovieClip Frame 2
stop();
Symbol 498 MovieClip Frame 2
stop();
Symbol 499 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 312 MovieClip in Symbol 499 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 312 MovieClip in Symbol 499 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 312 MovieClip in Symbol 499 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 312 MovieClip in Symbol 499 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 502 MovieClip Frame 80
stop();
_root.gotoAndStop("gameOver");
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
stop();
Symbol 503 MovieClip Frame 3
stop();
Symbol 509 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 509 MovieClip Frame 2
stop();
Symbol 514 MovieClip Frame 50
_parent.gotoAndStop(2);
Symbol 525 MovieClip Frame 63
_parent.gotoAndStop(1);
Symbol 526 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 526 MovieClip Frame 2
stop();
Symbol 528 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 529 MovieClip Frame 56
_parent._parent.table_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 530 MovieClip Frame 126
_parent._parent.table_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 531 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 531 MovieClip Frame 2
stop();
Symbol 532 MovieClip Frame 56
_parent._parent.table3_mc.v2 = true;
_parent.gotoAndStop(2);
Symbol 533 MovieClip Frame 69
_parent._parent.table3_mc.v2 = false;
_parent.gotoAndStop(1);
Symbol 534 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 534 MovieClip Frame 2
stop();
Symbol 535 MovieClip Frame 87
_parent._parent.table3_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 536 MovieClip Frame 87
_parent._parent.table3_mc.v3 = false;
_parent.gotoAndStop(1);
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);
}
}
};
stop();
Symbol 537 MovieClip Frame 2
stop();
Symbol 538 MovieClip Frame 87
_parent._parent.table1_mc.v3 = true;
_parent.gotoAndStop(2);
Symbol 539 MovieClip Frame 87
_parent._parent.table1_mc.v3 = false;
_parent.gotoAndStop(1);
Symbol 540 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 540 MovieClip Frame 2
stop();
Symbol 542 MovieClip Frame 2
stop();
Symbol 543 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 312 MovieClip in Symbol 543 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 312 MovieClip in Symbol 543 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 312 MovieClip in Symbol 543 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 312 MovieClip in Symbol 543 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 312 MovieClip in Symbol 543 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 548 MovieClip Frame 80
stop();
_root.gotoAndStop("gameOver");
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 2
stop();
Symbol 549 MovieClip Frame 3
stop();
Symbol 559 Button
on (release) {
_parent.dataSubmit(_root.uname, _root.score, _root._gameid, _parent, "gameOver", "connecting", "top10");
}
Symbol 572 Button
on (release) {
_root._newUser();
}
Symbol 574 MovieClip Frame 118
stop();
trace("array" + _root.levelArray[int(_root.level - 1)]);
playAgain_btn.onRelease = function () {
_parent._playAgain(_parent, "lblgameintro", _root.levelArray[int(_root.level - 1)]);
};
stop();
username_txt.onSetFocus = function () {
if ((username_txt.text eq "Invalid Nickname!") or (username_txt.text eq "Connecting Error!")) {
trace("Truncate nickname");
username_txt.text = "";
}
};
Symbol 589 MovieClip Frame 1
stop();
Symbol 592 Button
on (release) {
_root.cancelSubmit(this, "gameOver");
}
Symbol 634 MovieClip Frame 62
stop();
_root.displayScores(this);
playAgain_btn.onRelease = function () {
_parent._playAgain(_parent, "lblgameintro", _root.levelArray[int(_root.level - 1)]);
};