Frame 2
function _doGameOver(score, gamestate, showskip, delay) {
trace((((("CALLED : _doGameOver : score:" + score) + " gamestate:") + gamestate) + " showskip: ") + showskip);
clearInterval(_gameoverinterval);
if (delay == undefined) {
delay = 3000;
}
if ((score != undefined) and (gamestate != undefined)) {
_root.partner_score = score;
_root.obj_game._gstatus = gamestate;
_gameoverinterval = setInterval(attachGameOverMc, delay, showskip);
} else {
trace("Could Not Load GAMEOVER!!!");
}
}
function attachGameOverMc(showskip) {
stopAllSounds();
var _local2 = flash.external.ExternalInterface.call("document.URL.toString");
if ((_local2 != null) && (_local2.indexOf("games2win.com") != -1)) {
trace(_local2.indexOf("games2win.com"));
flash.external.ExternalInterface.call("inviziShowHtmlPlaceHolder", "");
}
clearInterval(_gameoverinterval);
_root.__gameover_mc = _root.attachMovie("_g2w_gameover_mc", "mc_gameover", _root.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 2});
if (_root.obj_game._gstatus == "gameover") {
_root.__gameover_mc.gotoAndStop("g2w_gameover");
if (showskip) {
_root.__gameover_mc.panel_btn.gotoAndStop("skip");
}
}
}
function g2w_playagain(resetlevel) {
_root.__gameover_mc.removeMovieClip();
_root.score = 0;
if (resetlevel) {
_root.gotoAndStop("lblgameintro");
_root.gameIntro_mc.gotoAndStop("start");
} else {
trace(_root.level + " terrorist");
_root.myGame.gotoAndStop("lbllevel" + _root.level);
}
}
function g2w_skiplevel() {
_root.__gameover_mc.removeMovieClip();
_root.score = 0;
_root.level++;
_root.myGame.gotoAndStop(1);
}
var obj_game = new Array();
obj_game._host = "g2w";
obj_game._gameName = "dreamy_eyes";
obj_game._gameLanguage = "en";
obj_game._gameTitle = "Dreamy Eyes";
obj_game._g2wGameId = "1236";
obj_game._partnerGameId = "dreamyeyes";
obj_game._gstatus = "gameover";
obj_game._googleText = "Dreamy Eyes";
obj_game._gameStageW = 800;
obj_game._gameStageH = 600;
obj_game._gameScoreOrder = "desc";
obj_game._gameResolution = (Stage.width + "x") + Stage.height;
obj_game.g2wBot = "";
obj_game.g2wBotId = 10301;
obj_game.inviziads = (((("http://s1.inviziads.com/lookup.html?g=" + obj_game._g2wGameId) + "&h=") + obj_game._host) + "&v=4_0&l=") + obj_game._gameLanguage;
var obj_partner = new Array();
obj_partner.partner_name = "g2w";
obj_partner.partner_id = 1;
obj_partner.invalid_txt = "Invalid Nickname!";
obj_partner.show_submit = false;
obj_partner.submitURL = "/submit_score.asp";
obj_partner.top10URL = "/get_top_scorer.asp";
obj_partner.lblsubmit = "Enter your Games2win Nickname below";
obj_partner.show_g2w_slate = true;
obj_partner.show_register = true;
obj_partner.text_register = "Create Nickname";
obj_partner.url_register = "http://www.games2win.com/register.asp";
obj_partner.clickthru = "http://www.games2win.com/";
obj_partner._allowclick = true;
_validateHost = function (mcpath) {
var _local2 = mcpath;
_local2.overlay_btn.useHandCursor = false;
if (_root.obj_game._gstatus == "gameover") {
_initGameOver(_local2);
} else if (_root.checkhost()) {
_initLoginPanel(_local2);
} else {
_initAlientHost(_local2);
}
};
_initGameOver = function (mcpath) {
var _local2 = mcpath;
_local2.gotoAndStop("g2w_gameover");
_local2.panel_btn.playagain_btn.onRelease = function () {
_root.g2w_playagain();
};
_local2.panel_btn.skiplvl_btn.onRelease = function () {
_root.g2w_skiplevel();
};
};
_initLoginPanel = function (mcpath) {
var mc = mcpath;
mc.gotoAndStop("g2w_login");
Selection.setFocus("username_txt");
mc.username_txt.onSetFocus = function () {
if (this.text == obj_partner.invalid_txt) {
this.text = "";
}
};
mc.playagain_btn.onRelease = function () {
_root.g2w_playagain(true);
};
mc.nickname_btn.onRelease = function () {
getURL (_root.obj_partner.url_register, "_blank");
};
mc.submit_btn.onRelease = function () {
_root._scoreSubmit(mc);
};
};
_initAlientHost = function (mcpath) {
var _local2 = mcpath;
_local2.gotoAndStop("g2w_alienhost");
_local2.playagain_btn.onRelease = function () {
trace("CALLING : _root.g2w_playagain()");
_root.g2w_playagain(true);
};
};
_scoreSubmit = function (mcpath) {
var mc = mcpath;
myname = _root.partner_uname;
myscore = _root.partner_score;
mygameid = _root.obj_game._g2wGameId;
myname = myname.trim();
if (((myname.length == 0) or (myname == obj_partner.invalid_txt)) or (myname == undefined)) {
_root.partner_uname = obj_partner.invalid_txt;
} else {
mc.gotoAndStop("g2w_status");
mc.tryagain_btn._visible = false;
_root.send_lv = new LoadVars();
_root.send_lv.onLoad = function (success) {
if (success) {
if (_root.send_lv.isreg == 0) {
mc.status_txt.text = obj_partner.invalid_txt;
mc.tryagain_btn._visible = true;
mc.tryagain_btn.onRelease = function () {
_initLoginPanel(mc);
};
} else if (_root.send_lv.isreg == 1) {
mc.status_txt.text = "";
_root._getTop10(mc);
}
} else {
mc.status_txt.text = "Error in Connection...!";
mc.tryagain_btn._visible = true;
mc.tryagain_btn.onRelease = function () {
_initLoginPanel(mc);
};
}
};
_root.send_lv.nickname = myname;
_root.send_lv.points = myscore;
_root.send_lv.gameid = mygameid;
_root.send_lv.sendAndLoad(obj_partner.submitURL, _root.send_lv, "POST");
mc.status_txt.text = "Connecting to Server...";
}
};
c_fail = 0;
_getTop10 = function (mcpath) {
var mc = mcpath;
_root.send_lv = new XML();
_root.rst_lv = new XML();
mc.gotoAndStop("g2w_status");
_root.rst_lv.onLoad = function (success) {
if (success) {
var _local3 = new it.sephiroth.XML2Object();
mc.status_txt.text = "";
var _local4 = _local3.parseXML(this);
_initTop10(mc, _local4);
} else {
_root.c_fail++;
if (_root.c_fail >= 3) {
mc.status_txt.text = "Error!";
tryagain_btn._visible = true;
mc.tryagain_btn.onRelease = function () {
_initLoginPanel(mc);
};
} else {
_root.send_lv.sendAndLoad(url, _root.rst_lv, "POST");
}
}
};
var url = ((((((obj_partner.top10URL + "?game_id=") + _root.obj_game._g2wGameId) + "&order=") + obj_game._gameScoreOrder) + "&timspam") + getTimer());
mc.status_txt.text = "Connecting to Server...";
_root.send_lv.sendAndLoad(url, _root.rst_lv, "POST");
};
_initTop10 = function (mcpath, list) {
var _local3 = mcpath;
_local3.gotoAndStop("g2w_top10");
if ((list.top_score.status.data == 0) or (list.top_score.user[0].score.data == 0)) {
_top10_lbl._visible = false;
var _local2 = 0;
while (_local2 < 10) {
_local3["row" + _local2]._visible = false;
_local2++;
}
} else {
_noscore_mc._visible = false;
var _local2 = 0;
while (_local2 < 10) {
if ((list.top_score.user[_local2] == undefined) or (list.top_score.user[_local2].score.data == 0)) {
_local3["row" + _local2].txtrollno.text = "";
_local3["row" + _local2].txtusername.text = "";
_local3["row" + _local2].txtscore.text = "";
} else {
_local3["row" + _local2].txtrollno.text = _local2 + 1;
_local3["row" + _local2].txtusername.text = list.top_score.user[_local2].nick_name.data;
_local3["row" + _local2].txtscore.text = list.top_score.user[_local2].score.data;
}
_local2++;
}
}
_local3.playagain_btn.onRelease = function () {
_root.g2w_playagain(true);
};
};
var g2w_menu = new ContextMenu();
g2w_menu.hideBuiltInItems();
g2w_menu.customItems.push(new ContextMenuItem("Games2win.com", itemHandler));
itemHandler = function (obj, item) {
getURL (obj_partner.clickthru, "_blank");
};
this.menu = g2w_menu;
checkhost = function () {
trace("CALL CHECKHOST");
swfurl = this._url;
if (swfurl.indexOf("games2win.com") == -1) {
return(false);
}
return(true);
};
_trackClickThru = function (mc) {
if (obj_partner._allowclick) {
mc.hit_area.onRelease = function () {
getURL (obj_partner.clickthru, "_blank");
};
} else {
mc.hit_area.useHandCursor = false;
}
};
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));
};
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function playAgain() {
_root.g2w_playagain(false);
}
function restart() {
_root.g2w_playagain(true);
}
_root.playIntro = true;
_root.allSounds = new Sound();
_root.score = 0;
_root.timeScore = 0;
_root.levelScore = 0;
_root.bonus = 0;
_root.isPause = false;
_root.maxLevels = 3;
_root.levelArray = new Array(1 + _root.maxLevels);
i = 0;
while (i < maxLevels) {
_root.levelArray[i] = "lbllevel" + (i + 1);
i++;
}
_root.levelArray[maxLevels] = "win";
_root.level = 1;
_root.playIntroSound = true;
_root.debug = false;
Frame 6
stop();
Frame 15
stop();
Frame 23
stop();
Frame 33
stop();
_root.myGame = _root.game_mc;
var crySnd = new Sound();
crySnd.attachSound("cry");
Symbol 1145 MovieClip Frame 1
function brain() {
create_assets(myself, _global.obj_iads.type);
switch (_global.obj_iads.type) {
case "FULL" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main);
break;
case "EMBED" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main.trgt_ads);
if (_global.obj_iads.link ne undefined) {
trgt_main.onRelease = function () {
getURL (_global.obj_iads.link, "_blank");
};
}
break;
case "NOOP" :
clearInterval(int1);
_root.play();
break;
}
}
function get_iads() {
lv_iads = new XML();
lv_result = new XML();
lv_result.ignoreWhite = true;
lv_result.onLoad = function (success) {
if (success) {
parse_iads(lv_result);
} else {
_root.play();
}
};
lv_iads.sendAndLoad(adurl, lv_result, "POST");
}
function parse_iads(lv_result) {
_global.obj_iads = new Array();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes.length) {
if (lv_result.firstChild.childNodes[_local2].firstChild.nodeValue != null) {
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = lv_result.firstChild.childNodes[_local2].firstChild.nodeValue;
} else if (lv_result.firstChild.childNodes[_local2].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local4 = 0;
while (_local4 < lv_result.firstChild.childNodes[_local2].childNodes.length) {
_local5[lv_result.firstChild.childNodes[_local2].childNodes[_local4].nodeName] = lv_result.firstChild.childNodes[_local2].childNodes[_local4].firstChild.nodeValue;
_local4++;
}
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = _local5;
}
_local2++;
}
show_time = int(_global.obj_iads.t);
check_type();
}
function time_delay() {
tim = 0;
int1 = setInterval(timespam, 1000);
}
function timespam() {
tim++;
trace(tim);
if (tim == show_time) {
clearInterval(int1);
_root.play();
}
}
function create_assets(mc, _type) {
mc.createEmptyMovieClip("whitebg", 0);
whitebg.beginFill(16777215);
whitebg.moveTo(0, 0);
whitebg.lineTo(0, 0);
whitebg.lineTo(Stage.width, 0);
whitebg.lineTo(Stage.width, Stage.height + 20);
whitebg.lineTo(0, Stage.height + 20);
whitebg.endFill();
mc.createEmptyMovieClip("trgt_main", 4);
mcLoader = new MovieClipLoader();
mcLoader.addListener(mc);
if (_type != "FULL") {
mc.createEmptyMovieClip("square_mc", 5);
var _local4 = trgt_main.createEmptyMovieClip("trgt_ads", getNextHighestDepth());
var _local3 = new TextFormat();
_local3.align = "center";
_local3.font = "Verdana";
_local3.size = 10;
var _local2 = new TextFormat();
_local2.align = "right";
_local2.font = "Verdana";
_local2.size = 10;
_local2.underline = true;
mc.createTextField("h_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("b_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("m_txt", mc.getNextHighestDepth(), 0, 0, 120, 22);
b_txt.autoSize = true;
m_txt.autoSize = true;
b_txt.selectable = false;
h_txt.selectable = false;
m_txt.selectable = false;
m_txt.html = true;
b_txt.multiline = true;
b_txt.setNewTextFormat(_local3);
h_txt.autoSize = true;
h_txt.setNewTextFormat(_local3);
m_txt.setNewTextFormat(_local2);
h_txt.text = "";
mc.createEmptyMovieClip("progressBar", 500);
}
}
function onLoadInit(mc) {
ad_width = int(_global.obj_iads.x);
ad_height = int(_global.obj_iads.y);
h_txt.text = "Advertisement";
loadMessages();
progressBar.tim = show_time;
progressBar.width = _global.obj_iads.x;
progressBar.height = 15;
progressBar.start = function () {
game_fps = getFps();
maxw = this.width - 2;
this.ad = maxw / (this.tim + 1);
this.ad = this.ad / game_fps;
};
progressBar.onEnterFrame = function () {
if (this.bar._width < (this.width - 2)) {
this.bar._width = this.bar._width + this.ad;
} else {
this.bar._width = this.width;
}
};
progressBar._x = 100;
progressBar._y = 100;
bar_mc = progressBar.createEmptyMovieClip("bar", 1);
box_mc = progressBar.createEmptyMovieClip("box", 2);
bar_mc.beginFill(26112);
bar_mc.moveTo(0, 0);
bar_mc.lineTo(1, 0);
bar_mc.lineTo(1, progressBar.height - 2);
bar_mc.lineTo(0, progressBar.height - 2);
bar_mc.lineTo(0, 0);
bar_mc.endFill();
bar_mc._x = 1.5;
bar_mc._y = 1.5;
box_mc.lineStyle(1, 3355443, 100, true, "none", "round", "miter", 1);
box_mc.lineTo(progressBar.width, 0);
box_mc.lineTo(progressBar.width, progressBar.height);
box_mc.lineTo(0, progressBar.height);
box_mc.lineTo(0, 0);
box_mc._x = 0;
box_mc._y = 0;
progressBar.start();
b_txt.text = "Note\rClicking on the above Ad won't interrupt your game.\rAd link opens in a new window.";
myself._y = b_txt._y - 10;
x = (Stage.width / 2) - (ad_width / 2);
y = (Stage.height / 2) - (ad_height / 2);
mc._x = x;
mc._y = y;
h_txt._x = (x + (ad_width / 2)) - (h_txt._width / 2);
h_txt._y = y - 20;
progressBar._x = (x + (ad_width / 2)) - (progressBar._width / 2);
progressBar._y = (y + 5) + ad_height;
myself.invizi_logo.swapDepths(myself.getNextHighestDepth());
myself.invizi_logo._alpha = 100;
myself.invizi_logo._x = int(progressBar._x);
myself.invizi_logo._y = int(progressBar._y + progressBar._height) + 5;
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 3;
myself.invizi_logo.onRelease = function () {
getURL ("http://www.inviziads.com/index.html?utm_source=4_1&utm_medium=logo&utm_content=default&utm_campaign=invizi", "_blank");
};
b_txt._x = (x + (ad_width / 2)) - (b_txt._width / 2);
b_txt._y = progressBar._y + 38;
square_mc.beginFill(16711680);
square_mc.moveTo(0, 0);
square_mc.lineTo(ad_width, 0);
square_mc.lineTo(ad_width, ad_height);
square_mc.lineTo(0, ad_height);
square_mc.lineTo(0, 0);
square_mc.endFill();
square_mc._x = x;
square_mc._y = y;
trgt_main.setMask(square_mc);
}
function loadMessages() {
lv_messages = new XML();
lv_messages.ignoreWhite = true;
lv_messages.onLoad = function (success) {
if (success) {
totalNodes = lv_messages.firstChild.childNodes.length;
ran = Math.floor(Math.random() * totalNodes);
if (lv_messages.firstChild.childNodes[ran].firstChild == undefined) {
m_txt.htmlText = "<font color='#0066CC'><a href='http://www.inviziads.com/adv-starter-pack.html' target='_blank'>Advertisers, try us out for US$250</a></font>";
} else {
m_txt.htmlText = ((("<font color='#0066CC'><a href='" + lv_messages.firstChild.childNodes[ran].attributes.link) + "' target='_blank'>") + lv_messages.firstChild.childNodes[ran].firstChild) + "</a></font>";
}
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 2;
} else {
m_txt.htmlText = "<font color='#0066CC'><a href='http://inviziads.com' target='_blank'>Advertisers, try us out for US$250</a></font>";
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 2;
}
};
lv_messages.load(messageURL);
}
function pushdata() {
holder.obj_iads = _global.obj_iads;
}
function startdatapush(mc) {
var _local2;
_local2 = setInterval(this, "pushdata", 10);
}
function check_type() {
if (_global.obj_iads.type eq "UPDATE") {
myself.createEmptyMovieClip("holder", 100);
var _local3 = _global.obj_iads.url;
obj_iads = _global.obj_iads;
var _local2 = new MovieClipLoader();
_local2.loadClip(_global.obj_iads.url, holder);
} else {
brain();
time_delay();
}
}
function parse_xml(mydata) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < mydata.firstChild.childNodes.length) {
if (mydata.firstChild.childNodes[_local1].firstChild.nodeValue != null) {
_local4[mydata.firstChild.childNodes[_local1].nodeName] = mydata.firstChild.childNodes[_local1].firstChild.nodeValue;
} else if (mydata.firstChild.childNodes[_local1].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes[_local1].childNodes.length) {
_local4[lv_result.firstChild.childNodes[_local1].childNodes[_local2].nodeName] = mydata.firstChild.childNodes[_local1].childNodes[_local2].firstChild.nodeValue;
_local2++;
}
_local4[lv_result.firstChild.childNodes[_local1].nodeName] = _local5;
}
_local1++;
}
return(_local4);
}
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
var time = 0;
var tim = 0;
var show_time = 0;
var tempo = 0;
var int1;
getFps = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
this.onEnterFrame = function () {
game_fps = getFps();
if ((game_fps != 0) && (game_fps != undefined)) {
this.onEnterFrame = null;
}
};
myself = this;
signal = true;
var purl = flash.external.ExternalInterface.call("document.URL.toString");
var hurl = escape(_root._url);
var adurl = "http://s1.inviziads.com/lookup.html?";
adurl = adurl + "g=1236";
adurl = adurl + "&h=g2w";
adurl = adurl + "&type=pre";
adurl = adurl + "&v=4_32";
adurl = adurl + ("&purl=" + escape(purl));
adurl = adurl + ("&hurl=" + hurl);
var my_date = new Date();
adurl = adurl + ("&ts=" + my_date.getSeconds());
var messageURL = "http://s1.inviziads.com/template/invizi_messages.xml";
get_iads();
_root.stop();
Symbol 7 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 2
stop();
Symbol 37 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 46 MovieClip Frame 1
function brain() {
create_assets(myself, _global.obj_iads.type);
switch (_global.obj_iads.type) {
case "FULL" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main);
break;
case "EMBED" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main.trgt_ads);
if (_global.obj_iads.link ne undefined) {
trgt_main.onRelease = function () {
trace("_global.obj_iads.link " + _global.obj_iads.link);
getURL (_global.obj_iads.link, "_blank");
};
}
break;
case "NOOP" :
_parent._parent._visible = 0;
break;
}
}
function get_iads() {
lv_iads = new XML();
lv_result = new XML();
lv_result.ignoreWhite = true;
lv_result.onLoad = function (success) {
trace("success " + success);
if (success) {
parse_iads(lv_result);
myself.attachMovie("invizi_logo", "invizi_logo", this.getNextHighestDepth(), {_x:Stage.width - 120, _y:Stage.height - 20});
}
};
lv_iads.sendAndLoad(adurl, lv_result, "POST");
}
function parse_iads(lv_result) {
_global.obj_iads = new Array();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes.length) {
if (lv_result.firstChild.childNodes[_local2].firstChild.nodeValue != null) {
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = lv_result.firstChild.childNodes[_local2].firstChild.nodeValue;
} else if (lv_result.firstChild.childNodes[_local2].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local4 = 0;
while (_local4 < lv_result.firstChild.childNodes[_local2].childNodes.length) {
_local5[lv_result.firstChild.childNodes[_local2].childNodes[_local4].nodeName] = lv_result.firstChild.childNodes[_local2].childNodes[_local4].firstChild.nodeValue;
_local4++;
}
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = _local5;
}
_local2++;
}
show_time = int(_global.obj_iads.t);
check_type();
}
function create_assets(mc, _type) {
trace((("Create _ assets " + mc) + " ") + _type);
mc.createEmptyMovieClip("trgt_main", 4);
mcLoader = new MovieClipLoader();
mcLoader.addListener(mc);
if (_type != "FULL") {
mc.createEmptyMovieClip("square_mc", 5);
var _local4 = trgt_main.createEmptyMovieClip("trgt_ads", getNextHighestDepth());
var _local2 = new TextFormat();
_local2.align = "center";
_local2.font = "Verdana";
_local2.size = 10;
mc.createTextField("h_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("b_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
b_txt.autoSize = true;
b_txt.selectable = false;
h_txt.selectable = false;
b_txt.multiline = true;
b_txt.setNewTextFormat(_local2);
h_txt.autoSize = true;
h_txt.setNewTextFormat(_local2);
h_txt.text = "";
}
}
function onLoadInit(mc) {
ad_width = int(_global.obj_iads.x);
ad_height = int(_global.obj_iads.y);
_x = ((336 - ad_width) / 2);
_y = ((280 - ad_height) / 2);
progressBar.tim = show_time;
progressBar.width = _global.obj_iads.x;
progressBar.height = 15;
progressBar.start = function () {
maxw = this.width - 2;
this.ad = maxw / (this.tim + 1);
this.ad = this.ad / game_fps;
};
progressBar.onEnterFrame = function () {
if (this.bar._width < (this.width - 2)) {
this.bar._width = this.bar._width + this.ad;
} else {
this.bar._width = this.width;
}
};
progressBar._x = 100;
progressBar._y = 100;
bar_mc = progressBar.createEmptyMovieClip("bar", 1);
box_mc = progressBar.createEmptyMovieClip("box", 2);
bar_mc.beginFill(26112);
bar_mc.moveTo(0, 0);
bar_mc.lineTo(1, 0);
bar_mc.lineTo(1, progressBar.height - 2);
bar_mc.lineTo(0, progressBar.height - 2);
bar_mc.lineTo(0, 0);
bar_mc.endFill();
bar_mc._x = 1.5;
bar_mc._y = 1.5;
box_mc.lineStyle(1, 3355443, 100, true, "none", "round", "miter", 1);
box_mc.lineTo(progressBar.width, 0);
box_mc.lineTo(progressBar.width, progressBar.height);
box_mc.lineTo(0, progressBar.height);
box_mc.lineTo(0, 0);
box_mc._x = 0;
box_mc._y = 0;
progressBar.start();
x = 0;
y = 0;
mc._x = x;
mc._y = y;
square_mc.beginFill(16711680);
square_mc.moveTo(0, 0);
square_mc.lineTo(ad_width, 0);
square_mc.lineTo(ad_width, ad_height);
square_mc.lineTo(0, ad_height);
square_mc.lineTo(0, 0);
square_mc.endFill();
square_mc._x = x;
square_mc._y = y;
trgt_main.setMask(square_mc);
}
function check_type() {
if (_global.obj_iads.type eq "UPDATE") {
this.createEmptyMovieClip("holder", 100);
var _local5 = _global.obj_iads.url;
_root.obj_iads = _global.obj_iads.payload;
holder.loadMovie(_global.obj_iads.url);
holder.obj_iads = _root.obj_iads;
show_time = 20;
} else {
if (((_global.obj_iads.htmlPostRoll != undefined) && (purl != null)) && (purl.indexOf("games2win.com") != -1)) {
trace(purl.indexOf("games2win.com") != -1);
var _local4 = flash.external.ExternalInterface.call("inviziShowHtmlPostRoll", _global.obj_iads.htmlPostRoll);
}
if (((_local4 != null) && (purl != null)) && (purl.indexOf("games2win.com") != -1)) {
this._parent._visible = false;
} else {
brain();
}
}
}
function parse_xml(mydata) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < mydata.firstChild.childNodes.length) {
if (mydata.firstChild.childNodes[_local1].firstChild.nodeValue != null) {
_local4[mydata.firstChild.childNodes[_local1].nodeName] = mydata.firstChild.childNodes[_local1].firstChild.nodeValue;
} else if (mydata.firstChild.childNodes[_local1].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes[_local1].childNodes.length) {
_local4[lv_result.firstChild.childNodes[_local1].childNodes[_local2].nodeName] = mydata.firstChild.childNodes[_local1].childNodes[_local2].firstChild.nodeValue;
_local2++;
}
_local4[lv_result.firstChild.childNodes[_local1].nodeName] = _local5;
}
_local1++;
}
return(_local4);
}
System.security.allowDomain("*");
this.getFps = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
this.onEnterFrame = function () {
game_fps = getFps();
if ((game_fps ne 0) and (game_fps ne undefined)) {
this.onEnterFrame = null;
}
};
myself = this;
signal = true;
var purl = flash.external.ExternalInterface.call("document.URL.toString");
var hurl = escape(_root._url);
adurl = _root.obj_game.inviziads;
adurl = adurl + "&type=post&v=2_0";
adurl = adurl + ("&purl=" + escape(purl));
adurl = adurl + ("&hurl=" + hurl);
adurl = adurl + ("&ts=" + getTimer());
trace(adurl);
get_iads();
stop();
Symbol 48 MovieClip Frame 1
invizi_logo.onRelease = function () {
getURL ("http://www.inviziads.com/", "_blank");
};
Symbol 59 Button
on (release) {
trace("CALLING : _root.g2w_playagain()");
_root.g2w_playagain();
}
Symbol 62 Button
on (release) {
trace("CALLING : _root.g2w_skiplevel()");
_root.g2w_skiplevel();
}
Symbol 63 MovieClip Frame 1
stop();
Symbol 80 MovieClip [_g2w_gameover_mc] Frame 1
stop();
_root._validateHost(this);
Symbol 80 MovieClip [_g2w_gameover_mc] Frame 2
stop();
Symbol 80 MovieClip [_g2w_gameover_mc] Frame 11
stop();
Symbol 80 MovieClip [_g2w_gameover_mc] Frame 20
stop();
Symbol 80 MovieClip [_g2w_gameover_mc] Frame 30
stop();
Symbol 80 MovieClip [_g2w_gameover_mc] Frame 41
stop();
Symbol 83 MovieClip Frame 1
this.onPress = function () {
_root.score = _root.score + 10;
_parent.gotoAndPlay(75);
};
Symbol 86 MovieClip [soundWaves] Frame 1
var inCount = 0;
Symbol 86 MovieClip [soundWaves] Frame 59
_parent.soundWave = true;
inCount = 1;
Symbol 86 MovieClip [soundWaves] Frame 73
_parent.gameOvr3 = true;
Symbol 86 MovieClip [soundWaves] Frame 80
if (inCount != 1) {
_parent.soundWave = true;
}
this.removeMovieClip();
Symbol 103 MovieClip [smoke] Frame 1
this.onPress = function () {
_root.score = _root.score + 10;
gotoAndPlay (109);
};
var inCount = 0;
Symbol 103 MovieClip [smoke] Frame 50
Symbol 103 MovieClip [smoke] Frame 96
_parent.smokeApr = true;
inCount = 1;
Symbol 103 MovieClip [smoke] Frame 102
_parent.gameOvr = true;
Symbol 103 MovieClip [smoke] Frame 111
if (inCount != 1) {
_parent.smokeApr = true;
}
this.removeMovieClip();
Symbol 105 MovieClip Frame 1
this.onPress = function () {
_root.score = _root.score + 10;
_parent.gotoAndPlay(60);
};
Symbol 111 MovieClip [glassFall] Frame 1
var inCount = 0;
Symbol 111 MovieClip [glassFall] Frame 29
_parent.showGlass = true;
inCount = 1;
Symbol 111 MovieClip [glassFall] Frame 58
_parent.gameOvr2 = true;
Symbol 111 MovieClip [glassFall] Frame 62
if (inCount != 1) {
_parent.showGlass = true;
}
this.removeMovieClip();
Symbol 114 MovieClip Frame 1
Symbol 118 MovieClip Frame 1
Symbol 119 MovieClip [inDust] Frame 1
var inCount = 0;
this.onRelease = function () {
_root.score = _root.score + 10;
gotoAndPlay (80);
};
Symbol 119 MovieClip [inDust] Frame 35
_parent.dustCloud = true;
inCount = 1;
Symbol 119 MovieClip [inDust] Frame 47
trace("Game Over Dust2");
_parent.gameOvr = true;
Symbol 119 MovieClip [inDust] Frame 98
if (inCount != 1) {
_parent.dustCloud = true;
}
this.removeMovieClip();
Symbol 123 MovieClip Frame 1
this.onPress = function () {
_root.score = _root.score + 10;
_parent.gotoAndPlay(30);
};
Symbol 124 MovieClip [crying] Frame 1
var inCount = 0;
Symbol 124 MovieClip [crying] Frame 21
_parent.cryinWave = true;
inCount = 1;
Symbol 124 MovieClip [crying] Frame 29
trace("GameOvr BabyCry");
_parent._parent.gameOvr2 = true;
Symbol 124 MovieClip [crying] Frame 40
if (inCount != 1) {
_parent.cryinWave = true;
}
this.removeMovieClip();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
stop();
Symbol 136 MovieClip Frame 3
stop();
Symbol 136 MovieClip Frame 4
stop();
Symbol 137 MovieClip [music] Frame 1
var inCount = 0;
Symbol 137 MovieClip [music] Frame 17
_parent._parent.musicWave = true;
inCount = 1;
Symbol 137 MovieClip [music] Frame 24
Symbol 137 MovieClip [music] Frame 32
_root.score = _root.score + 10;
Symbol 137 MovieClip [music] Frame 34
if (inCount != 1) {
_parent._parent.musicWave = true;
}
this.removeMovieClip();
stop();
Symbol 139 MovieClip Frame 1
this.onPress = function () {
_parent._parent._parent._parent.totalDrops++;
trace(_parent._parent._parent._parent.totalDrops + " drps");
_root.score = _root.score + 10;
_parent._parent.resetDrop();
};
Symbol 142 MovieClip Frame 1
Symbol 143 MovieClip [rainDrop] Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function resetDrop() {
this._y = ypos;
var ypos = this._y;
frmNo = random(3);
gotoAndStop(frmNo);
}
var gameOvr = false;
var ypos = this._y;
var frmNo = random(3);
gotoAndStop(frmNo);
onEnterFrame = function () {
if (_parent._parent.secnd <= 14) {
this._y = this._y + 5;
if (this.hitTest(_parent.insideGirl_mc)) {
if ((checkCollision(this, _parent.insideGirl_mc) != undefined) || (checkCollision(this, _parent.insideGirl_mc) != null)) {
resetDrop();
_parent._parent.totalDrops++;
_parent._parent.count++;
if (_parent._parent.count >= 50) {
gameOvr = true;
_root.myGame.gotoAndStop("gameOver");
}
}
}
} else {
_parent._parent.birdFly_mc.gotoAndPlay(2);
_parent._parent.intialTime = 0;
_parent._parent.rainEffect_mc._visible = false;
if (gameOvr == false) {
_root.meterCount++;
var _local4 = _parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local4 + 6);
}
_parent.gotoAndStop(2);
gotoAndStop (4);
}
};
stop();
Symbol 143 MovieClip [rainDrop] Frame 2
stop();
Symbol 143 MovieClip [rainDrop] Frame 3
stop();
Symbol 143 MovieClip [rainDrop] Frame 4
onEnterFrame = null;
stop();
Symbol 152 MovieClip [game_sound_ctrl] Frame 1
_gameSounds = new Sound();
var frame = "on";
changeVol = function (targetvol, step) {
this.onEnterFrame = function () {
var _local3 = _gameSounds.getVolume();
if ((step < 0) and (_local3 <= targetvol)) {
_local3 = targetvol;
delete this.onEnterFrame;
_root.so_sound = 1;
} else if ((step > 0) and (_local3 >= targetvol)) {
_local3 = targetvol;
delete this.onEnterFrame;
_root.so_sound = 0;
} else {
_gameSounds.setVolume(_local3 + step);
}
};
};
if (_root.so_sound == 1) {
frame = "off";
this.gotoAndPlay(frame);
}
this.onRelease = function () {
if (frame == "on") {
frame = "off";
} else {
frame = "on";
}
this.gotoAndPlay(frame);
};
Symbol 152 MovieClip [game_sound_ctrl] Frame 2
stop();
changeVol(100, 5);
Symbol 152 MovieClip [game_sound_ctrl] Frame 3
stop();
changeVol(0, -5);
Symbol 1141 MovieClip [__Packages.classes.CollisionDetection] Frame 0
class classes.CollisionDetection
{
function CollisionDetection () {
}
static function checkForCollision(p_clip1, p_clip2, p_alphaTolerance, p_scope) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
if (p_scope == undefined) {
p_scope = p_clip2._parent;
}
var _local3 = p_clip1.getBounds(p_scope);
var _local2 = p_clip2.getBounds(p_scope);
if (((_local3.xMax < _local2.xMin) || (_local2.xMax < _local3.xMin)) || ((_local3.yMax < _local2.yMin) || (_local2.yMax < _local3.yMin))) {
return(null);
}
var _local1 = {};
_local1.xMin = Math.max(_local3.xMin, _local2.xMin);
_local1.xMax = Math.min(_local3.xMax, _local2.xMax);
_local1.yMin = Math.max(_local3.yMin, _local2.yMin);
_local1.yMax = Math.min(_local3.yMax, _local2.yMax);
var _local8 = new flash.display.BitmapData(_local1.xMax - _local1.xMin, _local1.yMax - _local1.yMin, false);
var _local4 = p_clip1.transform.matrix;
_local4.tx = p_clip1._x - _local1.xMin;
_local4.ty = p_clip1._y - _local1.yMin;
_local8.draw(p_clip1, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
_local4 = p_clip2.transform.matrix;
_local4.tx = p_clip2._x - _local1.xMin;
_local4.ty = p_clip2._y - _local1.yMin;
_local8.draw(p_clip2, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local6 = _local8.getColorBoundsRect(4294967295, 4278255615);
if (_local6.width == 0) {
return(null);
}
_local6.x = _local6.x + _local1.xMin;
_local6.y = _local6.y + _local1.yMin;
return(_local6);
}
}
Symbol 1142 MovieClip [__Packages.it.sephiroth.XML2Object] Frame 0
class it.sephiroth.XML2Object
{
var oXML;
function XML2Object () {
}
function get xml() {
return(oXML);
}
function parseXML(sFile) {
oResult = new Object();
oXML = sFile;
oResult = translateXML();
return(oResult);
}
function translateXML(from, path, name, position) {
var _local2;
var _local9;
var _local4;
var _local10;
if (path == undefined) {
path = this;
name = "oResult";
}
path = path[name];
if (from == undefined) {
from = new XML(xml.toString());
from.ignoreWhite = true;
}
if (from.hasChildNodes()) {
_local9 = from.childNodes;
if (position != undefined) {
_local10 = path;
path = path[position];
}
while (_local9.length > 0) {
_local4 = _local9.shift();
_local2 = _local4.nodeName;
if (_local2 != undefined) {
var _local5 = new Object();
_local5.attributes = _local4.attributes;
_local5.data = _local4.firstChild.nodeValue;
if (position != undefined) {
_local10 = path;
}
if (path[_local2] != undefined) {
if (path[_local2].__proto__ == Array.prototype) {
path[_local2].push(_local5);
name = _local4.nodeName;
position = path[_local2].length - 1;
} else {
var _local8 = path[_local2];
path[_local2] = new Array();
path[_local2].push(_local8);
path[_local2].push(_local5);
name = _local2;
position = path[_local2].length - 1;
}
} else {
path[_local2] = _local5;
name = _local2;
position = undefined;
}
}
if (_local4.hasChildNodes()) {
translateXML(_local4, path, name, position);
}
}
}
return(oResult);
}
var oResult = new Object();
}
Symbol 158 MovieClip Frame 120
stop();
_root.gotoAndStop("lblloader");
Symbol 204 MovieClip Frame 1
var total = _root.getBytesTotal();
var loaded = 0;
var percent = 0;
onEnterFrame = function () {
if (percent <= 100) {
loaded = _root.getBytesLoaded();
percent = Math.ceil((loaded / total) * 100);
}
if (loaded >= total) {
_root.gotoAndStop("lblgameintro");
}
};
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
stop();
Symbol 241 MovieClip Frame 1
if (!_root.playIntro) {
gotoAndStop(_totalframes);
}
if (_root.playIntroSound) {
stopAllSounds();
sound_mc.gotoAndStop(2);
}
_root.playIntroSound = false;
_root.playIntro = false;
Symbol 241 MovieClip Frame 2
stop();
story_btn.onRelease = function () {
_root.gameIntro_mc.gotoAndStop("story");
};
instructions_btn.onRelease = function () {
_root.gameIntro_mc.gotoAndStop("instructions");
};
start_btn.onRelease = function () {
_root.gotoAndStop("lblgame");
};
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
stop();
Symbol 259 MovieClip Frame 4
stop();
start_btn.onRelease = function () {
_root.gotoAndStop("lblgame");
};
back_btn.onRelease = function () {
_root.gameIntro_mc.gotoAndStop("lblgameintro");
};
Symbol 265 MovieClip Frame 4
stop();
start_btn.onRelease = function () {
_root.gotoAndStop("lblgame");
};
back_btn.onRelease = function () {
_root.gameIntro_mc.gotoAndStop("lblgameintro");
};
Symbol 271 MovieClip Frame 4
stop();
start_btn.onRelease = function () {
_root.myGame.gotoAndStop("debug");
};
back_btn.onRelease = function () {
_root.gameIntro_mc.gotoAndStop("lblgameintro");
};
Symbol 273 MovieClip Frame 1
gotoAndStop ("lblgameintro");
Symbol 273 MovieClip Frame 9
stop();
if (_root.playIntroSound) {
stopAllSounds();
sound_mc.gotoAndStop(2);
}
_root.playIntroSound = false;
Symbol 273 MovieClip Frame 18
stop();
Symbol 273 MovieClip Frame 23
stop();
Symbol 273 MovieClip Frame 30
stop();
Symbol 340 MovieClip Frame 1
gotoAndStop(_root.level);
play_btn.onRelease = function () {
_parent.gotoAndStop(_root.levelArray[_root.level - 1]);
};
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 340 MovieClip Frame 3
stop();
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 24
_parent._parent.splash_mc.gotoAndPlay(2);
Symbol 389 MovieClip Frame 54
stop();
Symbol 402 MovieClip Frame 1
frm_mc.onPress = function () {
_root.splash++;
_root.score = _root.score + 10;
if (_root.splash >= 2) {
if (_parent._parent.gameOvr == false) {
_root.meterCount++;
}
if (_root.meterCount >= 2) {
_root.bonus = _root.level * 1000;
_root.score = _root.score + ((_root.bonus + (_root.time * 100)) + (_root.meterCount * 100));
_root.myGame.gotoAndStop("levelComplete");
} else {
_root.myGame.gotoAndStop("gameOver");
}
} else {
_parent.gotoAndPlay(45);
}
};
Symbol 403 MovieClip Frame 1
Symbol 403 MovieClip Frame 46
stop();
var count = 0;
if (_parent.gameOvr == false) {
_root.meterCount++;
var frm = _parent._parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(frm + 6);
}
onEnterFrame = function () {
count++;
if (count >= 30) {
if (_root.splash >= 3) {
if (_root.meterCount >= 2) {
trace("ji1");
_root.bonus = _root.level * 1000;
_root.score = _root.score + ((_root.bonus + (_root.time * 100)) + (_root.meterCount * 100));
_root.myGame.gotoAndStop("levelComplete");
} else {
_root.myGame.gotoAndStop("gameOver");
}
} else {
_root.myGame.gotoAndStop("gameOver");
}
}
};
Symbol 404 MovieClip Frame 1
Symbol 404 MovieClip Frame 46
stop();
_parent.gameOvr = true;
Symbol 405 MovieClip Frame 1
Symbol 405 MovieClip Frame 47
stop();
_parent.gameOvr = true;
Symbol 406 MovieClip Frame 1
Symbol 406 MovieClip Frame 56
stop();
_parent.gameOvr = true;
Symbol 407 MovieClip Frame 1
Symbol 407 MovieClip Frame 31
stop();
_parent.gameOvr = true;
Symbol 408 MovieClip Frame 1
var gameOvr = false;
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 14
stop();
Symbol 412 MovieClip Frame 1
this.onPress = function () {
_parent._parent._parent.sunRay++;
_parent.gotoAndPlay(1);
if (_parent._parent._parent.sunRay >= 20) {
_parent._parent._parent.waiter_mc.gotoAndPlay(2);
_parent._parent.gotoAndStop(1);
}
};
Symbol 413 MovieClip Frame 72
_parent._parent.sunRay++;
_parent._parent.sunRayHit++;
if (_parent._parent.sunRayHit >= 8) {
_parent.gameOvr = true;
}
if (_parent._parent.sunRay >= 20) {
if (_parent.gameOvr == false) {
_root.meterCount++;
var frm = _parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(frm + 6);
trace(_parent._parent._parent.hud_mc.loveConnection_mc._currentframe + " frm");
}
_parent._parent.waiter_mc.gotoAndPlay(2);
_parent.gotoAndStop(1);
}
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 2
stop();
var gameOvr = false;
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 32
_parent.waiterFall_mc.gotoAndPlay(2);
Symbol 457 MovieClip Frame 33
stop();
trace(_parent.food + " food");
Symbol 457 MovieClip Frame 110
stop();
_parent.car_mc.inCar_mc.gotoAndPlay(2);
Symbol 467 MovieClip Frame 10
this.onPress = function () {
_parent._parent.food++;
trace(_parent._parent.food + " food1");
_root.score = _root.score + 10;
if (_parent._parent.food >= 4) {
_parent._parent.waiter_mc.gotoAndPlay(35);
if (_parent.gameOvr == false) {
_root.meterCount++;
var _local3 = _parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local3 + 6);
trace(_parent._parent._parent.hud_mc.loveConnection_mc._currentframe + " frm");
}
_parent.gotoAndStop(1);
}
gotoAndStop (1);
};
Symbol 467 MovieClip Frame 75
stop();
trace("GameOver");
_parent.gameOvr = true;
_root.myGame.gotoAndStop("gameOver");
Symbol 468 MovieClip Frame 1
this.onPress = function () {
_parent._parent.food++;
trace(_parent._parent.food + " food2");
_root.score = _root.score + 10;
if (_parent._parent.food >= 4) {
_parent._parent.waiter_mc.gotoAndPlay(35);
if (_parent.gameOvr == false) {
_root.meterCount++;
var _local3 = _parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local3 + 6);
}
_parent.gotoAndStop(1);
}
gotoAndStop (1);
};
Symbol 468 MovieClip Frame 66
stop();
_parent.gameOvr = true;
_root.myGame.gotoAndStop("gameOver");
Symbol 469 MovieClip Frame 13
this.onPress = function () {
_parent._parent.food++;
trace(_parent._parent.food + " food3");
_root.score = _root.score + 10;
if (_parent._parent.food >= 4) {
if (_parent.gameOvr == false) {
_root.meterCount++;
var _local3 = _parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local3 + 6);
trace(_parent._parent._parent.hud_mc.loveConnection_mc._currentframe + " frm");
}
_parent._parent.waiter_mc.gotoAndPlay(35);
_parent.gotoAndStop(1);
}
gotoAndStop (1);
};
Symbol 469 MovieClip Frame 80
stop();
_parent.gameOvr = true;
_root.myGame.gotoAndStop("gameOver");
Symbol 470 MovieClip Frame 16
this.onPress = function () {
_parent._parent.food++;
trace(_parent._parent.food + " food4");
_root.score = _root.score + 10;
if (_parent._parent.food >= 4) {
if (_parent.gameOvr == false) {
_root.meterCount++;
var _local3 = _parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local3 + 6);
}
_parent._parent.waiter_mc.gotoAndPlay(35);
_parent.gotoAndStop(1);
}
gotoAndStop (1);
};
Symbol 470 MovieClip Frame 91
stop();
trace("GameOver");
_parent.gameOvr = true;
_root.myGame.gotoAndStop("gameOver");
_parent._parent.car_mc.inCar_mc.gotoAndPlay(2);
_parent.gotoAndStop(1);
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 9
stop();
var gameOvr = false;
Symbol 520 MovieClip Frame 1
this.onPress = function () {
_root.score = _root.score + 10;
_parent.gotoAndStop(1);
};
Symbol 521 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 87
_parent.gameOvr = true;
Symbol 521 MovieClip Frame 101
Symbol 529 MovieClip Frame 1
stop();
onEnterFrame = function () {
};
Symbol 529 MovieClip Frame 82
_parent.feather1_mc.gotoAndPlay(2);
Symbol 529 MovieClip Frame 105
_parent.feather2_mc.gotoAndPlay(2);
Symbol 529 MovieClip Frame 126
_parent.feather3_mc.gotoAndPlay(2);
Symbol 529 MovieClip Frame 140
_parent.feather4_mc.gotoAndPlay(2);
_parent.birdFly++;
trace(_parent.birdFly);
if (_parent.birdFly >= 3) {
_parent.sunRays_mc.gotoAndStop(2);
trace(_parent.sunRays_mc._currentframe + " crtfrm");
if (_parent.gameOvr == false) {
_root.meterCount++;
var frm = _parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent.hud_mc.loveConnection_mc.gotoAndStop(frm + 6);
}
gotoAndStop (1);
}
gotoAndPlay (2);
Symbol 530 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 2
stop();
Symbol 533 MovieClip Frame 1
this._quality = "medium";
_root.meterCount = 0;
var totalDrops = 0;
var count = 0;
var sunRay = 0;
var sunRayHit = 0;
var birdFly = 0;
var food = 0;
var maxTime1 = 360;
var maxTime2 = 720;
var intialTime = 0;
var secnd = 0;
var secnd2 = 0;
_root.loveValue = 0;
_root.splash = 0;
var gameOvr = false;
trace(_root.level);
onEnterFrame = function () {
if (intialTime <= maxTime1) {
intialTime++;
secnd = Math.round(intialTime / 24);
}
};
Symbol 544 MovieClip Frame 1
var noOfEvents = [5, 6, 4];
var total = _root.events;
var loaded = _root.meterCount;
var percent = 100;
loveBar_mc._xscale = percent;
var countDown = true;
var minutes = 3;
var maxTime = (minutes * 60);
if (!countDown) {
_root.time = 0;
} else {
_root.time = maxTime;
}
var timer = 0;
onEnterFrame = function () {
if (!_root.isPause) {
if (timer <= (maxTime * 24)) {
timer++;
if (!countDown) {
_root.time = Math.round(timer / 24);
} else {
_root.time = maxTime - Math.round(timer / 24);
}
} else {
_root.myGame.gotoAndStop("gameOver");
}
if (percent >= 0.5) {
loaded = _root.meterCount;
percent = 100 - Math.ceil((loaded / total) * 100);
loveBar_mc._xscale = percent;
}
if (_root.meterCount <= _root.events) {
}
}
};
Symbol 547 MovieClip Frame 1
Symbol 547 MovieClip Frame 2
stop();
Symbol 586 MovieClip Frame 1
this.onRelease = function () {
if (_root.digitalWatchN == true) {
if (_currentframe == 3) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
}
};
stop();
Symbol 586 MovieClip Frame 2
stop();
Symbol 586 MovieClip Frame 3
stop();
if (_parent.hr2_mc._currentframe > 5) {
_parent.hr2_mc.gotoAndStop(5);
}
Symbol 594 MovieClip Frame 1
this.onRelease = function () {
if (_root.digitalWatchN == true) {
if (_currentframe == this._totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
if (_parent.hr1_mc._currentframe == 3) {
if (_currentframe >= 5) {
gotoAndStop (5);
}
}
}
};
stop();
Symbol 594 MovieClip Frame 2
stop();
Symbol 594 MovieClip Frame 3
stop();
Symbol 594 MovieClip Frame 4
stop();
Symbol 594 MovieClip Frame 5
stop();
Symbol 594 MovieClip Frame 6
stop();
Symbol 594 MovieClip Frame 7
stop();
Symbol 594 MovieClip Frame 8
stop();
Symbol 594 MovieClip Frame 9
stop();
Symbol 594 MovieClip Frame 10
stop();
Symbol 595 MovieClip Frame 1
this.onRelease = function () {
if (_root.digitalWatchN == true) {
if (_currentframe == this._totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
}
};
stop();
Symbol 595 MovieClip Frame 2
stop();
Symbol 595 MovieClip Frame 3
stop();
Symbol 595 MovieClip Frame 4
stop();
Symbol 595 MovieClip Frame 5
stop();
Symbol 595 MovieClip Frame 6
stop();
Symbol 595 MovieClip Frame 7
stop();
if (_parent.min2_mc._currentframe > 1) {
_parent.min2_mc.gotoAndStop(1);
}
Symbol 596 MovieClip Frame 1
this.onRelease = function () {
if (_root.digitalWatchN == true) {
if (_currentframe == this._totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
if (_parent.min1_mc._currentframe == 7) {
if (_currentframe > 1) {
gotoAndStop (1);
}
}
}
};
stop();
Symbol 596 MovieClip Frame 2
stop();
Symbol 596 MovieClip Frame 3
stop();
Symbol 596 MovieClip Frame 4
stop();
Symbol 596 MovieClip Frame 5
stop();
Symbol 596 MovieClip Frame 6
stop();
Symbol 596 MovieClip Frame 7
stop();
Symbol 596 MovieClip Frame 8
stop();
Symbol 596 MovieClip Frame 9
stop();
Symbol 596 MovieClip Frame 10
stop();
Symbol 598 MovieClip Frame 1
onEnterFrame = function () {
if (_root.digitalWatchN == true) {
if ((((hr1_mc._currentframe == 1) && (hr2_mc._currentframe == 7)) && (min1_mc._currentframe == 3)) && (min2_mc._currentframe == 3)) {
_parent._parent._parent.guys_mc.gotoAndStop(230);
_root.score = _root.score + 10;
_parent._parent._parent.train_mc.gotoAndPlay(1);
_parent._parent._parent.stopBag_mc.gotoAndStop(2);
if (_parent._parent._parent.gameOvr4 == false) {
_root.meterCount++;
var _local3 = _parent._parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local3 + 5);
}
_parent._parent._parent.blindMan_mc.gotoAndPlay(2);
_root.digitalWatchN = false;
}
}
};
Instance of Symbol 586 MovieClip "hr1_mc" in Symbol 598 MovieClip Frame 1
/* no clip actions */
Symbol 599 MovieClip Frame 1
Symbol 608 MovieClip Frame 9
Symbol 617 MovieClip Frame 10
function time() {
this.onEnterFrame = function () {
if (initialTime <= maxTime) {
initialTime++;
secnd = Math.round(initialTime / 24);
} else {
gotoAndPlay (1);
onEnterFrame = null;
}
};
}
stop();
var initialTime = 0;
var maxTime = 240;
var secnd = 0;
time();
Symbol 645 MovieClip Frame 1
stop();
this.onRelease = function () {
var _local4 = random(4);
if (_parent._parent.musicWave == true) {
var _local3 = 0;
while (_local3 != 1) {
_parent._parent.musicWave = false;
var _local2 = _parent.attachMovie("music", "music" + _local3, _parent.getNextHighestDepth());
_local2.inMus_mc.gotoAndStop(_local4);
_local2._x = -5;
_local2._y = -7;
_local3++;
}
}
};
Symbol 646 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 2
stop();
Symbol 664 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 6
stop();
Symbol 669 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_parent._parent._parent._parent.babyCry == true) {
this.gotoAndPlay(2);
_root.crySnd.start(0, 999);
delete this.onEnterFrame;
trace("thids");
}
};
Symbol 698 MovieClip Frame 60
this.gotoAndPlay(2);
Symbol 740 MovieClip Frame 7
_parent._parent.careTaker = true;
Symbol 740 MovieClip Frame 15
stop();
Symbol 741 MovieClip Frame 1
stop();
_parent.babyCry = false;
Symbol 741 MovieClip Frame 6
stop();
_root.Mum = "there";
trace(_root.Mum);
Symbol 741 MovieClip Frame 7
stop();
_parent.babyCry = false;
_root.Mum = "notthere";
trace(_root.Mum);
trace("THE BABY UD GINER");
if (_root.Mum == "notthere") {
_root.crySnd.stop();
_root.game_mc.l2Snd.start(0, 999);
trace("fffff....................s");
}
Symbol 793 MovieClip Frame 1
Symbol 796 MovieClip Frame 1
stop();
Symbol 796 MovieClip Frame 2
stop();
Symbol 797 MovieClip Frame 1
stop();
Symbol 797 MovieClip Frame 24
stop();
_parent.ticket_mc.gotoAndPlay(2);
frm_mc.gotoAndStop(2);
Symbol 797 MovieClip Frame 225
trace("GameOver");
_root.myGame.gotoAndStop("gameOver");
_parent._parent.gameOvr4 = true;
_parent.blindMan_mc.gotoAndPlay(2);
_root.digitalWatchN = false;
Symbol 797 MovieClip Frame 230
stop();
Symbol 825 MovieClip Frame 1
Symbol 827 MovieClip Frame 36
stop();
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 2
Symbol 828 MovieClip Frame 200
trace("GameOver");
_root.movinBag = false;
Symbol 828 MovieClip Frame 215
trace("GameOver");
stop();
if (_root.meterCount >= 3) {
_root.bonus = _root.level * 1000;
_root.score = _root.score + ((_root.bonus + (_root.time * 100)) + (_root.meterCount * 100));
_root.myGame.gotoAndStop("levelComplete");
} else {
_root.myGame.gotoAndStop("gameOver");
}
Symbol 835 MovieClip Frame 1
function time() {
this.stopDrag();
this.onEnterFrame = function () {
if (initialTime <= maxTime) {
initialTime++;
secnd = Math.round(initialTime / 24);
} else {
this._x = xpos;
this._y = ypos;
initialTime = 0;
onEnterFrame = null;
}
};
}
var initialTime = 0;
var maxTime = 24;
var secnd = 0;
var xpos = this._x;
var ypos = this._y;
Symbol 837 MovieClip Frame 1
function time() {
this.stopDrag();
this.onEnterFrame = function () {
if (initialTime <= maxTime) {
initialTime++;
secnd = Math.round(initialTime / 24);
} else {
this._x = xpos;
this._y = ypos;
initialTime = 0;
onEnterFrame = null;
}
};
}
var initialTime = 0;
var maxTime = 24;
var secnd = 0;
var xpos = this._x;
var ypos = this._y;
Symbol 840 MovieClip Frame 1
function time() {
this.stopDrag();
this.onEnterFrame = function () {
if (initialTime <= maxTime) {
initialTime++;
secnd = Math.round(initialTime / 24);
} else {
this._x = xpos;
this._y = ypos;
initialTime = 0;
onEnterFrame = null;
}
};
}
var initialTime = 0;
var maxTime = 24;
var secnd = 0;
var xpos = this._x;
var ypos = this._y;
onEnterFrame = function () {
};
Symbol 869 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_parent._parent._parent.orderCount == 0) {
gotoAndStop (2);
} else if (_currentframe != 1) {
gotoAndStop (1);
}
};
Symbol 871 MovieClip Frame 1
this.onPress = function () {
_parent._parent.orderCount++;
_root.luggage++;
_root.score = _root.score + 10;
_parent._visible = false;
if (_root.luggage >= 3) {
if (_parent._parent._parent._parent._parent._parent.gameOvr1 == false) {
_root.meterCount++;
var _local3 = _parent._parent._parent._parent._parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent._parent._parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local3 + 5);
}
_parent._parent._parent._parent._parent._parent.babyCry = true;
_parent._parent._parent._parent._parent._parent.careTaker_mc.gotoAndPlay(2);
_parent._parent._parent._parent._parent._parent.begger_mc.gotoAndStop(2);
_parent._parent._parent.gotoAndStop(1);
_parent._parent.bag1_mc._visible = true;
_parent._parent.bag2_mc._visible = true;
_parent._parent.bag3_mc._visible = true;
_parent._parent._parent._parent._parent._parent.stopBag_mc.gotoAndStop(2);
_root.myGame.level_mc.luggageMan_mc._visible = false;
}
_parent.gotoAndStop(1);
};
Symbol 872 MovieClip Frame 74
trace("Game Over");
_root.myGame.gotoAndStop("gameOver");
_parent._parent._parent._parent._parent.gameOvr1 = true;
Symbol 872 MovieClip Frame 80
stop();
Symbol 874 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_parent._parent._parent.orderCount == 1) {
gotoAndStop (2);
} else if (_currentframe != 1) {
gotoAndStop (1);
}
};
Symbol 875 MovieClip Frame 1
this.onPress = function () {
_parent._parent.orderCount++;
_root.luggage++;
_root.score = _root.score + 10;
_parent._visible = false;
if (_root.luggage >= 3) {
if (_parent._parent._parent._parent._parent._parent.gameOvr1 == false) {
_root.meterCount++;
var _local3 = _parent._parent._parent._parent._parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent._parent._parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local3 + 5);
}
_parent._parent._parent._parent._parent._parent.babyCry = true;
_parent._parent._parent._parent._parent._parent.careTaker_mc.gotoAndPlay(2);
_parent._parent._parent._parent._parent._parent.begger_mc.gotoAndStop(2);
_parent._parent._parent.gotoAndStop(1);
_parent._parent.bag1_mc._visible = true;
_parent._parent.bag2_mc._visible = true;
_parent._parent.bag3_mc._visible = true;
_parent._parent._parent._parent._parent._parent.stopBag_mc.gotoAndStop(2);
_root.myGame.level_mc.luggageMan_mc._visible = false;
}
_parent.gotoAndStop(1);
};
Symbol 876 MovieClip Frame 65
trace("Game Over");
_root.myGame.gotoAndStop("gameOver");
_parent._parent._parent._parent._parent.gameOvr1 = true;
Symbol 876 MovieClip Frame 80
stop();
Symbol 879 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_parent._parent._parent.orderCount == 2) {
gotoAndStop (2);
} else if (_currentframe != 1) {
gotoAndStop (1);
}
};
Symbol 881 MovieClip Frame 1
this.onPress = function () {
_parent._parent.orderCount++;
_root.luggage++;
_root.score = _root.score + 10;
_parent._visible = false;
if (_root.luggage >= 3) {
if (_parent._parent._parent._parent._parent._parent.gameOvr1 == false) {
_root.meterCount++;
var _local3 = _parent._parent._parent._parent._parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent._parent._parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local3 + 5);
}
_parent._parent._parent._parent._parent._parent.babyCry = true;
_parent._parent._parent._parent._parent._parent.careTaker_mc.gotoAndPlay(2);
_parent._parent._parent._parent._parent._parent.begger_mc.gotoAndStop(2);
_parent._parent._parent.gotoAndStop(1);
_parent._parent.bag1_mc._visible = true;
_parent._parent.bag2_mc._visible = true;
_parent._parent.bag3_mc._visible = true;
_parent._parent._parent._parent._parent._parent.stopBag_mc.gotoAndStop(2);
_root.myGame.level_mc.luggageMan_mc._visible = false;
}
_parent.gotoAndStop(1);
};
Symbol 882 MovieClip Frame 61
trace("Game Over");
_root.myGame.gotoAndStop("gameOver");
_parent._parent._parent._parent._parent.gameOvr1 = true;
Symbol 882 MovieClip Frame 80
stop();
Symbol 883 MovieClip Frame 1
var orderCount = 0;
Symbol 892 MovieClip Frame 1
onEnterFrame = function () {
if (_parent._parent._parent.stopBag_mc._currentframe == 1) {
luggage_mc.bag1._visible = true;
} else {
luggage_mc.bag1._visible = false;
}
};
Symbol 892 MovieClip Frame 23
stop();
Symbol 894 MovieClip Frame 4
stop();
Symbol 895 MovieClip Frame 1
stop();
Symbol 895 MovieClip Frame 6
stop();
Symbol 896 MovieClip Frame 1
stop();
Symbol 896 MovieClip Frame 2
stop();
this.onRelease = function () {
if (_parent.blindMan_mc._currentframe != 1) {
this._x = _parent.blindMan_mc.inBlind_mc._x;
this._y = _parent.blindMan_mc.inBlind_mc._y + 50;
_root.meterCount++;
if (_root.meterCount >= 3) {
gotoAndPlay (3);
} else {
_root.myGame.gotoAndStop("gameOver");
}
}
};
Symbol 896 MovieClip Frame 30
_root.bonus = _root.level * 1000;
_root.score = _root.score + ((_root.bonus + (_root.time * 100)) + (_root.meterCount * 100));
_root.myGame.gotoAndStop("levelComplete");
Symbol 975 MovieClip Frame 10
stop();
var maxTime1 = 360;
var intialTime = 0;
onEnterFrame = function () {
if (intialTime <= maxTime1) {
intialTime++;
secnd = Math.round(intialTime / 24);
} else {
if (_parent._parent.gameOvr == false) {
_root.meterCount++;
var _local3 = _parent._parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local3 + 5);
}
_parent._parent.luggageMan_mc.gotoAndPlay(2);
_parent.gotoAndStop(7);
}
};
Symbol 976 MovieClip Frame 6
stop();
Symbol 976 MovieClip Frame 7
stop();
Symbol 977 MovieClip Frame 1
stop();
Symbol 977 MovieClip Frame 2
_root.digitalWatchN = true;
Symbol 977 MovieClip Frame 49
_root.digitalWatchN = true;
Symbol 977 MovieClip Frame 50
_parent.guys_mc.gotoAndPlay(25);
Symbol 977 MovieClip Frame 51
stop();
Symbol 979 MovieClip Frame 1
var initialTime = 0;
var maxTime = 360;
var maxTime1 = 240;
var secnd = 0;
_parent.babyCry = false;
onEnterFrame = function () {
if (_parent.sweeperMain_mc._currentframe == 6) {
if (initialTime <= maxTime) {
initialTime++;
if (_parent.dustCloud == true) {
var _local3 = 0;
while (_local3 != 1) {
_parent.dustCloud = false;
var _local5 = _parent.attachMovie("inDust", "inDust" + _local3, _parent.getNextHighestDepth());
_local5._x = -180;
_local5._y = 170;
_local3++;
}
}
} else {
_local5.removeMovieClip();
initialTime = 0;
}
} else if (_parent.babyCry == true) {
if (initialTime <= maxTime) {
initialTime++;
if (_parent.cryinWave == true) {
var _local3 = 0;
while (_local3 != 1) {
_parent.cryinWave = false;
var _local4 = _parent.attachMovie("crying", "crying" + _local3, _parent.getNextHighestDepth());
_local4._x = -30;
_local4._y = 165;
_local3++;
}
}
} else {
_local4.removeMovieClip();
_parent.babyCry = false;
if (_parent.gameOvr2 == false) {
_root.meterCount++;
var _local6 = _parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local6 + 5);
}
if (_parent.gameOvr3 == false) {
_root.meterCount++;
var _local6 = _parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local6 + 5);
}
_parent.begger_mc.gotoAndStop(1);
_parent.guys_mc.gotoAndPlay(2);
_parent.careTaker_mc.gotoAndStop(7);
}
}
};
Symbol 980 MovieClip Frame 1
function time() {
if (initialTime <= maxTime) {
initialTime++;
secnd = Math.round(initialTime / 24);
}
}
function placeBag() {
}
var cryinWave = true;
var dustCloud = true;
var musicWave = true;
var babyCry = false;
var a = 0;
var b = 0;
_root.luggage = 0;
_root.movinBag = true;
_root.digitalWatchN = false;
var initialTime = 0;
var maxTime = 480;
var secnd = 0;
var gameOvr = false;
var gameOvr1 = false;
var gameOvr2 = false;
var gameOvr3 = false;
var gameOvr4 = false;
var gameOvr5 = false;
trace(_root.level);
_root.meterCount = 0;
onEnterFrame = function () {
test_mc._x = blindMan_mc.inBlind_mc._x;
test_mc._y = blindMan_mc.inBlind_mc._y + 50;
};
Symbol 1059 MovieClip Frame 1
Symbol 1066 MovieClip Frame 1
Symbol 1067 MovieClip Frame 1
this.onPress = function () {
_parent._parent.dancr1 = false;
};
Symbol 1068 MovieClip Frame 1
stop();
Symbol 1068 MovieClip Frame 2
stop();
var xpos = this._x;
onEnterFrame = function () {
if (_parent.dancin == true) {
if (_parent.secnd <= 19) {
if (_parent.dancr1 == true) {
if (this._x > -110) {
this._x = this._x - 1;
} else {
_parent.gameOvr4 = true;
trace("GameOvr");
}
} else if (this._x <= xpos) {
this._x = this._x + 3.5;
} else {
_parent.dancr1 = true;
}
} else {
_parent.intialTime = 0;
this.useHandCursor = false;
_parent.dancin = false;
gotoAndStop (1);
}
}
};
Symbol 1069 MovieClip Frame 1
this.onPress = function () {
_parent._parent.dancr3 = false;
};
Symbol 1070 MovieClip Frame 1
stop();
Symbol 1070 MovieClip Frame 2
stop();
var xpos = this._x;
onEnterFrame = function () {
if (_parent.dancin == true) {
if (_parent.secnd <= 19) {
if (_parent.dancr3 == true) {
if (this._x > -110) {
this._x = this._x - 1;
} else {
_parent.gameOvr4 = true;
trace("GameOvr");
}
} else if (this._x <= xpos) {
this._x = this._x + 3.5;
} else {
_parent.dancr3 = true;
}
} else {
this.useHandCursor = false;
_parent.dancin = false;
_parent.intialTime = 0;
gotoAndStop (1);
}
}
};
Symbol 1090 MovieClip Frame 1
Symbol 1093 MovieClip Frame 1
this.onPress = function () {
_parent._parent.dancr2 = false;
};
Symbol 1094 MovieClip Frame 1
stop();
Symbol 1094 MovieClip Frame 2
stop();
var xpos = this._x;
onEnterFrame = function () {
if (_parent.dancin == true) {
if (_parent.secnd <= 19) {
if (_parent.dancr2 == true) {
if (this._x > -110) {
this._x = this._x - 1;
} else {
_parent.gameOvr4 = true;
trace("GameOvr");
}
} else if (this._x <= xpos) {
this._x = this._x + 3.5;
} else {
_parent.dancr2 = true;
}
} else {
if (_parent.gameOvr4 == false) {
_root.meterCount++;
var _local4 = _parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local4 + 7);
}
_parent.intialTime = 0;
_parent.dancin = false;
if (_root.meterCount == 4) {
_root.bonus = _root.level * 1000;
_root.score = _root.score + ((_root.bonus + (_root.time * 100)) + (_root.meterCount * 100));
trace("Game Completed");
_root.myGame.gotoAndStop("win");
} else {
_root.myGame.gotoAndStop("gameOver");
}
gotoAndStop (1);
}
}
};
Symbol 1107 MovieClip Frame 1
onEnterFrame = function () {
if (_parent.event1 == false) {
if (_parent.smokeApr == true) {
var _local4 = 0;
while (_local4 != 1) {
_parent.smokeApr = false;
var _local6 = _parent.attachMovie("smoke", "smoke" + _local4, _parent.getNextHighestDepth());
_local6._x = _parent.a + 20;
_local6._y = _parent.b + 10;
_local4++;
}
}
if (_parent.secnd >= 19) {
if (_parent.gameOvr == false) {
_root.meterCount++;
_parent.smokerGuy_mc._visible = false;
var _local8 = _parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local8 + 8);
}
_parent.event1 = true;
_parent.event2 = true;
_parent.smokerGuy_mc._visible = false;
_parent.intialTime = 0;
}
} else if (_parent.event2 == true) {
if (_parent.showGlass == true) {
var _local4 = 0;
while (_local4 != 1) {
_parent.showGlass = false;
var _local5 = _parent.attachMovie("glassFall", "glassFall" + _local4, _parent.getNextHighestDepth());
_local5._x = _parent.x;
_local5._y = _parent.y;
_local4++;
}
}
if (_parent.secnd >= 19) {
if (_parent.gameOvr2 == false) {
_root.meterCount++;
var _local8 = _parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local8 + 8);
}
_parent.event2 = false;
_parent.event3 = true;
_parent.intialTime = 0;
}
} else if (_parent.event3 == true) {
if (_parent.soundWave == true) {
var _local4 = 0;
while (_local4 != 1) {
_parent.soundWave = false;
var _local3 = _parent.attachMovie("soundWaves", "soundWaves" + _local4, _parent.getNextHighestDepth());
_local3._x = _parent.a + 70;
_local3._y = _parent.b + 80;
var _local7 = random(35);
_local3._rotation = _local7;
_local4++;
}
}
if (_parent.secnd >= 19) {
if (_parent.gameOvr3 == false) {
_root.meterCount++;
var _local8 = _parent._parent.hud_mc.loveConnection_mc._currentframe;
_parent._parent.hud_mc.loveConnection_mc.gotoAndStop(_local8 + 8);
}
_parent.intialTime = 0;
_parent.dancin = true;
_parent.dancer1_mc.gotoAndStop(2);
_parent.dancer2_mc.gotoAndStop(2);
_parent.dancer3_mc.gotoAndStop(2);
_parent.event3 = false;
}
}
};
Symbol 1108 MovieClip Frame 1
this._quality = "medium";
var soundWave = true;
var smokeApr = true;
var showGlass = true;
var a = 300;
var b = 0;
var x = -420;
var y = -100;
var dancr1 = true;
var dancr2 = true;
var dancr3 = true;
var dancin = false;
var maxTime1 = 480;
_root.meterCount = 0;
var intialTime = 0;
var secnd = 0;
var secnd2 = 0;
var event1 = false;
var event2 = false;
var event3 = false;
var gameOvr = false;
var gameOvr2 = false;
var gameOvr3 = false;
var gameOvr4 = false;
onEnterFrame = function () {
if (intialTime <= maxTime1) {
intialTime++;
secnd = Math.round(intialTime / 24);
}
};
Symbol 1111 MovieClip Frame 1
Symbol 1111 MovieClip Frame 2
stop();
Symbol 1114 MovieClip Frame 1
_root.level = 1;
Symbol 1124 MovieClip Frame 1
if (_root.level == _root.maxLevels) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
stop();
Symbol 1124 MovieClip Frame 2
stop();
Symbol 1127 MovieClip Frame 1
Symbol 1127 MovieClip Frame 2
stop();
Symbol 1139 MovieClip Frame 1
stop();
next_btn.onRelease = function () {
_root.level++;
_root.myGame.gotoAndStop("select");
};
Symbol 1140 MovieClip Frame 1
stop();
if (_root.level != 1) {
gotoAndStop ("debug");
}
stop();
Symbol 1140 MovieClip Frame 13
stop();
stopAllSounds();
_root.level = 1;
Instance of Symbol 544 MovieClip "hud_mc" in Symbol 1140 MovieClip Frame 13
onClipEvent (load) {
_root.events = 5;
}
Symbol 1140 MovieClip Frame 19
stop();
stopAllSounds();
_root.level = 2;
var l2Snd = new Sound();
l2Snd.attachSound("lvl2");
l2Snd.start(0, 999);
Instance of Symbol 544 MovieClip "hud_mc" in Symbol 1140 MovieClip Frame 19
onClipEvent (load) {
_root.events = 6;
}
Symbol 1140 MovieClip Frame 26
stop();
stopAllSounds();
_root.level = 3;
Instance of Symbol 544 MovieClip "hud_mc" in Symbol 1140 MovieClip Frame 26
onClipEvent (load) {
_root.events = 4;
}
Symbol 1140 MovieClip Frame 34
stop();
stopAllSounds();
_root.level = 1;
var gameOverframes = 2;
_root._doGameOver(_root.score, "gamecomplete", true, 3000);
Symbol 1140 MovieClip Frame 41
stop();
stopAllSounds();
var showSkip = true;
if (_root.level >= _root.maxLevels) {
showSkip = false;
} else {
showSkip = true;
}
var gameOverframes = 2;
_root._doGameOver(_root.score, "gameover", showSkip, 3000);
Symbol 1140 MovieClip Frame 51
stop();
stopAllSounds();