Frame 1
if (false) {
}
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 _readSharedData() {
var _local1 = _root;
_local1.so_uname = ((_local1.my_so.data.so_uname == undefined) ? "" : (_local1.my_so.data.so_uname));
_local1.so_jumpframe = ((_local1.my_so.data.so_jumpframe == undefined) ? "" : (_local1.my_so.data.so_jumpframe));
_local1.so_sound = ((_local1.my_so.data.so_sound == undefined) ? 1 : (_local1.my_so.data.so_sound));
trace("==========================");
trace((("_root.so_jumpframe : " + _local1.my_so.data.so_jumpframe) + " : ") + _local1.so_uname);
if (_local1.so_jumpframe != "") {
_local1.createEmptyMovieClip("eye", _local1.getNextHighestDepth());
_local1.eye.onEnterFrame = function () {
var _local1 = _root;
if ((_local1.getBytesTotal() == _local1.getBytesLoaded()) and (_local1.getBytesLoaded() > 50000)) {
_local1.intro = 0;
_local1.my_so.data.so_jumpframe = "";
_local1.my_so.flush();
this.onEnterFrame = null;
_local1.gotoAndStop(_local1.so_jumpframe);
}
};
} else {
_local1.intro = 1;
play();
}
_local1.uname = _local1.so_uname;
_local1.gamesound = _local1.so_sound;
}
function _writeSharedData(jumpframe, jumpurl) {
var _local1 = _root;
_local1.my_so.data.so_uname = ((_local1.so_uname == undefined) ? "" : (_local1.so_uname));
_local1.my_so.data.so_sound = _local1.so_sound;
_local1.my_so.data.so_jumpframe = jumpframe;
_local1.my_so.flush();
if (jumpurl != "") {
getURL (jumpurl);
} else {
gotoAndPlay (1);
}
}
function _playAgain(mc, jumpframe) {
var _local1 = _root;
_local1.so_uname = _local1.uname;
if ((_local1.gurl != undefined) and (_local1.gurl != "")) {
_writeSharedData(jumpframe, _local1.gurl);
} else {
mc.gotoAndStop(jumpframe);
}
}
stop();
_root._google_txt.text = "Dummy google text";
_root._gameid = "g2w16";
_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) {
var _local1 = _root;
if (success and (!_local1.skipsubmit)) {
if (_local1.send_lv.isreg == 0) {
_local1.uname = "Invalid Nickname!";
_loc.gotoAndStop(useridframe);
} else if (_local1.send_lv.isreg == 1) {
_local1.topnickname = send_lv.topnicknames;
_local1.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 _local1 = this;
var _local3 = 0;
var _local2 = _local1.length;
white = new Object();
white._32 = 1;
_local2--;
while (white["_" + ord(_local1.charAt(_local2))]) {
}
while (white["_" + ord(_local1.charAt(_local3++))]) {
}
return(_local1.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();
Frame 6
stop();
Frame 7
stop();
gameid = "g2w16";
Instance of Symbol 93 MovieClip in Frame 7
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
this.txt = ("Loaded " + percent) + "%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndStop("game");
}
}
Frame 8
Frame 9
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 = "";
}
};
Frame 10
stop();
Frame 11
stop();
_root.displayScores(this);
Symbol 73 MovieClip Frame 139
_root.gotoAndStop("loading");
Symbol 76 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 93 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 12
stop();
Symbol 108 MovieClip Frame 22
stop();
Symbol 115 Button
on (press) {
_root.snd = 0;
gotoAndStop (5);
}
Symbol 118 MovieClip Frame 7
stop();
Symbol 121 MovieClip Frame 12
stop();
Symbol 122 MovieClip Frame 45
stop();
Symbol 123 MovieClip Frame 6
stop();
Symbol 129 Button
on (press) {
_root.snd = 100;
gotoAndStop (1);
}
Symbol 130 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip in Symbol 130 MovieClip Frame 1
onClipEvent (load) {
step = 5;
_root.snd = 100;
cur = _root.snd;
}
onClipEvent (enterFrame) {
if (cur > _root.snd) {
cur = cur - step;
} else if (cur < _root.snd) {
cur = cur + step;
}
_root.globalsound.setVolume(cur);
}
Symbol 131 MovieClip Frame 1
_root.globalsound = new Sound();
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 2
stop();
Symbol 158 Button
on (release) {
nextFrame();
}
Symbol 170 MovieClip Frame 1
stop();
Instance of Symbol 163 MovieClip "hit" in Symbol 170 MovieClip Frame 2
onClipEvent (load) {
flg = false;
}
onClipEvent (enterFrame) {
if ((_root.game.man1.man11.man111.hitTest(_root.game.bottle1.hit) == true) and (flg == false)) {
trace("first hit");
flg = true;
_root.game.bottle1.botfilled._visible = false;
_root.game.man1.man11.man111.gotoAndPlay("drink");
_root.game.bottle1.gotoAndStop(_root.game.bottle1._currentframe);
_root.game.man1.man11.gotoAndStop(_root.game.man1.man11._currentframe);
}
}
Symbol 170 MovieClip Frame 26
stop();
Symbol 170 MovieClip Frame 50
if (_parent.num == 1) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 170 MovieClip Frame 51
if (_parent.num == 1) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 170 MovieClip Frame 52
if (_parent.num == 1) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 170 MovieClip Frame 53
if (_parent.num == 1) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 170 MovieClip Frame 54
if (_parent.num == 1) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 170 MovieClip Frame 55
if (_parent.num == 1) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 170 MovieClip Frame 58
_root.score = _root.score + _root.bb;
_root.fallmug++;
_root.winlose();
Symbol 171 MovieClip Frame 1
stop();
Instance of Symbol 163 MovieClip "hit" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
flg = false;
}
onClipEvent (enterFrame) {
if ((_root.game.man2.man22.man222.hitTest(_root.game.bottle2.hit) == true) and (flg == false)) {
trace("Second hit");
flg = true;
_root.game.bottle2.botfilled._visible = false;
_root.game.man2.man22.man222.gotoAndPlay("drink");
_root.game.bottle2.gotoAndStop(_root.game.bottle2._currentframe);
_root.game.man2.man22.gotoAndStop(_root.game.man2.man22._currentframe);
}
}
Symbol 171 MovieClip Frame 26
stop();
Symbol 171 MovieClip Frame 50
if (_parent.num == 2) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 171 MovieClip Frame 51
if (_parent.num == 2) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 171 MovieClip Frame 52
if (_parent.num == 2) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 171 MovieClip Frame 53
if (_parent.num == 2) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 171 MovieClip Frame 54
if (_parent.num == 2) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 171 MovieClip Frame 55
if (_parent.num == 2) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 171 MovieClip Frame 59
_root.score = _root.score + _root.bb;
_root.fallmug++;
_root.winlose();
Symbol 172 MovieClip Frame 1
stop();
Instance of Symbol 163 MovieClip "hit" in Symbol 172 MovieClip Frame 2
onClipEvent (load) {
flg = false;
}
onClipEvent (enterFrame) {
if ((_root.game.man3.man33.man333.hitTest(_root.game.bottle3.hit) == true) and (flg == false)) {
flg = true;
_root.game.bottle3.botfilled._visible = false;
_root.game.man3.man33.man333.gotoAndPlay("drink");
_root.game.bottle3.gotoAndStop(_root.game.bottle3._currentframe);
_root.game.man3.man33.gotoAndStop(_root.game.man3.man33._currentframe);
}
}
Symbol 172 MovieClip Frame 26
stop();
Symbol 172 MovieClip Frame 50
if (_parent.num == 3) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 51
if (_parent.num == 3) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 52
if (_parent.num == 3) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 53
if (_parent.num == 3) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 54
if (_parent.num == 3) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 55
if (_parent.num == 3) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 59
_root.score = _root.score + _root.bb;
_root.fallmug++;
_root.winlose();
Symbol 173 MovieClip Frame 1
stop();
Instance of Symbol 163 MovieClip "hit" in Symbol 173 MovieClip Frame 2
onClipEvent (load) {
flg = false;
}
onClipEvent (enterFrame) {
if ((_root.game.man4.man44.man444.hitTest(_root.game.bottle4.hit) == true) and (flg == false)) {
flg = true;
_root.game.bottle4.botfilled._visible = false;
_root.game.man4.man44.man444.gotoAndPlay("drink");
_root.game.bottle4.gotoAndStop(_root.game.bottle4._currentframe);
_root.game.man4.man44.gotoAndStop(_root.game.man4.man44._currentframe);
}
}
Symbol 173 MovieClip Frame 26
stop();
Symbol 173 MovieClip Frame 50
if (_parent.num == 4) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 173 MovieClip Frame 51
if (_parent.num == 4) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 173 MovieClip Frame 52
if (_parent.num == 4) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 173 MovieClip Frame 53
if (_parent.num == 4) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 173 MovieClip Frame 54
if (_parent.num == 4) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 173 MovieClip Frame 55
if (_parent.num == 4) {
_root.game.user.user1.gotoAndPlay("take");
gotoAndStop (1);
}
Symbol 173 MovieClip Frame 59
_root.score = _root.score + _root.bb;
_root.fallmug++;
_root.winlose();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
trace("playing ssss" + eval ("_parent._parent.flag" + _parent._parent.num));
if (_parent._parent.num == 1) {
if (_root.backflg1 == true) {
gotoAndStop ("still");
_parent._parent.level.play();
}
} else if (_parent._parent.num == 2) {
if (_root.backflg2 == true) {
gotoAndStop ("still");
_parent._parent.level.play();
}
} else if (_parent._parent.num == 3) {
if (_root.backflg3 == true) {
gotoAndStop ("still");
_parent._parent.level.play();
}
} else if (_parent._parent.num == 4) {
if (_root.backflg4 == true) {
gotoAndStop ("still");
_parent._parent.level.play();
}
}
Symbol 192 MovieClip Frame 3
_parent._parent.level.play();
trace("stop playing");
Symbol 192 MovieClip Frame 4
_root.score = _root.score + _root.give;
_root.game.fillbottle();
gotoAndStop ("still");
Symbol 192 MovieClip Frame 11
_root.score = _root.score + _root.take;
_parent._parent.keydis = true;
Symbol 192 MovieClip Frame 13
_parent._parent.keydis = false;
Symbol 197 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 1
if (ang == _root.gosapoint) {
_root.unsatcus++;
_root.winlose();
_root.dflag = false;
if (eval ("_parent._parent._parent._parent.flag" + _parent._parent._parent._parent.num) == true) {
na = eval ("_parent._parent._parent._parent.flag" + _parent._parent._parent._parent.num);
trace(na);
na = false;
}
_parent._parent.gotoAndPlay("back");
}
Symbol 226 MovieClip Frame 5
ang++;
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 6
_root.satcus++;
_root.winlose();
Symbol 227 MovieClip Frame 14
_parent.gotoAndPlay("back");
_root.dflag = true;
gotoAndStop (1);
Symbol 228 MovieClip Frame 23
stop();
if (_root.game.bottle4.hit.hitTest(_root.game.man4.man44.man444) == true) {
trace("first hit man");
flg = true;
_root.game.bottle4.botfilled._visible = false;
_root.game.man4.man44.man444.gotoAndPlay("drink");
_root.game.bottle4.gotoAndStop(_root.game.bottle4._currentframe);
_root.game.man4.man44.gotoAndStop(_root.game.man4.man44._currentframe);
} else {
_root.game.man4.man44.man444.gotoAndStop("angry");
}
Symbol 228 MovieClip Frame 24
_parent._parent.flag4 = false;
_root.backflg4 = true;
man444.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle4._visible = true;
trace(_root.game.bottle4._currentframe);
trace(_root.game.bottle4._currentframe);
_root.game.bottle4.gotoAndPlay(56 - _root.game.bottle4._currentframe);
}
Symbol 228 MovieClip Frame 35
_root.backflg4 = false;
_parent._parent.manarray.push(4);
_parent._parent.posarray.push(_root.game.man4._currentframe);
_root.game.bottle4._visible = true;
_parent.gotoAndStop(1);
Symbol 251 MovieClip Frame 1
if (ang == _root.gosapoint) {
_root.unsatcus++;
_root.winlose();
_root.dflag = false;
_parent._parent.gotoAndPlay("back");
}
Symbol 251 MovieClip Frame 6
ang++;
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 6
_root.satcus++;
_root.winlose();
Symbol 252 MovieClip Frame 14
_parent.gotoAndPlay("back");
_root.dflag = true;
gotoAndStop (1);
Symbol 253 MovieClip Frame 23
stop();
if (_root.game.bottle4.hit.hitTest(_root.game.man4.man44.man444) == true) {
trace("first hit man");
flg = true;
_root.game.bottle4.botfilled._visible = false;
_root.game.man4.man44.man444.gotoAndPlay("drink");
_root.game.bottle4.gotoAndStop(_root.game.bottle4._currentframe);
_root.game.man4.man44.gotoAndStop(_root.game.man4.man44._currentframe);
} else {
_root.game.man4.man44.man444.gotoAndStop("angry");
}
Symbol 253 MovieClip Frame 24
_parent._parent.flag4 = false;
_root.backflg4 = true;
man444.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle4._visible = true;
trace(_root.game.bottle4._currentframe);
trace(_root.game.bottle4._currentframe);
_root.game.bottle4.gotoAndPlay(56 - _root.game.bottle4._currentframe);
}
Symbol 253 MovieClip Frame 35
_root.backflg4 = false;
_parent._parent.manarray.push(4);
_parent._parent.posarray.push(_root.game.man4._currentframe);
_parent._parent.flag4 = false;
_root.game.bottle4._visible = true;
_parent.gotoAndStop(1);
Symbol 263 MovieClip Frame 1
if (ang == _root.gosapoint) {
_root.unsatcus++;
_root.winlose();
_root.dflag = false;
_parent._parent.gotoAndPlay("back");
}
Symbol 263 MovieClip Frame 6
ang++;
Symbol 264 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 6
_root.satcus++;
_root.winlose();
Symbol 264 MovieClip Frame 14
_parent.gotoAndPlay("back");
_root.dflag = true;
gotoAndStop (1);
Symbol 266 MovieClip Frame 23
stop();
if (_root.game.bottle4.hit.hitTest(_root.game.man4.man44.man444) == true) {
trace("first hit man");
flg = true;
_root.game.bottle4.botfilled._visible = false;
_root.game.man4.man44.man444.gotoAndPlay("drink");
_root.game.bottle4.gotoAndStop(_root.game.bottle4._currentframe);
_root.game.man4.man44.gotoAndStop(_root.game.man4.man44._currentframe);
} else {
_root.game.man4.man44.man444.gotoAndStop("angry");
}
Symbol 266 MovieClip Frame 24
_parent._parent.flag4 = false;
_root.backflg4 = true;
man444.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle4._visible = true;
trace(_root.game.bottle4._currentframe);
trace(_root.game.bottle4._currentframe);
_root.game.bottle4.gotoAndPlay(56 - _root.game.bottle4._currentframe);
}
Symbol 266 MovieClip Frame 35
_root.backflg4 = false;
_parent._parent.manarray.push(4);
_parent._parent.posarray.push(_root.game.man4._currentframe);
_parent._parent.flag4 = false;
_root.game.bottle4._visible = true;
_parent.gotoAndStop(1);
Symbol 283 MovieClip Frame 1
if (ang == _root.gosapoint) {
_root.unsatcus++;
_root.winlose();
_root.dflag = false;
_parent._parent.gotoAndPlay("back");
}
Symbol 283 MovieClip Frame 6
ang++;
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 6
_root.satcus++;
_root.winlose();
Symbol 284 MovieClip Frame 14
_parent.gotoAndPlay("back");
_root.dflag = true;
gotoAndStop (1);
Symbol 285 MovieClip Frame 23
stop();
if (_root.game.bottle4.hit.hitTest(_root.game.man4.man44.man444) == true) {
trace("first hit man");
flg = true;
_root.game.bottle4.botfilled._visible = false;
_root.game.man4.man44.man444.gotoAndPlay("drink");
_root.game.bottle4.gotoAndStop(_root.game.bottle4._currentframe);
_root.game.man4.man44.gotoAndStop(_root.game.man4.man44._currentframe);
} else {
_root.game.man4.man44.man444.gotoAndStop("angry");
}
Symbol 285 MovieClip Frame 24
_parent._parent.flag4 = false;
_root.backflg4 = true;
man444.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle4._visible = true;
trace(_root.game.bottle4._currentframe);
trace(_root.game.bottle4._currentframe);
_root.game.bottle4.gotoAndPlay(56 - _root.game.bottle4._currentframe);
}
Symbol 285 MovieClip Frame 35
_root.backflg4 = false;
_parent._parent.manarray.push(4);
_parent._parent.posarray.push(_root.game.man4._currentframe);
_parent._parent.flag4 = false;
_root.game.bottle4._visible = true;
_parent.gotoAndStop(1);
Symbol 286 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 23
stop();
if (_root.game.bottle3.hit.hitTest(_root.game.man3.man33.man333) == true) {
trace("first hit man");
flg = true;
_root.game.bottle3.botfilled._visible = false;
_root.game.man3.man33.man333.gotoAndPlay("drink");
_root.game.bottle3.gotoAndStop(_root.game.bottle3._currentframe);
_root.game.man3.man33.gotoAndStop(_root.game.man3.man33._currentframe);
} else {
_root.game.man3.man33.man333.gotoAndStop("angry");
}
Symbol 288 MovieClip Frame 24
_root.backflg3 = true;
_parent._parent.flag3 = false;
man333.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle3._visible = true;
trace(_root.game.bottle3._currentframe);
trace(_root.game.bottle3._currentframe);
_root.game.bottle3.gotoAndPlay(56 - _root.game.bottle3._currentframe);
}
Symbol 288 MovieClip Frame 40
_root.backflg3 = false;
_parent._parent.manarray.push(3);
_parent._parent.posarray.push(_root.game.man3._currentframe);
_root.game.bottle3._visible = true;
_parent.gotoAndStop(1);
Symbol 289 MovieClip Frame 23
stop();
if (_root.game.bottle3.hit.hitTest(_root.game.man3.man33.man333) == true) {
trace("first hit man");
flg = true;
_root.game.bottle3.botfilled._visible = false;
_root.game.man3.man33.man333.gotoAndPlay("drink");
_root.game.bottle3.gotoAndStop(_root.game.bottle3._currentframe);
_root.game.man3.man33.gotoAndStop(_root.game.man3.man33._currentframe);
} else {
_root.game.man3.man33.man333.gotoAndStop("angry");
}
Symbol 289 MovieClip Frame 24
_root.backflg3 = true;
_parent._parent.flag3 = false;
man333.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle3._visible = true;
trace(_root.game.bottle3._currentframe);
trace(_root.game.bottle3._currentframe);
_root.game.bottle3.gotoAndPlay(56 - _root.game.bottle3._currentframe);
}
Symbol 289 MovieClip Frame 35
_root.backflg3 = false;
_parent._parent.manarray.push(3);
_parent._parent.posarray.push(_root.game.man3._currentframe);
_parent._parent.flag3 = false;
_root.game.bottle3._visible = true;
_parent.gotoAndStop(1);
Symbol 291 MovieClip Frame 23
stop();
if (_root.game.bottle3.hit.hitTest(_root.game.man3.man33.man333) == true) {
trace("first hit man");
flg = true;
_root.game.bottle3.botfilled._visible = false;
_root.game.man3.man33.man333.gotoAndPlay("drink");
_root.game.bottle3.gotoAndStop(_root.game.bottle3._currentframe);
_root.game.man3.man33.gotoAndStop(_root.game.man3.man33._currentframe);
} else {
_root.game.man3.man33.man333.gotoAndStop("angry");
}
Symbol 291 MovieClip Frame 24
_parent._parent.flag3 = false;
_root.backflg3 = true;
man333.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle3._visible = true;
trace(_root.game.bottle3._currentframe);
trace(_root.game.bottle3._currentframe);
_root.game.bottle3.gotoAndPlay(56 - _root.game.bottle3._currentframe);
}
Symbol 291 MovieClip Frame 35
_root.backflg3 = false;
_parent._parent.manarray.push(3);
_parent._parent.posarray.push(_root.game.man3._currentframe);
_parent._parent.flag3 = false;
_root.game.bottle3._visible = true;
_parent.gotoAndStop(1);
Symbol 292 MovieClip Frame 23
stop();
if (_root.game.bottle3.hit.hitTest(_root.game.man3.man33.man333) == true) {
trace("first hit man");
flg = true;
_root.game.bottle3.botfilled._visible = false;
_root.game.man3.man33.man333.gotoAndPlay("drink");
_root.game.bottle3.gotoAndStop(_root.game.bottle3._currentframe);
_root.game.man3.man33.gotoAndStop(_root.game.man3.man33._currentframe);
} else {
_root.game.man3.man33.man333.gotoAndStop("angry");
}
Symbol 292 MovieClip Frame 24
_parent._parent.flag3 = false;
_root.backflg3 = true;
man333.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle3._visible = true;
trace(_root.game.bottle3._currentframe);
trace(_root.game.bottle3._currentframe);
_root.game.bottle3.gotoAndPlay(56 - _root.game.bottle3._currentframe);
}
Symbol 292 MovieClip Frame 36
_root.backflg3 = false;
_parent._parent.manarray.push(3);
_parent._parent.posarray.push(_root.game.man3._currentframe);
_parent._parent.flag3 = false;
_root.game.bottle3._visible = true;
_parent.gotoAndStop(1);
Symbol 293 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 23
stop();
if (_root.game.bottle2.hit.hitTest(_root.game.man2.man22.man222) == true) {
trace("first hit man");
flg = true;
_root.game.bottle2.botfilled._visible = false;
_root.game.man2.man22.man222.gotoAndPlay("drink");
_root.game.bottle2.gotoAndStop(_root.game.bottle2._currentframe);
_root.game.man2.man22.gotoAndStop(_root.game.man2.man22._currentframe);
} else {
_root.game.man2.man22.man222.gotoAndStop("angry");
}
Symbol 294 MovieClip Frame 24
_root.backflg2 = true;
_parent._parent.flag2 = false;
man222.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle2._visible = true;
trace(_root.game.bottle2._currentframe);
trace(_root.game.bottle2._currentframe);
_root.game.bottle2.gotoAndPlay(56 - _root.game.bottle2._currentframe);
}
Symbol 294 MovieClip Frame 35
_root.backflg2 = false;
_parent._parent.manarray.push(2);
_parent._parent.posarray.push(_root.game.man2._currentframe);
_root.game.bottle2._visible = true;
_parent.gotoAndStop(1);
Symbol 295 MovieClip Frame 23
stop();
if (_root.game.bottle2.hit.hitTest(_root.game.man2.man22.man222) == true) {
trace("first hit man");
flg = true;
_root.game.bottle2.botfilled._visible = false;
_root.game.man2.man22.man222.gotoAndPlay("drink");
_root.game.bottle2.gotoAndStop(_root.game.bottle2._currentframe);
_root.game.man2.man22.gotoAndStop(_root.game.man2.man22._currentframe);
} else {
_root.game.man2.man22.man222.gotoAndStop("angry");
}
Symbol 295 MovieClip Frame 24
_root.backflg2 = true;
_parent._parent.flag2 = false;
man222.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle2._visible = true;
trace(_root.game.bottle2._currentframe);
trace(_root.game.bottle2._currentframe);
_root.game.bottle2.gotoAndPlay(56 - _root.game.bottle2._currentframe);
}
Symbol 295 MovieClip Frame 35
_root.backflg2 = false;
_parent._parent.manarray.push(2);
_parent._parent.posarray.push(_root.game.man2._currentframe);
_root.game.bottle2._visible = true;
_parent.gotoAndStop(1);
Symbol 296 MovieClip Frame 23
stop();
if (_root.game.bottle2.hit.hitTest(_root.game.man2.man22.man222) == true) {
trace("first hit man");
flg = true;
_root.game.bottle2.botfilled._visible = false;
_root.game.man2.man22.man222.gotoAndPlay("drink");
_root.game.bottle2.gotoAndStop(_root.game.bottle2._currentframe);
_root.game.man2.man22.gotoAndStop(_root.game.man2.man22._currentframe);
} else {
_root.game.man2.man22.man222.gotoAndStop("angry");
}
Symbol 296 MovieClip Frame 24
_root.backflg2 = true;
_parent._parent.flag2 = false;
man222.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle2._visible = true;
trace(_root.game.bottle2._currentframe);
trace(_root.game.bottle2._currentframe);
_root.game.bottle2.gotoAndPlay(56 - _root.game.bottle2._currentframe);
}
Symbol 296 MovieClip Frame 35
_root.backflg2 = false;
_parent._parent.manarray.push(2);
_parent._parent.posarray.push(_root.game.man2._currentframe);
_parent._parent.flag2 = false;
_root.game.bottle2._visible = true;
_parent.gotoAndStop(1);
Symbol 297 MovieClip Frame 23
stop();
if (_root.game.bottle2.hit.hitTest(_root.game.man2.man22.man222) == true) {
trace("first hit man");
flg = true;
_root.game.bottle2.botfilled._visible = false;
_root.game.man2.man22.man222.gotoAndPlay("drink");
_root.game.bottle2.gotoAndStop(_root.game.bottle2._currentframe);
_root.game.man2.man22.gotoAndStop(_root.game.man2.man22._currentframe);
} else {
_root.game.man2.man22.man222.gotoAndStop("angry");
}
Symbol 297 MovieClip Frame 24
_root.backflg2 = true;
_parent._parent.flag2 = false;
man222.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle2._visible = true;
trace(_root.game.bottle2._currentframe);
trace(_root.game.bottle2._currentframe);
_root.game.bottle2.gotoAndPlay(56 - _root.game.bottle2._currentframe);
}
Symbol 297 MovieClip Frame 35
_root.backflg2 = false;
_parent._parent.manarray.push(2);
_parent._parent.posarray.push(_root.game.man2._currentframe);
_parent._parent.flag2 = false;
_root.game.bottle2._visible = true;
_parent.gotoAndStop(1);
Symbol 298 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 23
stop();
if (_root.game.bottle1.hit.hitTest(_root.game.man1.man11.man111) == true) {
trace("first hit man");
flg = true;
_root.game.bottle1.botfilled._visible = false;
_root.game.man1.man11.man111.gotoAndPlay("drink");
_root.game.bottle1.gotoAndStop(_root.game.bottle1._currentframe);
_root.game.man1.man11.gotoAndStop(_root.game.man1.man11._currentframe);
} else {
_root.game.man1.man11.man111.gotoAndStop("angry");
}
Symbol 300 MovieClip Frame 24
_root.backflg1 = true;
_parent._parent.flag1 = false;
man111.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle1._visible = true;
trace(_root.game.bottle1._currentframe);
trace(_root.game.bottle1._currentframe);
_root.game.bottle1.gotoAndPlay(56 - _root.game.bottle1._currentframe);
}
Symbol 300 MovieClip Frame 41
_root.backflg1 = false;
Symbol 300 MovieClip Frame 42
_parent._parent.manarray.push(1);
_parent._parent.posarray.push(_root.game.man1._currentframe);
_root.game.bottle1._visible = true;
_parent.gotoAndStop(1);
Symbol 301 MovieClip Frame 23
stop();
if (_root.game.bottle1.hit.hitTest(_root.game.man1.man11.man111) == true) {
trace("first hit man");
flg = true;
_root.game.bottle1.botfilled._visible = false;
_root.game.man1.man11.man111.gotoAndPlay("drink");
_root.game.bottle1.gotoAndStop(_root.game.bottle1._currentframe);
_root.game.man1.man11.gotoAndStop(_root.game.man1.man11._currentframe);
} else {
_root.game.man1.man11.man111.gotoAndStop("angry");
}
Symbol 301 MovieClip Frame 24
_root.backflg1 = true;
_parent._parent.flag1 = false;
man111.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle1._visible = true;
trace(_root.game.bottle1._currentframe);
trace(_root.game.bottle1._currentframe);
_root.game.bottle1.gotoAndPlay(56 - _root.game.bottle1._currentframe);
}
Symbol 301 MovieClip Frame 37
_root.backflg1 = false;
Symbol 301 MovieClip Frame 38
_parent._parent.manarray.push(1);
_parent._parent.posarray.push(_root.game.man1._currentframe);
_parent._parent.flag1 = false;
_root.game.bottle1._visible = true;
_parent.gotoAndStop(1);
Symbol 303 MovieClip Frame 23
stop();
if (_root.game.bottle1.hit.hitTest(_root.game.man1.man11.man111) == true) {
trace("first hit man");
flg = true;
_root.game.bottle1.botfilled._visible = false;
_root.game.man1.man11.man111.gotoAndPlay("drink");
_root.game.bottle1.gotoAndStop(_root.game.bottle1._currentframe);
_root.game.man1.man11.gotoAndStop(_root.game.man1.man11._currentframe);
} else {
_root.game.man1.man11.man111.gotoAndStop("angry");
}
Symbol 303 MovieClip Frame 24
_root.backflg1 = true;
_parent._parent.flag1 = false;
man111.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle1._visible = true;
trace(_root.game.bottle1._currentframe);
trace(_root.game.bottle1._currentframe);
_root.game.bottle1.gotoAndPlay(56 - _root.game.bottle1._currentframe);
}
Symbol 303 MovieClip Frame 36
_root.backflg1 = false;
Symbol 303 MovieClip Frame 37
_parent._parent.manarray.push(1);
_parent._parent.posarray.push(_root.game.man1._currentframe);
_parent._parent.flag1 = false;
_root.game.bottle1._visible = true;
_parent.gotoAndStop(1);
Symbol 304 MovieClip Frame 23
stop();
if (_root.game.bottle1.hit.hitTest(_root.game.man1.man11.man111) == true) {
trace("first hit man");
flg = true;
_root.game.bottle1.botfilled._visible = false;
_root.game.man1.man11.man111.gotoAndPlay("drink");
_root.game.bottle1.gotoAndStop(_root.game.bottle1._currentframe);
_root.game.man1.man11.gotoAndStop(_root.game.man1.man11._currentframe);
} else {
_root.game.man1.man11.man111.gotoAndStop("angry");
}
Symbol 304 MovieClip Frame 24
_root.backflg1 = true;
_parent._parent.flag1 = false;
man111.gotoAndStop(1);
if (_root.dflag == true) {
_root.game.bottle1._visible = true;
trace(_root.game.bottle1._currentframe);
trace(_root.game.bottle1._currentframe);
_root.game.bottle1.gotoAndPlay(56 - _root.game.bottle1._currentframe);
}
Symbol 304 MovieClip Frame 36
_root.backflg1 = false;
_parent._parent.manarray.push(1);
_parent._parent.posarray.push(_root.game.man1._currentframe);
_parent._parent.flag1 = false;
_root.game.bottle1._visible = true;
_parent.gotoAndStop(1);
Symbol 305 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 3
_parent.keydis = false;
Symbol 330 MovieClip Frame 1
Symbol 338 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("submit");
}
Symbol 339 Button
on (release) {
_root._playAgain(_root, "game");
_root.lev = 0;
_root.score = 0;
}
Symbol 346 Button
on (release) {
gotoAndStop ("game");
}
Symbol 351 MovieClip Frame 1
stop();
butstart.onRelease = function () {
gotoAndStop ("game");
};
_root.lev = 0;
_root.tim = 4000;
_root.score = 0;
Symbol 351 MovieClip Frame 2
function upkey() {
if ((num != 4) and (keydis == false)) {
num++;
_root.game.user.nextFrame();
updateAfterEvent();
}
updateAfterEvent();
}
function downkey() {
if ((num != 1) and (keydis == false)) {
num--;
_root.game.user.prevFrame();
}
updateAfterEvent();
}
function spacekey() {
if (eval ("flag" + num) == true) {
this["flag" + num] = false;
keydis = true;
_root.game.user.user1.play();
}
updateAfterEvent();
}
function fillbottle() {
eval ("_root.game.bottle" + num).gotoAndPlay("fill");
}
function genman() {
if (manarray.length == 1) {
} else {
aa = random(manarray.length);
bb = random(posarray.length);
a = manarray.splice(aa, 1);
b = posarray.splice(bb, 1);
this["flag" + a] = true;
eval ("bottle" + a).gotoAndStop(1);
eval ("man" + a).gotoAndStop(b);
winlose();
}
}
function winlose() {
var _local1 = _root;
trace((fallmug1 + " ") + _local1.fallmug);
if (satcus1 <= _local1.satcus) {
keydis = true;
if ((_local1.unsatcus == 0) and (_local1.fallmug == 0)) {
_local1.ban = "superb";
} else {
_local1.ban = "ok";
}
gotoAndStop ("nextlevel");
} else if (unsatcus1 <= _local1.unsatcus) {
keydis = true;
_local1.ban = "slow";
gotoAndStop ("tryagain");
} else if (fallmug1 <= _local1.fallmug) {
keydis = true;
_local1.ban = "crash";
gotoAndStop ("tryagain");
}
}
stop();
clearInterval(int1);
_root.ban = "";
_root.backflg1 = false;
_root.backflg2 = false;
_root.backflg3 = false;
_root.give = 10;
_root.take = 5;
_root.bb = -5;
_root.backflg4 = false;
num = 1;
flag1 = false;
flag2 = false;
flag3 = false;
flag4 = false;
keydis = false;
_root.unsatcus = 0;
_root.satcus = 0;
_root.fallmug = 0;
_root.gosapoint = 5;
manarray = new Array();
posarray = new Array();
manarray = [1, 2, 3, 4];
posarray = [3, 4, 5, 6];
_root.game.user.gotoAndStop(1);
trace("iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii " + _root.lev);
if (_root.lev >= 6) {
trace("level completed");
} else {
_root.lev++;
tim1 = _root.tim - (500 * _root.lev);
trace(tim1);
}
trace("iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii " + _root.lev);
satcus1 = (5 * _root.lev) + 2;
trace("Satisfied Customer " + satcus1);
unsatcus1 = (2 * _root.lev) + 1;
trace("UNsattisfied Customer" + unsatcus1);
fallmug1 = (2 * _root.lev) + 1;
trace("Broken Mug" + fallmug1);
genman();
int1 = setInterval(this, "genman", tim1);
Instance of Symbol 198 MovieClip in Symbol 351 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
_root.game.upkey();
}
if (Key.isDown(40)) {
_root.game.downkey();
}
if (Key.isDown(32)) {
_root.game.spacekey();
}
}
Symbol 351 MovieClip Frame 3
if (_root.ban == "slow") {
_root.game.slow._visible = true;
_root.game.crash._visible = false;
} else if (_root.ban == "crash") {
_root.game.slow._visible = false;
_root.game.crash._visible = true;
}
Symbol 351 MovieClip Frame 4
if (_root.lev < 6) {
lev1 = _root.lev + 1;
trace("level completed");
}
_root.sat1 = (5 * lev1) + 2;
_root.sat2 = (2 * lev1) + 1;
_root.sat3 = (2 * lev1) + 1;
Symbol 357 Button
on (release) {
_root._playAgain(_root, "game");
}
Symbol 358 Button
on (release) {
_root.dataSubmit(_root.uname, _root.score, _root._gameid, this, "submit", "connecting", "top10");
}
Symbol 361 Button
on (release) {
_root._newUser();
}
Symbol 372 Button
on (release) {
_root.cancelSubmit(this, "submit");
}
Symbol 380 Button
on (release) {
_root._playAgain(_root, "game");
}