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();
if (resetlevel) {
_root.gotoAndStop("lblgameintro");
_root.introscreen_mc.gotoAndStop("postscreen");
} else {
_root.game_mc.levelIndicator = _root.game_mc.levelIndicator;
_root.game_mc.GamaTimer = eval ("_root.game_mc.LevelTimer" + _root.game_mc.levelIndicator);
var str = ("level" + _root.game_mc.levelIndicator);
_root.game_mc.prefinalScore = 0;
_root.game_mc.gotoAndPlay(str);
}
}
function g2w_skiplevel() {
_root.__gameover_mc.removeMovieClip();
_root.game_mc.levelIndicator = _root.game_mc.levelIndicator + 1;
_root.game_mc.GamaTimer = eval ("_root.game_mc.LevelTimer" + _root.game_mc.levelIndicator);
var str = ("level" + _root.game_mc.levelIndicator);
_root.game_mc.prefinalScore = 0;
_root.game_mc.gotoAndPlay(str);
}
var obj_game = new Array();
obj_game._host = "g2w";
obj_game._gameName = "the_style_store";
obj_game._gameTitle = "The Style Store";
obj_game._g2wGameId = "1231";
obj_game._partnerGameId = "the_style_store";
obj_game._gstatus = "gameover";
obj_game._googleText = "The Style Store";
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";
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));
};
Frame 6
stop();
Frame 15
stop();
Instance of Symbol 142 MovieClip in Frame 15
onClipEvent (load) {
total = _parent.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _parent.getBytesLoaded();
percent = int((loaded / total) * 100);
this.txt = ("Loaded : " + percent) + "%";
this.bar._width = percent;
if (loaded == total) {
_parent.gotoAndStop("lblgameintro");
}
}
Frame 23
stop();
stopAllSounds();
if (directEntry == true) {
introScreen_mc.gotoAndStop("postScreen");
} else {
stop();
}
Frame 33
stop();
Symbol 1009 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=1231";
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 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 2
stop();
Symbol 41 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 50 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 52 MovieClip Frame 1
invizi_logo.onRelease = function () {
getURL ("http://www.inviziads.com/", "_blank");
};
Symbol 63 Button
on (release) {
trace("CALLING : _root.g2w_playagain()");
_root.g2w_playagain();
}
Symbol 66 Button
on (release) {
trace("CALLING : _root.g2w_skiplevel()");
_root.g2w_skiplevel();
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 84 MovieClip [_g2w_gameover_mc] Frame 1
stop();
_root._validateHost(this);
Symbol 84 MovieClip [_g2w_gameover_mc] Frame 2
stop();
Symbol 84 MovieClip [_g2w_gameover_mc] Frame 11
stop();
Symbol 84 MovieClip [_g2w_gameover_mc] Frame 20
stop();
Symbol 84 MovieClip [_g2w_gameover_mc] Frame 30
stop();
Symbol 84 MovieClip [_g2w_gameover_mc] Frame 41
stop();
Symbol 93 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 93 MovieClip [game_sound_ctrl] Frame 2
stop();
changeVol(100, 5);
Symbol 93 MovieClip [game_sound_ctrl] Frame 3
stop();
changeVol(0, -5);
Symbol 1006 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 131 MovieClip Frame 170
_root.gotoAndStop("lblloader");
Symbol 136 MovieClip Frame 58
stop();
Symbol 178 MovieClip Frame 15
stop();
Symbol 229 MovieClip Frame 38
start_btn.onRelease = function () {
gotoAndStop ("postScreen");
};
instruction_btn.onRelease = function () {
gotoAndStop ("instruction");
};
story_btn.onRelease = function () {
gotoAndStop ("story");
};
stop();
Symbol 229 MovieClip Frame 42
stop();
instructMenu_btn.onRelease = function () {
gotoAndStop ("allHere");
};
instrnext_btn.onRelease = function () {
gotoAndStop ("instruction1");
};
Symbol 229 MovieClip Frame 43
stop();
instructMenu_btn.onRelease = function () {
gotoAndStop ("instruction");
};
instrStart_btn.onRelease = function () {
gotoAndStop ("postScreen");
};
Symbol 229 MovieClip Frame 45
stop();
storyMenu_btn.onRelease = function () {
gotoAndStop ("allhere");
};
storyStart_btn.onRelease = function () {
gotoAndStop ("postScreen");
};
Symbol 229 MovieClip Frame 52
instrnext_btn.onRelease = function () {
gotoAndStop ("postScreen1");
};
Symbol 229 MovieClip Frame 53
stop();
instructMenu_btn.onRelease = function () {
gotoAndStop ("postScreen");
};
instrStart_btn.onRelease = function () {
_parent.gotoAndStop("lblgame");
};
stop();
Symbol 232 MovieClip Frame 1
Symbol 232 MovieClip Frame 2
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 2
play();
Symbol 309 MovieClip Frame 16
stop();
Symbol 309 MovieClip Frame 20
play();
Symbol 309 MovieClip Frame 33
stop();
gotoAndStop (1);
Symbol 311 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 2
play();
Symbol 320 MovieClip Frame 8
gotoAndStop (2);
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
play();
Symbol 323 MovieClip Frame 8
gotoAndStop (2);
Symbol 324 MovieClip Frame 1
Symbol 324 MovieClip Frame 2
play();
Symbol 324 MovieClip Frame 8
gotoAndStop (2);
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
play();
var cycle = 1;
Symbol 325 MovieClip Frame 74
play();
Symbol 325 MovieClip Frame 346
Symbol 325 MovieClip Frame 625
if (cycle < 2) {
cycle++;
gotoAndPlay (74);
} else {
this.unloadMovie();
}
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 2
play();
Symbol 326 MovieClip Frame 8
gotoAndStop (2);
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 2
play();
var cycle = 1;
Symbol 327 MovieClip Frame 74
play();
Symbol 327 MovieClip Frame 346
Symbol 327 MovieClip Frame 625
if (cycle < 2) {
cycle++;
gotoAndPlay (74);
} else {
this.unloadMovie();
}
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 2
stop();
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
play();
Symbol 351 MovieClip Frame 17
gotoAndPlay (2);
Symbol 398 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 2
play();
Symbol 404 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 2
play();
Symbol 404 MovieClip Frame 17
gotoAndStop (2);
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
play();
Symbol 405 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 405 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 405 MovieClip Frame 348
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 405 MovieClip Frame 481
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 405 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 2
play();
Symbol 420 MovieClip Frame 17
gotoAndStop (2);
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
play();
Symbol 423 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 2
play();
Symbol 423 MovieClip Frame 17
gotoAndStop (2);
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 2
play();
var cycle = 0;
Symbol 424 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 424 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 424 MovieClip Frame 346
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 424 MovieClip Frame 479
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 424 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 439 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 2
play();
Symbol 439 MovieClip Frame 17
gotoAndStop (2);
Symbol 442 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 2
play();
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 2
play();
Symbol 444 MovieClip Frame 17
gotoAndStop (2);
Symbol 445 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 2
play();
var cycle = 0;
Symbol 445 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 445 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 445 MovieClip Frame 346
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 445 MovieClip Frame 479
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 445 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 2
play();
Symbol 456 MovieClip Frame 17
gotoAndStop (2);
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 2
play();
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 2
play();
var cycle = 0;
Symbol 463 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 463 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 463 MovieClip Frame 346
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 463 MovieClip Frame 479
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 463 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 2
play();
Symbol 470 MovieClip Frame 17
gotoAndStop (2);
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 2
play();
var cycle = 0;
Symbol 478 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 478 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 478 MovieClip Frame 346
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 478 MovieClip Frame 479
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 478 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 2
play();
Symbol 486 MovieClip Frame 17
gotoAndStop (2);
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 2
play();
var cycle = 0;
Symbol 495 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 495 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 495 MovieClip Frame 346
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 495 MovieClip Frame 479
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 495 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 2
play();
Symbol 502 MovieClip Frame 17
gotoAndStop (2);
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
play();
Symbol 503 MovieClip Frame 17
gotoAndStop (2);
Symbol 505 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 2
play();
Symbol 505 MovieClip Frame 17
gotoAndStop (2);
Symbol 506 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 2
play();
var cycle = 0;
Symbol 506 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 506 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 506 MovieClip Frame 346
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 506 MovieClip Frame 479
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 506 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 521 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 2
play();
Symbol 521 MovieClip Frame 17
gotoAndStop (2);
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 2
play();
Symbol 522 MovieClip Frame 17
gotoAndStop (2);
Symbol 524 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 2
play();
Symbol 524 MovieClip Frame 17
gotoAndStop (2);
Symbol 525 MovieClip Frame 1
stop();
Symbol 525 MovieClip Frame 2
play();
var i = 1;
var cycle = 0;
Symbol 525 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 525 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 525 MovieClip Frame 346
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 525 MovieClip Frame 479
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 525 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 2
play();
Symbol 537 MovieClip Frame 17
gotoAndStop (2);
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 2
play();
Symbol 540 MovieClip Frame 17
gotoAndStop (2);
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 2
play();
Symbol 543 MovieClip Frame 17
gotoAndStop (2);
Symbol 546 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 2
play();
var cycle = 0;
Symbol 546 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 546 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 546 MovieClip Frame 346
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 546 MovieClip Frame 479
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 546 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 552 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 2
play();
Symbol 552 MovieClip Frame 17
gotoAndStop (2);
Symbol 560 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 2
play();
var cycle = 0;
Symbol 560 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 560 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 560 MovieClip Frame 346
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 560 MovieClip Frame 479
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 560 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 566 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 2
play();
Symbol 566 MovieClip Frame 17
gotoAndStop (2);
Symbol 573 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 2
play();
var cycle = 0;
Symbol 573 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 573 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 573 MovieClip Frame 346
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 573 MovieClip Frame 479
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 573 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 582 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 2
play();
Symbol 582 MovieClip Frame 17
gotoAndStop (2);
Symbol 590 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 2
play();
var cycle = 0;
Symbol 590 MovieClip Frame 74
play();
_parent.chkF1(this._name);
Symbol 590 MovieClip Frame 209
_parent.chkF(this._name);
Symbol 590 MovieClip Frame 346
_parent.chkF(this._name);
_parent.swap(this._name);
Symbol 590 MovieClip Frame 479
_parent.chkF(this._name);
_parent.swap1(this._name);
Symbol 590 MovieClip Frame 625
_parent.walkCycle(this._name);
stop();
Symbol 676 MovieClip Frame 14
stop();
Symbol 676 MovieClip Frame 29
stop();
Symbol 676 MovieClip Frame 44
stop();
Symbol 676 MovieClip Frame 59
stop();
Symbol 676 MovieClip Frame 74
stop();
Symbol 676 MovieClip Frame 89
stop();
Symbol 676 MovieClip Frame 104
stop();
Symbol 676 MovieClip Frame 119
stop();
Symbol 676 MovieClip Frame 134
stop();
Symbol 676 MovieClip Frame 149
stop();
Symbol 676 MovieClip Frame 164
stop();
Symbol 676 MovieClip Frame 179
stop();
Symbol 676 MovieClip Frame 194
stop();
Symbol 676 MovieClip Frame 209
stop();
Symbol 676 MovieClip Frame 224
stop();
Symbol 676 MovieClip Frame 239
stop();
Symbol 676 MovieClip Frame 254
stop();
Symbol 676 MovieClip Frame 269
stop();
Symbol 676 MovieClip Frame 284
stop();
Symbol 676 MovieClip Frame 299
stop();
Symbol 676 MovieClip Frame 314
stop();
Symbol 676 MovieClip Frame 329
stop();
Symbol 676 MovieClip Frame 344
stop();
Symbol 676 MovieClip Frame 359
stop();
Symbol 676 MovieClip Frame 374
stop();
Symbol 676 MovieClip Frame 389
stop();
Symbol 676 MovieClip Frame 404
stop();
Symbol 676 MovieClip Frame 419
stop();
Symbol 676 MovieClip Frame 434
stop();
Symbol 676 MovieClip Frame 449
stop();
Symbol 677 MovieClip Frame 1
play();
Symbol 677 MovieClip Frame 74
play();
Symbol 677 MovieClip Frame 346
Symbol 677 MovieClip Frame 625
gotoAndPlay (74);
stop();
Symbol 735 MovieClip Frame 1
stop();
Symbol 735 MovieClip Frame 31
gotoAndStop (1);
Symbol 736 MovieClip Frame 1
stop();
Symbol 736 MovieClip Frame 31
gotoAndStop (1);
Symbol 744 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 100
stop();
Symbol 762 MovieClip Frame 1
stop();
Symbol 762 MovieClip Frame 2
play();
Symbol 762 MovieClip Frame 14
stop();
Symbol 766 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 1
stop();
Symbol 803 MovieClip Frame 1
stop();
Symbol 803 MovieClip Frame 2
play();
Symbol 803 MovieClip Frame 16
stop();
Symbol 803 MovieClip Frame 20
play();
Symbol 803 MovieClip Frame 33
stop();
gotoAndStop (1);
Symbol 840 MovieClip Frame 1
stop();
Symbol 844 MovieClip Frame 1
stop();
Symbol 845 MovieClip Frame 1
stop();
Symbol 846 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 1
stop();
Symbol 848 MovieClip Frame 1
stop();
Symbol 849 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 2
play();
Symbol 852 MovieClip Frame 31
gotoAndStop (1);
Symbol 856 MovieClip Frame 1
stop();
Symbol 856 MovieClip Frame 2
play();
Symbol 856 MovieClip Frame 15
stop();
_parent.arrow_btn.enabled = true;
Symbol 874 MovieClip Frame 1
stop();
Symbol 874 MovieClip Frame 3
trace("IN HERE ");
Symbol 875 MovieClip Frame 1
stop();
Symbol 877 MovieClip Frame 1
Symbol 877 MovieClip Frame 2
stop();
Symbol 879 MovieClip Frame 1
Symbol 879 MovieClip Frame 2
stop();
Symbol 881 MovieClip Frame 1
Symbol 881 MovieClip Frame 2
stop();
Symbol 883 MovieClip Frame 1
Symbol 883 MovieClip Frame 2
stop();
Symbol 912 MovieClip Frame 26
stop();
Symbol 922 MovieClip Frame 15
stop();
Symbol 941 MovieClip Frame 29
Symbol 941 MovieClip Frame 53
playAgain_btn.onRelease = function () {
_parent.resetAll();
_parent.prefinalScore = 0;
_parent.GamaTimer = eval ("_parent.LevelTimer" + _parent.levelIndicator);
_parent.gotoAndStop("level" + _parent.levelIndicator);
};
_root._doGameOver(_parent.prefinalScore, "gameover", false, 3000);
stop();
Symbol 961 MovieClip Frame 1
nextlevel_btn.onRelease = function () {
_parent.levelIndicator = _parent.levelIndicator + 1;
var _local2 = "level" + _parent.levelIndicator;
_parent.finalScore = _parent.finalScore + _parent.prefinalScore;
_parent.prefinalScore = _parent.finalScore;
_parent.gotoAndPlay(_local2);
nextlevel_btn.enabled = false;
};
stop();
Symbol 975 MovieClip Frame 53
stop();
_root.score = _parent.prefinalScore;
_root._doGameOver(_root.score, "gameover", true, 3000);
Symbol 1004 MovieClip Frame 47
playAgain_btn.onRelease = function () {
_parent.gotoAndStop("level1");
};
submit_btn.onRelease = function () {
_parent._parent.directEntry = true;
};
_root._doGameOver(_parent.prefinalScore, "gamecomplete", false, 30);
stop();
Symbol 1005 MovieClip Frame 1
call("once");
call("repeat");
stop();
stopAllSounds();
Symbol 1005 MovieClip Frame 10
call("repeat");
stop();
stopAllSounds();
Symbol 1005 MovieClip Frame 20
call("repeat");
stop();
stopAllSounds();
Symbol 1005 MovieClip Frame 30
call("repeat");
stop();
stopAllSounds();
Symbol 1005 MovieClip Frame 35
var preview = new Array(false, false, false, false, false, false, false, false, false, false, false, false, false);
var charactType = new Array("HELLO", "Slender", "Curvy", "PlusSize", "Slender", "Curvy", "PlusSize", "Slender", "PlusSize", "Slender", "Slender", "PlusSize", "Curvy");
var character = new Array("customer", "cust1_mc", "cust2_mc", "cust3_mc", "cust4_mc", "cust5_mc", "cust6_mc", "cust7_mc", "cust9_mc", "cust8_mc", "cust10_mc", "cust12_mc", "cust11_mc");
var Slender = new Array(0, 4, 3, 1, 2, 1, 0, 0, 4, 3, 1, 2, 0, 0, 0, 4, 3, 0, 2, 0, 0, 0, 4, 3, 0, 2, 1, 0, 0);
var Curvy = new Array(0, 0, 1, 2, 4, 3, 1, 1, 0, 0, 2, 3, 3, 0, 1, 0, 0, 2, 4, 3, 0, 1, 0, 0, 2, 4, 3, 1, 1);
var PlusSize = new Array(0, 0, 0, 0, 2, 0, 3, 4, 0, 0, 0, 2, 0, 3, 4, 0, 0, 0, 2, 0, 3, 4, 0, 0, 0, 2, 1, 3, 4);
var level1 = new Array("level1", "cust2_mc", "cust1_mc", "cust3_mc", "cust4_mc");
var mood1 = new Array("hello", "cas", "eve", "spo", "for");
var level2 = new Array("level2", "cust6_mc", "cust1_mc", "cust2_mc", "cust5_mc", "cust4_mc", "cust3_mc");
var mood2 = new Array("hello", "eve", "spo", "for", "cas", "cas", "eve");
var level3 = new Array("level3", "cust9_mc", "cust7_mc", "cust3_mc", "cust1_mc", "cust4_mc", "cust5_mc", "cust6_mc", "cust2_mc");
var mood3 = new Array("hello", "eve", "spo", "eve", "spo", "cas", "cas", "for", "cas");
var level4 = new Array("level4", "cust2_mc", "cust1_mc", "cust3_mc", "cust4_mc", "cust5_mc", "cust6_mc", "cust7_mc", "cust8_mc", "cust9_mc", "cust10_mc", "cust12_mc", "cust11_mc");
var mood4 = new Array("hello", "cas", "eve", "spo", "for", "eve", "spo", "spo", "cas", "eve", "eve", "cas", "eve");
var prefinalScore = 0;
var finalScore = 0;
var incrementer = 2;
var levelIndicator = 1;
var lowerDepth1 = -16190;
var lowerDepth2 = -16191;
var lowerDepth3 = -16192;
var LevelTimer1 = 90;
var LevelTimer2 = 90;
var LevelTimer3 = 120;
var LevelTimer4 = 120;
var sVal1 = 90;
var sVal2 = 90;
var sVal3 = 120;
var sVal4 = 120;
var GamaTimer = 90;
var Val1 = 20;
var Val2 = 15;
var Val3 = 15;
var Val4 = 10;
var guideLine1 = false;
var guideLine2 = false;
var stopBoolean = false;
_parent.directEntry = false;
trace(levelIndicator);
Symbol 1005 MovieClip Frame 40
function guideLines(i) {
switch (i) {
case 1 :
clickOnCasual_mc.gotoAndStop(2);
break;
case 2 :
clickOnEveBoard_mc.gotoAndStop(2);
break;
case 3 :
clickon1Choice_mc.gotoAndPlay(2);
break;
case 4 :
clickOnGirl2Choice_mc.gotoAndPlay(2);
break;
case 11 :
clickOnCasual_mc.unloadMovie();
break;
case 22 :
clickOnEveBoard_mc.unloadMovie();
break;
case 33 :
clickon1Choice_mc.unloadMovie();
break;
case 44 :
clickOnGirl2Choice_mc.unloadMovie();
break;
case 6 :
h2_mc._visible = false;
h1_mc._visible = true;
h1_mc.text_mc.gotoAndStop(1);
break;
case 66 :
h2_mc._visible = false;
h1_mc._visible = true;
h1_mc.text_mc.m1_mc.unloadMovie();
break;
case 88 :
h2_mc._visible = false;
h1_mc.text_mc.m2_mc.unloadMovie();
break;
case 8 :
h2_mc._visible = false;
h1_mc._visible = true;
h1_mc.text_mc.gotoAndStop(2);
break;
case 7 :
h1_mc._visible = false;
h2_mc._visible = true;
h2_mc.text_mc.gotoAndStop(1);
break;
case 77 :
h1_mc._visible = false;
h2_mc._visible = true;
h2_mc.text_mc.m11_mc.unloadMovie();
break;
case 9 :
h1_mc._visible = false;
h2_mc._visible = true;
h2_mc.text_mc.gotoAndStop(2);
break;
case 999 :
h1_mc._visible = false;
h2_mc.text_mc.m22_mc.unloadMovie();
break;
case 99 :
clickOnCasual_mc.gotoAndStop(1);
clickOnEveBoard_mc.gotoAndStop(1);
clickon1Choice_mc.gotoAndStop(1);
clickOnGirl2Choice_mc.gotoAndStop(1);
girl1_mc.unloadMovie();
break;
case 98 :
clickOnCasual_mc.gotoAndStop(1);
clickOnEveBoard_mc.gotoAndStop(1);
clickon1Choice_mc.gotoAndStop(1);
clickOnGirl2Choice_mc.gotoAndStop(1);
girl2_mc.unloadMovie();
break;
case 109 :
h1_mc.unloadMovie();
break;
case 110 :
h2_mc.unloadMovie();
}
}
function finalScore1() {
var _local1;
_local1 = (finalPoints + (50 * satisfied)) + (10 * timeleft);
prefinalScore = prefinalScore + _local1;
finalPoints = 0;
_local1 = 0;
satisfied = 0;
timeleft = 0;
}
function getIndex1(k) {
var s = eval ("level" + levelIndicator)[k];
i = 1;
while (i < eval ("level" + levelIndicator).length) {
if (character[i] == s) {
return(i);
}
i++;
}
return(99);
}
function setGamaTimer() {
var k = (levelIndicator + 1);
GamaTimer = eval ("LevelTimer" + k);
}
function gameTimer1() {
temp2 = eval ("LevelTimer" + levelIndicator);
Set("LevelTimer" + levelIndicator, --temp2);
removeAllarrows();
GamaTimer = eval ("LevelTimer" + levelIndicator);
if (eval ("LevelTimer" + levelIndicator) == 0) {
clearInterval(workingTimer1);
setGamaTimer();
scoringMechanism();
finalChk();
}
}
function finalChk() {
if (levelIndicator == 1) {
if (satisfied > 2) {
lastTime();
} else {
resetAll();
}
} else if (levelIndicator == 2) {
if (satisfied > 4) {
lastTime();
} else {
resetAll();
}
} else if (levelIndicator == 3) {
if (satisfied > 6) {
lastTime();
} else {
resetAll();
}
} else if (levelIndicator == 4) {
if (satisfied > 8) {
lastTime();
} else {
resetAll();
}
}
}
function lastTime() {
stopBoolean = true;
timeleft = eval ("LevelTimer" + levelIndicator);
setGamaTimer();
finalScore1();
clearInterval(workingTimer);
clearInterval(workingTimer1);
index = 0;
i = 1;
while (i < 13) {
Set("timer" + i, 52);
Set("cycle" + i, 0);
Clicked[i] = 0;
clearInterval(eval ("wTimer" + i));
eval (eval ("level" + levelIndicator)[i]).gotoAndStop(1);
preview[i] = false;
eval (eval ("level" + levelIndicator)[i]).cust_mc.gotoAndStop(1);
eval (eval ("level" + levelIndicator)[i]).timer_mc.gotoAndStop(1);
eval ("dup" + i)._alpha = 0;
shopping[i] = 0;
CArray[i] = 0;
FArray[i] = 0;
EArray[i] = 0;
SArray[i] = 0;
fullSection[i] = 0;
Fanta[i] = 0;
i++;
}
LevelComplete_mc.gotoAndPlay(2);
formal_wear_mc._visible = false;
if (levelIndicator != 4) {
gotoAndStop ("nextLevel");
} else if (levelIndicator == 4) {
gotoAndStop ("youwin");
}
guideLines(99);
guideLines(98);
guideLines(999);
guideLines(110);
guideLines(109);
doesnotFit_mc._visible = false;
}
function chkEmpty(s) {
var _local1 = 0;
i = 0;
while (i < 5) {
if (s[i] == 0) {
_local1 = 1;
break;
}
i++;
}
if (_local1 == 1) {
return(i);
}
_local1 = 99;
return(_local1);
}
function updateAll(e1) {
i = 0;
while (i < 5) {
if (SArray[i] == e1) {
SArray[i] = 0;
j = 1;
break;
}
if (FArray[i] == e1) {
FArray[i] = 0;
j = 1;
break;
}
if (EArray[i] == e1) {
EArray[i] = 0;
j = 1;
break;
}
if (CArray[i] == e1) {
CArray[i] = 0;
j = 1;
break;
}
i++;
}
}
function updateOther(S, F, E, e1) {
var _local1 = 0;
i = 0;
while (i < 5) {
if (S[i] == e1) {
S[i] = 0;
_local1 = 1;
break;
}
if (F[i] == e1) {
F[i] = 0;
_local1 = 1;
break;
}
if (E[i] == e1) {
E[i] = 0;
_local1 = 1;
break;
}
i++;
}
if (f == 1) {
return(true);
}
return(false);
}
function chkForSelf(S, e1) {
i = 0;
while (i < 5) {
if (S[i] == e1) {
S[i] = 0;
j = 1;
break;
}
i++;
}
}
function changePosition(flag) {
guideLines(99);
if ((index == 1) && (levelIndicator == 1)) {
guideLines(11);
guideLines(3);
} else if ((index == 2) && (levelIndicator == 1)) {
guideLines(22);
guideLines(4);
}
removeAllarrows();
eval (eval ("level" + levelIndicator)[index]).cust_mc.Arrow_mc.gotoAndStop(2);
eval (eval ("level" + levelIndicator)[index]).cust_mc.gotoAndStop(1);
eval (eval ("level" + levelIndicator)[index]).tag_mc.gotoAndStop(1);
if (flag == 1) {
chkForSelf(CArray, index);
var k = chkEmpty(CArray);
var bul = updateOther(SArray, FArray, EArray, index);
if (k != 99) {
var z = (CVal[k] + xVal);
var j = (z - 72);
eval (eval ("level" + levelIndicator)[index]).gotoAndStop(z);
eval (eval ("level" + levelIndicator)[index]).tag_mc.gotoAndStop(j);
eval ("dup" + index).gotoAndStop(z);
CArray[k] = index;
fullSection[index] = 1;
} else if (fullSection[index] != 1) {
eval (eval ("level" + levelIndicator)[index]).cust_mc.gotoAndStop(2);
}
}
if (flag == 2) {
chkForSelf(EArray, index);
var k = chkEmpty(EArray);
var bul = updateOther(SArray, FArray, CArray, index);
if (k != 99) {
var z = (EVal[k] + xVal);
var j = (z - 72);
eval (eval ("level" + levelIndicator)[index]).gotoAndStop(z);
eval (eval ("level" + levelIndicator)[index]).tag_mc.gotoAndStop(j);
eval ("dup" + index).gotoAndStop(z);
EArray[k] = index;
fullSection[index] = 1;
} else if (fullSection[index] != 1) {
eval (eval ("level" + levelIndicator)[index]).cust_mc.gotoAndStop(2);
}
}
if (flag == 3) {
chkForSelf(FArray, index);
var k = chkEmpty(FArray);
var bul = updateOther(SArray, CArray, EArray, index);
if (k != 99) {
var z = (FVal[k] + xVal);
var j = (z - 75);
eval (eval ("level" + levelIndicator)[index]).gotoAndStop(z);
eval (eval ("level" + levelIndicator)[index]).tag_mc.gotoAndStop(j);
eval ("dup" + index).gotoAndStop(z);
FArray[k] = index;
fullSection[index] = 1;
} else if (fullSection[index] != 1) {
eval (eval ("level" + levelIndicator)[index]).cust_mc.gotoAndStop(2);
}
}
if (flag == 4) {
chkForSelf(SArray, index);
var k = chkEmpty(SArray);
var bul = updateOther(CArray, FArray, EArray, index);
if (k != 99) {
var z = (SVal[k] + xVal);
var j = (z - 72);
eval (eval ("level" + levelIndicator)[index]).gotoAndStop(z);
eval (eval ("level" + levelIndicator)[index]).tag_mc.gotoAndStop(j);
eval ("dup" + index).gotoAndStop(z);
SArray[k] = index;
fullSection[index] = 1;
} else if (fullSection[index] != 1) {
eval (eval ("level" + levelIndicator)[index]).cust_mc.gotoAndStop(2);
}
}
}
function chkFull(str, k) {
objectSelected_mc.gotoAndPlay(2);
var s1 = "";
if (((eval (str)._currentframe != 2) && (eval ("alreadyin" + index) == 0)) && (clothSelected != 0)) {
Set("alreadyin" + index, 11);
preview[index] = true;
eval (eval ("level" + levelIndicator)[index])._alpha = 0;
eval (eval ("level" + levelIndicator)[index]).tag_mc.stop();
eval (eval ("level" + levelIndicator)[index]).stop();
eval ("dup" + index).stop();
eval (str).gotoAndStop(2);
var z1 = getIndex1(eval ("index" + k));
customerPreview_mc.gotoAndStop(z1 + 1);
preview_mc.gotoAndStop(eval ("latest" + k) + 1);
toDisplayBar(eval ("pointOfCharacter" + k));
}
}
function toDisplayBar(pointOf) {
if (pointOf == 0) {
bar_mc.gotoAndStop("zero");
} else if (pointOf == 1) {
bar_mc.gotoAndStop("one");
} else if (pointOf == 2) {
bar_mc.gotoAndStop("two");
} else if (pointOf == 3) {
bar_mc.gotoAndStop("three");
} else if (pointOf == 4) {
bar_mc.gotoAndStop("four");
}
}
function arrowSupport() {
if ((index == 1) && (levelIndicator == 1)) {
guideLines(109);
} else if ((index == 2) && (levelIndicator == 1)) {
guideLines(110);
}
}
function clearAll(kilo) {
if (kilo == 1) {
Set("alreadyin" + index, 111);
index1 = 0;
latest1 = 0;
trialRoom1_mc.gotoAndStop(1);
pointOfCharacter1 = 0;
help1_mc._visible = false;
} else if (kilo == 2) {
Set("alreadyin" + index, 111);
index2 = 0;
latest2 = 0;
trialRoom2_mc.gotoAndStop(1);
pointOfCharacter2 = 0;
help2_mc._visible = false;
} else if (kilo == 3) {
Set("alreadyin" + index, 111);
index3 = 0;
latest3 = 0;
trialRoom3_mc.gotoAndStop(1);
pointOfCharacter3 = 0;
help3_mc._visible = false;
}
}
function scoringMechanism() {
if (pointOfCharacter < 3) {
finalPoints = finalPoints + (pointOfCharacter * 25);
smiley_mc.gotoAndStop("sadFace");
disatisfied = disatisfied + 1;
wrongCHoice_mc.gotoAndPlay(2);
} else if (pointOfCharacter >= 3) {
finalPoints = finalPoints + (pointOfCharacter * 25);
smiley_mc.gotoAndStop("happy");
satisfied = satisfied + 1;
rightChoice_mc.gotoAndPlay(2);
}
}
function notClicked(i) {
disatisfied = disatisfied + 1;
removeMovieClip(eval ("dup" + i));
smiley_mc.gotoAndStop("sadFace");
wrongCHoice_mc.gotoAndPlay(2);
ifDisatisfiedIsMore();
}
function resetAll() {
stopBoolean = true;
clearInterval(workingTimer);
clearInterval(workingTimer1);
Set("LevelTimer" + levelIndicator, eval ("sVal" + levelIndicator));
index = 99;
index1 = 99;
latest1 = 99;
index2 = 999;
latest2 = 99;
index3 = 999;
latest3 = 99;
clothSelected = 999;
i = 1;
while (i < 13) {
eval (eval ("level" + levelIndicator)[i]).gotoAndStop(1);
eval (eval ("level" + levelIndicator)[i]).cust_mc.gotoAndStop(1);
eval (eval ("level" + levelIndicator)[i]).timer_mc.gotoAndStop(1);
eval (eval ("level" + levelIndicator)[i]).cust_mc.Arrow_mc.gotoAndStop(1);
Set("timer" + i, 52);
Set("cycle" + i, 0);
Clicked[i] = 0;
clearInterval(eval ("wTimer" + i));
removeMovieClip(eval ("dup" + i));
clearInterval(eval ("timer" + i));
preview[i] = false;
shopping[i] = 0;
CArray[i] = 0;
FArray[i] = 0;
EArray[i] = 0;
SArray[i] = 0;
fullSection[i] = 0;
Fanta[i] = 0;
i++;
}
finalScore1();
if (levelIndicator == 4) {
gotoAndStop ("gameOver");
} else {
gotoAndStop ("levelOver");
}
guideLines(99);
guideLines(98);
guideLines(999);
guideLines(110);
guideLines(109);
doesnotFit_mc._visible = false;
}
function calculation() {
if (((levelIndicator != 4) && (disatisfied > 2)) || ((levelIndicator == 4) && (disatisfied > 3))) {
clearInterval(workingTimer);
clearInterval(workingTimer1);
levelLoose_mc.gotoAndPlay(2);
resetAll();
}
finalScore1();
}
function startAgain(h) {
Set("timer" + h, setInterval(playerTimer));
}
function chkFitNOFit() {
var _local1 = getIndex1(index);
var _local2 = charactType[_local1];
if (typeSelected == _local2) {
fit = 1;
} else {
fit = -1;
}
}
function chk123() {
chkFitNOFit();
if (fit == -1) {
doesnotFit_mc._visible = true;
doesnotFit_mc.swapDepths(preview_mc.getDepth() + 1);
doesnotFit_mc.gotoAndPlay(2);
}
}
function whichRoomChk2() {
chkFitNOFit();
if (fit == -1) {
doesnotFit_mc._visible = true;
doesnotFit_mc.swapDepths(preview_mc.getDepth() + 1);
doesnotFit_mc.gotoAndPlay(2);
}
var gh = eval ("latest" + whichRoom);
typeSelected = colthesType[gh];
eval (("help" + whichRoom) + "_mc")._visible = true;
eval (("help" + whichRoom) + "_mc").gotoAndPlay(2);
global = 90;
counter_btn.enabled = true;
index = eval ("index" + whichRoom);
pointOfCharacter = eval ("pointOfCharacter" + whichRoom);
preview_mc.gotoAndStop(eval ("latest" + whichRoom) + 1);
var z1 = getIndex1(eval ("index" + whichRoom));
customerPreview_mc.gotoAndStop(z1 + 1);
toDisplayBar(eval ("pointOfCharacter" + whichRoom));
if (pointOfCharacter >= 3) {
eval (("counterLbl" + whichRoom) + "_mc").gotoAndPlay(2);
previewSmiley_mc.gotoAndPlay("happy");
} else {
previewSmiley_mc.gotoAndPlay("sadFace");
}
}
function wrongSequence() {
if ((index == 1) && (levelIndicator == 1)) {
guideLines(109);
} else if ((index == 2) && (levelIndicator == 1)) {
guideLines(110);
}
}
function guideFunction1() {
if ((index == 1) && (levelIndicator == 1)) {
guideLines(99);
guideLines(66);
guideLines(8);
} else if ((index == 2) && (levelIndicator == 1)) {
guideLines(98);
guideLines(77);
guideLines(9);
} else {
wrongSequence();
}
}
function guideFunction() {
if (((index == 1) && (levelIndicator == 1)) && (guideFlag1 == 1)) {
guideFlag1 = 2;
guideLines(99);
guideLines(33);
guideLines(6);
} else if (((index == 2) && (levelIndicator == 1)) && (guideFlag2 == 1)) {
guideFlag2 = 2;
guideLines(98);
guideLines(44);
guideLines(7);
}
}
function myLevel() {
if ((levelIndicator == 1) && (satisfied >= 2)) {
clearInterval(workingTimer1);
timeleft = eval ("LevelTimer" + levelIndicator);
} else if ((levelIndicator == 2) && (satisfied >= 4)) {
clearInterval(workingTimer1);
timeleft = eval ("LevelTimer" + levelIndicator);
} else if ((levelIndicator == 3) && (satisfied >= 6)) {
clearInterval(workingTimer1);
timeleft = eval ("LevelTimer" + levelIndicator);
}
}
function ifDisatisfiedIsMore() {
if (((levelIndicator == 1) && (satisfied == 2)) && (disatisfied == 2)) {
resetAll();
}
if ((levelIndicator == 1) && (disatisfied >= 3)) {
resetAll();
} else if ((levelIndicator == 2) && (disatisfied >= 3)) {
resetAll();
} else if ((levelIndicator == 3) && (disatisfied >= 3)) {
resetAll();
} else if ((levelIndicator == 4) && (disatisfied >= 4)) {
resetAll();
}
}
function giveCall() {
if (levelIndicator == 1) {
if ((incrementer < level1.length) && (disatisfied <= 3)) {
startMoving(level1[incrementer], incrementer);
incrementer++;
} else {
clearInterval(workingTimer);
}
} else if ((levelIndicator == 2) && (disatisfied <= 3)) {
if (incrementer < level2.length) {
startMoving(level2[incrementer], incrementer);
incrementer++;
} else {
clearInterval(workingTimer);
}
} else if (levelIndicator == 3) {
if ((incrementer <= level3.length) && (disatisfied <= 3)) {
startMoving(level3[incrementer], incrementer);
incrementer++;
} else {
clearInterval(workingTimer);
}
} else if (levelIndicator == 4) {
if ((incrementer <= level4.length) && (disatisfied <= 4)) {
startMoving(level4[incrementer], incrementer);
incrementer++;
} else {
clearInterval(workingTimer);
}
}
}
function gameTimer() {
Localtemp = eval ("GameTimer" + levelIndicator);
Set("GameTimer" + levelIndicator, --Localtemp);
if (incrementer == eval ("level" + levelIndicator).length) {
incrementer = 99;
}
if (eval ("GameTimer" + levelIndicator) == 0) {
Set("GameTimer" + levelIndicator, eval ("Val" + levelIndicator));
giveCall();
}
}
function getType() {
var temp = eval ("level" + levelIndicator)[index];
i = 1;
while (i <= character.length) {
if (character[i] == temp) {
break;
}
i++;
}
type = i;
}
function getIndex(s) {
i = 1;
while (i < eval ("level" + levelIndicator).length) {
if (eval ("level" + levelIndicator)[i] == s) {
return(i);
}
i++;
}
return(99);
}
function walkCycle(s) {
var i = getIndex(s);
if (((eval ("cycle" + i) < 1) && (Clicked[i] == 0)) || ((Clicked[i] == 1) && (eval ("timer" + i) != 0))) {
trace(" TIMER " + eval ("timer" + i));
temp1 = eval ("cycle" + i);
temp1++;
Set("cycle" + i, temp1);
eval (s).gotoAndPlay(74);
} else {
if ((i == 1) && (levelIndicator == 1)) {
girl1_mc.unloadMovie();
guideLine1 = true;
guideLines(99);
guideLines(109);
clickOnGirl1_mc.unloadMovie();
}
if ((i == 2) && (levelIndicator == 1)) {
girl2_mc.unloadMovie();
guideLines(98);
guideLines(110);
guideLine2 = true;
clickOnGirl2_mc.unloadMovie();
}
if (shopping[i] == 0) {
disatisfied = disatisfied + 1;
smiley_mc.gotoAndStop("sadFace");
wrongCHoice_mc.gotoAndPlay(2);
eval (s).unloadMovie();
eval ("dup" + i).unloadMovie();
if ((i == 1) && (levelIndicator == 1)) {
guideLines(99);
guideLines(109);
} else if ((i == 2) && (levelIndicator == 1)) {
guideLines(98);
guideLines(110);
}
ifDisatisfiedIsMore();
}
}
}
function DisplayGuide() {
if (displayBoolean == true) {
if (i == 1) {
if ((index != 1) && (guide1 == true)) {
clickOnGirl1_mc.girl1Click_mc.gotoAndPlay(2);
} else {
clickOnGirl1_mc.girl1Click_mc.gotoAndPlay(1);
}
} else if (i == 2) {
clickOnClothes_mc.gotoAndPlay(2);
clickOnClothes_mc._visible = true;
} else if (i == 3) {
clickOnDoor_mc.gotoAndPlay(2);
clickOnDoor_mc._visible = true;
} else if (i == 4) {
clickOnCounter_mc.gotoAndPlay(2);
clickOnCounter_mc._visible = true;
}
}
}
function removeAllarrows() {
i = 0;
while (i < character.length) {
if (i != index) {
eval (eval ("level" + levelIndicator)[i]).cust_mc.Arrow_mc.gotoAndStop(1);
eval (eval ("level" + levelIndicator)[i]).cust_mc.Arrow_mc._visible = false;
}
i++;
}
eval (eval ("level" + levelIndicator)[index]).cust_mc.Arrow_mc.gotoAndStop(2);
eval (eval ("level" + levelIndicator)[index]).cust_mc.Arrow_mc._visible = true;
}
function select(s) {
DisplayGuide(99);
var i = getIndex(s);
if (Clicked[i] != 1) {
eval (s).onRelease = function () {
CustomerSelected_mc.gotoAndPlay(2);
LocalclickedArray[LocalclickedArrayIndex] = i;
LocalclickedArrayIndex++;
if (Clicked[i] != 1) {
index = i;
if ((index == 1) && (levelIndicator == 1)) {
guideLines(99);
guideLines(1);
} else if ((index == 2) && (levelIndicator == 1)) {
guideLines(98);
guideLines(2);
}
removeAllarrows();
eval (s).cust_mc.Arrow_mc.gotoAndStop(2);
eval (s).cust_mc.Arrow_mc._visible = true;
refreshTimer(i);
Clicked[i] = 1;
cornerPreview_mc.gotoAndStop(1);
pointOfCharacter = 0;
clothSelected = 999;
} else {
index = i;
removeAllarrows();
eval (s).cust_mc.Arrow_mc.gotoAndStop(2);
eval (s).cust_mc.Arrow_mc._visible = true;
}
};
} else {
removeAllarrows();
eval (s).cust_mc.Arrow_mc.gotoAndStop(2);
}
if (Fanta[i] == 0) {
Set("wTimer" + i, setInterval(setTimer, 1000, i));
Fanta[i] = 1;
}
}
function refreshTimer(i) {
Set("timer" + i, 26);
eval (eval ("level" + levelIndicator)[i]).timer_mc.gotoAndStop(1);
}
function setTimer(i) {
if (preview[i] == false) {
temp45 = eval ("timer" + i);
temp45--;
var gh = 0;
if (Clicked[i] == 1) {
gh = 4;
} else {
gh = 2;
}
eval (eval ("level" + levelIndicator)[i]).timer_mc.gotoAndStop(eval (eval ("level" + levelIndicator)[i]).timer_mc._currentframe + gh);
Set("timer" + i, temp45);
if (eval ("timer" + i) == 0) {
if (shopping[i] == 0) {
disatisfied = disatisfied + 1;
wrongCHoice_mc.gotoAndPlay(2);
ifDisatisfiedIsMore();
clearInterval(eval ("wTimer" + i));
goneWidTime = i;
updateAll(i);
Set("timer" + i, 52);
if ((i == 1) && (levelIndicator == 1)) {
girl1_mc.unloadMovie();
guideLine1 = true;
guideLines(99);
guideLines(109);
clickOnGirl1_mc.unloadMovie();
}
if ((i == 2) && (levelIndicator == 1)) {
girl2_mc.unloadMovie();
guideLines(98);
guideLines(110);
guideLine2 = true;
clickOnGirl2_mc.unloadMovie();
}
eval ("dup" + i).unloadMovie();
eval (eval ("level" + levelIndicator)[i]).unloadMovie();
if (((incrementer == eval ("level" + levelIndicator).length) || (incrementer == 99)) && (customerServed == (eval ("level" + levelIndicator).length - 1))) {
finalChk();
}
if (index == i) {
index = 99;
}
}
}
}
}
function chkF1(s) {
DisplayGuide(1);
eval (s).cust_mc.gotoAndPlay(2);
eval (s).tag_mc.gotoAndPlay(2);
eval (s).tag_mc._alpha = 0;
customerRollOver(s);
select(s);
}
function customerRollOver(s) {
eval (s).onRollOver = function () {
eval (s).tag_mc._alpha = 100;
};
eval (s).onRollOut = function () {
eval (s).tag_mc._alpha = 0;
};
}
function chkF(s) {
DisplayGuide(1);
eval (s).cust_mc.gotoAndPlay(2);
eval (s).tag_mc.play();
eval (s).tag_mc._alpha = 0;
customerRollOver();
select(s);
}
function startMoving(b, i) {
var l1 = 0;
var l2 = "";
eval (eval ("level" + levelIndicator)[i]).gotoAndPlay(2);
POC = 4;
l1 = levelIndicator;
l2 = (("level" + l1) + "_") + b;
if (levelIndicator == 1) {
displayBoolean = true;
if (i == 1) {
girl1_mc.gotoAndPlay(2);
} else if (i == 2) {
girl2_mc.gotoAndPlay(2);
}
}
popUpContainer_mc.duplicateMovieClip("dup" + i, i);
eval ("dup" + i).popUpChat_mc.gotoAndPlay(l2);
eval ("dup" + i)._alpha = 100;
eval ("dup" + i).gotoAndPlay("startMoving");
}
function pointOf(l) {
getType();
DisplayGuide(4);
if (charactType[type] == "Slender") {
slenderChk(l);
} else if (charactType[type] == "PlusSize") {
PlusSizeChk(l);
} else if (charactType[type] == "Curvy") {
CurvyChk(l);
}
pointOfCharacter = current;
}
function displayClothes(l) {
if (index != 99) {
setDoorGuide();
seq1 = true;
objectSelected_mc.gotoAndPlay(2);
clothSelected = l;
typeSelected = colthesType[l];
cornerPreview_mc.gotoAndStop(l + 1);
guideFunction();
}
}
function slenderChk(l) {
if (eval ("mood" + levelIndicator)[index] == "cas") {
if ((l >= 1) && (l <= 7)) {
current = Slender[l];
} else {
current = 0;
}
} else if (eval ("mood" + levelIndicator)[index] == "for") {
if ((l >= 15) && (l <= 21)) {
current = Slender[l];
} else {
current = 0;
}
} else if (eval ("mood" + levelIndicator)[index] == "spo") {
if ((l >= 22) && (l <= 28)) {
current = Slender[l];
} else {
current = 0;
}
} else if (eval ("mood" + levelIndicator)[index] == "eve") {
if ((l >= 8) && (l <= 14)) {
current = Slender[l];
} else {
current = 0;
}
}
}
function CurvyChk(l) {
if (eval ("mood" + levelIndicator)[index] == "cas") {
if ((l >= 1) && (l <= 7)) {
current = Curvy[l];
} else {
current = 0;
}
} else if (eval ("mood" + levelIndicator)[index] == "for") {
if ((l >= 15) && (l <= 21)) {
current = Curvy[l];
} else {
current = 0;
}
} else if (eval ("mood" + levelIndicator)[index] == "spo") {
if ((l >= 22) && (l <= 28)) {
current = Curvy[l];
} else {
current = 0;
}
} else if (eval ("mood" + levelIndicator)[index] == "eve") {
if ((l >= 8) && (l <= 14)) {
current = Curvy[l];
} else {
current = 0;
}
}
}
function PlusSizeChk(l) {
if (eval ("mood" + levelIndicator)[index] == "cas") {
if ((l >= 1) && (l <= 7)) {
current = PlusSize[l];
} else {
current = 0;
}
} else if (eval ("mood" + levelIndicator)[index] == "for") {
if ((l >= 15) && (l <= 21)) {
current = PlusSize[l];
} else {
current = 0;
}
} else if (eval ("mood" + levelIndicator)[index] == "spo") {
if ((l >= 22) && (l <= 28)) {
current = PlusSize[l];
} else {
current = 0;
}
} else if (eval ("mood" + levelIndicator)[index] == "eve") {
if ((l >= 8) && (l <= 14)) {
current = PlusSize[l];
} else {
current = 0;
}
}
}
var incrementer = 2;
var displayBoolean = false;
var customerServed = 1;
var typeSelected = "";
var guide2 = false;
var guide1 = false;
var show1 = false;
var show2 = false;
var doneGuide = false;
var guideFlag2 = 1;
var guideFlag1 = 1;
h1_mc._visible = false;
h2_mc._visible = false;
var fit = 0;
i = 1;
while (i < eval ("level" + levelIndicator).length) {
Set("timer" + i, 52);
Set("wTimer" + i, 0);
Set("cycle" + i, 0);
i++;
}
help1_mc._visible = false;
help3_mc._visible = false;
help2_mc._visible = false;
var current = 0;
formal_wear_mc._visible = true;
var Clicked = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var Fanta = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var mood1 = new Array("hello", "cas", "eve", "spo", "for");
var mood2 = new Array("hello", "eve", "spo", "for", "cas", "cas", "eve");
var mood3 = new Array("hello", "eve", "spo", "eve", "spo", "cas", "cas", "for", "cas");
var mood4 = new Array("hello", "cas", "spo", "eve", "cas", "cas", "for", "spo", "cas", "eve", "eve", "spo", "for");
var a1 = new Array(0, 0, 0, 0);
var b = new Array(1, 0, 0, 0);
popUpContainer_mc._alpha = 0;
var temp45 = 0;
var CArray = new Array(0, 0, 0, 0, 0);
var CVal = new Array(158, 141, 124, 107, 90);
var SArray = new Array(0, 0, 0, 0, 0);
var SVal = new Array(622, 608, 591, 574, 557);
var FArray = new Array(0, 0, 0, 0, 0);
var FVal = new Array(478, 462, 444, 426, 408);
var EArray = new Array(0, 0, 0, 0, 0);
var EVal = new Array(280, 268, 256, 244, 232);
var val = 1;
var insidef1 = 0;
var seq1 = false;
arrow_btn.enabled = false;
var goneWidTime = 0;
var global = 0;
var timeleft = 0;
var trialClicked = false;
counter_btn.enabled = false;
var base;
var index = 99;
var flag = 0;
var disatisfied = 0;
var satisfied = 0;
var shopping = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var pointOfCharacter = 0;
var clothSelected = 0;
var room1 = "";
var room2 = "";
var room3 = "";
var depth1 = 0;
var depth2 = 0;
var depth3 = 0;
var temp2 = 0;
var latest1 = 0;
var latest2 = 0;
var latest3 = 0;
var alreadyin1 = 0;
var alreadyin2 = 0;
var alreadyin3 = 0;
var alreadyin4 = 0;
var alreadyin5 = 0;
var alreadyin6 = 0;
var alreadyin7 = 0;
var alreadyin8 = 0;
var alreadyin9 = 0;
var alreadyin10 = 0;
var alreadyin11 = 0;
var alreadyin12 = 0;
var pointOfCharacter1 = 0;
var pointOfCharacter2 = 0;
var pointOfCharacter3 = 0;
var POC = 0;
var finalPoints = 0;
var fullSection = new Array(99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var seq = 0;
var xVal = 0;
_parent.createEmptyMovieClip("e1", _parent.getNextHighestDepth());
var GameTimer1 = 20;
var GameTimer2 = 15;
var GameTimer3 = 15;
var GameTimer4 = 10;
var Localtemp = 0;
var workingTimer = setInterval(gameTimer, 1000);
var workingTimer1 = setInterval(gameTimer1, 1000);
casual_btn.onRelease = function () {
changePosition(1);
};
eveng_btn.onRelease = function () {
changePosition(2);
};
sportz_btn.onRelease = function () {
changePosition(4);
};
formal_btn.onRelease = function () {
changePosition(3);
};
arrow1_btn.onRelease = function () {
if (trialRoom1_mc._currentframe == 2) {
doesnotFit_mc._visible = false;
removeGuides();
arrowSupport();
help1_mc._visible = true;
help1_mc.gotoAndPlay(2);
global = 90;
counter_btn.enabled = true;
index = index1;
pointOfCharacter = pointOfCharacter1;
preview_mc.gotoAndStop(latest1 + 1);
var _local1 = getIndex1(index1);
customerPreview_mc.gotoAndStop(_local1 + 1);
toDisplayBar(pointOfCharacter1);
var _local2 = latest1;
typeSelected = colthesType[_local2];
chkFitNOFit();
if (fit == -1) {
doesnotFit_mc._visible = true;
doesnotFit_mc.gotoAndPlay(2);
}
if (pointOfCharacter >= 3) {
counterLbl1_mc.gotoAndPlay(2);
previewSmiley_mc.gotoAndPlay("happy");
} else {
previewSmiley_mc.gotoAndPlay("sadFace");
}
whichRoom = 1;
} else {
higlight_mc.gotoAndStop(2);
}
};
arrow2_btn.onRelease = function () {
if (trialRoom2_mc._currentframe == 2) {
doesnotFit_mc._visible = false;
removeGuides();
arrowSupport();
help2_mc._visible = true;
help2_mc.gotoAndPlay(2);
global = 90;
counter_btn.enabled = true;
index = index2;
pointOfCharacter = pointOfCharacter2;
preview_mc.gotoAndStop(latest2 + 1);
var _local1 = getIndex1(index2);
customerPreview_mc.gotoAndStop(_local1 + 1);
toDisplayBar(pointOfCharacter2);
var _local2 = latest2;
typeSelected = colthesType[_local2];
chkFitNOFit();
if (fit == -1) {
doesnotFit_mc._visible = true;
doesnotFit_mc.gotoAndPlay(2);
}
if (pointOfCharacter >= 3) {
counterLbl2_mc.gotoAndPlay(2);
previewSmiley_mc.gotoAndPlay("happy");
} else {
previewSmiley_mc.gotoAndPlay("sadFace");
}
whichRoom = 2;
} else {
higlight_mc.gotoAndStop(2);
}
};
arrow3_btn.onRelease = function () {
if (trialRoom3_mc._currentframe == 2) {
doesnotFit_mc._visible = false;
removeGuides();
arrowSupport();
help3_mc._visible = true;
help3_mc.gotoAndPlay(2);
global = 90;
counter_btn.enabled = true;
index = index3;
pointOfCharacter = pointOfCharacter3;
preview_mc.gotoAndStop(latest3 + 1);
var _local1 = getIndex1(index3);
customerPreview_mc.gotoAndStop(_local1 + 1);
toDisplayBar(pointOfCharacter3);
var _local2 = latest3;
typeSelected = colthesType[_local2];
chkFitNOFit();
if (fit == -1) {
doesnotFit_mc.swapDepths(preview_mc.getDepth() + 1);
doesnotFit_mc._visible = true;
doesnotFit_mc.gotoAndPlay(2);
}
if (pointOfCharacter >= 3) {
counterLbl3_mc.gotoAndPlay(2);
previewSmiley_mc.gotoAndPlay("happy");
} else {
previewSmiley_mc.gotoAndPlay("sadFace");
}
whichRoom = 3;
} else {
higlight_mc.gotoAndStop(2);
}
};
counter_btn.onRelease = function () {
if (global != 0) {
if (Clicked[index] != 0) {
eval (eval ("level" + levelIndicator)[index]).cust_mc.stop();
eval (eval ("level" + levelIndicator)[index])._x = 0;
eval (eval ("level" + levelIndicator)[index])._y = 0;
eval (eval ("level" + levelIndicator)[index]).unloadMovie();
if ((index == 1) && (levelIndicator == 1)) {
guideLines(99);
guideLines(109);
}
if ((index == 2) && (levelIndicator == 1)) {
guideLines(98);
guideLines(999);
guideLines(110);
}
preview[index] = true;
doesnotFit_mc._visible = false;
index = 99;
customerServed++;
preview_mc.gotoAndStop(1);
customerPreview_mc.gotoAndStop(1);
eval (("clickOnTrialBoard" + whichRoom) + "_mc").gotoAndStop(1);
clearAll(whichRoom);
clearInterval(eval ("timer" + goneWidTime));
shopping[index] = 143;
a1[whichRoom] = 0;
var n = ((satisfied + disatisfied) + 1);
var n1 = eval ("level" + levelIndicator).length;
bar_mc.gotoAndStop(1);
scoringMechanism();
ifDisatisfiedIsMore();
if (((levelIndicator != 4) && (disatisfied > 2)) || ((levelIndicator == 4) && (disatisfied > 3))) {
resetAll();
} else if (n == (n1 - 1)) {
myLevel();
lastTime();
}
}
global = 0;
}
};
door1_btn.onRelease = function () {
var t1 = 0;
if ((((eval ("alreadyin" + index) == 0) && (clothSelected != 999)) && ((index != 99) || (index != undefined))) && (trialRoom1_mc._currentframe == 1)) {
b[1] = index;
a1[1] = 1;
index1 = index;
removeAllarrows();
latest1 = clothSelected;
typeSelected = colthesType[latest1];
pointOf(latest1);
whichRoom = 1;
pointOfCharacter1 = pointOfCharacter;
trialRoom1_mc.gotoAndStop(2);
help1_mc.gotoAndPlay(2);
help1_mc._visible = true;
Set("alreadyin" + index1, 11);
preview[index1] = true;
eval (eval ("level" + levelIndicator)[index1]).stop();
eval (eval ("level" + levelIndicator)[index1])._visible = false;
depth1 = eval (eval ("level" + levelIndicator)[index1]).getDepth();
eval (eval ("level" + levelIndicator)[index1]).swapDepths(lowerDepth1);
eval (eval ("level" + levelIndicator)[index1]).enabled = false;
eval ("dup" + index1).stop();
eval ("dup" + index1)._visible = false;
eval (eval ("level" + levelIndicator)[index1]).tag_mc.stop();
eval (eval ("level" + levelIndicator)[index1]).tag_mc._visible = false;
eval (eval ("level" + levelIndicator)[index1]).cust_mc.timer_mc.stop();
eval (eval ("level" + levelIndicator)[index1]).cust_mc.timer_mc._visible = false;
updateAll(index1);
forDoor(1);
if ((a1[2] == 0) && (a1[3] == 0)) {
forBoradDisplay(1);
whichRoomChk2();
guideFunction1();
} else {
doesnotFit_mc._visible = false;
var z1 = getIndex1(index1);
customerPreview_mc.gotoAndStop(z1 + 1);
preview_mc.gotoAndStop(latest1 + 1);
toDisplayBar(pointOfCharacter1);
forBoradDisplay(1);
chk123();
guideFunction1();
}
} else if (trialRoom1_mc._currentframe == 2) {
trialRoom1_mc.gotoAndStop(1);
help1_mc.gotoAndStop(1);
help1_mc._visible = false;
Set("alreadyin" + index1, 0);
preview_mc.gotoAndStop(1);
customerPreview_mc.gotoAndStop(1);
toDisplayBar(0);
counter_btn.enabled = false;
preview[index1] = false;
eval (eval ("level" + levelIndicator)[index1]).gotoAndPlay(eval (eval ("level" + levelIndicator)[index1])._currentframe);
eval (eval ("level" + levelIndicator)[index1]).cust_mc.gotoAndPlay(eval (eval ("level" + levelIndicator)[index1]).cust_mc._currentframe);
eval (eval ("level" + levelIndicator)[index1])._visible = true;
eval (eval ("level" + levelIndicator)[index1]).enabled = true;
eval (eval ("level" + levelIndicator)[index1]).swapDepths(depth1);
eval ("dup" + index1).gotoAndPlay(eval ("dup" + index1)._currentframe);
eval ("dup" + index1)._visible = true;
eval (eval ("level" + levelIndicator)[index1]).tag_mc.gotoAndPlay(eval (eval ("level" + levelIndicator)[index1]).tag_mc._currentframe);
eval (eval ("level" + levelIndicator)[index1]).tag_mc._visible = true;
eval (eval ("level" + levelIndicator)[index1]).cust_mc.timer_mc.gotoAndStop(eval (eval ("level" + levelIndicator)[index1]).timer_mc._currentframe);
eval (eval ("level" + levelIndicator)[index1]).cust_mc.timer_mc._visible = true;
index = index1;
doesnotFit_mc._visible = false;
removeAllarrows();
index1 = 99;
latest1 = 0;
depth1 = 0;
pointOfCharacter1 = undefined;
a1[1] = 0;
wrongSequence();
}
};
door2_btn.onRelease = function () {
var t1 = 0;
if ((((eval ("alreadyin" + index) == 0) && (clothSelected != 999)) && ((index != 99) || (index != undefined))) && (trialRoom2_mc._currentframe == 1)) {
a1[2] = 1;
index2 = index;
removeAllarrows();
latest2 = clothSelected;
typeSelected = colthesType[latest2];
pointOf(latest2);
whichRoom = 2;
pointOfCharacter2 = pointOfCharacter;
trialRoom2_mc.gotoAndStop(2);
help2_mc.gotoAndPlay(2);
help2_mc._visible = true;
Set("alreadyin" + index2, 11);
preview[index2] = true;
eval (eval ("level" + levelIndicator)[index2]).stop();
eval (eval ("level" + levelIndicator)[index2])._visible = false;
eval (eval ("level" + levelIndicator)[index2]).enabled = false;
depth2 = eval (eval ("level" + levelIndicator)[index2]).getDepth();
eval (eval ("level" + levelIndicator)[index2]).swapDepths(lowerDepth2);
eval ("dup" + index2).stop();
eval ("dup" + index2)._visible = false;
eval (eval ("level" + levelIndicator)[index2]).tag_mc.stop();
eval (eval ("level" + levelIndicator)[index2]).tag_mc._visible = false;
eval (eval ("level" + levelIndicator)[index2]).cust_mc.timer_mc.stop();
eval (eval ("level" + levelIndicator)[index2]).cust_mc.timer_mc._visible = false;
updateAll(index2);
forDoor(2);
if ((a1[3] == 0) && (a1[1] == 0)) {
guideFunction1();
forBoradDisplay(2);
whichRoomChk2();
} else {
doesnotFit_mc._visible = false;
var z1 = getIndex1(index2);
customerPreview_mc.gotoAndStop(z1 + 1);
preview_mc.gotoAndStop(latest2 + 1);
toDisplayBar(pointOfCharacter2);
forBoradDisplay(2);
chk123();
guideFunction1();
}
} else if (trialRoom2_mc._currentframe == 2) {
trialRoom2_mc.gotoAndStop(1);
help2_mc.gotoAndStop(1);
help2_mc._visible = false;
Set("alreadyin" + index2, 0);
preview_mc.gotoAndStop(1);
customerPreview_mc.gotoAndStop(1);
toDisplayBar(0);
counter_btn.enabled = false;
preview[index2] = false;
eval (eval ("level" + levelIndicator)[index2]).gotoAndPlay(eval (eval ("level" + levelIndicator)[index2])._currentframe);
eval (eval ("level" + levelIndicator)[index2]).cust_mc.gotoAndPlay(eval (eval ("level" + levelIndicator)[index2]).cust_mc._currentframe);
eval (eval ("level" + levelIndicator)[index2])._visible = true;
eval (eval ("level" + levelIndicator)[index2]).enabled = true;
eval (eval ("level" + levelIndicator)[index2]).swapDepths(depth2);
eval ("dup" + index2).gotoAndPlay(eval ("dup" + index2)._currentframe);
eval ("dup" + index2)._visible = true;
eval (eval ("level" + levelIndicator)[index2]).tag_mc.gotoAndPlay(eval (eval ("level" + levelIndicator)[index2]).tag_mc._currentframe);
eval (eval ("level" + levelIndicator)[index2]).tag_mc._visible = true;
eval (eval ("level" + levelIndicator)[index2]).cust_mc.timer_mc.gotoAndPlay(eval (eval ("level" + levelIndicator)[index2]).timer_mc._currentframe);
eval (eval ("level" + levelIndicator)[index2]).cust_mc.timer_mc._visible = true;
index = index2;
doesnotFit_mc._visible = false;
removeAllarrows();
index2 = 99;
latest2 = 0;
depth2 = 0;
pointOfCharacter2 = undefined;
a1[2] = 0;
wrongSequence();
}
};
door3_btn.onRelease = function () {
var t1 = 0;
if ((((eval ("alreadyin" + index) == 0) && (clothSelected != 999)) && ((index != 99) || (index != undefined))) && (trialRoom3_mc._currentframe == 1)) {
b[3] = index;
a1[3] = 1;
index3 = index;
removeAllarrows();
latest3 = clothSelected;
typeSelected = colthesType[latest3];
pointOf(latest3);
whichRoom = 3;
pointOfCharacter3 = pointOfCharacter;
trialRoom3_mc.gotoAndStop(2);
help3_mc.gotoAndPlay(2);
help3_mc._visible = true;
Set("alreadyin" + index3, 11);
preview[index3] = true;
eval (eval ("level" + levelIndicator)[index3]).stop();
eval (eval ("level" + levelIndicator)[index3])._visible = false;
eval (eval ("level" + levelIndicator)[index3]).enabled = false;
depth3 = eval (eval ("level" + levelIndicator)[index3]).getDepth();
eval (eval ("level" + levelIndicator)[index3]).swapDepths(lowerDepth3);
eval ("dup" + index3).stop();
eval ("dup" + index3)._visible = false;
eval (eval ("level" + levelIndicator)[index3]).tag_mc.stop();
eval (eval ("level" + levelIndicator)[index3]).tag_mc._visible = false;
eval (eval ("level" + levelIndicator)[index3]).cust_mc.timer_mc.stop();
eval (eval ("level" + levelIndicator)[index3]).cust_mc.timer_mc._visible = false;
updateAll(index3);
forDoor(3);
if ((a1[2] == 0) && (a1[1] == 0)) {
guideFunction1();
forBoradDisplay(3);
whichRoomChk2();
} else {
doesnotFit_mc._visible = false;
var z1 = getIndex1(index3);
customerPreview_mc.gotoAndStop(z1 + 1);
preview_mc.gotoAndStop(latest3 + 1);
toDisplayBar(pointOfCharacter3);
forBoradDisplay(3);
chk123();
guideFunction1();
}
} else if (trialRoom3_mc._currentframe == 2) {
trialRoom3_mc.gotoAndStop(1);
help3_mc.gotoAndStop(1);
help3_mc._visible = false;
Set("alreadyin" + index3, 0);
preview_mc.gotoAndStop(1);
customerPreview_mc.gotoAndStop(1);
toDisplayBar(0);
counter_btn.enabled = false;
preview[index3] = false;
eval (eval ("level" + levelIndicator)[index3]).gotoAndPlay(eval (eval ("level" + levelIndicator)[index3])._currentframe);
eval (eval ("level" + levelIndicator)[index3]).cust_mc.gotoAndPlay(eval (eval ("level" + levelIndicator)[index3]).cust_mc._currentframe);
eval (eval ("level" + levelIndicator)[index3])._visible = true;
eval (eval ("level" + levelIndicator)[index3]).enabled = true;
eval (eval ("level" + levelIndicator)[index3]).swapDepths(depth3);
eval ("dup" + index3).gotoAndPlay(eval ("dup" + index3)._currentframe);
eval ("dup" + index3)._visible = true;
eval (eval ("level" + levelIndicator)[index3]).tag_mc.gotoAndPlay(eval (eval ("level" + levelIndicator)[index3]).tag_mc._currentframe);
eval (eval ("level" + levelIndicator)[index3]).tag_mc._visible = true;
eval (eval ("level" + levelIndicator)[index3]).cust_mc.timer_mc.gotoAndPlay(eval (eval ("level" + levelIndicator)[index3]).timer_mc._currentframe);
eval (eval ("level" + levelIndicator)[index3]).cust_mc.timer_mc._visible = true;
index = index3;
doesnotFit_mc._visible = false;
removeAllarrows();
index3 = 99;
latest3 = 0;
depth3 = 0;
pointOfCharacter3 = undefined;
a1[3] = 0;
wrongSequence();
}
};
e1.onEnterFrame = startMoving(eval ("level" + levelIndicator)[1], 1);
if (i == 99) {
if (guide1 == true) {
guide1_mc.gotoAndStop(2);
} else {
guide1_mc.gotoAndStop(1);
}
if (guide2 == true) {
guide2_mc.gotoAndStop(2);
} else {
guide2_mc.gotoAndStop(1);
}
}
var LocalclickedArray = new Array();
var LocalclickedArrayIndex = 0;
this.createEmptyMovieClip("trial_mc", this.getNextHighestDepth());
trial_mc.onEnterFrame = function () {
removeAllarrows();
if ((guide1 == true) && (index != 1)) {
clickOnGirl1_mc.girl1Click_mc.gotoAndStop(2);
} else if ((index == 1) && (guide1 == false)) {
clickOnGirl1_mc.girl1Click_mc.gotoAndStop(1);
}
if ((guide2 == true) && (index != 2)) {
clickOnGirl2_mc.girl2Click_mc.gotoAndStop(2);
} else if ((index == 2) && (guide2 == false)) {
clickOnGirl2_mc.girl2Click_mc.gotoAndStop(1);
}
if (stopBoolean == true) {
delete trial_mc.onEnterFrame;
}
};
var colthesType = new Array("", "Slender", "Slender", "Curvy", "Curvy", "Curvy", "PlusSize", "PlusSize", "Slender", "Slender", "Curvy", "Curvy", "Curvy", "PlusSize", "PlusSize", "Slender", "Slender", "Curvy", "Curvy", "Curvy", "PlusSize", "PlusSize", "Slender", "Slender", "Curvy", "Curvy", "Curvy", "PlusSize", "PlusSize");
m1_btn.onRelease = function () {
displayClothes(1);
};
m2_btn.onRelease = function () {
displayClothes(2);
};
m3_btn.onRelease = function () {
displayClothes(3);
};
m4_btn.onRelease = function () {
displayClothes(4);
};
m5_btn.onRelease = function () {
displayClothes(5);
};
m6_btn.onRelease = function () {
displayClothes(6);
};
m7_btn.onRelease = function () {
displayClothes(7);
};
m8_btn.onRelease = function () {
displayClothes(8);
};
m9_btn.onRelease = function () {
displayClothes(9);
};
m10_btn.onRelease = function () {
displayClothes(10);
};
m11_btn.onRelease = function () {
displayClothes(11);
};
m12_btn.onRelease = function () {
displayClothes(12);
};
m13_btn.onRelease = function () {
displayClothes(13);
};
m14_btn.onRelease = function () {
displayClothes(14);
};
m15_btn.onRelease = function () {
displayClothes(15);
};
m16_btn.onRelease = function () {
displayClothes(16);
};
m17_btn.onRelease = function () {
displayClothes(17);
};
m18_btn.onRelease = function () {
displayClothes(18);
};
m19_btn.onRelease = function () {
displayClothes(19);
};
m20_btn.onRelease = function () {
displayClothes(20);
};
m21_btn.onRelease = function () {
displayClothes(21);
};
m22_btn.onRelease = function () {
displayClothes(22);
};
m23_btn.onRelease = function () {
displayClothes(23);
};
m24_btn.onRelease = function () {
displayClothes(24);
};
m25_btn.onRelease = function () {
displayClothes(25);
};
m26_btn.onRelease = function () {
displayClothes(26);
};
m27_btn.onRelease = function () {
displayClothes(27);
};
m28_btn.onRelease = function () {
displayClothes(28);
};
stop();
Symbol 1005 MovieClip Frame 47
stop();
stopAllSounds();
Symbol 1005 MovieClip Frame 53
stop();
stopAllSounds();
Symbol 1005 MovieClip Frame 56
stop();
stopAllSounds();
Symbol 1005 MovieClip Frame 60
stop();
stopAllSounds();
_root._doGameOver(_root.score, "gamecomplete", true, 3000);