Combined Code
movieClip 1 SubmitterProxy {
#initclip
Object.registerClass('SubmitterProxy', SubmitterProxy);
#endinitclip
}
movieClip 6 {
}
movieClip 8 book2 {
}
movieClip 11 {
}
movieClip 15 {
frame 1 {
stop();
}
frame 150 {
_root['click_' + this.which + '_ani']._visible = true;
this._visible = false;
this.gotoAndStop(1);
}
}
movieClip 16 book {
frame 2 {
stop();
this.timer.play();
}
}
movieClip 17 {
}
movieClip 19 {
}
movieClip 20 {
}
movieClip 22 {
}
movieClip 23 {
}
movieClip 25 {
}
movieClip 26 {
}
movieClip 28 {
}
movieClip 29 {
}
movieClip 31 {
}
movieClip 33 {
}
movieClip 37 {
}
movieClip 39 {
}
movieClip 40 {
}
movieClip 42 {
}
movieClip 43 {
}
movieClip 44 {
}
movieClip 46 {
}
movieClip 48 {
}
movieClip 50 {
}
movieClip 52 {
}
movieClip 55 {
}
movieClip 56 {
}
movieClip 58 {
}
movieClip 60 {
}
movieClip 61 {
}
movieClip 62 {
}
movieClip 64 {
}
movieClip 65 combos_wrapper1 {
}
movieClip 66 {
}
movieClip 67 {
}
movieClip 68 {
}
movieClip 70 {
}
movieClip 71 {
}
movieClip 72 {
}
movieClip 73 {
}
movieClip 74 {
}
movieClip 75 {
}
movieClip 76 {
}
movieClip 78 {
}
movieClip 80 {
}
movieClip 81 {
}
movieClip 82 {
}
movieClip 83 {
}
movieClip 84 {
}
movieClip 87 {
}
movieClip 88 combos_bucket {
}
movieClip 89 {
}
movieClip 90 {
}
movieClip 91 {
}
movieClip 92 {
}
movieClip 93 {
}
movieClip 94 {
}
movieClip 95 {
}
movieClip 97 {
}
movieClip 99 {
}
movieClip 101 {
}
movieClip 103 {
}
movieClip 105 {
}
movieClip 106 combos_wrapper2 {
}
movieClip 107 {
}
movieClip 108 {
}
movieClip 109 {
}
movieClip 110 {
}
movieClip 111 {
}
movieClip 113 {
}
movieClip 115 {
}
movieClip 116 {
}
movieClip 117 {
}
movieClip 118 {
}
movieClip 119 {
}
movieClip 120 {
}
movieClip 121 {
}
movieClip 122 {
}
movieClip 123 {
}
movieClip 124 {
}
movieClip 125 {
}
movieClip 126 {
}
movieClip 127 {
}
movieClip 128 {
}
movieClip 129 {
}
movieClip 131 combos_vase {
}
frame 1 {
stop();
gamename = 'Flower_Shopkeeper2';
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
hostingdomain = real_domain[0];
if (hostingdomain == '') {
hostingdomain = 'unknown';
}
savedomain1 = 'gamedev.dev.spilgames.com';
savedomain2 = 'www8.agame.com';
if (hostingdomain == savedomain1 || hostingdomain == savedomain2) {
spilnetwerk = 'internal';
} else {
spilnetwerk = 'external';
}
_root.localization_url1 = 'http://www.gamesgames.com/?utm_medium=brandedgames_' + spilnetwerk + '&utm_campaign=' + gamename + '&utm_source=' + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 17;
_root.localization_portal = 'family';
if (_root.localization_portal == 'game_com_cn') {
this.mainscreen_moregames.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=button_mainscreen_moregames', '_blank');
};
}
onEnterFrame = function () {
loadprogress = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
_root.lprogress.text = Math.round(loadprogress) + ' %';
trace(loadprogress);
if (loadprogress >= 100) {
delete this.onEnterFrame;
_root.play();
}
};
}
// unknown tag 88 length 68
movieClip 956 __Packages.SubmitterProxy {
#initclip
if (!_global.SubmitterProxy) {
var v1 = function () {
super();
System.security.allowDomain('*');
this.parentObj = this._parent;
mx.events.EventDispatcher.initialize(this);
};
_global.SubmitterProxy = v1;
_global.SubmitterProxy extends MovieClip;
var v2 = v1.prototype;
v2.setLoader = function (_container, _gameName, _htmlName, _order, _scoreType, _locale, _iconData, _pagesize, _pagenr, _bTest, _serverSelect) {
this.bTestModeOn = _bTest;
this.m_scoreType = _scoreType;
this.m_scoreOrder = _order;
this.gameName = _gameName;
if (_htmlName == '') {
this.htmlName = this.gameName;
} else {
this.htmlName = _htmlName;
}
this.locale = _locale;
this.iconData = _iconData;
this.pagesize = _pagesize;
this.pagenr = _pagenr;
this.serverSelect = _serverSelect;
this.requestStackInvalidUser = new Array();
if (_container != null) {
this.userName = _container.username;
this.userHash = _container.hash;
this.gameid = _container.id;
this.siteid = _container.s;
this.channelid = _container.c;
trace('servicesLoc: ' + _container.servicesLoc);
if (_container.servicesLoc != '' && _container.servicesLoc != undefined) {
this.swfURL = _container.servicesLoc;
} else {
var v3 = new Date();
this.swfURL = 'http://www8.agame.com/games/flash/highscore/SubmitterAS2.swf?nocache=' + v3.getYear() * 12 + v3.getMonth() + 1;
}
this.getSwf();
} else {
this.SubmitterFailedToLoad();
}
this._visible = false;
};
v2.getSwf = function () {
var v2 = new Object();
this.delegateOnIoError = mx.utils.Delegate.create(this, this.onLoadDone);
v2.onLoadInit = this.delegateOnIoError;
this.delegateOnLoadDone = mx.utils.Delegate.create(this, this.onIoError);
v2.onLoadError = this.delegateOnLoadDone;
var v4 = new MovieClipLoader();
v4.addListener(v2);
var v3 = this.createEmptyMovieClip('loadedComp', this.getNextHighestDepth());
trace('swfURL:' + this.swfURL);
v4.loadClip(this.swfURL, v3);
v3._x = 10;
v3._y = 10;
};
v2.isSWFReady = function () {
return this.content != null;
};
v2.isDomainAllowed = function (value) {
if (this.content) {
return this.content.isDomainValid(value);
}
return false;
};
v2.hasUserData = function () {
return this.userName != null && this.userHash != null;
};
v2.doCommTest = function () {
if (this.content) {
return this.content.m_get_TEST();
}
return 'Error: Failed to communicatie with: ' + this.content;
};
v2.getScoreServerTime = function () {
if (this.content) {
this.content.m_getLatestScoreServerTime();
}
};
v2.submitScore = function (score) {
trace('submitScore: ' + score);
if (this.content) {
if (!this.hasUserData()) {
this.requestStackInvalidUser.push({'type': 'SUBMIT_SCORE', 'value': score});
}
this.content.m_submitScore(score, this.userName, this.userHash, '', 0);
}
};
v2.requestHighscoreList = function () {
if (this.content) {
this.content.m_submitHighscoreListRequest();
}
};
v2.requestUserHighscoreList = function (target_username) {
if (this.content) {
this.content.m_submitUserHighscoreListRequest(target_username);
}
};
v2.submitGrantAward = function (tag) {
trace('submitGrantAward: ' + tag);
if (this.content) {
if (!this.hasUserData()) {
this.requestStackInvalidUser.push({'type': 'SUBMIT_AWARD', 'value': tag});
}
this.content.m_submitAward(tag, this.userName, this.userHash);
}
};
v2.requestAwardList = function () {
if (this.content) {
if (!this.hasUserData()) {
this.requestStackInvalidUser.push({'type': 'REQUEST_AWARDLIST'});
}
this.content.m_getUserAwardList(this.userName, this.userHash);
}
};
v2.requestAwardInfo = function (awardID) {
if (this.content) {
this.content.m_getAwardInfo(awardID);
}
};
v2.SubmitterIsLoaded = function () {
this.delegateHyscoreSubmitterReady = mx.utils.Delegate.create(this, this.onHyScorSubmitterReady);
this.content.addEventListener('HyScorSubmitterLoaded', this.delegateHyscoreSubmitterReady);
this.content.addEventListener('ScoreLoadError', this);
this.content.addEventListener('ScoreLoadTimeComplete', this);
this.content.addEventListener('ScoreLoadSubmitComplete', this);
this.content.addEventListener('ScoreLoadListComplete', this);
this.content.addEventListener('ScoreLoadUserListComplete', this);
this.content.addEventListener('AchievLoadError', this);
this.content.addEventListener('AchievLoadTimeComplete', this);
this.content.addEventListener('AchievLoadListComplete', this);
this.content.addEventListener('AchievLoadInfoComplete', this);
this.content.addEventListener('AchievLoadGrantComplete', this);
};
v2.SubmitterFailedToLoad = function () {
this.dispatchEvent({'target': this, 'type': 'LoadingFailed', 'elapsedTime': getTimer()});
};
v2.onLoadDone = function (target_mc) {
this.content = target_mc.SubmitterInstance;
this.content.gotoAndPlay(1);
if (this.isDomainAllowed(this.bTestModeOn)) {
trace('Submitter component downloaded.');
this.SubmitterIsLoaded();
this.content.init(this.siteid, 1, this.gameid, this.channelid, this.m_scoreOrder, this.locale, this.iconData, this.pagesize, this.pagenr, this.userName, this.userHash, this.serverSelect);
this.initJStoSWFListeners();
} else {
trace('Error: Could not init submitter...played on an invalid domain.');
this.SubmitterFailedToLoad();
}
};
v2.onIoError = function (target_mc, errorCode, httpStatus) {
trace('Error: loadListener.onLoadError() errorCode: ' + errorCode + ' httpStatus: ' + httpStatus);
this.SubmitterFailedToLoad();
};
v2.onHyScorSubmitterReady = function (target_mc) {
if (this.content) {
this.content.removeEventListener('HyScorSubmitterLoaded', this.delegateHyscoreSubmitterReady);
}
this.dispatchEvent({'target': this, 'type': 'SubmitterLoadedSuccesfull', 'elapsedTime': getTimer()});
};
v2.handleEvent = function (e) {
if (e.type == 'ScoreLoadSubmitComplete' || e.type == 'ScoreLoadListComplete' || e.type == 'ScoreLoadUserListComplete') {
this.m_scoreXMLData = this.content.m_getLastestHighscoreData();
} else {
if (e.type == 'ScoreLoadTimeComplete') {
this.m_scoreServerTimeXMLData = this.content.m_getLatestScoreServerTime();
} else {
if (e.type == 'AchievLoadListComplete' || e.type == 'AchievLoadInfoComplete' || e.type == 'AchievLoadGrantComplete') {
this.m_achievXMLData = this.content.m_getLastestAchievementData();
} else {
if (e.type == 'AchievLoadTimeComplete') {
} else {
if (e.type == 'ScoreLoadError') {
this.m_scoreXMLData = this.content.m_getLatestHighscoreError();
} else {
if (e.type == 'AchievLoadError') {
this.m_achievXMLData = this.content.m_getLatestAchievError();
}
}
}
}
}
}
this.dispatchEvent({'target': this, 'type': e.type, 'elapsedTime': getTimer()});
};
v2.initJStoSWFListeners = function () {
if (flash.external.ExternalInterface.available) {
try {
flash.external.ExternalInterface.addCallback('JStoSWF', (com.spilgames.external.JStoSWF.instance()).parse);
(com.spilgames.external.JStoSWF.instance()).addCallFunction('UPDATE_USER', this.updateUser);
(com.spilgames.external.JStoSWF.instance()).addCallFunction('UPDATE_AVATAR', this.updateAvatar);
(com.spilgames.external.JStoSWF.instance()).addCallFunction('UPDATE_GALLERY', this.updateGallery);
}
catch (v0) {
if (Error(v0) != null) {
var e = Error(v0);
trace('Error: Failed init enternal interface.. is the swf played locally?');
} else {
throw v0;
}
}
}
};
v2.updateUser = function (params) {
var v3 = params.username;
var v2 = params.hash;
var v4 = params.id;
this.userName = v3;
this.userHash = v2;
var v6 = 'UPDATE_USER|-|' + v3 + '|-|' + v2 + '|-|' + v4;
this.processInvalidUserList();
};
v2.updateAvatar = function (params) {
var v1 = params.id;
var v2 = params.type;
var v3 = 'UPDATE_AVATAR|-|' + v1 + '|-|' + v2;
};
v2.updateGallery = function (params) {
var v1 = params.id;
var v2 = params.type;
var v3 = 'UPDATE_GALLERY|-|' + v1 + '|-|' + v2;
};
v2.processInvalidUserList = function () {
while (this.requestStackInvalidUser.length > 0) {
var v2 = this.requestStackInvalidUser.pop();
if (v2.type == 'SUBMIT_SCORE') {
this.submitScore(v2.value);
} else {
if (v2.type == 'SUBMIT_AWARD') {
this.submitGrantAward(v2.value);
} else {
if (v2.type == 'REQUEST_AWARDLIST') {
this.requestAwardList();
}
}
}
}
};
v2.destroy = function () {
this.parentObj = null;
this.content.removeMovieClip();
this.content = null;
this.siteid = null;
this.channelid = null;
this.gameid = null;
this.userName = null;
this.userHash = null;
this.m_scoreXMLData = null;
this.m_achievXMLData = null;
};
v2.userName = null;
v2.userHash = null;
v2.serverSelect = 1;
v2.bTestModeOn = false;
ASSetPropFlags(_global.SubmitterProxy.prototype, null, 1);
}
#endinitclip
}
movieClip 957 __Packages.mx.events.EventDispatcher {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.events) {
_global.mx.events = new Object();
}
if (!_global.mx.events.EventDispatcher) {
var v1 = function () {};
mx.events.EventDispatcher = v1;
var v2 = v1.prototype;
v1._removeEventListener = function (queue, event, handler) {
if (queue != undefined) {
var v4 = queue.length;
var v1;
v1 = 0;
while (v1 < v4) {
var v2 = queue[v1];
if (v2 == handler) {
queue.splice(v1, 1);
return undefined;
}
++v1;
}
}
};
v1.initialize = function (object) {
if (mx.events.EventDispatcher._fEventDispatcher == undefined) {
mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener;
object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener;
object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent;
object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue;
};
v2.dispatchQueue = function (queueObj, eventObj) {
var v7 = '__q_' + eventObj.type;
var v4 = queueObj[v7];
if (v4 != undefined) {
var v5;
for (v5 in v4) {
var v1 = v4[v5];
var v3 = typeof v1;
if (v3 == 'object' || v3 == 'movieclip') {
if (v1.handleEvent != undefined) {
v1.handleEvent(eventObj);
}
if (v1[eventObj.type] != undefined) {
if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) {
v1[eventObj.type](eventObj);
}
}
} else {
v1.apply(queueObj, [eventObj]);
}
}
}
};
v2.dispatchEvent = function (eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + 'Handler'](eventObj);
this.dispatchQueue(this, eventObj);
};
v2.addEventListener = function (event, handler) {
var v3 = '__q_' + event;
if (this[v3] == undefined) {
this[v3] = new Array();
}
_global.ASSetPropFlags(this, v3, 1);
mx.events.EventDispatcher._removeEventListener(this[v3], event, handler);
this[v3].push(handler);
};
v2.removeEventListener = function (event, handler) {
var v2 = '__q_' + event;
mx.events.EventDispatcher._removeEventListener(this[v2], event, handler);
};
v1._fEventDispatcher = undefined;
v1.exceptions = {'move': 1, 'draw': 1, 'load': 1};
ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 958 __Packages.mx.utils.Delegate {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.utils) {
_global.mx.utils = new Object();
}
if (!_global.mx.utils.Delegate) {
var v1 = function (f) {
super();
this.func = f;
};
mx.utils.Delegate = v1;
mx.utils.Delegate extends Object;
var v2 = v1.prototype;
v1.create = function (obj, func) {
var v2 = function () {
var v2 = arguments.callee.target;
var v3 = arguments.callee.func;
return v3.apply(v2, arguments);
};
v2.target = obj;
v2.func = func;
return v2;
};
v2.createDelegate = function (obj) {
return mx.utils.Delegate.create(obj, this.func);
};
ASSetPropFlags(mx.utils.Delegate.prototype, null, 1);
}
#endinitclip
}
movieClip 959 __Packages.com.spilgames.external.JStoSWF {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.spilgames) {
_global.com.spilgames = new Object();
}
if (!_global.com.spilgames.external) {
_global.com.spilgames.external = new Object();
}
if (!_global.com.spilgames.external.JStoSWF) {
var v1 = function () {
this.m_oCallFuntions = new Object();
};
com.spilgames.external.JStoSWF = v1;
var v2 = v1.prototype;
v2.addCallFunction = function (p_sName, p_fFunction) {
if (!this.m_oCallFuntions[p_sName]) {
this.m_oCallFuntions[p_sName] = p_fFunction;
}
};
v2.parse = function (p_oCallObject) {
if (p_oCallObject.call) {
switch (p_oCallObject.call) {
case 'MULTI':
var v2 = 0;
while (v2 < p_oCallObject.calls.length) {
(com.spilgames.external.JStoSWF.instance()).parse(p_oCallObject.calls[v2]);
++v2;
}
break;
default:
if (this.m_oCallFuntions[p_oCallObject.call]) {
if (!p_oCallObject.params) {
p_oCallObject.params = {};
}
this.m_oCallFuntions[p_oCallObject.call](p_oCallObject.params);
} else {
trace('call: ' + p_oCallObject.call + ' not found in call functions!');
}
}
} else {
trace('call attribute not found in CallObject!');
}
};
v1.instance = function () {
if (com.spilgames.external.JStoSWF.m_oJStoSWF == null) {
com.spilgames.external.JStoSWF.m_oJStoSWF = new com.spilgames.external.JStoSWF();
}
return com.spilgames.external.JStoSWF.m_oJStoSWF;
};
ASSetPropFlags(com.spilgames.external.JStoSWF.prototype, null, 1);
}
#endinitclip
}
movieClip 960 __Packages.Gamesaves_slot {
#initclip
if (!_global.Gamesaves_slot) {
var v1 = function () {
this.profileObj = SharedObject.getLocal('flowerShop2');
if (this.profileObj.data.resume) {
trace('Resume From Saves');
} else {
trace('No Saves, First Time Playing');
var v3 = Array();
this.profileObj.data.userData = v3;
var v2 = 0;
while (v2 <= 8) {
this.profileObj.data.userData[v2] = new Object();
++v2;
}
this.profileObj.data.resume = true;
this.profileObj.flush();
}
};
_global.Gamesaves_slot = v1;
var v2 = v1.prototype;
v2.copy = function (to, from) {
for (var v4 in from) {
if (typeof from[v4] == 'object' || typeof from[v4] == 'array') {
if (typeof from[v4] == 'object') {
if (from[v4] instanceof Array) {
to[v4] = new Array();
} else {
to[v4] = new Object();
}
}
this.copy(to[v4], from[v4]);
} else {
to[v4] = from[v4];
}
}
};
v2.preSave2 = function () {
trace('preSave2() - all _root -> _root.allVars');
_root.allVars = new Object();
_root.allVars.money = _root.money;
_root.allVars.totalEarning = _root.totalEarning;
_root.allVars.level = _root.level;
_root.allVars.yesterdayPromo = _root.yesterdayPromo;
_root.allVars.flowerLevel = new Array();
this.copy(_root.allVars.flowerLevel, _root.flowerLevel);
};
v2.preSave = function () {
trace('preSave() - all _root -> _root.allVars');
_root.allVars = new Object();
_root.allVars.unlocked = new Array();
this.copy(_root.allVars.unlocked, _root.unlocked);
_root.allVars.highScoreArray = new Array();
this.copy(_root.allVars.highScoreArray, _root.highScoreArray);
};
v2.postLoad2 = function () {
trace('preSave() - all _root -> _root.allVars');
_root.money = _root.allVars.money;
_root.totalEarning = _root.allVars.totalEarning;
_root.level = _root.allVars.level;
_root.yesterdayPromo = _root.allVars.yesterdayPromo;
_root.flowerLevel = new Array();
this.copy(_root.flowerLevel, _root.allVars.flowerLevel);
};
v2.postLoad = function () {
trace('postLoad() - _root.allVars -> all _root');
_root.unlocked = new Array();
this.copy(_root.unlocked, _root.allVars.unlocked);
_root.highScoreArray = new Array();
this.copy(_root.highScoreArray, _root.allVars.highScoreArray);
};
v2.gameLoad = function (slot) {
trace('load game ' + slot);
_root.allVars = new Object();
this.copy(_root.allVars, this.profileObj.data.userData[slot]);
for (var v4 in this.profileObj.data.userData[slot]) {
trace('debug | ' + v4 + ' : ' + this.profileObj.data.userData[slot][v4]);
}
};
v2.gameSave = function (slot) {
trace('save game ' + slot);
this.copy(this.profileObj.data.userData[slot], _root.allVars);
for (var v4 in _root.allVars) {
trace('debug | ' + v4 + ' : ' + this.profileObj.data.userData[slot][v4]);
}
this.profileObj.data.userData[slot].used = true;
this.profileObj.flush();
};
v2.checkSlots = function (slot) {
return this.profileObj.data.userData[slot].used;
};
v2.clearAll = function () {
this.profileObj.clear();
};
ASSetPropFlags(_global.Gamesaves_slot.prototype, null, 1);
}
#endinitclip
}
movieClip 961 __Packages.mochi.as2.MochiScores {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiScores) {
var v1 = function () {};
mochi.as2.MochiScores = v1;
var v2 = v1.prototype;
v1.setBoardID = function (boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send('scores_setBoardID', {'boardID': boardID});
};
v1.showLeaderboard = function (options) {
options.clip = mochi.as2.MochiServices.clip;
if (options.clip != mochi.as2.MochiServices.__get__clip() || (mochi.as2.MochiServices.__get__childClip())._target == undefined) {
mochi.as2.MochiServices.disconnect();
trace('WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!');
trace('make sure MochiServices.connect is called as early in the application runtime as possible.');
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof options.name == 'object') {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else {
if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
}
var v1 = Number(options.score);
if (isNaN(v1)) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is \'Not a Number\'');
} else {
if (v1 == Number.NEGATIVE_INFINITY || v1 == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(v1) != v1) {
trace('WARNING: Submitted score \'' + options.score + '\' will be truncated');
}
options.score = v1;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
(mochi.as2.MochiServices.__get__clip()).stop();
}
if (options.onClose != null) {
mochi.as2.MochiScores.onClose = options.onClose;
} else {
mochi.as2.MochiScores.onClose = function () {
(mochi.as2.MochiServices.__get__clip()).play();
};
}
if (options.onError != null) {
mochi.as2.MochiScores.onError = options.onError;
} else {
mochi.as2.MochiScores.onError = mochi.as2.MochiScores.onClose;
}
if (options.boardID == null) {
if (mochi.as2.MochiScores.boardID != null) {
options.boardID = mochi.as2.MochiScores.boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace('[MochiScores] NOTE: Security Sandbox Violation errors below are normal');
mochi.as2.MochiServices.send('scores_showLeaderboard', {'options': options}, null, mochi.as2.MochiScores.doClose);
};
v1.closeLeaderboard = function () {
mochi.as2.MochiServices.send('scores_closeLeaderboard');
};
v1.getPlayerInfo = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_getPlayerInfo', null, callbackObj, callbackMethod);
};
v1.submit = function (score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is \'Not a Number\'');
} else {
if (score == Number.NEGATIVE_INFINITY || score == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(score) != score) {
trace('WARNING: Submitted score \'' + String(score) + '\' will be truncated');
}
score = Number(score);
}
}
mochi.as2.MochiServices.send('scores_submit', {'score': score, 'name': name}, callbackObj, callbackMethod);
};
v1.requestList = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_requestList', null, callbackObj, callbackMethod);
};
v1.scoresArrayToObjects = function (scores) {
var v5 = {};
var v1;
var v4;
var v2;
var v6;
for (var v8 in scores) {
if (typeof scores[v8] == 'object') {
if (scores[v8].cols != null && scores[v8].rows != null) {
v5[v8] = [];
v2 = scores[v8];
v4 = 0;
while (v4 < v2.rows.length) {
v6 = {};
v1 = 0;
while (v1 < v2.cols.length) {
v6[v2.cols[v1]] = v2.rows[v4][v1];
++v1;
}
v5[v8].push(v6);
++v4;
}
} else {
v5[v8] = {};
for (var v7 in scores[v8]) {
v5[v8][v7] = scores[v8][v7];
}
}
} else {
v5[v8] = scores[v8];
}
}
return v5;
};
v1.doClose = function (args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = 'IOError';
}
mochi.as2.MochiScores.onError.apply(null, [args.errorCode]);
} else {
mochi.as2.MochiScores.onClose.apply();
}
};
ASSetPropFlags(mochi.as2.MochiScores.prototype, null, 1);
}
#endinitclip
}
movieClip 962 __Packages.mochi.as2.MochiSync {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSync) {
var v1 = function () {
this._syncContainer = {};
};
mochi.as2.MochiSync = v1;
var v2 = v1.prototype;
v2.getProp = function (name) {
return this._syncContainer[name];
};
v2.setProp = function (name, value) {
if (this._syncContainer[name] == value) {
return undefined;
}
this._syncContainer[name] = value;
mochi.as2.MochiServices.send('sync_propUpdate', {'name': name, 'value': value});
};
v2.triggerEvent = function (eventType, args) {
switch (eventType) {
case mochi.as2.MochiSync.SYNC_REQUEST:
mochi.as2.MochiServices.send('sync_syncronize', this._syncContainer);
break;
case mochi.as2.MochiSync.SYNC_PROPERTY:
this._syncContainer[args.name] = args.value;
}
};
v1.SYNC_REQUEST = 'SyncRequest';
v1.SYNC_PROPERTY = 'UpdateProperty';
ASSetPropFlags(mochi.as2.MochiSync.prototype, null, 1);
}
#endinitclip
}
movieClip 963 __Packages.mochi.as2.MochiServices {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiServices) {
var v1 = function () {};
mochi.as2.MochiServices = v1;
var v2 = v1.prototype;
v1.__get__id = function () {
return mochi.as2.MochiServices._id;
};
v1.__get__clip = function () {
return mochi.as2.MochiServices._container;
};
v1.__get__childClip = function () {
return mochi.as2.MochiServices._clip;
};
v1.getVersion = function () {
return '3.8 as2';
};
v1.allowDomains = function (server) {
var v1 = ((server.split('/'))[2].split(':'))[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain('*');
System.security.allowDomain(v1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain('*');
System.security.allowInsecureDomain(v1);
}
}
return v1;
};
v1.__get__isNetworkAvailable = function () {
if (System.security) {
var v1 = System.security;
if (v1.sandboxType == 'localWithFile') {
return false;
}
}
return true;
};
v1.__set__comChannelName = function (val) {
if (val != undefined) {
if (val.length > 3) {
mochi.as2.MochiServices._sendChannelName = val + '_fromgame';
mochi.as2.MochiServices.initComChannels();
}
}
return mochi.as2.MochiServices.__get__comChannelName();
};
v1.__get__connected = function () {
return mochi.as2.MochiServices._connected;
};
v1.connect = function (id, clip, onError) {
mochi.as2.MochiServices.warnID(id, false);
if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) {
trace('MochiServices Connecting...');
mochi.as2.MochiServices._connecting = true;
mochi.as2.MochiServices.init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else {
if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
};
v1.disconnect = function () {
if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected;
mochi.as2.MochiServices.flush(true);
if (mochi.as2.MochiServices._clip != undefined) {
mochi.as2.MochiServices._clip.removeMovieClip();
delete mochi.as2.MochiServices._clip;
}
mochi.as2.MochiServices._listenChannel.close();
}
};
v1.init = function (id, clip) {
mochi.as2.MochiServices._id = id;
if (clip != undefined) {
mochi.as2.MochiServices._container = clip;
} else {
mochi.as2.MochiServices._container = _root;
}
mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container);
};
v1.loadCommunicator = function (id, clip) {
var v6 = '_mochiservices_com_' + id;
var v5 = new MovieClipLoader();
var v3 = {};
if (mochi.as2.MochiServices._clip != null) {
return mochi.as2.MochiServices._clip;
}
if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) {
return null;
}
if ((mochi.as2.MochiServices.urlOptions()).servURL) {
mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL;
}
var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services;
if ((mochi.as2.MochiServices.urlOptions()).servicesURL) {
v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL;
}
mochi.as2.MochiServices.allowDomains(v4);
mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false);
mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999);
mochi.as2.MochiServices.listen();
if (v3.waitInterval != null) {
clearInterval(v3.waitInterval);
}
v3.onLoadError = mochi.as2.MochiServices.loadError;
v3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
v3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
v3.startTime = getTimer();
v3.wait = function () {
if (getTimer() - this.startTime > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ['IOError']);
}
clearInterval(this.waitInterval);
}
};
v3.waitInterval = setInterval(v3, 'wait', 1000);
v5.addListener(v3);
v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip);
mochi.as2.MochiServices._sendChannel = new LocalConnection();
mochi.as2.MochiServices._sendChannel._queue = [];
return mochi.as2.MochiServices._clip;
};
v1.loadError = function (target_mc, errorCode, httpStatus) {
trace('MochiServices could not load.');
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, [errorCode]);
};
v1.onStatus = function (infoObject) {
if (infoObject.level !== 'error') {
} else {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
}
};
v1.listen = function () {
mochi.as2.MochiServices._listenChannel = new LocalConnection();
mochi.as2.MochiServices._listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
mochi.as2.MochiServices._listenChannel.allowDomain = function (d) {
return true;
};
mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain;
mochi.as2.MochiServices._listenChannel._nextcallbackID = 0;
mochi.as2.MochiServices._listenChannel._callbacks = {};
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
trace('Waiting for MochiAds services to connect...');
};
v1.initComChannels = function () {
if (!mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'});
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()});
mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) {
var v5 = pkg.callbackID;
var v4 = this._callbacks[v5];
if (!v4) {
return undefined;
}
var v2 = v4.callbackMethod;
var v3 = v4.callbackObject;
if (v3 && typeof v2 == 'string') {
v2 = v3[v2];
}
if (v2 != undefined) {
v2.apply(v3, pkg.args);
}
delete this._callbacks[v5];
};
mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case 'events':
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case 'coins':
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case 'sync':
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
mochi.as2.MochiServices._listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ['IOError']);
};
trace('[SERVICES_API] connected!');
mochi.as2.MochiServices._connecting = false;
mochi.as2.MochiServices._connected = true;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift());
}
}
};
v1.updateCopy = function (args) {
mochi.as2.MochiServices.send('coins_updateCopy', args, null, null);
};
v1.flush = function (error) {
var v1;
var v2;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
v1 = mochi.as2.MochiServices._sendChannel._queue.shift();
false;
if (v1.callbackID != null) {
v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
}
delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
if (error) {
mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod);
}
}
};
v1.handleError = function (args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ['NotConnected']);
}
if (args.options != null && args.options.onError != null) {
args.options.onError.apply(null, ['NotConnected']);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = 'NotConnected';
if (callbackObject != null && typeof callbackMethod == 'string') {
callbackObject[callbackMethod](args);
} else {
if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
};
v1.send = function (methodName, args, callbackObject, callbackMethod) {
if (mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
} else {
if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) {
trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName);
mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod);
mochi.as2.MochiServices.flush(true);
return undefined;
} else {
mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
}
}
mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod};
++mochi.as2.MochiServices._listenChannel._nextcallbackID;
};
v1.urlOptions = function () {
var v5 = {};
var v6;
if (_root._url.indexOf('mochiad_options') != -1) {
var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1;
v6 = _root._url.substr(v2, _root._url.length);
} else {
if (_root.mochiad_options) {
v6 = _root.mochiad_options;
}
}
if (v6) {
var v4 = _root.mochiad_options.split('&');
var v2 = 0;
while (v2 < v4.length) {
var v3 = v4[v2].split('=');
v5[unescape(v3[0])] = unescape(v3[1]);
++v2;
}
}
return v5;
};
v1.warnID = function (bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length');
return undefined;
} else {
if (bid == '1e113c7239048b3f') {
if (leaderboard) {
trace('WARNING: Using testing board ID');
} else {
trace('WARNING: Using testing board ID as game ID');
}
return undefined;
} else {
if (bid == '84993a1de4031cd8') {
if (leaderboard) {
trace('WARNING: Using testing game ID as board ID');
} else {
trace('WARNING: Using testing game ID');
}
return undefined;
}
}
}
var v1 = 0;
while (v1 < bid.length) {
switch (bid.charAt(v1)) {
if (bid.charAt(v1) !== 'f') {
} else {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
case 'a':
case 'b':
case 'c':
break;
case 'd':
case 'e':
}
default:
trace('WARNING: Board ID contains illegal characters: ' + bid);
return undefined;
}
++v1;
}
};
v1.addLinkEvent = function (url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var v2 = new Object();
v2.mav = mochi.as2.MochiServices.getVersion();
v2.swfv = btn.getSWFVersion() || 6;
v2.swfurl = btn._url;
v2.fv = System.capabilities.version;
v2.os = System.capabilities.os;
v2.lang = System.capabilities.language;
v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY;
var s = '?';
var v3 = 0;
for (var v6 in v2) {
if (v3 != 0) {
s += '&';
}
++v3;
s = s + v6 + '=' + escape(v2[v6]);
}
if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) {
var ping = btn.createEmptyMovieClip('ping', 777);
var v7 = btn.createEmptyMovieClip('nettest', 778);
mochi.as2.MochiServices.netupAttempted = true;
ping.loadMovie('http://x.mochiads.com/linkping.swf?t=' + getTimer());
v7.onEnterFrame = function () {
if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) {
delete this.onEnterFrame;
} else {
if (getTimer() - t0 > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
}
};
}
var v4 = btn.createEmptyMovieClip('clk', 1001);
v4._alpha = 0;
v4.beginFill(1044735);
v4.moveTo(0, 0);
v4.lineTo(0, btn._height);
v4.lineTo(btn._width, btn._height);
v4.lineTo(btn._width, 0);
v4.lineTo(0, 0);
v4.endFill();
v4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL(url + s, '_blank');
} else {
getURL(burl, '_blank');
}
if (onClick != undefined) {
onClick();
}
};
};
v1.setContainer = function (clip) {};
v1.stayOnTop = function (clip) {};
v1._servURL = 'http://www.mochiads.com/static/lib/services/';
v1._services = 'services.swf';
v1._mochiLC = 'MochiLC.swf';
v1._listenChannelName = '__ms_';
v1._connecting = false;
v1._connected = false;
v1.netup = true;
v1.netupAttempted = false;
v1.servicesSync = new mochi.as2.MochiSync();
v1.addProperty('childClip', v1.__get__childClip, function () {});
v1.addProperty('clip', v1.__get__clip, function () {});
v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName);
v1.addProperty('connected', v1.__get__connected, function () {});
v1.addProperty('id', v1.__get__id, function () {});
v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {});
ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1);
}
#endinitclip
}
movieClip 964 __Packages.mochi.as2.MochiEventDispatcher {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEventDispatcher) {
var v1 = function () {
this.eventTable = {};
};
mochi.as2.MochiEventDispatcher = v1;
var v2 = v1.prototype;
v2.buildDelegate = function (thisObject, thatObject) {
var v2 = {'thisObject': thisObject, 'thatObject': thatObject};
if (thatObject != undefined) {
var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject;
v2.delegate = function (args) {
funct.call(thisObject, args);
};
return v2;
}
v2.delegate = thisObject;
return v2;
};
v2.compareDelegate = function (d_A, d_B) {
if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) {
return false;
}
return true;
};
v2.addEventListener = function (event, thisObject, thatObject) {
this.removeEventListener(event, thisObject, thatObject);
this.eventTable[event].push(this.buildDelegate(thisObject, thatObject));
};
v2.removeEventListener = function (event, thisObject, thatObject) {
var v3 = this.buildDelegate(thisObject, thatObject);
if (this.eventTable[event] == undefined) {
this.eventTable[event] = [];
return undefined;
}
for (var v4 in this.eventTable[event]) {
if (!this.compareDelegate(this.eventTable[event][v4], v3)) {
continue;
}
this.eventTable[event].splice(Number(v4), 1);
}
};
v2.triggerEvent = function (event, args) {
if (this.eventTable[event] == undefined) {
return undefined;
}
for (var v4 in this.eventTable[event]) {
this.eventTable[event][v4].delegate(args);
}
};
ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 965 __Packages.mochi.as2.MochiEvents {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEvents) {
var v1 = function () {};
mochi.as2.MochiEvents = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.startSession = function (achievementID) {
mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null);
};
v1.setNotifications = function (clip, style) {
var v2 = {};
for (var v3 in style) {
v2[v3] = style[v3];
}
v2.clip = clip;
mochi.as2.MochiServices.send('events_setNotifications', v2, null, null);
};
v1.addEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject);
};
v1.startPlay = function (tag) {
if (tag == undefined) {
tag = 'gameplay';
}
mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null);
};
v1.endPlay = function () {
mochi.as2.MochiServices.send('events_clearRoundID', null, null, null);
};
v1.trackEvent = function (tag, value) {
mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null);
};
v1.ACHIEVEMENT_RECEIVED = 'AchievementReceived';
v1.ALIGN_TOP_LEFT = 'ALIGN_TL';
v1.ALIGN_TOP = 'ALIGN_T';
v1.ALIGN_TOP_RIGHT = 'ALIGN_TR';
v1.ALIGN_LEFT = 'ALIGN_L';
v1.ALIGN_CENTER = 'ALIGN_C';
v1.ALIGN_RIGHT = 'ALIGN_R';
v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL';
v1.ALIGN_BOTTOM = 'ALIGN_B';
v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR';
v1.FORMAT_SHORT = 'ShortForm';
v1.FORMAT_LONG = 'LongForm';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1);
}
#endinitclip
}
movieClip 966 __Packages.mochi.as2.MochiSocial {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSocial) {
var v1 = function () {};
mochi.as2.MochiSocial = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showLoginWidget = function (options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send('coins_showLoginWidget', {'options': options});
};
v1.hideLoginWidget = function () {
mochi.as2.MochiServices.send('coins_hideLoginWidget');
};
v1.requestLogin = function () {
mochi.as2.MochiServices.send('coins_requestLogin');
};
v1.getUserInfo = function () {
mochi.as2.MochiServices.send('coins_getUserInfo');
};
v1.saveUserProperties = function (properties) {
mochi.as2.MochiServices.send('coins_saveUserProperties', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate);
};
v1.LOGGED_IN = 'LoggedIn';
v1.LOGGED_OUT = 'LoggedOut';
v1.LOGIN_SHOW = 'LoginShow';
v1.LOGIN_HIDE = 'LoginHide';
v1.LOGIN_SHOWN = 'LoginShown';
v1.PROFILE_SHOW = 'ProfileShow';
v1.PROFILE_HIDE = 'ProfileHide';
v1.PROPERTIES_SAVED = 'PropertySaved';
v1.WIDGET_LOADED = 'WidgetLoaded';
v1.USER_INFO = 'UserInfo';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1.PROPERTIES_SIZE = 'PropertiesSize';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1);
}
#endinitclip
}
movieClip 967 __Packages.mochi.as2.MochiDigits {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiDigits) {
var v1 = function (digit, index) {
this.Encoder = 0;
this.setValue(digit, index);
};
mochi.as2.MochiDigits = v1;
var v2 = v1.prototype;
v2.__get__value = function () {
return Number(this.toString());
};
v2.__set__value = function (v) {
this.setValue(v);
return this.__get__value();
};
v2.addValue = function (v) {
this.value += v;
};
v2.setValue = function (digit, index) {
var v3 = digit.toString();
if (index == undefined || isNaN(index)) {
index = 0;
}
this.Fragment = v3.charCodeAt(index++) ^ this.Encoder;
if (index < v3.length) {
this.Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
this.Sibling = null;
}
this.reencode();
};
v2.reencode = function () {
var v2 = int(2147483647 * Math.random());
this.Fragment ^= v2 ^ this.Encoder;
this.Encoder = v2;
};
v2.toString = function () {
var v2 = String.fromCharCode(this.Fragment ^ this.Encoder);
return (this.Sibling != null) ? v2.concat(this.Sibling.toString()) : v2;
};
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(mochi.as2.MochiDigits.prototype, null, 1);
}
#endinitclip
}
frame 2 {
function gotoMySite() {
getURL('http://www.nobstudio.com', '_blank');
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var mySiteLink = new ContextMenuItem('Visit Nob Studio', gotoMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
}
movieClip 138 {
}
movieClip 139 {
}
movieClip 149 {
}
movieClip 150 {
}
movieClip 152 {
}
movieClip 154 {
}
movieClip 156 {
}
movieClip 158 {
}
movieClip 160 {
}
movieClip 162 {
}
movieClip 164 {
}
movieClip 166 {
}
movieClip 168 {
}
movieClip 170 {
}
movieClip 172 {
}
movieClip 174 {
}
movieClip 176 {
}
movieClip 178 {
}
movieClip 180 {
}
movieClip 181 {
}
movieClip 183 {
}
movieClip 184 {
}
movieClip 186 {
}
movieClip 187 {
}
movieClip 189 {
}
movieClip 190 {
}
movieClip 192 {
}
movieClip 193 {
}
movieClip 195 {
}
movieClip 196 {
}
movieClip 198 {
}
movieClip 199 {
}
movieClip 201 {
}
movieClip 202 {
}
movieClip 204 {
}
movieClip 205 {
}
movieClip 207 {
}
movieClip 208 {
}
movieClip 210 {
}
movieClip 211 {
}
movieClip 213 {
}
movieClip 214 {
}
movieClip 216 {
}
movieClip 217 {
}
movieClip 219 {
}
movieClip 221 {
}
movieClip 223 {
}
movieClip 225 {
}
movieClip 227 {
}
movieClip 229 {
}
movieClip 231 {
}
movieClip 233 {
}
movieClip 235 {
}
movieClip 238 {
}
movieClip 241 {
}
movieClip 243 {
}
movieClip 245 {
}
movieClip 247 {
}
movieClip 249 {
}
movieClip 251 {
}
movieClip 252 {
}
movieClip 254 {
}
movieClip 256 {
}
movieClip 258 {
}
movieClip 260 {
}
movieClip 261 {
}
movieClip 265 {
}
movieClip 268 {
}
movieClip 269 {
}
movieClip 270 {
}
movieClip 272 {
}
movieClip 273 {
}
movieClip 274 {
}
movieClip 275 {
}
movieClip 276 {
}
movieClip 277 {
frame 1 {
gotoAndStop(_root.localization_branding_nr);
}
frame 1 {
stop();
}
}
movieClip 278 {
}
movieClip 281 {
}
movieClip 283 {
frame 91 {
stop();
}
}
movieClip 285 {
frame 1 {
if (_root.localization_portal == 'game_com_cn') {
this.logo_intro.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.logo_intro.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=logo_intro', '_blank');
};
}
}
frame 90 {
stop();
}
}
movieClip 287 {
}
movieClip 288 {
frame 89 {
stop();
}
}
movieClip 292 {
}
movieClip 295 {
}
movieClip 297 {
frame 89 {
stop();
}
}
movieClip 300 {
frame 89 {
stop();
}
}
movieClip 303 {
}
// unknown tag 88 length 120
movieClip 307 {
frame 39 {
stop();
}
}
movieClip 308 {
}
movieClip 309 {
frame 91 {
stop();
}
}
movieClip 311 {
frame 90 {
stop();
}
}
movieClip 312 {
frame 90 {
stop();
}
}
movieClip 313 {
frame 1 {
if (_root.localization_portal == 'family') {
gotoAndStop(1);
}
if (_root.localization_portal == 'teens') {
gotoAndStop(2);
}
if (_root.localization_portal == 'girl') {
gotoAndStop(3);
}
if (_root.localization_portal == 'game_com_cn') {
gotoAndStop(4);
}
if (_root.localization_portal == 'young_adults') {
gotoAndStop(5);
}
if (_root.localization_portal == 'zapapa') {
gotoAndStop(6);
}
if (_root.localization_portal == 'egames_jp') {
gotoAndStop(7);
}
}
}
frame 91 {
function onSubmitterFailure() {
trace('Can not use submitter');
}
function onSubmitterSuccess(target) {
trace('Submitter loaded, intialised and available for use');
}
var submitter = new SubmitterProxy();
submitter = attachMovie('submitterProxy', submitter, getNextHighestDepth());
submitter.addEventListener('LoadingFailed', mx.utils.Delegate.create(this, onSubmitterFailure));
submitter.addEventListener('SubmitterLoadedSuccesfull', mx.utils.Delegate.create(this, onSubmitterSuccess));
submitter.setLoader(_root, 'Flower-Shopkeeper2', 'Flower-Shopkeeper2.html', 0, 'normal', '', 0, 0, 1, false, 1);
}
frame 91 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('d60248f5', this, 10301, true);
}
frame 91 {
_root.achievementArray = new Array();
_root.achievementArray[1] = new Array(400, 550, 700);
_root.achievementArray[2] = new Array(700, 900, 1100);
_root.achievementArray[3] = new Array(600, 750, 900);
_root.achievementArray[4] = new Array(900, 1200, 1500);
_root.achievementArray[5] = new Array(1000, 1300, 1600);
_root.achievementArray[6] = new Array(2000, 3000, 4000);
_root.achievementArray[7] = new Array(0, 0, 0);
_root.dayArray = new Array(0, 6, 5, 3, 5, 5, 7, 10);
_root.promotionCheck = new Array(0, 0, 0);
_root.unlocked = new Array(1, 0, 0, 0, 0, 0);
masterReset = function () {
_root.unlocked = new Array(1, 0, 0, 0, 0, 0);
_root.highScoreArray = new Array(0, 0, 0, 0, 0, 0, 0);
_root.flowerLevel = new Array(1, 1, 1, 1, 1, 1, 1);
_root.money = 0;
_root.totalEarning = 0;
};
setUpIngamePage = function () {
_root.b_soundOn.onRollOver = function () {
buttonSound.start();
};
_root.b_soundOn.onRelease = function () {
_root.b_soundOn._visible = false;
_root.b_soundOff._visible = true;
_root.mute = false;
_root.soundControl.setVolume(100);
};
_root.b_soundOff.onRollOver = function () {
buttonSound.start();
};
_root.b_soundOff.onRelease = function () {
_root.b_soundOn._visible = true;
_root.b_soundOff._visible = false;
_root.mute = true;
_root.soundControl.setVolume(0);
};
if (_root.mute == false) {
_root.b_soundOn._visible = false;
_root.b_soundOff._visible = true;
} else {
_root.b_soundOn._visible = true;
_root.b_soundOff._visible = false;
}
_root.shopType_mc.gotoAndStop(_root.campaign);
_root.totalEarning_t.text = '$' + _root.totalEarning;
_root.money_t.text = '$' + _root.money;
_root.juiceCost = 25 * _root.flowerLevel[6];
_root.campaign1_flowers_mc.gotoAndStop(_root.level);
_root.campaign1_flowers_mc.click_23_ani.stop();
_root.campaign1_flowers_mc.b_view.onRollOver = function () {
buttonSound.start();
_root.campaign1_flowers_mc.click_23_ani.play();
};
_root.campaign1_flowers_mc.b_view.onRollOut = function () {
buttonSound.start();
_root.campaign1_flowers_mc.click_23_ani.gotoAndStop(1);
};
_root.campaign1_flowers_mc.b_view.onRelease = function () {
_root.gotoAndStop('flowerCatalog');
};
if (_root.flowerLevel[6] == 1) {
_root.hearts.gotoAndStop(7);
_root.rechargeTime_t.text = '5.5 seconds';
}
if (_root.flowerLevel[6] == 2) {
_root.hearts.gotoAndStop(7);
_root.rechargeTime_t.text = '4.5 seconds';
}
if (_root.flowerLevel[6] == 3) {
_root.hearts.gotoAndStop(5);
_root.rechargeTime_t.text = '4 seconds';
}
if (_root.flowerLevel[6] == 4) {
_root.hearts.gotoAndStop(3);
_root.rechargeTime_t.text = '3.5 seconds';
}
if (_root.flowerLevel[6] == 5) {
_root.hearts.gotoAndStop(1);
_root.rechargeTime_t.text = '3 seconds';
}
_root.upgradeCost_t.text = '$' + _root.juiceCost;
if (_root.flowerLevel[6] >= 5) {
_root.b_upgrade._visible = false;
}
_root.b_upgrade.onRollOver = function () {
buttonSound.start();
_root.click_21_ani.play();
_root.click_22_ani.play();
};
_root.b_upgrade.onRollOut = function () {
_root.click_21_ani.gotoAndStop(1);
_root.click_22_ani.gotoAndStop(1);
};
_root.b_upgrade.onRelease = function () {
if (_root.money >= _root.juiceCost) {
_root.flowerLevel[6] += 1;
_root.upgradedMC.gotoAndPlay(1);
_root.money -= _root.juiceCost;
setUpIngamePage();
} else {
_root.noMoneyMC.gotoAndPlay(1);
}
};
_root.b_menu.onRollOver = function () {
buttonSound.start();
};
_root.b_menu.onRelease = function () {
_root.gotoAndStop('chooseCampaign');
};
_root.b_play.onRollOver = function () {
buttonSound.start();
};
_root.b_play.onRelease = function () {
if (_root.campaign == 1) {
_root.promotionCheck = new Array(0, 0, 0);
if (_root.level == 1) {
_root.flowerLevel = new Array(1, 1, 0, 0, 0, 0, 1);
} else {
if (_root.level == 2) {
_root.flowerLevel = new Array(1, 1, 1, 1, 0, 0, 1);
} else {
if (_root.level == 3) {
_root.flowerLevel = new Array(1, 1, 1, 1, 0, 1, 1);
} else {
if (_root.level == 4) {
_root.flowerLevel = new Array(1, 1, 1, 1, 1, 1, 1);
}
}
}
}
} else {
if (_root.campaign == 2) {
_root.promotionCheck = new Array(0, 0, 0);
} else {
if (_root.campaign == 3) {
if (_root.level == 3) {
_root.promotionCheck = new Array(1, 0, 0);
} else {
_root.promotionCheck = new Array(0, 0, 0);
}
} else {
if (_root.campaign == 4) {
if (_root.level == 5) {
_root.promotionCheck = new Array(0, 1, 0);
} else {
_root.promotionCheck = new Array(0, 0, 0);
}
if (_root.flowerLevel[0] >= 4 or _root.flowerLevel[1] >= 4) {
_root.promotionCheck[0] = 1;
}
} else {
if (_root.campaign == 5) {
_root.promotionCheck = new Array(0, 0, 0);
if (_root.flowerLevel[0] >= 4 or _root.flowerLevel[1] >= 4) {
_root.promotionCheck[0] = 1;
}
if (_root.flowerLevel[2] >= 4 or _root.flowerLevel[3] >= 4) {
_root.promotionCheck[1] = 1;
}
} else {
if (_root.campaign == 6 or _root.campaign == 7) {
_root.promotionCheck = new Array(0, 0, 0);
if (_root.flowerLevel[0] >= 4 or _root.flowerLevel[1] >= 4) {
_root.promotionCheck[0] = 1;
}
if (_root.flowerLevel[2] >= 4 or _root.flowerLevel[3] >= 4) {
_root.promotionCheck[1] = 1;
}
if (_root.flowerLevel[0] >= 4 and _root.flowerLevel[1] >= 4 and _root.flowerLevel[2] >= 4 and _root.flowerLevel[3] >= 4 and _root.flowerLevel[4] >= 4 and _root.flowerLevel[5] >= 4) {
_root.promotionCheck[2] = 1;
}
}
}
}
}
}
}
saveobj.preSave2();
saveobj.gameSave(_root.campaign);
if (_root.campaign == 1 and _root.level == 1) {
_root.gotoAndStop('tutorial');
} else {
_root.gotoAndStop('game');
}
};
_root.upgradeInfo_t.text = _root.flowerLevel[6] + '/5 UPGRADES';
_root.b_view.onRollOver = function () {
buttonSound.start();
_root.click_23_ani.play();
};
_root.b_view.onRollOut = function () {
_root.click_23_ani.gotoAndStop(1);
};
_root.b_view.onRelease = function () {
_root.gotoAndStop('flowerCatalog');
};
_root.currentProgress_t.text = 'DAY ' + _root.level + '/' + _root.dayArray[_root.campaign];
_root.requirement_t3.text = '$' + _root.achievementArray[_root.campaign][0];
_root.requirement_t2.text = '$' + _root.achievementArray[_root.campaign][1];
_root.requirement_t1.text = '$' + _root.achievementArray[_root.campaign][2];
_root.click_21_ani.drink.gotoAndStop(_root.flowerLevel[6]);
_root.click_22_ani.drink.gotoAndStop(_root.flowerLevel[6]);
_root.click_21_ani.stop();
_root.click_22_ani.stop();
_root.click_23_ani.stop();
_root.shopInstructionMC.gotoAndStop(_root.campaign);
setUpShopInstructionButtons();
_root.b_help.onRollOver = function () {
buttonSound.start();
};
_root.b_help.onRelease = function () {
_root.shopInstructionMC._visible = true;
};
_root.shopInstructionMC._visible = false;
if (_root.level <= 1) {
_root.shopInstructionMC._visible = true;
}
_root.shopWarningMC.gotoAndStop(_root.campaign);
_root.shopWarningMC.b_done.onRollOver = function () {
buttonSound.start();
};
_root.shopWarningMC.b_done.onRelease = function () {
_root.shopWarningMC._visible = false;
};
_root.shopWarningMC._visible = false;
if (_root.campaign == 2) {
if (_root.level == 5) {
_root.shopWarningMC._visible = true;
}
} else {
if (_root.campaign == 3) {
if (_root.level == 3) {
_root.shopWarningMC._visible = true;
}
} else {
if (_root.campaign == 4) {
if (_root.level == 5) {
_root.shopWarningMC._visible = true;
}
} else {
if (_root.campaign == 5) {
if (_root.level == 5) {
_root.shopWarningMC._visible = true;
}
} else {
if (_root.campaign == 6) {
if (_root.level == 7) {
_root.shopWarningMC._visible = true;
}
} else {
if (_root.campaign == 7) {
if (_root.level == 10) {
_root.shopWarningMC._visible = true;
}
}
}
}
}
}
}
_root.description_t.text = _root.descriptionInfo;
};
setUpShopInstructionButtons = function () {
_root.shopInstructionMC.b_previous.onRollOver = function () {
buttonSound.start();
};
_root.shopInstructionMC.b_previous.onRelease = function () {
_root.shopInstructionMC.prevFrame();
setUpShopInstructionButtons();
};
_root.shopInstructionMC.b_next.onRollOver = function () {
buttonSound.start();
};
_root.shopInstructionMC.b_next.onRelease = function () {
_root.shopInstructionMC.nextFrame();
setUpShopInstructionButtons();
};
_root.shopInstructionMC.b_done.onRollOver = function () {
buttonSound.start();
};
_root.shopInstructionMC.b_done.onRelease = function () {
_root.shopInstructionMC._visible = false;
};
};
}
frame 92 {
function randRange(min, max) {
var v1 = Math.floor(Math.random() * (max - min + 1)) + min;
return v1;
}
_root.levelFlower1 = new Array(1, 6, 7, 9, 13, 14, 15, 16, 17, 19, 10, 3, 4);
_root.levelFlower2 = new Array(1, 6, 7, 9, 13, 14, 15, 16, 10);
_root.levelFlower3 = new Array(1, 7, 13, 14, 15, 16);
_root.levelFlower4 = new Array(7, 13, 15);
_root.flowerTypeArray = new Array('pink', 'yellow', 'purple', 'white', 'vase', 'basket');
_root.flowerLevel = new Array(1, 1, 1, 1, 1, 1, 1);
_root.flowerCombo = new Object();
_root.flowerCombo.pink = new Object();
_root.flowerCombo.pink.l1 = new Array();
_root.flowerCombo.pink.l1[1] = new Array(2, 12);
_root.flowerCombo.pink.l1[2] = new Array(2, 11);
_root.flowerCombo.pink.l1[3] = new Array(2, 18, 8);
_root.flowerCombo.yellow = new Object();
_root.flowerCombo.yellow.l1 = new Array();
_root.flowerCombo.yellow.l1[1] = new Array(5, 12, 20);
_root.flowerCombo.yellow.l1[2] = new Array(5, 11);
_root.flowerCombo.yellow.l1[3] = new Array(5, 5, 12);
_root.flowerCombo.white = new Object();
_root.flowerCombo.white.l1 = new Array();
_root.flowerCombo.white.l1[1] = new Array(3, 11, 19);
_root.flowerCombo.white.l1[2] = new Array(3, 12, 17);
_root.flowerCombo.white.l1[3] = new Array(3, 3, 12);
_root.flowerCombo.purple = new Object();
_root.flowerCombo.purple.l1 = new Array();
_root.flowerCombo.purple.l1[1] = new Array(4, 12, 19);
_root.flowerCombo.purple.l1[2] = new Array(4, 11, 17);
_root.flowerCombo.purple.l1[3] = new Array(4, 18, 8);
_root.flowerCombo.basket = new Object();
_root.flowerCombo.basket.l1 = new Array();
_root.flowerCombo.basket.l1[1] = new Array(6, 18, 9);
_root.flowerCombo.basket.l1[2] = new Array(6, 18, 10);
_root.flowerCombo.basket.l1[3] = new Array(6, 12, 19);
_root.flowerCombo.vase = new Object();
_root.flowerCombo.vase.l1 = new Array();
_root.flowerCombo.vase.l1[1] = new Array(1, 14, 16);
_root.flowerCombo.vase.l1[2] = new Array(1, 18, 12, 8);
_root.flowerCombo.vase.l1[3] = new Array(1, 14, 14);
_root.flowerCombo.pink.l2 = new Array();
_root.flowerCombo.pink.l2[1] = new Array(2, 12, 20);
_root.flowerCombo.pink.l2[2] = new Array(2, 2, 12, 12);
_root.flowerCombo.pink.l2[3] = new Array(2, 2, 11, 11);
_root.flowerCombo.yellow.l2 = new Array();
_root.flowerCombo.yellow.l2[1] = new Array(5, 11, 11, 20);
_root.flowerCombo.yellow.l2[2] = new Array(5, 11, 20);
_root.flowerCombo.yellow.l2[3] = new Array(5, 5, 18, 8);
_root.flowerCombo.white.l2 = new Array();
_root.flowerCombo.white.l2[1] = new Array(3, 18, 10);
_root.flowerCombo.white.l2[2] = new Array(3, 3, 12);
_root.flowerCombo.white.l2[3] = new Array(3, 18, 8, 20);
_root.flowerCombo.purple.l2 = new Array();
_root.flowerCombo.purple.l2[1] = new Array(4, 4, 7, 7);
_root.flowerCombo.purple.l2[2] = new Array(4, 4, 18, 8);
_root.flowerCombo.purple.l2[3] = new Array(4, 18, 9);
_root.flowerCombo.basket.l2 = new Array();
_root.flowerCombo.basket.l2[1] = new Array(6, 18, 8, 15);
_root.flowerCombo.basket.l2[2] = new Array(6, 18, 10, 9);
_root.flowerCombo.basket.l2[3] = new Array(6, 11, 11, 17, 17);
_root.flowerCombo.vase.l2 = new Array();
_root.flowerCombo.vase.l2[1] = new Array(1, 18, 18, 8, 8);
_root.flowerCombo.vase.l2[2] = new Array(1, 14, 14, 16, 16);
_root.flowerCombo.vase.l2[3] = new Array(1, 7, 7, 15);
_root.flowerCombo.pink.l3 = new Array();
_root.flowerCombo.pink.l3[1] = new Array(2, 2, 18, 9, 10);
_root.flowerCombo.pink.l3[2] = new Array(2, 2, 20, 12, 12);
_root.flowerCombo.pink.l3[3] = new Array(2, 2, 18, 18, 8, 8);
_root.flowerCombo.pink.l4 = new Array();
_root.flowerCombo.pink.l4[1] = new Array(2, 2, 14, 16, 16, 13, 20);
_root.flowerCombo.pink.l4[2] = new Array(2, 2, 20, 12, 12);
_root.flowerCombo.pink.l4[3] = new Array(2, 2, 12, 12, 17, 17, 20);
_root.flowerCombo.pink.l5 = new Array();
_root.flowerCombo.pink.l5[1] = new Array(2, 2, 12, 11, 12, 16, 20);
_root.flowerCombo.pink.l5[2] = new Array(2, 11, 11, 17, 17, 19, 20);
_root.flowerCombo.pink.l5[3] = new Array(2, 12, 12, 17, 17, 19, 20);
_root.flowerCombo.yellow.l3 = new Array();
_root.flowerCombo.yellow.l3[1] = new Array(5, 5, 11, 11);
_root.flowerCombo.yellow.l3[2] = new Array(5, 5, 18, 10, 9);
_root.flowerCombo.yellow.l3[3] = new Array(5, 5, 18, 9, 9);
_root.flowerCombo.yellow.l4 = new Array();
_root.flowerCombo.yellow.l4[1] = new Array(5, 5, 18, 8, 19, 15);
_root.flowerCombo.yellow.l4[2] = new Array(5, 5, 18, 18, 8, 8);
_root.flowerCombo.yellow.l4[3] = new Array(5, 5, 11, 11, 16, 16, 20);
_root.flowerCombo.yellow.l5 = new Array();
_root.flowerCombo.yellow.l5[1] = new Array(5, 18, 18, 9, 10, 9, 10);
_root.flowerCombo.yellow.l5[2] = new Array(5, 5, 14, 14, 19, 19, 20);
_root.flowerCombo.yellow.l5[3] = new Array(5, 11, 11, 17, 17, 19, 20);
_root.flowerCombo.white.l3 = new Array();
_root.flowerCombo.white.l3[1] = new Array(3, 3, 18, 20, 8);
_root.flowerCombo.white.l3[2] = new Array(3, 3, 12, 17, 20);
_root.flowerCombo.white.l3[3] = new Array(3, 3, 7, 7, 11, 11);
_root.flowerCombo.white.l4 = new Array();
_root.flowerCombo.white.l4[1] = new Array(3, 3, 18, 8, 16, 13, 19);
_root.flowerCombo.white.l4[2] = new Array(3, 3, 14, 14, 19, 19, 20);
_root.flowerCombo.white.l4[3] = new Array(3, 11, 7, 11, 19, 20);
_root.flowerCombo.white.l5 = new Array();
_root.flowerCombo.white.l5[1] = new Array(3, 18, 18, 9, 10, 9, 10);
_root.flowerCombo.white.l5[2] = new Array(3, 3, 7, 7, 17, 17, 20);
_root.flowerCombo.white.l5[3] = new Array(3, 18, 8, 17, 17, 19, 20);
_root.flowerCombo.purple.l3 = new Array();
_root.flowerCombo.purple.l3[1] = new Array(4, 4, 7, 7, 15);
_root.flowerCombo.purple.l3[2] = new Array(4, 4, 18, 9, 9);
_root.flowerCombo.purple.l3[3] = new Array(4, 4, 17, 7, 7);
_root.flowerCombo.purple.l4 = new Array();
_root.flowerCombo.purple.l4[1] = new Array(4, 4, 12, 12, 11, 11);
_root.flowerCombo.purple.l4[2] = new Array(4, 4, 7, 7, 17, 17);
_root.flowerCombo.purple.l4[3] = new Array(4, 4, 18, 18, 8, 8, 13);
_root.flowerCombo.purple.l5 = new Array();
_root.flowerCombo.purple.l5[1] = new Array(4, 4, 7, 7, 15, 19, 13);
_root.flowerCombo.purple.l5[2] = new Array(4, 4, 12, 12, 16, 16, 20);
_root.flowerCombo.purple.l5[3] = new Array(4, 4, 14, 13, 19, 17, 20);
_root.flowerCombo.basket.l3 = new Array();
_root.flowerCombo.basket.l3[1] = new Array(6, 18, 8, 15, 20);
_root.flowerCombo.basket.l3[2] = new Array(6, 18, 8, 17, 17);
_root.flowerCombo.basket.l3[3] = new Array(6, 11, 11, 15, 15);
_root.flowerCombo.basket.l4 = new Array();
_root.flowerCombo.basket.l4[1] = new Array(6, 18, 10, 9, 13, 19);
_root.flowerCombo.basket.l4[2] = new Array(6, 18, 9, 9, 10, 10);
_root.flowerCombo.basket.l4[3] = new Array(6, 18, 8, 13, 13, 16, 16);
_root.flowerCombo.basket.l5 = new Array();
_root.flowerCombo.basket.l5[1] = new Array(6, 11, 11, 12, 12, 16, 16);
_root.flowerCombo.basket.l5[2] = new Array(6, 18, 9, 9, 19, 20, 20);
_root.flowerCombo.basket.l5[3] = new Array(6, 18, 8, 17, 17, 20, 20);
_root.combo34 = new Array(6, 11, 11, 17, 17);
_root.combo45 = new Array(6, 12, 12, 13, 13);
_root.flowerCombo.vase.l3 = new Array();
_root.flowerCombo.vase.l3[1] = new Array(1, 18, 12, 11, 8);
_root.flowerCombo.vase.l3[2] = new Array(1, 7, 7, 19, 19, 13);
_root.flowerCombo.vase.l3[3] = new Array(1, 18, 8, 16, 13, 19);
_root.flowerCombo.vase.l4 = new Array();
_root.flowerCombo.vase.l4[1] = new Array(1, 18, 8, 11, 13, 19);
_root.flowerCombo.vase.l4[2] = new Array(1, 18, 7, 7, 13, 19, 20);
_root.flowerCombo.vase.l4[3] = new Array(1, 18, 18, 8, 8, 17, 17);
_root.flowerCombo.vase.l5 = new Array();
_root.flowerCombo.vase.l5[1] = new Array(1, 18, 8, 11, 12, 16, 17);
_root.flowerCombo.vase.l5[2] = new Array(1, 7, 18, 9, 10, 19, 13);
_root.flowerCombo.vase.l5[3] = new Array(1, 7, 7, 12, 12, 11, 11);
_root.combo39 = new Array(1, 7, 7, 11, 12);
_root.combo40 = new Array(1, 18, 8, 11, 12);
_root.combo41 = new Array(1, 18, 8, 13, 19);
offVisible = function (which, whichMC) {
var v2 = 1;
while (v2 < 21) {
_root[whichMC][which][which + '_' + v2 + '_1']._visible = false;
_root[whichMC][which][which + '_' + v2 + '_2']._visible = false;
++v2;
}
};
onVisible = function (whichF, which, whichMC) {
if (_root[whichMC][which][which + '_' + whichF + '_1']._visible == false) {
_root[whichMC][which][which + '_' + whichF + '_1']._visible = true;
} else {
_root[whichMC][which][which + '_' + whichF + '_2']._visible = true;
}
};
setWrapperName = function (which) {
if (which[0] == 1) {
tempName = 'combos_vase';
return tempName;
}
if (which[0] == 2) {
tempName = 'combos_wrapper1';
if (which[1] == 2) {
tempName = 'combos_wrapper2';
}
return tempName;
}
if (which[0] == 3) {
tempName = 'combos_wrapper1';
if (which[1] == 3) {
tempName = 'combos_wrapper2';
}
return tempName;
}
if (which[0] == 4) {
tempName = 'combos_wrapper1';
if (which[1] == 4) {
tempName = 'combos_wrapper2';
}
return tempName;
}
if (which[0] == 5) {
tempName = 'combos_wrapper1';
if (which[1] == 5) {
tempName = 'combos_wrapper2';
}
return tempName;
}
if (which[0] == 6) {
tempName = 'combos_bucket';
}
return tempName;
};
onAllVisible = function (whichCombo, which, whichMC) {
var v1 = 0;
while (v1 < whichCombo.length) {
onVisible(whichCombo[v1], which, whichMC);
++v1;
}
};
checkClick = function (which) {
tempCheck = 0;
for (var v3 in _root.currentFlower) {
if (_root.currentFlower[v3] == which) {
tempCheck += 1;
}
}
if ((which == 1 or which == 6) and _root.currentFlower[0] != undefined) {
return false;
} else {
if ((which == 2 or which == 3 or which == 4 or which == 5) and (_root.currentFlower[0] != undefined and _root.currentFlower[0] != which or _root.currentFlower[1] != undefined)) {
return false;
} else {
if (which >= 7 and _root.currentFlower[0] == undefined) {
return false;
} else {
if (tempCheck >= 2) {
return false;
} else {
return true;
}
}
}
}
};
checkDragging = function () {
var v2 = 1;
while (v2 <= 4) {
if (_root['talk_mc' + v2].hitTest(_xmouse, _ymouse, true) == true) {
if (_root.dragging == 23) {
bookSound.start();
if (_root['char_combo' + v2] == 'waiting') {
_root['char_combo' + v2] = 'catelog';
_root.setup_chars(v2);
_root['char_timer' + v2] = 0;
if (_root.tutorial_mc._currentframe == 2) {
_root.tutorial_mc.nextFrame();
}
}
} else {
if (_root.dragging == 21 or _root.dragging == 22) {
drinkSound.start();
var v3 = _root['talk_mc' + v2].hearts._currentframe - 4;
if (_root.flowerLevel[6] == 3) {
v3 -= 2;
}
if (_root.flowerLevel[6] == 4) {
v3 -= 2;
}
if (_root.flowerLevel[6] == 5) {
v3 -= 2;
}
if (v3 < 1) {
v3 = 1;
}
_root['click_' + _root.dragging + '_ani']._visible = false;
_root['click_' + _root.dragging + '_timer']._visible = true;
if (_root.flowerLevel[6] == 1) {
tempFrame = 1;
} else {
if (_root.flowerLevel[6] == 2) {
tempFrame = 31;
} else {
if (_root.flowerLevel[6] == 3) {
tempFrame = 46;
} else {
if (_root.flowerLevel[6] == 4) {
tempFrame = 61;
} else {
if (_root.flowerLevel[6] == 5) {
tempFrame = 76;
}
}
}
}
}
_root['click_' + _root.dragging + '_timer'].gotoAndPlay(tempFrame);
_root['talk_mc' + v2].hearts.gotoAndStop(v3);
characterShowEmotion(_root['talk_mc' + v2]);
_root['talk_mc' + v2].speak.speak.gotoAndStop(1);
_root['char_timer' + v2] = 0;
if (_root.tutorial_mc._currentframe == 11) {
_root.tutorial_mc.nextFrame();
}
} else {
if (_root.dragging == 50) {
if (_root['char_combo' + v2] != 'waiting' and _root['char_combo' + v2] != 'catelog' and _root['char_combo' + v2] != '') {
tempArray = new Array();
for (var v6 in _root['char_combo' + v2]) {
tempArray.push(_root['char_combo' + v2][v6]);
}
checkAnswer = true;
if (_root.currentFlower.length == tempArray.length) {
for (v6 in tempArray) {
checkOk = false;
for (var v5 in _root.currentFlower) {
if (tempArray[v6] == _root.currentFlower[v5]) {
tempArray.splice(v6, 1);
checkOk = true;
break;
}
}
if (checkOk == false) {
checkAnswer = false;
break;
}
}
} else {
checkAnswer = false;
}
if (checkAnswer == true) {
trace('correct');
correct.start();
_root.served += 1;
_root['earning_mc' + v2].earning.text = '+$' + _root['char_comboPrice' + v2];
_root['earning_mc' + v2].play();
_root.earning += _root['char_comboPrice' + v2];
var v4 = Math.round(_root['char_comboPrice' + v2] / 2);
_root.tipsEarned += v4;
_root['earning_mc' + v2].bonus.text = '+$' + v4;
_root['char_combo' + v2] = '';
_root['char_comboPrice' + v2] = 0;
charLeave(v2);
_root.notes.todayearning.text = _root.earning;
_root.notes2.todayearning.text = _root.notServed;
_root.notes.tips_t.text = _root.tipsEarned;
if (_root.tutorial_mc._currentframe == 12) {
_root.tutorial_mc.nextFrame();
}
} else {
wrong.start();
var v3 = _root['talk_mc' + v2].hearts._currentframe + 2;
if (v3 > _root['talk_mc' + v2].hearts._totalframes) {
v3 = _root['talk_mc' + v2].hearts._totalframes;
}
_root['talk_mc' + v2].hearts.gotoAndStop(v3);
characterShowEmotion(_root['talk_mc' + v2]);
if (_root['talk_mc' + v2].hearts._currentframe >= 9) {
_root['talk_mc' + v2].speak.speak.play();
}
}
_root.creator_mc[_root.currentWrapper].removeMovieClip();
_root.currentFlower = new Array();
}
}
}
}
break;
}
++v2;
}
_root.dragging = 0;
};
charLeave = function (which) {
_root['char_combo' + which] = '';
_root['talk_mc' + which].gotoAndPlay(7);
_root['talk_mc' + which].attachMovie('book2', 'book2', 1, {'_x': 0, '_y': -20});
_root['talk_mc' + which].book2._visible = false;
_root['talk_mc' + which].hearts._visible = false;
_root['talk_mc' + which].speak._visible = false;
_root['talk_mc' + which].enabled = false;
};
characterShowEmotion = function (whichChar) {
if (whichChar.hearts._currentframe < 8) {
whichChar.characters.char.gotoAndStop(1);
} else {
whichChar.characters.char.gotoAndStop('angry');
}
};
setUp_char_flowers = function (which, whichMC) {
tempName = setWrapperName(which);
_root[whichMC].attachMovie(tempName, tempName, 1, {'_x': 0, '_y': -25, '_xscale': 65, '_yscale': 65});
offVisible(tempName, whichMC);
onAllVisible(which, tempName, whichMC);
};
setup_chars = function (which) {
if (_root['char_combo' + which] != 'catelog' and _root['char_combo' + which] != 'waiting') {
setUp_char_flowers(_root['char_combo' + which], 'talk_mc' + which);
} else {
if (_root['char_combo' + which] == 'catelog') {
_root['talk_mc' + which].attachMovie('book', 'book', 1, {'_x': 0, '_y': -20});
} else {
if (_root['char_combo' + which] == 'waiting') {
_root['talk_mc' + which].attachMovie('book2', 'book2', 1, {'_x': 0, '_y': -20});
_root['talk_mc' + which].book2._visible = false;
}
}
}
};
showTime = function () {
gameEnds = false;
if (_root.clock._currentframe != _root.clock._totalframes) {
if (_root.tutorial_mc._currentframe < 4 or _root.tutorial_mc == undefined) {
_root.clock.nextFrame();
}
} else {
if (_root.tutorial_mc == undefined) {
gameEnds = true;
}
}
var v3 = 1;
while (v3 < 5) {
if (_root['char_combo' + v3] == 'catelog') {
if (_root['char_timerCat' + v3] < _root.char_catelog) {
_root['char_timerCat' + v3] += 1;
} else {
if (_root.tutorial_mc._currentframe == 3) {
_root.tutorial_mc.nextFrame();
}
randomFlower(v3);
_root['char_timerCat' + v3] = 0;
}
} else {
if (_root['char_combo' + v3] != '' and _root['talk_mc' + v3]._currentframe == 6) {
if (_root['char_timer' + v3] < _root.char_timeLimit) {
_root['char_timer' + v3] += 1;
} else {
if (_root.tutorial_mc == undefined) {
_root['char_timer' + v3] = 0;
if (_root['talk_mc' + v3].hearts._currentframe != _root['talk_mc' + v3].hearts._totalframes) {
_root['talk_mc' + v3].hearts.nextFrame();
if (_root['talk_mc' + v3].bigSpender == true) {
_root['talk_mc' + v3].hearts.nextFrame();
}
characterShowEmotion(_root['talk_mc' + v3]);
if (_root['talk_mc' + v3].hearts._currentframe >= 9) {
_root['talk_mc' + v3].speak.speak.play();
}
} else {
trace('timeUp');
_root['char_combo' + v3] = '';
charLeave(v3);
_root.notServed += 1;
_root.notes2.todayearning.text = _root.notServed;
if (_root.notServed >= 3) {
clearInterval(_root.intervalID);
_root.gotoAndStop('endgame');
Key.removeListener(myListener);
}
wrong.start();
}
}
}
}
}
++v3;
}
if (gameEnds == false) {
if (_root.tutorial_mc == undefined) {
var v4 = false;
v3 = 1;
while (v3 <= _root.customersMaxNum) {
if (_root['talk_mc' + v3].activated == false) {
v4 = true;
break;
}
++v3;
}
if (v4 == true) {
_root.createCustomer_timer += 1;
}
}
if (_root.createCustomer_timer >= _root.createCustomer_timing) {
v3 = 1;
while (v3 <= _root.customersMaxNum) {
if (_root['talk_mc' + v3]._currentframe == 1 and _root['talk_mc' + v3].activated == false) {
_root['talk_mc' + v3].gotoAndPlay(2);
_root['talk_mc' + v3].enabled = true;
trace('new char');
_root['talk_mc' + v3].hearts.gotoAndStop(1);
characterShowEmotion(_root['talk_mc' + v3]);
var v2 = randRange(1, 8);
_root['talk_mc' + v3].bigSpender = false;
if (_root.bigSpenderTime == true) {
v2 = 31;
_root.bigSpenderTime = false;
_root['talk_mc' + v3].bigSpender = true;
} else {
if (_root.charRandomLook == 1) {
v2 = randRange(1, 8);
} else {
if (_root.charRandomLook == 2) {
v2 = randRange(11, 18);
} else {
if (_root.charRandomLook == 3) {
v2 = randRange(21, 28);
}
}
}
}
_root['talk_mc' + v3].characters.gotoAndStop(v2);
_root['char_combo' + v3] = 'waiting';
_root['talk_mc' + v3].speak.speak.gotoAndStop(1);
setup_chars(v3);
_root.createCustomer_timer = 0;
_root['talk_mc' + v3].gotoAndPlay(2);
break;
}
++v3;
}
}
} else {
var v5 = true;
v3 = 1;
while (v3 < 5) {
if (_root['talk_mc' + v3].activated == true) {
v5 = false;
}
++v3;
}
if (v5 == true) {
clearInterval(_root.intervalID);
_root.gotoAndStop('endgame');
Key.removeListener(myListener);
}
}
};
checkPrice = function (which, checkBigSpender) {
var v2 = 0;
if (_root.flowerTypeArray[which] == 'vase' or _root.flowerTypeArray[which] == 'basket') {
v2 = 6 * _root.flowerLevel[which];
} else {
v2 = 4 * _root.flowerLevel[which];
}
if (_root.valentinePromo == true) {
if (_root.flowerTypeArray[which] == 'yellow' or _root.flowerTypeArray[which] == 'pink') {
v2 *= 2;
}
} else {
if (_root.weddingPromo == true) {
if (_root.flowerTypeArray[which] == 'white' or _root.flowerTypeArray[which] == 'purple') {
v2 *= 2;
}
} else {
if (_root.shopPromo == true) {
v2 *= 2;
}
}
}
if (checkBigSpender == true) {
v2 *= 5;
}
return v2;
};
randomFlower = function (which) {
_root['earning_mc' + which]._xscale = 77.59999999999999;
_root['earning_mc' + which]._yscale = 77.59999999999999;
var v4 = 0;
var v5 = 0;
while (v4 == 0) {
var v2 = random(_root.flowerTypeArray.length);
var v6 = random(3) + 1;
if (_root.flowerLevel[v2] != 0) {
if (_root['talk_mc' + which].bigSpender == true) {
if (_root.flowerTypeArray[v2] == 'vase' or _root.flowerTypeArray[v2] == 'basket') {
v4 = 1;
_root['earning_mc' + which]._xscale = 125;
_root['earning_mc' + which]._yscale = 125;
}
} else {
if (_root.valentinePromo == true) {
if (_root.flowerTypeArray[v2] == 'yellow' or _root.flowerTypeArray[v2] == 'pink') {
v4 = 1;
_root['earning_mc' + which]._xscale = 95;
_root['earning_mc' + which]._yscale = 95;
} else {
if (v5 >= 2) {
v4 = 1;
} else {
v5 += 1;
}
}
} else {
if (_root.weddingPromo == true) {
if (_root.flowerTypeArray[v2] == 'white' or _root.flowerTypeArray[v2] == 'purple') {
v4 = 1;
_root['earning_mc' + which]._xscale = 95;
_root['earning_mc' + which]._yscale = 95;
} else {
if (v5 >= 2) {
v4 = 1;
} else {
v5 += 1;
}
}
} else {
v4 = 1;
}
}
}
}
if (v4 != 0) {
_root['char_combo' + which] = _root.flowerCombo[_root.flowerTypeArray[v2]]['l' + _root.flowerLevel[v2]][v6];
_root['char_comboPrice' + which] = checkPrice(v2, _root['talk_mc' + which].bigSpender);
}
}
setup_chars(which);
};
}
frame 92 {
var saveobj = new Gamesaves_slot();
_root.depth = new Object();
_root.depth.music = 9050;
_root.createEmptyMovieClip('menuMusicObj', _root.depth.music + 1);
var menuMusic = new Sound(menuMusicObj);
menuMusic.attachSound('Swing_Thing_120_secMenu.mp3');
menuMusic.setVolume(60);
_root.createEmptyMovieClip('gameMusicObj', _root.depth.music + 2);
var gameMusic = new Sound(gameMusicObj);
gameMusic.attachSound('Swing_Thing_120_secPlay.mp3');
gameMusic.setVolume(60);
_root.createEmptyMovieClip('drinkSoundObj', _root.depth.music + 3);
var drinkSound = new Sound(drinkSoundObj);
drinkSound.attachSound('465678_SOUNDDOGS_Li.mp3.mp3');
_root.createEmptyMovieClip('bookSoundObj', _root.depth.music + 4);
var bookSound = new Sound(bookSoundObj);
bookSound.attachSound('688918_SOUNDDOGS__of.mp3.mp3');
_root.createEmptyMovieClip('correctObj', _root.depth.music + 5);
var correct = new Sound(correctObj);
correct.attachSound('buyitem.wav');
_root.createEmptyMovieClip('wrongObj', _root.depth.music + 6);
var wrong = new Sound(wrongObj);
wrong.attachSound('645757_SOUNDDOGS__bu.mp3.mp3');
_root.createEmptyMovieClip('flowerSoundObj', _root.depth.music + 7);
var flowerSound = new Sound(flowerSoundObj);
flowerSound.attachSound('CLICK020.wav');
_root.createEmptyMovieClip('buttonSoundObj', _root.depth.music + 8);
var buttonSound = new Sound(buttonSoundObj);
buttonSound.attachSound('Click_18-Partners-80_hifi.mp3');
_root.createEmptyMovieClip('weddingMusicObj', _root.depth.music + 9);
var weddingMusic = new Sound(weddingMusicObj);
weddingMusic.attachSound('wedding.mp3');
weddingMusic.setVolume(60);
_root.createEmptyMovieClip('shopMusicObj', _root.depth.music + 10);
var shopMusic = new Sound(shopMusicObj);
shopMusic.attachSound('shop.mp3');
shopMusic.setVolume(60);
_root.createEmptyMovieClip('lovesongMusicObj', _root.depth.music + 11);
var lovesongMusic = new Sound(lovesongMusicObj);
lovesongMusic.attachSound('lovesong.mp3');
lovesongMusic.setVolume(60);
_root.mute = false;
_root.soundControl = new Sound();
}
// unknown tag 88 length 73
movieClip 329 {
}
frame 93 {
function disableButtons() {
_root.b_play.enabled = false;
_root.b_soundOn.enabled = false;
_root.b_soundOff.enabled = false;
_root.b_tutorial.enabled = false;
_root.b_score.enabled = false;
_root.b_frosmo.enabled = false;
_root.b_frosmo_2.enabled = false;
_root.b_nobstudio.enabled = false;
}
function enableButtons() {
_root.b_play.enabled = true;
_root.b_soundOn.enabled = true;
_root.b_soundOff.enabled = true;
_root.b_tutorial.enabled = true;
_root.b_score.enabled = true;
_root.b_frosmo.enabled = true;
_root.b_frosmo_2.enabled = true;
_root.b_nobstudio.enabled = true;
}
function doNothing() {
trace('Do Nothing');
}
if (_root.localization_portal == 'game_com_cn') {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=button_gameover_moregames', '_blank');
};
}
_root.level = 0;
_root.totalEarning = 0;
stop();
_root.bordersMC.gotoAndStop(1);
_root.bordersMC2.gotoAndStop(1);
_root.bordersMC3.gotoAndStop(1);
menuMusic.stop();
gameMusic.stop();
lovesongMusic.stop();
weddingMusic.stop();
shopMusic.stop();
menuMusic.start(0, 999);
_root.b_play.onRollOver = function () {
buttonSound.start();
};
_root.b_play.onRelease = function () {
_root.totalEarning = 0;
_root.gameType = 1;
_root.gotoAndStop('chooseCampaign');
_root.earning = 0;
};
_root.b_challengeMode.onRollOver = function () {
buttonSound.start();
};
_root.b_challengeMode.onRelease = function () {
_root.totalEarning = 0;
_root.gameType = 2;
_root.gotoAndStop('chooseChallenge');
_root.earning = 0;
};
if (_root.level <= 1) {
_root.b_continue._visible = false;
}
_root.b_tutorial.onRollOver = function () {
buttonSound.start();
};
_root.b_tutorial.onRelease = function () {
_root.totalEarning = 0;
_root.level = 6;
_root.gotoAndStop('tutorial');
};
_root.b_soundOn.onRollOver = function () {
buttonSound.start();
};
_root.b_soundOn.onRelease = function () {
_root.b_soundOn._visible = false;
_root.b_soundOff._visible = true;
_root.mute = false;
_root.soundControl.setVolume(100);
};
_root.b_soundOff.onRollOver = function () {
buttonSound.start();
};
_root.b_soundOff.onRelease = function () {
_root.b_soundOn._visible = true;
_root.b_soundOff._visible = false;
_root.mute = true;
_root.soundControl.setVolume(0);
};
if (_root.mute == false) {
_root.b_soundOn._visible = false;
_root.b_soundOff._visible = true;
} else {
_root.b_soundOn._visible = true;
_root.b_soundOff._visible = false;
}
_root.b_credits.onRollOver = function () {
buttonSound.start();
};
_root.b_credits.onRelease = function () {
_root.gotoAndStop('credits');
};
_root.b_add.onRollOver = function () {
buttonSound.start();
};
_root.b_add.onRelease = function () {
getURL('http://gameportal.net', '_blank');
};
_root.b_score.onRollOver = function () {
buttonSound.start();
};
_root.b_score.onRelease = function () {
var v2 = {'n': [10, 12, 12, 12, 8, 8, 6, 5, 2, 12, 9, 2, 1, 3, 13, 14], 'f': function (i, s) {
if (s.length == 16) {
return s;
}
return this.f(i + 1, s + this.n[i].toString(16));
}};
var v3 = v2.f(0, '');
mochi.as2.MochiScores.showLeaderboard({'boardID': v3, 'onClose': doNothing});
};
}
movieClip 331 {
}
movieClip 332 {
}
movieClip 335 {
}
movieClip 336 {
}
movieClip 337 {
}
movieClip 338 {
}
movieClip 339 {
}
movieClip 340 {
}
movieClip 341 {
}
movieClip 342 {
}
movieClip 343 {
}
movieClip 344 {
}
movieClip 345 {
}
movieClip 346 {
}
movieClip 347 {
}
movieClip 348 {
}
// unknown tag 88 length 118
movieClip 354 {
}
// unknown tag 88 length 178
movieClip 359 {
}
movieClip 368 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 376 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 387 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 398 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 405 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 410 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 416 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 421 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 427 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 434 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 439 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 450 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 453 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 457 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 460 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 465 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 477 {
}
movieClip 494 {
}
movieClip 498 {
}
movieClip 503 {
}
movieClip 511 {
}
movieClip 512 {
frame 1 {
gotoAndStop(_root.localization_branding_nr);
}
frame 1 {
stop();
}
}
movieClip 529 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 534 {
}
movieClip 535 {
}
movieClip 536 {
}
movieClip 537 {
}
frame 94 {
stop();
_root.customersMaxNum = 4;
_root.currentWrapper = '';
_root.char_combo1 = '';
_root.char_combo2 = '';
_root.char_combo3 = '';
_root.currentFlower = new Array();
_root.createCustomer_timing = 3;
_root.createCustomer_timer = _root.createCustomer_timing;
_root.click_21_timer._visible = false;
_root.click_21_timer.which = 21;
_root.click_22_timer._visible = false;
_root.click_22_timer.which = 22;
var i = 0;
while (i < 8) {
_root['answer_mc_' + i].gotoAndStop('none');
++i;
}
_root.equal._visible = false;
onAllVisible();
if (_root.campaign == 1) {
for (var i in _root['levelFlower' + _root.level]) {
_root['click_' + _root['levelFlower' + _root.level][i] + '_ani']._visible = false;
}
}
var i = 1;
while (i <= 4) {
_root['talk_mc' + i].characters.char.stop();
_root['talk_mc' + i].speak.stop();
_root['talk_mc' + i].speak.speak.gotoAndStop(1);
_root['talk_mc' + i].hearts.stop();
_root['talk_mc' + i].speak._visible = false;
_root['talk_mc' + i].hearts._visible = false;
_root['talk_mc' + i].which = i;
_root['talk_mc' + i].onEnterFrame = function () {
if (this.hitTest(_xmouse, _ymouse, true) == true) {
this.characters.char.play();
this.speak.play();
} else {
characterShowEmotion(this);
this.speak.gotoAndStop(1);
}
};
_root['talk_mc' + i].onPress = function () {
if (_root['char_combo' + this.which] != 'catelog' and _root['char_combo' + this.which] != 'waiting') {
setUp_char_flowers(_root['char_combo' + this.which], 'creator_mc2');
var v3 = 0;
while (v3 < 8) {
_root['answer_mc_' + v3].gotoAndStop('none');
++v3;
}
v3 = 0;
while (v3 < _root['char_combo' + this.which].length) {
_root['answer_mc_' + v3].gotoAndStop(_root['char_combo' + this.which][v3]);
++v3;
}
_root.equal._visible = true;
}
if (_root.tutorial_mc._currentframe == 4) {
_root.tutorial_mc.nextFrame();
}
};
++i;
}
var i = 1;
while (i <= 4) {
_root.char_catelog = 5;
_root['char_timer' + i] = 0;
_root['char_timerCat' + i] = 0;
_root['talk_mc' + i].hearts.stop();
++i;
}
if (_root.campaign == 1) {
_root.char_timeLimit = 6;
} else {
_root.char_timeLimit = 3;
}
_root.bordersMC.gotoAndStop(_root.campaign);
_root.bordersMC2.gotoAndStop(_root.campaign);
_root.bordersMC3.gotoAndStop(_root.campaign);
_root.backgroundSky.gotoAndStop(1);
if (_root.flowerLevel[6] == 0) {
_root.click_21_ani._visible = false;
_root.click_22_ani._visible = false;
} else {
_root.click_21_ani.drink.gotoAndStop(_root.flowerLevel[6]);
_root.click_22_ani.drink.gotoAndStop(_root.flowerLevel[6]);
}
var i = 1;
while (i < 21) {
_root['click_' + i + '_ani'].stop();
++i;
}
var i = 21;
while (i < 24) {
_root['click_' + i + '_ani'].stop();
++i;
}
_root.timer = 0;
_root.served = 0;
_root.notServed = 0;
_root.earning = 0;
_root.tipsEarned = 0;
_root.gate_mc1.days_mc.gotoAndStop(_root.level);
}
movieClip 542 {
}
movieClip 544 {
}
movieClip 545 {
}
movieClip 548 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 551 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 554 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 559 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 563 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 566 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 568 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 571 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 573 {
}
movieClip 578 {
frame 9 {
this.gotoAndPlay(1);
}
frame 19 {
this.gotoAndPlay(11);
}
}
movieClip 579 {
frame 1 {
stop();
}
}
movieClip 581 {
}
movieClip 582 {
}
movieClip 583 {
}
movieClip 587 {
}
movieClip 589 {
frame 1 {
stop();
this.activated = false;
}
frame 2 {
this.activated = true;
}
frame 6 {
this.speak._visible = true;
this.hearts._visible = true;
this.book2._visible = true;
stop();
}
}
movieClip 592 {
frame 1 {
stop();
}
frame 38 {
trace('Test');
}
}
movieClip 596 {
}
movieClip 597 {
}
movieClip 599 {
}
movieClip 607 {
}
movieClip 608 {
}
movieClip 613 {
}
movieClip 616 {
}
movieClip 617 {
frame 1 {
stop();
_root.bigSpenderTime = false;
}
frame 57 {
if (_root.notServed <= 0) {
if (_root.flowerLevel[4] >= 4 or _root.flowerLevel[5] >= 4) {
if (_root.campaign >= 5) {
_root.bigSpenderTime = true;
}
}
}
}
}
movieClip 619 {
}
movieClip 625 {
}
movieClip 627 {
}
movieClip 629 {
}
movieClip 631 {
}
movieClip 632 {
}
movieClip 633 {
}
movieClip 634 {
}
movieClip 635 {
}
movieClip 636 {
}
movieClip 637 {
}
movieClip 638 {
}
movieClip 640 {
}
movieClip 641 {
}
movieClip 643 {
}
movieClip 644 {
}
movieClip 645 {
}
movieClip 646 {
}
movieClip 647 {
}
movieClip 648 {
}
movieClip 649 {
}
movieClip 650 {
}
movieClip 651 {
}
movieClip 653 {
}
movieClip 660 {
}
movieClip 661 {
}
movieClip 663 {
}
movieClip 665 {
frame 1 {
stop();
}
}
movieClip 666 {
frame 60 {
stop();
_root.gotoAndStop('play2');
}
}
frame 95 {
menuMusic.stop();
gameMusic.start();
var i = 1;
while (i < 21) {
_root['click_' + i + '_ani'].stop();
_root['click_' + i + '_ani'].which = i;
_root['click_' + i + '_ani'].onRollOver = function () {
if (checkClick(this.which) == true) {
this.play();
}
};
_root['click_' + i + '_ani'].onRollOut = function () {
this.gotoAndStop(1);
};
_root['click_' + i + '_ani'].onPress = function () {
if (_root.tutorial_mc._currentframe >= 6 or _root.tutorial_mc == undefined) {
flowerSound.start();
if (checkClick(this.which) == true) {
_root.currentFlower.push(this.which);
trace(_root.currentFlower);
if (this.which <= 6) {
_root.currentWrapper = setWrapperName(_root.currentFlower);
_root.creator_mc.attachMovie(_root.currentWrapper, _root.currentWrapper, 1, {'_x': 0, '_y': -10});
offVisible(_root.currentWrapper, 'creator_mc');
onVisible(this.which, _root.currentWrapper, 'creator_mc');
} else {
onVisible(this.which, _root.currentWrapper, 'creator_mc');
}
this.gotoAndStop(1);
}
if (_root.tutorial_mc._currentframe == 6 or _root.tutorial_mc._currentframe == 7) {
_root.tutorial_mc.nextFrame();
}
}
};
++i;
}
var i = 21;
while (i < 24) {
_root['click_' + i + '_ani'].stop();
_root['click_' + i + '_ani'].which = i;
_root['click_' + i + '_ani'].onRollOver = function () {
this.play();
};
_root['click_' + i + '_ani'].onRollOut = function () {
this.gotoAndStop(1);
};
_root['click_' + i + '_ani'].onPress = function () {
if (_root.tutorial_mc._currentframe >= 2) {
flowerSound.start();
this.duplicateMovieClip('tempDrag', 2, {'_alpha': 50});
_root.tempDrag.startDrag();
_root.dragging = this.which;
if (_root.dragging == 21 or _root.dragging == 22) {
trace('juice');
_root.tempDrag.drink.gotoAndStop(_root.flowerLevel[6]);
}
_root.onMouseUp = function () {
checkDragging();
_root.tempDrag.stopDrag();
_root.tempDrag.removeMovieClip();
_root.onMouseUp = function () {};
};
this.gotoAndStop(1);
}
};
++i;
}
_root.creator_mc.originalX = _root.creator_mc._x;
_root.creator_mc.originalY = _root.creator_mc._y;
creator_mc.onPress = function () {
if (_root.tutorial_mc._currentframe >= 12 or _root.tutorial_mc == undefined) {
flowerSound.start();
_root.dragging = 50;
_root.creator_mc.startDrag();
_root.creator_mc._alpha = 50;
_root.onMouseUp = function () {
checkDragging();
_root.creator_mc.stopDrag();
_root.creator_mc._alpha = 100;
_root.creator_mc._x = _root.creator_mc.originalX;
_root.creator_mc._y = _root.creator_mc.originalY;
_root.onMouseUp = function () {};
};
this.gotoAndStop(1);
}
};
b_clear.onPress = function () {
_root.creator_mc[_root.currentWrapper].removeMovieClip();
_root.currentFlower = new Array();
};
var intervalID = setInterval(showTime, 1000);
_root.notes.todayearning.text = _root.earning;
_root.notes.tips_t.text = _root.tipsEarned;
_root.notes2.todayearning.text = 0;
_root.tutorial_mc.b_skip.onRelease = function () {
clearInterval(_root.intervalID);
_root.gotoAndStop('menu');
};
}
movieClip 672 {
}
movieClip 686 {
frame 1 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 2 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 3 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 4 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 5 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 6 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 7 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 8 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 9 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 10 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 11 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
_root.talk_mc1.hearts.gotoAndStop(5);
}
frame 12 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 13 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 14 {
stop();
this.b_ok.onRelease = function () {
_root.tutorial_mc.nextFrame();
};
}
frame 15 {
stop();
this.b_ok.onRelease = function () {
clearInterval(_root.intervalID);
_root.gotoAndStop('endgame');
};
}
}
movieClip 688 {
}
movieClip 693 {
}
movieClip 696 {
}
frame 96 {
stop();
_root.currentWrapper = '';
_root.char_combo1 = '';
_root.char_combo2 = '';
_root.char_combo3 = '';
_root.currentFlower = new Array();
_root.createCustomer_timing = 3;
_root.createCustomer_timer = _root.createCustomer_timing - 1;
_root.click_21_timer._visible = false;
_root.click_21_timer.which = 21;
_root.click_22_timer._visible = false;
_root.click_22_timer.which = 22;
var i = 0;
while (i < 8) {
_root['answer_mc_' + i].gotoAndStop('none');
++i;
}
_root.equal._visible = false;
onAllVisible();
if (_root.campaign == 1) {
for (var i in _root['levelFlower' + _root.level]) {
_root['click_' + _root['levelFlower' + _root.level][i] + '_ani']._visible = false;
}
}
_root.customersMaxNum = 4;
if (_root.campaign == 1) {
if (_root.level <= 5) {
_root.customersMaxNum = 3;
_root.talk_mc4._visible = false;
} else {
_root.customersMaxNum = 4;
}
}
var i = 1;
while (i <= _root.customersMaxNum) {
_root['talk_mc' + i].characters.char.stop();
_root['talk_mc' + i].speak.stop();
_root['talk_mc' + i].speak.speak.gotoAndStop(1);
_root['talk_mc' + i].hearts.stop();
_root['talk_mc' + i].speak._visible = false;
_root['talk_mc' + i].hearts._visible = false;
_root['talk_mc' + i].which = i;
_root['talk_mc' + i].onEnterFrame = function () {
if (this.hitTest(_xmouse, _ymouse, true) == true) {
this.characters.char.play();
this.speak.play();
} else {
characterShowEmotion(this);
this.speak.gotoAndStop(1);
}
};
_root['talk_mc' + i].onPress = function () {
if (_root['char_combo' + this.which] != 'catelog' and _root['char_combo' + this.which] != 'waiting') {
setUp_char_flowers(_root['char_combo' + this.which], 'creator_mc2');
var v3 = 0;
while (v3 < 8) {
_root['answer_mc_' + v3].gotoAndStop('none');
++v3;
}
v3 = 0;
while (v3 < _root['char_combo' + this.which].length) {
_root['answer_mc_' + v3].gotoAndStop(_root['char_combo' + this.which][v3]);
++v3;
}
_root.equal._visible = true;
}
};
++i;
}
var i = 1;
while (i <= _root.customersMaxNum) {
_root.char_catelog = 5;
_root['char_timer' + i] = 0;
_root['char_timerCat' + i] = 0;
_root['talk_mc' + i].hearts.stop();
++i;
}
if (_root.campaign == 1) {
_root.char_timeLimit = 6;
} else {
if (_root.campaign == 2) {
if (_root.level == 1) {
_root.char_timeLimit = 5;
} else {
if (_root.level == 2) {
_root.char_timeLimit = 5;
} else {
if (_root.level == 3) {
_root.char_timeLimit = 4;
} else {
if (_root.level == 4) {
_root.char_timeLimit = 3;
} else {
if (_root.level == 5) {
_root.char_timeLimit = 2;
}
}
}
}
}
} else {
if (_root.campaign == 3) {
_root.char_timeLimit = 4;
} else {
if (_root.campaign == 4) {
if (_root.level <= 3) {
_root.char_timeLimit = 4;
} else {
_root.char_timeLimit = 3;
}
} else {
if (_root.campaign == 5) {
if (_root.level <= 2) {
_root.char_timeLimit = 4;
} else {
_root.char_timeLimit = 3;
}
} else {
if (_root.campaign == 6) {
if (_root.level <= 2) {
_root.char_timeLimit = 4;
} else {
if (_root.level <= 4) {
_root.char_timeLimit = 3;
} else {
if (_root.level <= 6) {
_root.char_timeLimit = 2;
} else {
if (_root.level <= 7) {
_root.char_timeLimit = 2;
}
}
}
}
} else {
if (_root.campaign == 7) {
if (_root.level <= 3) {
_root.char_timeLimit = 4;
} else {
if (_root.level <= 6) {
_root.char_timeLimit = 3;
} else {
if (_root.level <= 9) {
_root.char_timeLimit = 2;
} else {
if (_root.level <= 10) {
_root.char_timeLimit = 1;
}
}
}
}
}
}
}
}
}
}
}
if (_root.gameType == 2) {
if (_root.level == 1 or _root.level == 3 or _root.level == 6) {
_root.charRandomLook = 1;
} else {
if (_root.level == 2 or _root.level == 5 or _root.level == 8) {
_root.charRandomLook = 3;
} else {
if (_root.level == 4 or _root.level == 7 or _root.level == 9 or _root.level == 10) {
_root.charRandomLook = 2;
}
}
}
}
_root.bordersMC.gotoAndStop(_root.campaign);
_root.bordersMC2.gotoAndStop(_root.campaign);
_root.bordersMC3.gotoAndStop(_root.campaign);
if (_root.gameType == 2) {
_root.bordersMC.gotoAndStop(random(7) + 1);
}
_root.backgroundSky.gotoAndStop(1);
if (_root.flowerLevel[6] == 0) {
_root.click_21_ani._visible = false;
_root.click_22_ani._visible = false;
} else {
_root.click_21_ani.drink.gotoAndStop(_root.flowerLevel[6]);
_root.click_22_ani.drink.gotoAndStop(_root.flowerLevel[6]);
}
var i = 1;
while (i < 21) {
_root['click_' + i + '_ani'].stop();
++i;
}
var i = 21;
while (i < 24) {
_root['click_' + i + '_ani'].stop();
++i;
}
_root.timer = 0;
_root.served = 0;
_root.notServed = 0;
_root.earning = 0;
_root.tipsEarned = 0;
_root.gate_mc1.days_mc.gotoAndStop(_root.level);
}
movieClip 705 {
frame 1 {
stop();
}
}
// unknown tag 88 length 118
movieClip 715 {
frame 1 {
stop();
}
}
movieClip 721 {
frame 1 {
stop();
}
}
movieClip 726 {
frame 1 {
stop();
}
}
movieClip 743 {
}
movieClip 744 {
frame 14 {
if (_root.promotionCheck[0] == 0 and _root.promotionCheck[1] == 0 and _root.promotionCheck[2] == 0) {
this.gotoAndPlay(16);
_root.valentinePromo = false;
_root.weddingPromo = false;
_root.shopPromo = false;
}
}
frame 15 {
stop();
_root.valentinePromoPrice = 50;
_root.weddingPromoPrice = 50;
_root.shopPromoPrice = 100;
if (_root.campaign == 3) {
_root.valentinePromoPrice = 0;
} else {
if (_root.campaign == 4) {
_root.weddingPromoPrice = 0;
}
}
trace(_root.promotionCheck);
if (_root.promotionCheck[0] == 1) {
this.poster_valentine.gotoAndStop(1);
this.poster_valentine.onRollOver = function () {
buttonSound.start();
this._parent.promotionText.gotoAndStop(2);
this.gotoAndStop(3);
};
this.poster_valentine.onRollOut = function () {
buttonSound.start();
this._parent.promotionText.gotoAndStop(1);
this.gotoAndStop(1);
};
if (_root.money >= _root.valentinePromoPrice) {
this.poster_valentine.onRelease = function () {
_root.valentinePromo = true;
_root.weddingPromo = false;
_root.shopPromo = false;
_root.money -= _root.valentinePromoPrice;
this._parent.play();
};
} else {
this.poster_valentine.onRelease = function () {
this._parent.promotionText.gotoAndStop(5);
};
}
} else {
this.poster_valentine.gotoAndStop(2);
}
if (_root.promotionCheck[1] == 1) {
this.poster_wedding.gotoAndStop(1);
this.poster_wedding.onRollOver = function () {
buttonSound.start();
this._parent.promotionText.gotoAndStop(3);
this.gotoAndStop(3);
};
this.poster_wedding.onRollOut = function () {
buttonSound.start();
this._parent.promotionText.gotoAndStop(1);
this.gotoAndStop(1);
};
if (_root.money >= _root.weddingPromoPrice) {
this.poster_wedding.onRelease = function () {
_root.valentinePromo = false;
_root.weddingPromo = true;
_root.shopPromo = false;
_root.money -= _root.weddingPromoPrice;
this._parent.play();
};
} else {
this.poster_wedding.onRelease = function () {
this._parent.promotionText.gotoAndStop(5);
};
}
} else {
this.poster_wedding.gotoAndStop(2);
}
if (_root.promotionCheck[2] == 1) {
this.poster_flowerShop.gotoAndStop(1);
this.poster_flowerShop.onRollOver = function () {
buttonSound.start();
this._parent.promotionText.gotoAndStop(4);
this.gotoAndStop(3);
};
this.poster_flowerShop.onRollOut = function () {
buttonSound.start();
this._parent.promotionText.gotoAndStop(1);
this.gotoAndStop(1);
};
if (_root.money >= _root.shopPromoPrice) {
this.poster_flowerShop.onRelease = function () {
_root.valentinePromo = false;
_root.weddingPromo = false;
_root.shopPromo = true;
_root.money -= _root.shopPromoPrice;
this._parent.play();
};
} else {
this.poster_flowerShop.onRelease = function () {
this._parent.promotionText.gotoAndStop(5);
};
}
} else {
this.poster_flowerShop.gotoAndStop(2);
}
this.promotionText.gotoAndStop(1);
this.money_t.text = _root.money;
this.price1_t.text = _root.valentinePromoPrice;
this.price2_t.text = _root.weddingPromoPrice;
this.price3_t.text = _root.shopPromoPrice;
if (_root.yesterdayPromo == 1) {
this.poster_valentine.onRelease = function () {
this._parent.promotionText.gotoAndStop(6);
};
} else {
if (_root.yesterdayPromo == 2) {
this.poster_wedding.onRelease = function () {
this._parent.promotionText.gotoAndStop(6);
};
} else {
if (_root.yesterdayPromo == 3) {
this.poster_flowerShop.onRelease = function () {
this._parent.promotionText.gotoAndStop(6);
};
}
}
}
this.b_skip.onRollOver = function () {
buttonSound.start();
};
this.b_skip.onRelease = function () {
_root.valentinePromo = false;
_root.weddingPromo = false;
_root.shopPromo = false;
this._parent.play();
};
}
frame 16 {
if (_root.valentinePromo == true) {
_root.backgroundSky.gotoAndStop(2);
} else {
if (_root.weddingPromo == true) {
_root.backgroundSky.gotoAndStop(3);
} else {
if (_root.shopPromo == true) {
_root.backgroundSky.gotoAndStop(4);
} else {
_root.backgroundSky.gotoAndStop(1);
}
}
}
}
frame 61 {
stop();
_root.gotoAndStop('play');
}
}
frame 97 {
menuMusic.stop();
if (_root.valentinePromo == true) {
lovesongMusic.start(4);
} else {
if (_root.weddingPromo == true) {
weddingMusic.start(2);
} else {
if (_root.shopPromo == true) {
shopMusic.start();
} else {
gameMusic.start();
}
}
}
var i = 1;
while (i < 21) {
_root['click_' + i + '_ani'].stop();
_root['click_' + i + '_ani'].which = i;
_root['click_' + i + '_ani'].onRollOver = function () {
if (checkClick(this.which) == true) {
this.play();
}
};
_root['click_' + i + '_ani'].onRollOut = function () {
this.gotoAndStop(1);
};
_root['click_' + i + '_ani'].onPress = function () {
flowerSound.start();
if (checkClick(this.which) == true) {
_root.currentFlower.push(this.which);
trace(_root.currentFlower);
if (this.which <= 6) {
_root.currentWrapper = setWrapperName(_root.currentFlower);
_root.creator_mc.attachMovie(_root.currentWrapper, _root.currentWrapper, 1, {'_x': 0, '_y': -10});
offVisible(_root.currentWrapper, 'creator_mc');
onVisible(this.which, _root.currentWrapper, 'creator_mc');
} else {
onVisible(this.which, _root.currentWrapper, 'creator_mc');
}
this.gotoAndStop(1);
}
};
++i;
}
var i = 21;
while (i < 24) {
_root['click_' + i + '_ani'].stop();
_root['click_' + i + '_ani'].which = i;
_root['click_' + i + '_ani'].onRollOver = function () {
this.play();
};
_root['click_' + i + '_ani'].onRollOut = function () {
this.gotoAndStop(1);
};
_root['click_' + i + '_ani'].onPress = function () {
flowerSound.start();
this.duplicateMovieClip('tempDrag', 2, {'_alpha': 50});
_root.tempDrag.startDrag();
_root.dragging = this.which;
if (_root.dragging == 21 or _root.dragging == 22) {
_root.tempDrag.drink.gotoAndStop(_root.flowerLevel[6]);
}
_root.onMouseUp = function () {
checkDragging();
_root.tempDrag.stopDrag();
_root.tempDrag.removeMovieClip();
_root.onMouseUp = function () {};
};
this.gotoAndStop(1);
};
++i;
}
_root.creator_mc.originalX = _root.creator_mc._x;
_root.creator_mc.originalY = _root.creator_mc._y;
creator_mc.onPress = function () {
flowerSound.start();
_root.dragging = 50;
_root.creator_mc.startDrag();
_root.creator_mc._alpha = 50;
_root.onMouseUp = function () {
checkDragging();
_root.creator_mc.stopDrag();
_root.creator_mc._alpha = 100;
_root.creator_mc._x = _root.creator_mc.originalX;
_root.creator_mc._y = _root.creator_mc.originalY;
_root.onMouseUp = function () {};
};
this.gotoAndStop(1);
};
b_clear.onPress = function () {
_root.creator_mc[_root.currentWrapper].removeMovieClip();
_root.currentFlower = new Array();
};
var intervalID = setInterval(showTime, 1000);
var keyListener_obj = new Object();
keyListener_obj.onKeyDown = function () {
if (Key.getCode() !== 32) {
} else {
_root.clock.gotoAndStop(_root.clock._totalframes) - 1;
_root.earning = 1000;
}
};
_root.notes.todayearning.text = _root.earning;
_root.notes.tips_t.text = _root.tipsEarned;
_root.notes2.todayearning.text = 0;
}
frame 98 {
var i = 1;
while (i < 4) {
if (_root['char_combo' + i] != '') {
charLeave(i);
}
++i;
}
_root.gate_mc.days_mc.days.text = _root.level;
_root.gate_mc.score_chart.notServed.text = _root.notServed;
_root.gate_mc.score_chart.served.text = _root.served;
_root.gate_mc.b_done.onRollOver = function () {
buttonSound.start();
};
_root.gate_mc.b_done.onRelease = function () {
if (_root.notServed < 3) {
_root.level += 1;
_root.money += _root.todayearning;
_root.totalEarning += _root.todayearning;
if (_root.valentinePromo == true) {
_root.yesterdayPromo = 1;
} else {
if (_root.weddingPromo == true) {
_root.yesterdayPromo = 2;
} else {
if (_root.shopPromo == true) {
_root.yesterdayPromo = 3;
} else {
_root.yesterdayPromo = 0;
}
}
}
saveobj.preSave2();
saveobj.gameSave(_root.campaign);
}
if (_root.level > _root.dayArray[_root.campaign]) {
if (_root.gameType == 2) {
_root.gate_mc.b_done.onRelease = function () {
_root.gotoAndStop('submit');
};
} else {
_root.gotoAndStop('endMission');
}
} else {
if (_root.campaign == 1) {
_root.gotoAndStop('ingame2');
} else {
_root.gotoAndStop('ingame');
}
}
};
_root.gate_mc.b_retry.onRollOver = function () {
buttonSound.start();
};
_root.gate_mc.b_retry.onRelease = function () {
if (_root.campaign == 1) {
_root.gotoAndStop('ingame2');
} else {
_root.gotoAndStop('ingame');
}
};
_root.gate_mc.b_menu.onRollOver = function () {
buttonSound.start();
};
_root.gate_mc.b_menu.onRelease = function () {
_root.gotoAndStop('menu');
};
if (_root.notServed >= 3) {
_root.gate_mc.score_chart.gotoAndStop(2);
_root.gate_mc.score_chart.earning.text = '$ ' + _root.earning;
_root.gate_mc.score_chart.tips.text = '$ ' + _root.tipsEarned;
_root.todayearning = _root.earning + _root.tipsEarned;
_root.gate_mc.score_chart.todayearning.text = '$ ' + _root.todayearning;
if (_root.gameType == 2) {
_root.gate_mc.b_done.onRelease = function () {
_root.gotoAndStop('submit');
};
}
_root.gate_mc.b_retry._visible = false;
_root.gate_mc.b_done._visible = true;
_root.gate_mc.b_menu._visible = false;
_root.gate_mc.days_mc.gotoAndStop(2);
} else {
if (_root.notServed <= 0) {
_root.bonus = 50;
} else {
_root.bonus = 0;
}
_root.gate_mc.score_chart.gotoAndStop(1);
_root.gate_mc.score_chart.earning.text = '$ ' + _root.earning;
_root.gate_mc.score_chart.tips.text = '$ ' + _root.tipsEarned;
_root.gate_mc.score_chart.bonus.text = '$ ' + _root.bonus;
_root.todayearning = _root.earning + _root.bonus + _root.tipsEarned;
_root.gate_mc.score_chart.todayearning.text = '$ ' + _root.todayearning;
_root.gate_mc.b_retry._visible = false;
_root.gate_mc.b_done._visible = true;
_root.gate_mc.b_menu._visible = false;
}
var i = 1;
while (i < 21) {
_root['click_' + i + '_ani'].enabled = false;
++i;
}
var i = 21;
while (i < 24) {
_root['click_' + i + '_ani'].enabled = false;
++i;
}
_root.b_clear.enabled = false;
_root.creator_mc.enabled = false;
}
movieClip 771 {
frame 1 {
stop();
}
}
movieClip 775 {
frame 1 {
stop();
}
}
movieClip 776 {
frame 61 {
stop();
}
}
frame 99 {
stop();
if (_root.localization_portal == 'game_com_cn') {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=button_gameover_moregames', '_blank');
};
}
_root.b_nobstudio.onRelease = function () {
getURL('http://www.nobstudio.com', '_blank');
};
gameMusic.stop();
lovesongMusic.stop();
weddingMusic.stop();
shopMusic.stop();
menuMusic.stop();
menuMusic.start(0, 999);
if (_root.gameType == 1) {
_root.unlocked[_root.campaign] = 1;
if (_root.totalEarning > _root.highScoreArray[_root.campaign]) {
_root.highScoreArray[_root.campaign] = _root.totalEarning;
}
_root.currentProgress_t.text = 'DAY ' + (_root.level - 1) + '/' + _root.dayArray[_root.campaign];
_root.requirement_t3.text = '$' + _root.achievementArray[_root.campaign][0];
_root.requirement_t2.text = '$' + _root.achievementArray[_root.campaign][1];
_root.requirement_t1.text = '$' + _root.achievementArray[_root.campaign][2];
_root.currentHighScore = '$' + _root.totalEarning;
_root.highScore_t.text = _root.currentHighScore;
if (_root.currentHighScore >= _root.achievementArray[_root.campaign][2]) {
_root.achievementMC.gotoAndStop(1);
} else {
if (_root.currentHighScore >= _root.achievementArray[_root.campaign][1]) {
_root.achievementMC.gotoAndStop(2);
} else {
if (_root.currentHighScore >= _root.achievementArray[_root.campaign][0]) {
_root.achievementMC.gotoAndStop(3);
} else {
_root.achievementMC.gotoAndStop(4);
}
}
}
_root.gate_mc.b_menu.onRollOver = function () {
buttonSound.start();
};
_root.gate_mc.b_menu.onRelease = function () {
_root.gotoAndStop('chooseCampaign');
};
_root.shopType_mc.gotoAndStop(_root.campaign);
_root.b_menu.onRollOver = function () {
buttonSound.start();
};
_root.b_menu.onRelease = function () {
_root.gotoAndStop('chooseCampaign');
};
}
saveobj.preSave();
saveobj.gameSave(0);
}
movieClip 779 {
}
movieClip 781 {
}
// unknown tag 88 length 152
movieClip 795 {
}
movieClip 798 {
}
frame 100 {
if (_root.localization_portal == 'game_com_cn') {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=button_gameover_moregames', '_blank');
};
}
_root.b_nobstudio.onRelease = function () {
getURL('http://www.nobstudio.com', '_blank');
};
gameMusic.stop();
lovesongMusic.stop();
weddingMusic.stop();
shopMusic.stop();
menuMusic.start(0, 999);
_root.currentProgress_t.text = 'DAY ' + _root.level + '/' + _root.dayArray[_root.campaign];
if (_root.totalEarning > _root.highScoreArray[_root.campaign]) {
_root.highScoreArray[_root.campaign] = _root.totalEarning;
}
_root.score_chart.totalEarning.text = '$ ' + _root.totalEarning;
_root.b_submit.onRollOver = function () {
buttonSound.start();
};
_root.scoreSubmittedMC._visible = false;
_root.b_submit.onRelease = function () {
submitter.submitScore(_root.totalEarning);
_root.scoreSubmittedMC._visible = true;
};
_root.b_menu.onRollOver = function () {
buttonSound.start();
};
_root.b_menu.onRelease = function () {
_root.gotoAndStop('menu');
};
}
movieClip 808 {
}
movieClip 810 {
}
movieClip 814 {
}
frame 101 {
_root.promotionCheck = new Array(0, 0, 0);
saveobj.gameLoad(0);
saveobj.postLoad();
if (_root.unlocked[0] != 1) {
masterReset();
}
_root.requirement_t3.text = '----------';
_root.requirement_t2.text = '----------';
_root.requirement_t1.text = '----------';
_root.achievementMC.gotoAndStop(5);
_root.highScore_t.text = '----------';
_root.description_t.text = 'Click on any of the shops to select level.';
_root.currentProgress_t.text = '----------';
_root.b_continue.onRollOver = function () {
buttonSound.start();
};
_root.b_continue.onRelease = function () {
if (_root.campaign == 1) {
_root.gotoAndStop('ingame2');
} else {
_root.gotoAndStop('ingame');
}
};
_root.b_restart.onRollOver = function () {
buttonSound.start();
};
_root.b_restart.onRelease = function () {
_root.level = 1;
_root.money = 0;
_root.totalEarning = 0;
if (_root.campaign == 1) {
_root.flowerLevel = new Array(1, 1, 0, 0, 0, 0, 1);
} else {
if (_root.campaign == 2) {
_root.flowerLevel = new Array(1, 1, 1, 1, 1, 1, 1);
} else {
if (_root.campaign == 3) {
_root.flowerLevel = new Array(2, 2, 1, 1, 1, 1, 1);
} else {
if (_root.campaign == 4) {
_root.flowerLevel = new Array(1, 1, 2, 2, 1, 1, 1);
} else {
if (_root.campaign == 5) {
_root.flowerLevel = new Array(1, 1, 1, 1, 2, 2, 1);
} else {
if (_root.campaign == 6) {
_root.flowerLevel = new Array(2, 2, 2, 2, 2, 2, 2);
}
}
}
}
}
}
if (_root.campaign == 1) {
_root.gotoAndStop('ingame2');
} else {
_root.gotoAndStop('ingame');
}
};
_root.b_play.onRollOver = function () {
buttonSound.start();
};
_root.b_play.onRelease = function () {
saveobj.preSave();
saveobj.gameSave(0);
_root.level = 1;
_root.money = 0;
_root.totalEarning = 0;
if (_root.campaign == 1) {
_root.flowerLevel = new Array(1, 1, 0, 0, 0, 0, 1);
} else {
if (_root.campaign == 2) {
_root.flowerLevel = new Array(1, 1, 1, 1, 1, 1, 1);
} else {
if (_root.campaign == 3) {
_root.flowerLevel = new Array(2, 2, 1, 1, 1, 1, 1);
} else {
if (_root.campaign == 4) {
_root.flowerLevel = new Array(1, 1, 2, 2, 1, 1, 1);
} else {
if (_root.campaign == 5) {
_root.flowerLevel = new Array(2, 1, 2, 1, 2, 2, 1);
} else {
if (_root.campaign == 6) {
_root.flowerLevel = new Array(2, 2, 2, 2, 2, 2, 2);
}
}
}
}
}
}
if (_root.campaign == 1) {
_root.gotoAndStop('ingame2');
} else {
_root.gotoAndStop('ingame');
}
};
_root.b_continue._visible = false;
_root.b_restart._visible = false;
_root.b_play._visible = false;
_root.b_menu.onRollOver = function () {
buttonSound.start();
};
_root.b_menu.onRelease = function () {
_root.gotoAndStop('menu');
};
gameMusic.stop();
lovesongMusic.stop();
weddingMusic.stop();
shopMusic.stop();
menuMusic.stop();
menuMusic.start(0, 999);
_root.campaign = 0;
_root.requirementInfo = '';
_root.descriptionInfo = '';
var i = 1;
while (i <= 6) {
_root['campaignMC_' + i].gotoAndStop(1);
if (_root.unlocked[Number(i) - 1] == 0) {
_root['campaignMC_' + i].gotoAndStop(3);
_root['campaignMC_' + i].enabled = false;
}
_root['campaignMC_' + i].onRollOver = function () {
buttonSound.start();
this.gotoAndStop(2);
};
_root['campaignMC_' + i].onRollOut = function () {
this.gotoAndStop(1);
};
_root['campaignMC_' + i].which = i;
_root['campaignMC_' + i].onRelease = function () {
if (this.which == 1 or this.which == 5) {
_root.charRandomLook = 1;
} else {
if (this.which == 2 or this.which == 3) {
_root.charRandomLook = 3;
} else {
if (this.which == 4 or this.which == 6) {
_root.charRandomLook = 2;
}
}
}
_root.campaign = this.which;
saveobj.gameLoad(_root.campaign);
saveobj.postLoad2();
_root.requirement_t3.text = '$' + _root.achievementArray[this.which][0];
_root.requirement_t2.text = '$' + _root.achievementArray[this.which][1];
_root.requirement_t1.text = '$' + _root.achievementArray[this.which][2];
_root.currentHighScore = _root.highScoreArray[this.which];
if (_root.currentHighScore <= 0 or _root.currentHighScore == undefined) {
_root.highScore_t.text = '----------';
_root.achievementMC.gotoAndStop(5);
} else {
_root.highScore_t.text = '$' + _root.currentHighScore;
if (_root.currentHighScore >= _root.achievementArray[this.which][2]) {
_root.achievementMC.gotoAndStop(1);
} else {
if (_root.currentHighScore >= _root.achievementArray[this.which][1]) {
_root.achievementMC.gotoAndStop(2);
} else {
if (_root.currentHighScore >= _root.achievementArray[this.which][0]) {
_root.achievementMC.gotoAndStop(3);
} else {
_root.achievementMC.gotoAndStop(4);
}
}
}
}
if (this.which == 1) {
_root.descriptionInfo = 'Familiarize yourself with different types of flowers!';
} else {
if (this.which == 2) {
_root.descriptionInfo = 'Serve Fruit Juice to customers to keep them happy!';
} else {
if (this.which == 3) {
_root.descriptionInfo = 'Three days before valentine day! Level up Pink/Yellow bouquet! ';
} else {
if (this.which == 4) {
_root.descriptionInfo = 'Prepare for the Wedding Promotion! Level up Purple/White bouquet!';
} else {
if (this.which == 5) {
_root.descriptionInfo = 'Earn more money with bulk order!';
} else {
if (this.which == 6) {
_root.descriptionInfo = 'Plan your strategy, make full use of promotions!';
}
}
}
}
}
}
_root.description_t.text = _root.descriptionInfo;
trace(_root.level);
if (_root.level > _root.dayArray[this.which] or _root.level == 0 or _root.level == undefined) {
_root.currentProgress_t.text = '----------';
_root.b_continue._visible = false;
_root.b_restart._visible = false;
_root.b_play._visible = true;
} else {
_root.currentProgress_t.text = 'DAY ' + _root.level + '/' + _root.dayArray[_root.campaign];
_root.b_continue._visible = true;
_root.b_restart._visible = true;
_root.b_play._visible = false;
}
};
++i;
}
}
movieClip 825 {
}
movieClip 829 {
}
movieClip 833 {
}
movieClip 837 {
}
movieClip 841 {
}
movieClip 845 {
}
frame 102 {
saveobj.gameLoad(7);
saveobj.postLoad2();
_root.promotionCheck = new Array(0, 0, 0);
_root.campaign = 7;
_root.highScore_t.text = '----------';
_root.descriptionInfo = 'Earn as much as you can in 10 days!';
_root.currentProgress_t.text = '----------';
_root.b_continue.onRollOver = function () {
buttonSound.start();
};
_root.b_continue.onRelease = function () {
_root.gotoAndStop('ingame');
};
_root.b_restart.onRollOver = function () {
buttonSound.start();
};
_root.b_restart.onRelease = function () {
_root.level = 1;
_root.money = 0;
_root.totalEarning = 0;
_root.flowerLevel = new Array(1, 1, 1, 1, 1, 1, 1);
_root.gotoAndStop('ingame');
};
_root.b_play.onRollOver = function () {
buttonSound.start();
};
_root.b_play.onRelease = function () {
_root.level = 1;
_root.money = 0;
_root.totalEarning = 0;
_root.flowerLevel = new Array(1, 1, 1, 1, 1, 1, 1);
_root.gotoAndStop('ingame');
};
_root.b_continue._visible = false;
_root.b_restart._visible = false;
_root.b_play._visible = false;
_root.b_menu.onRollOver = function () {
buttonSound.start();
};
_root.b_menu.onRelease = function () {
_root.gotoAndStop('menu');
};
gameMusic.stop();
lovesongMusic.stop();
weddingMusic.stop();
shopMusic.stop();
menuMusic.stop();
menuMusic.start(0, 999);
_root.currentHighScore = _root.highScoreArray[7];
if (_root.currentHighScore <= 0 or _root.currentHighScore == undefined) {
_root.highScore_t.text = '----------';
} else {
_root.highScore_t.text = '$' + _root.currentHighScore;
}
_root.description_t.text = _root.descriptionInfo;
trace(_root.level);
if (_root.level > _root.dayArray[7] or _root.level == 0 or _root.level == undefined) {
_root.currentProgress_t.text = '----------';
_root.highScore_t2.text = '----------';
_root.b_continue._visible = false;
_root.b_restart._visible = false;
_root.b_play._visible = true;
} else {
_root.currentProgress_t.text = 'DAY ' + _root.level + '/' + _root.dayArray[_root.campaign];
_root.highScore_t2.text = '$' + _root.totalEarning;
_root.b_continue._visible = true;
_root.b_restart._visible = true;
_root.b_play._visible = false;
}
}
frame 103 {
gameMusic.stop();
lovesongMusic.stop();
weddingMusic.stop();
shopMusic.stop();
menuMusic.stop();
menuMusic.start(0, 999);
_root.currentFlowerID = 0;
_root.unlockMC.stop();
_root.unlockMC._visible = false;
setUpCatalogPage = function () {
_root.money_t.text = '$' + _root.money;
var v3 = 0;
while (v3 < 8) {
_root['answer_mc_' + v3].gotoAndStop('none');
++v3;
}
_root.equal._visible = false;
_root.upgradeCost = 0;
_root.currentFlower = _root.flowerTypeArray[_root.currentFlowerID];
if (_root.currentFlower == 'yellow' or _root.currentFlower == 'pink') {
_root.type_t.text = '(VALENTINE)';
_root.upgradeCost = 50 * _root.flowerLevel[_root.currentFlowerID];
} else {
if (_root.currentFlower == 'purple' or _root.currentFlower == 'white') {
_root.type_t.text = '(WEDDING)';
_root.upgradeCost = 50 * _root.flowerLevel[_root.currentFlowerID];
} else {
if (_root.currentFlower == 'vase' or _root.currentFlower == 'basket') {
_root.type_t.text = '(BIG SPLENDER)';
_root.upgradeCost = 75 * _root.flowerLevel[_root.currentFlowerID];
}
}
}
_root.flowerPrice = checkPrice(_root.currentFlowerID);
_root.price1_t.text = '$' + _root.flowerPrice;
_root.price2_t.text = '$' + _root.flowerPrice;
_root.price3_t.text = '$' + _root.flowerPrice;
_root.upgradeCost_t.text = '$' + _root.upgradeCost;
_root.color_t.text = _root.currentFlower;
v3 = 1;
while (v3 <= 3) {
_root['creator_mc_' + v3].combo = _root.flowerCombo[_root.currentFlower]['l' + _root.flowerLevel[_root.currentFlowerID]][v3];
setUp_char_flowers(_root['creator_mc_' + v3].combo, 'creator_mc_' + v3);
_root['creator_mc_' + v3].onRelease = function () {
var v3 = 0;
while (v3 < 8) {
_root['answer_mc_' + v3].gotoAndStop('none');
++v3;
}
v3 = 0;
while (v3 < this.combo.length) {
_root['answer_mc_' + v3].gotoAndStop(this.combo[v3]);
++v3;
}
_root.equal._visible = true;
};
++v3;
}
_root.b_upgrade._visible = true;
_root.upgradeInfo_t.text = _root.flowerLevel[_root.currentFlowerID] + '/5 UPGRADES';
if (_root.flowerLevel[_root.currentFlowerID] >= 5) {
_root.b_upgrade._visible = false;
}
_root.b_upgrade.onRollOver = function () {
buttonSound.start();
};
_root.b_upgrade.onRelease = function () {
if (_root.money >= _root.upgradeCost) {
var v3 = false;
if (_root.flowerLevel[4] >= 4 or _root.flowerLevel[5] >= 4) {
if (_root.campaign >= 5) {
v3 = true;
}
}
var v2 = false;
if (_root.flowerLevel[2] >= 4 or _root.flowerLevel[3] >= 4) {
if (_root.campaign >= 5) {
v2 = true;
}
}
var v5 = false;
if (_root.flowerLevel[0] >= 4 or _root.flowerLevel[1] >= 4) {
if (_root.campaign >= 4) {
v5 = true;
}
}
var v4 = false;
if (_root.flowerLevel[0] >= 4 and _root.flowerLevel[1] >= 4 and _root.flowerLevel[2] >= 4 and _root.flowerLevel[3] >= 4 and _root.flowerLevel[4] >= 4 and _root.flowerLevel[5] >= 4) {
if (_root.campaign >= 5) {
v4 = true;
}
}
_root.money -= _root.upgradeCost;
_root.flowerLevel[_root.currentFlowerID] += 1;
if (_root.flowerLevel[4] >= 4 or _root.flowerLevel[5] >= 4) {
if (_root.campaign >= 5) {
if (v3 != true) {
_root.unlockMC._visible = true;
_root.unlockMC.gotoAndStop(4);
_root.unlockMC.b_done.onRollOver = function () {
buttonSound.start();
};
_root.unlockMC.b_done.onRelease = function () {
_root.unlockMC._visible = false;
};
}
}
}
if (_root.flowerLevel[2] >= 4 or _root.flowerLevel[3] >= 4) {
if (_root.campaign >= 5) {
if (v2 != true) {
_root.unlockMC._visible = true;
_root.unlockMC.gotoAndStop(3);
_root.unlockMC.b_done.onRollOver = function () {
buttonSound.start();
};
_root.unlockMC.b_done.onRelease = function () {
_root.unlockMC._visible = false;
};
}
}
}
if (_root.flowerLevel[0] >= 4 or _root.flowerLevel[1] >= 4) {
if (_root.campaign >= 4) {
if (v5 != true) {
_root.unlockMC._visible = true;
_root.unlockMC.gotoAndStop(2);
_root.unlockMC.b_done.onRollOver = function () {
buttonSound.start();
};
_root.unlockMC.b_done.onRelease = function () {
_root.unlockMC._visible = false;
};
}
}
}
if (_root.flowerLevel[0] >= 4 and _root.flowerLevel[1] >= 4 and _root.flowerLevel[2] >= 4 and _root.flowerLevel[3] >= 4 and _root.flowerLevel[4] >= 4 and _root.flowerLevel[5] >= 4) {
if (_root.campaign >= 5) {
if (v4 != true) {
_root.unlockMC._visible = true;
_root.unlockMC.gotoAndStop(5);
_root.unlockMC.b_done.onRollOver = function () {
buttonSound.start();
};
_root.unlockMC.b_done.onRelease = function () {
_root.unlockMC._visible = false;
};
}
}
}
_root.upgradedMC.gotoAndPlay(1);
setUpCatalogPage();
} else {
_root.noMoneyMC.gotoAndPlay(1);
}
};
_root.b_next.onRollOver = function () {
buttonSound.start();
};
_root.b_next.onRelease = function () {
var v2 = false;
while (v2 == false) {
_root.currentFlowerID += 1;
if (_root.currentFlowerID > 5) {
_root.currentFlowerID = 0;
}
if (_root.flowerLevel[_root.currentFlowerID]) {
v2 = true;
}
}
setUpCatalogPage();
};
_root.b_previous.onRollOver = function () {
buttonSound.start();
};
_root.b_previous.onRelease = function () {
var v2 = false;
while (v2 == false) {
_root.currentFlowerID -= 1;
if (_root.currentFlowerID < 0) {
_root.currentFlowerID = 5;
}
if (_root.flowerLevel[_root.currentFlowerID]) {
v2 = true;
}
}
setUpCatalogPage();
};
_root.b_done.onRollOver = function () {
buttonSound.start();
};
_root.b_done.onRelease = function () {
if (_root.campaign == 1) {
_root.gotoAndStop('ingame2');
} else {
_root.gotoAndStop('ingame');
}
};
};
setUpCatalogPage();
}
movieClip 874 {
}
movieClip 876 {
frame 1 {
stop();
}
}
movieClip 878 {
frame 1 {
stop();
}
}
movieClip 885 {
}
frame 104 {
setUpIngamePage();
}
movieClip 906 {
}
movieClip 926 {
}
movieClip 931 {
}
frame 105 {
setUpIngamePage();
}
movieClip 945 {
}
frame 107 {
_root.bordersMC.gotoAndStop(1);
_root.bordersMC2.gotoAndStop(1);
_root.bordersMC3.gotoAndStop(1);
_root.b_nobstudio.onRollOver = function () {
buttonSound.start();
};
_root.b_nobstudio.onRelease = function () {
getURL('http://www.nobstudio.com', '_blank');
};
_root.b_menu.onRollOver = function () {
buttonSound.start();
};
_root.b_menu.onRelease = function () {
_root.gotoAndStop('menu');
};
}
movieClip 955 {
}