Frame 1
_root.attachMovie("mainmask", "mainmask", 700000);
AdSystem.setData("papaspizzeria", "2.0", 640, 480, _root);
var progbarwidth = 516;
_root.continue_btn.gotoAndStop(1);
_root.continue_btn.enabled = false;
_root.continue_btn.useHandCursor = true;
_root.progbar.bar._xscale = 0;
_root.continue_btn.onPress = function () {
_root.gotoAndPlay(2);
};
_root.progbar.onEnterFrame = function () {
var _local6 = _root.getBytesLoaded();
var _local4 = _root.getBytesTotal();
var _local5 = _local6 / _local4;
var _local3 = 1;
var _local2 = Math.min(_root.progbar.bar._xscale + _local3, _local5 * 100);
_root.progbar.bar._xscale = _local2;
if (_local2 >= 100) {
if (_root.continue_btn.enabled == false) {
_root.continue_btn.gotoAndPlay(2);
_root.continue_btn.enabled = true;
}
}
};
stop();
Frame 2
Frame 4
stop();
Frame 5
stop();
Frame 6
var game = (new roygame.models.GameData());
game.mainMenu();
stop();
Frame 7
stop();
Symbol 19 MovieClip Frame 1
function clickPromoAd() {
getURL (itunesPromoURL, "_blank");
}
function clickPromoGoogle() {
getURL (googlePromoURL, "_blank");
}
function clickPromoKindle() {
getURL (amazonPromoURL, "_blank");
}
function clickPromoMoreInfo() {
getURL (moreInfoURL, "_blank");
}
function clickPromoApp1() {
getURL (otherAppURLs[0], "_blank");
}
function clickPromoApp2() {
getURL (otherAppURLs[1], "_blank");
}
function clickPromoApp3() {
getURL (otherAppURLs[2], "_blank");
}
function clickPromoApp4() {
getURL (otherAppURLs[3], "_blank");
}
var itunesPromoURL = "https://itunes.apple.com/us/app/papas-freezeria-to-go!/id824305459?ls=1&mt=8";
var googlePromoURL = "https://play.google.com/store/apps/details?id=air.com.flipline.papasfreezeriatogo";
var amazonPromoURL = "http://www.amazon.com/gp/product/B00IO1VCTK/ref=mas_pm_Papas_Freezeria_To_Go";
var moreInfoURL = "http://www.flipline.com/apps/papasfreezeriatogo/";
var otherAppURLs = ["https://itunes.apple.com/us/app/papas-freezeria-to-go!/id824305459?ls=1&mt=8", "https://itunes.apple.com/us/app/papas-freezeria-hd/id715822238?ls=1&mt=8", "https://itunes.apple.com/us/app/papas-burgeria-to-go!/id600626116?ls=1&mt=8", "http://itunes.apple.com/us/app/papas-burgeria/id514634235?ls=1&mt=8"];
stop();
moreinfo_btn.onRelease = clickPromoMoreInfo;
googleplay_btn.onRelease = clickPromoGoogle;
kindlefire_btn.onRelease = clickPromoKindle;
appstore_btn.onRelease = clickPromoAd;
app_1_btn.onRelease = clickPromoApp1;
app_2_btn.onRelease = clickPromoApp2;
app_3_btn.onRelease = clickPromoApp3;
app_4_btn.onRelease = clickPromoApp4;
Symbol 43 MovieClip [fliplinead_continue_btn] Frame 23
stop();
Symbol 78 MovieClip [fliplinead_versionpopup] Frame 1
stop();
Symbol 96 MovieClip [fliplinead_versionbox] Frame 1
stop();
Symbol 105 MovieClip Frame 20
stop();
Symbol 115 MovieClip Frame 16
stop();
Symbol 123 MovieClip [fliplinead_promobutton_clip] Frame 27
stop();
Symbol 129 MovieClip [fliplinead_failsafealert] Frame 45
stop();
try {
if (this.parent != null) {
this.parent.removeChild(this);
}
} catch(err:Error) {
}
Symbol 129 MovieClip [fliplinead_failsafealert] Frame 94
stop();
try {
if (this.parent != null) {
this.parent.removeChild(this);
}
} catch(err:Error) {
}
Symbol 132 MovieClip [fliplinead_fader] Frame 1
stop();
Symbol 132 MovieClip [fliplinead_fader] Frame 7
stop();
Symbol 3446 MovieClip [__Packages.AdSystem] Frame 0
class AdSystem
{
function AdSystem () {
}
static function setData(gameSKU, gameVersion, stageWidth, stageHeight, rootClip) {
trace("Setting data for " + gameSKU);
AdSystem.gameSKU = gameSKU;
AdSystem.gameVersion = gameVersion;
AdSystem.stageWidth = stageWidth;
AdSystem.stageHeight = stageHeight;
AdSystem.rootClip = rootClip;
checkShouldGetData();
loadData(null);
}
static function getDomain() {
if (rootClip != null) {
return(rootClip._url.split("/")[2]);
}
return("unknown");
}
static function checkShouldGetData() {
if (rootClip != null) {
var _local4 = rootClip._url.split("/")[2];
var _local5 = false;
var _local2 = 0;
while (_local2 < sbda.length) {
var _local3 = sbda[_local2];
var _local1 = _local4.indexOf(_local3);
if (((_local1 != -1) && (_local1 == (_local4.length - _local3.length))) && ((_local1 == 0) || (_local4.charAt(_local1 - 1) == "."))) {
_local5 = true;
break;
}
_local2++;
}
if (_local5) {
trace("Don't get data.");
shouldGetData = false;
} else {
trace("OK");
}
}
}
static function loadData(completeFunction) {
var _local3 = new Date();
var _local2 = _local3.getTime();
if (shouldGetData == true) {
try {
data = new XML();
data.ignoreWhite = true;
data.onLoad = function (success) {
if (success) {
AdSystem.dataSuccess();
} else {
AdSystem.dataError();
}
};
var _local1 = ((((path + gameSKU) + ".xml?t=") + _local2) + "&d=") + getDomain();
data.load(_local1);
} catch(err) {
trace("Error loading data.");
}
}
}
static function dataError() {
trace("ERROR");
}
static function dataSuccess() {
trace("SUCCESS");
try {
if (data.status > 0) {
trace("--- ERROR STATUS, NOT WELL FORMED.");
} else {
trace("--- Data OK");
var _local2 = data.firstChild;
var _local1 = 0;
while (_local1 < _local2.childNodes.length) {
if (_local2.childNodes[_local1].nodeName == "showtg") {
if (_local2.childNodes[_local1].firstChild.nodeValue == "true") {
trace("TG TRUE");
showTG = true;
} else {
showTG = false;
}
} else if (_local2.childNodes[_local1].nodeName == "linktg") {
linkTG = _local2.childNodes[_local1].firstChild.nodeValue;
} else if (_local2.childNodes[_local1].nodeName == "showhd") {
if (_local2.childNodes[_local1].firstChild.nodeValue == "true") {
trace("HD TRUE");
showHD = true;
} else {
showHD = false;
}
} else if (_local2.childNodes[_local1].nodeName == "linkhd") {
linkHD = _local2.childNodes[_local1].firstChild.nodeValue;
}
_local1++;
}
}
} catch(err) {
trace("Error parsing data.");
}
}
static function showPromoButton(type, container, x, y, scale) {
if (type == TYPE_NEWGAME) {
newgameClip = rootClip.attachMovie("fliplinead_promobutton_clip", "newgameclip", 6000000);
newgameClip.inside.holder.attachMovie("failsafe_promo_newgame", "pic", 1000);
newgameClip.inside.btn.onRelease = function () {
getURL (AdSystem.newgameURL, "_blank");
};
newgameClip._x = x;
newgameClip._y = y;
newgameClip._xscale = scale;
newgameClip._yscale = scale;
newgameClip.gotoAndPlay(1);
} else if (type == TYPE_PROMO1) {
promo1Clip = rootClip.attachMovie("fliplinead_promobutton_clip", "promo1gameclip", 6000001);
if (showTG == true) {
promo1Clip.inside.holder.attachMovie("pizzeria_promo_promo1", "pic", 1000);
promo1Clip.inside.btn.onRelease = function () {
getURL (AdSystem.linkTG, "_blank");
};
} else {
promo1Clip.inside.holder.attachMovie("failsafe_promo_promo1", "pic", 1000);
promo1Clip.inside.btn.onRelease = function () {
getURL (AdSystem.promo1URL, "_blank");
};
}
promo1Clip._x = x;
promo1Clip._y = y;
promo1Clip._xscale = scale;
promo1Clip._yscale = scale;
promo1Clip.gotoAndPlay(1);
} else if (type == TYPE_PROMO2) {
promo2Clip = rootClip.attachMovie("fliplinead_promobutton_clip", "promo2gameclip", 6000002);
if (showHD == true) {
promo2Clip.inside.holder.attachMovie("pizzeria_promo_promo2", "pic", 1000);
promo2Clip.inside.btn.onRelease = function () {
getURL (AdSystem.linkHD, "_blank");
};
} else {
promo2Clip.inside.holder.attachMovie("failsafe_promo_promo2", "pic", 1000);
promo2Clip.inside.btn.onRelease = function () {
getURL (AdSystem.promo2URL, "_blank");
};
}
promo2Clip._x = x;
promo2Clip._y = y;
promo2Clip._xscale = scale;
promo2Clip._yscale = scale;
promo2Clip.gotoAndPlay(1);
}
}
static function removePromoButtons() {
if (newgameClip != null) {
newgameClip.removeMovieClip();
newgameClip = null;
}
if (promo1Clip != null) {
promo1Clip.removeMovieClip();
promo1Clip = null;
}
if (promo2Clip != null) {
promo2Clip.removeMovieClip();
promo2Clip = null;
}
}
static var path = "http://www.fliplineads.com/serve/pdata/";
static var sbda = ["4399.com", "7k7k.com", "2144.cn", "3366img.com", "3366.com", "freezingpointe.com"];
static var gameSKU = null;
static var gameVersion = null;
static var stageWidth = 640;
static var stageHeight = 480;
static var rootClip = null;
static var shouldGetData = true;
static var data = null;
static var showTG = false;
static var linkTG = "";
static var showHD = false;
static var linkHD = "";
static var TYPE_NEWGAME = "newgame";
static var TYPE_PROMO1 = "promo1";
static var TYPE_PROMO2 = "promo2";
static var newgameURL = "http://www.flipline.com/games/papaspastaria/index.html?utm_source=newgame_default&utm_medium=papaspizzeria&utm_campaign=papaspastaria";
static var promo1URL = "https://itunes.apple.com/us/app/papas-freezeria-to-go!/id824305459?ls=1&mt=8";
static var promo2URL = "https://itunes.apple.com/us/app/papas-freezeria-hd/id715822238?ls=1&mt=8";
static var newgameClip = null;
static var promo1Clip = null;
static var promo2Clip = null;
}
Symbol 3447 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 3448 MovieClip [__Packages.roygame.models.GameData] Frame 0
class roygame.models.GameData
{
function GameData () {
var _local3 = this;
_local3.clip = _root.createEmptyMovieClip("gameclip", 1);
_local3.leveldata = new roygame.models.LevelData(_local3);
_local3.soundEngine = new roygame.models.SoundEngine(_local3);
_local3.pauseManager = new roygame.models.PauseManager(_local3);
}
function createNewCustomerData() {
var _local4 = this;
_local4.customerdata = [];
var _local3 = 0;
while (_local3 < _local4.blankcustomerdata.length) {
_local4.customerdata.push([]);
var _local2 = 0;
while (_local2 < _local4.blankcustomerdata[_local3].length) {
_local4.customerdata[_local3][_local2] = _local4.blankcustomerdata[_local3][_local2];
_local2++;
}
_local3++;
}
}
function startGame() {
var _local2 = this;
_local2.endDayScreen.clip.removeMovieClip();
delete _local2.endDayScreen;
_local2.endDayScreen = null;
_local2.hudObj.clip.removeMovieClip();
delete _local2.hudObj;
_local2.hudObj = null;
_local2.customersToday = 0;
_local2.waitingToday = 0;
_local2.toppingToday = 0;
_local2.bakingToday = 0;
_local2.cuttingToday = 0;
_local2.dayIsOver = false;
_local2.inTransition = false;
_local2.showNoPapa = false;
_local2.showNewCustomer = false;
_local2.newCustomerNum = 1;
_local2.startLevel(_local2.currentDay);
}
function quitGame() {
var _local2 = this;
_local2.soundEngine.switchMusic(0);
_local2.pauseManager.isPaused = false;
_local2.switchModes("mainmenu", "allow");
}
function submitScore() {
var _local2 = this;
_local2.switchModes("highscores", "allow");
}
function nextLevel() {
var _local2 = this;
_local2.playedALevel = true;
_local2.training = false;
_local2.currentDay++;
_local2.tipsToday = 0;
_local2.customersToday = 0;
_local2.waitingToday = 0;
_local2.bakingToday = 0;
_local2.toppingToday = 0;
_local2.cuttingToday = 0;
_local2.dayIsOver = false;
_local2.soundEngine.switchMusic(0);
_local2.startLevel(_local2.currentDay);
}
function startLevel(which) {
var _local2 = this;
delete _local2.ticketManager;
delete _local2.pizzaManager;
delete _local2.customerManager;
delete _local2.startDayScreen;
_local2.pauseManager.resetManager();
_local2.ticketManager = new roygame.models.TicketManager(_local2);
_local2.pizzaManager = new roygame.models.PizzaManager(_local2);
_local2.customerManager = new roygame.models.CustomerManager(_local2);
if (_local2.training) {
_local2.switchModes("intro", "allow");
} else if (_local2.showNewCustomer || (_local2.showNoPapa)) {
_local2.switchModes("newcustomer", "allow");
} else {
_local2.switchModes("startofday", "allow");
}
}
function buildLevelInterface() {
var _local2 = this;
_local2.hudObj.clip.removeMovieClip();
delete _local2.hudObj;
_local2.hudObj = null;
_local2.hudObj = new roygame.models.HUD(_local2);
_local2.startDayScreen.clip.removeMovieClip();
delete _local2.startDayScreen;
_local2.startDayScreen = null;
_local2.endDayScreen.clip.removeMovieClip();
delete _local2.endDayScreen;
_local2.endDayScreen = null;
_local2.clip.attachMovie("fader", "bggrey", 2);
delete _local2.orderScreen;
_local2.orderScreen = new roygame.models.OrderScreen(_local2);
_local2.toppingScreen = new roygame.models.ToppingScreen(_local2);
_local2.bakingScreen = new roygame.models.BakingScreen(_local2);
_local2.cuttingScreen = new roygame.models.CuttingScreen(_local2);
_local2.takeOrderScreen = new roygame.models.TakeOrderScreen(_local2);
_local2.giveOrderScreen = new roygame.models.GiveOrderScreen(_local2);
_local2.pauseScreen = new roygame.models.PauseScreen(_local2);
}
function startLevelInterface() {
var _local2 = this;
_local2.soundEngine.startGameMusic();
_local2.switchModes("order", "allow");
if (_local2.training) {
_local2.trainingManager = new roygame.models.TrainingManager(_local2);
} else {
_local2.customerManager.setupSpawn();
}
}
function switchModes(which, allow) {
var _local2 = this;
trace("Switching Modes To: " + which);
trace("HUD Current Mode: " + _local2.hudObj.currentMode);
_local2.inTransition = true;
if (_local2.training) {
if ((which == "takeOrder") && (_local2.trainingManager.currentStep == 6)) {
allow = "allow";
} else if ((which == "giveOrder") && (_local2.trainingManager.currentStep == 22)) {
allow = "allow";
}
if ((which == _local2.trainingManager.switchToMode) || (allow)) {
if (!_local2.pauseManager.isPaused) {
if (((_local2.hudObj.currentMode != "giveorder") && (_local2.hudObj.currentMode != "takeorder")) || (allow)) {
if (which != _local2.currentMode) {
_local2.hudObj.clip.buttons.gotoAndStop("blank");
_local2.killTransition();
_local2.transitionScreen = new roygame.models.Transition(_local2, which);
}
}
} else if (_local2.pauseManager.isPaused && (((which == "customerfile") || (which == "helpscreen")) || (which == "pause"))) {
_local2.hudObj.clip.buttons.gotoAndStop("blank");
_local2.killTransition();
_local2.transitionScreen = new roygame.models.Transition(_local2, which);
}
}
} else if (((_local2.hudObj.currentMode != "giveorder") && (_local2.hudObj.currentMode != "takeorder")) || (allow)) {
if (!_local2.pauseManager.isPaused) {
if (which != _local2.currentMode) {
_local2.hudObj.clip.buttons.gotoAndStop("blank");
_local2.killTransition();
_local2.transitionScreen = new roygame.models.Transition(_local2, which);
}
} else if (_local2.pauseManager.isPaused && (((which == "customerfile") || (which == "helpscreen")) || (which == "pause"))) {
_local2.hudObj.clip.buttons.gotoAndStop("blank");
_local2.killTransition();
_local2.transitionScreen = new roygame.models.Transition(_local2, which);
}
}
}
function killTransition(which) {
var _local2 = this;
_local2.transitionScreen.clip.removeMovieClip();
delete _local2.transitionScreen;
_local2.transitionScreen = null;
if (which == "buildlevel") {
_local2.startLevelInterface();
}
}
function playIntro() {
var game = this;
game.clip.attachMovie("intro_master", "intro", 2);
game.clip.intro._x = 300;
game.clip.intro._y = 225;
game.soundEngine.switchMusic(0);
game.soundEngine.playSound("gameintro.wav", 0, 2);
game.clip.intro.skip_btn.onPress = function () {
game.endIntro();
};
}
function endIntro() {
var _local2 = this;
_local2.soundEngine.SoundFX2.stop();
_local2.switchModes("startofday", "allow");
}
function finishSwitchModes(which) {
var _local2 = this;
if (which == "endofday") {
_local2.endDayScreen = new roygame.models.EndDayScreen(_local2);
} else if (which == "startofday") {
_local2.clip.mainmenu.removeMovieClip();
_local2.endDayScreen.clip.removeMovieClip();
delete _local2.endDayScreen;
_local2.endDayScreen = null;
_local2.newCustomerScreen.clip.removeMovieClip();
delete _local2.newCustomerScreen;
_local2.newCustomerScreen = null;
_local2.hudObj.clip.removeMovieClip();
delete _local2.hudObj;
_local2.hudObj = null;
_local2.highScores.clip.removeMovieClip();
delete _local2.highScores;
_local2.highScores = null;
_local2.clip.intro.removeMovieClip();
_local2.startDayScreen = new roygame.models.StartDayScreen(_local2);
} else if (which == "newcustomer") {
_local2.clip.mainmenu.removeMovieClip();
_local2.endDayScreen.clip.removeMovieClip();
delete _local2.endDayScreen;
_local2.endDayScreen = null;
_local2.hudObj.clip.removeMovieClip();
delete _local2.hudObj;
_local2.hudObj = null;
_local2.highScores.clip.removeMovieClip();
delete _local2.highScores;
_local2.highScores = null;
_local2.clip.intro.removeMovieClip();
_local2.newCustomerScreen = new roygame.models.NewCustomerScreen(_local2);
} else if (which == "intro") {
_local2.clip.mainmenu.removeMovieClip();
_local2.endDayScreen.clip.removeMovieClip();
delete _local2.endDayScreen;
_local2.endDayScreen = null;
_local2.hudObj.clip.removeMovieClip();
delete _local2.hudObj;
_local2.hudObj = null;
_local2.highScores.clip.removeMovieClip();
delete _local2.highScores;
_local2.highScores = null;
_local2.playIntro();
} else if (which == "highscores") {
_local2.clip.mainmenu.removeMovieClip();
_local2.endDayScreen.clip.removeMovieClip();
delete _local2.endDayScreen;
_local2.endDayScreen = null;
_local2.hudObj.clip.removeMovieClip();
delete _local2.hudObj;
_local2.hudObj = null;
_local2.highScores = new roygame.models.HighScores(_local2);
} else if (which == "mainmenu") {
_local2.endDayScreen.clip.removeMovieClip();
delete _local2.endDayScreen;
_local2.endDayScreen = null;
_local2.hudObj.clip.removeMovieClip();
delete _local2.hudObj;
_local2.hudObj = null;
_local2.highScores.clip.removeMovieClip();
delete _local2.highScores;
_local2.highScores = null;
if (_local2.showHelpScreen) {
_local2.showHelpScreen = false;
_local2.helpScreen.clip.removeMovieClip();
delete _local2.helpScreen;
_local2.helpScreen = null;
}
_local2.mainMenu();
} else if (which == "customerfile") {
_local2.currentMode = which;
_local2.customerFileScreen = new roygame.models.CustomerFileScreen(_local2);
} else if (which == "helpscreen") {
_local2.currentMode = which;
_local2.helpScreen = new roygame.models.HelpScreen(_local2);
} else if (which == "buildlevel") {
_local2.startDayScreen.clip.removeMovieClip();
delete _local2.startDayScreen;
_local2.startDayScreen = null;
_local2.buildLevelInterface();
} else {
if (_local2.showCustomerFile) {
_local2.showCustomerFile = false;
_local2.customerFileScreen.clip.removeMovieClip();
delete _local2.customerFileScreen;
_local2.customerFileScreen = null;
}
if (_local2.showHelpScreen) {
_local2.showHelpScreen = false;
_local2.helpScreen.clip.removeMovieClip();
delete _local2.helpScreen;
_local2.helpScreen = null;
}
var _local4 = which + "Screen";
_local2[_local4].setCurrentMode();
_local2.currentMode = which;
}
if (_local2.training) {
_local2.trainingManager.switchedMode(which);
}
_local2.inTransition = false;
}
function endTraining() {
var _local2 = this;
_local2.trainingManager.clip.removeMovieClip();
delete _local2.trainingManager;
_local2.trainingManager = null;
_local2.training = false;
_local2.dayIsOver = true;
}
function sendScreenAction(which) {
var _local2 = this;
if (!_local2.pauseManager.isPaused) {
if (which == "takeorder") {
_local2.orderScreen.takeOrder();
} else if (which == "makepizza") {
_local2.toppingScreen.makePizza();
} else if (which == "putinoven") {
_local2.toppingScreen.putInOven();
} else if (which == "saveforlater") {
_local2.toppingScreen.saveForLater();
} else if (which == "givepizza") {
_local2.cuttingScreen.givePizza();
} else if (which == "throwaway") {
_local2.cuttingScreen.throwAwayPizza();
}
}
}
function mainMenu() {
var game = this;
game.pauseManager.clearListeners();
game.orderScreen.clip.removeMovieClip();
game.toppingScreen.clip.removeMovieClip();
game.bakingScreen.clip.removeMovieClip();
game.cuttingScreen.clip.removeMovieClip();
game.giveOrderScreen.clip.removeMovieClip();
game.takeOrderScreen.clip.removeMovieClip();
game.pauseScreen.clip.removeMovieClip();
game.clip.bggrey.removeMovieClip();
delete game.orderScreen;
delete game.toppingScreen;
delete game.bakingScreen;
delete game.cuttingScreen;
delete game.giveOrderScreen;
delete game.takeOrderScreen;
delete game.pauseScreen;
delete game.customerManager;
delete game.pizzaManager;
delete game.ticketManager;
delete game.trainingManager;
game.customerManager = null;
game.pizzaManager = null;
game.ticketManager = null;
game.trainingManager = null;
game.orderScreen = null;
game.toppingScreen = null;
game.bakingScreen = null;
game.cuttingScreen = null;
game.giveOrderScreen = null;
game.takeOrderScreen = null;
game.pauseScreen = null;
game.tipsToday = 0;
game.totalTips = 0;
game.currentDay = 1;
game.currentOrder = 1;
game.myRank = 1;
game.lastRankLimit = 0;
game.soundEngine.startMainMenuMusic();
game.currentMode = "mainMenu";
game.clip.attachMovie("mainmenu", "mainmenu", 1);
game.clip.mainmenu.buttons.gotoAndPlay("show");
game.clip.mainmenu.buttons.start_btn.onRelease = function () {
game.soundEngine.playSound("buttonclick.wav");
game.menuShowSlots();
};
game.clip.mainmenu.buttons.help_btn.onRelease = function () {
AdSystem.removePromoButtons();
game.soundEngine.playSound("buttonclick.wav");
game.pauseManager.pauseGame(0, "helpscreen");
};
game.clip.mainmenu.buttons.credits_btn.onRelease = function () {
game.soundEngine.playSound("buttonclick.wav");
game.menuShowCredits();
};
game.clip.mainmenu.flipline_btn.onPress = function () {
getURL ("http://www.flipline.com", "_BLANK");
};
game.clip.credits.papalouie_btn.onPress = function () {
getURL ("http://www.papalouie.com/game.html", "_BLANK");
};
game.clip.mainmenu.buttons.getthisgame_btn.onRelease = function () {
getURL ("http://www.flipline.com/papaspizzeria_licenseredirect.html", "_BLANK");
};
game.clip.mainmenu.buttons.burgeria_btn._visible = false;
AdSystem.showPromoButton(AdSystem.TYPE_NEWGAME, _root, 76, 227, 100);
if (Math.random() > 0.5) {
AdSystem.showPromoButton(AdSystem.TYPE_PROMO1, _root, 523, 227, 100);
} else {
AdSystem.showPromoButton(AdSystem.TYPE_PROMO2, _root, 523, 227, 100);
}
}
function menuShowCredits() {
var _local2 = this;
_local2.clip.mainmenu.credits.gotoAndPlay("show");
if (_local2.clip.mainmenu.buttons._currentframe > 1) {
_local2.clip.mainmenu.buttons.gotoAndPlay("hide");
}
}
function menuShowHelp() {
var _local2 = this;
AdSystem.removePromoButtons();
_local2.clip.mainmenu.help.gotoAndPlay("show");
if (_local2.clip.mainmenu.buttons._currentframe > 1) {
_local2.clip.mainmenu.buttons.gotoAndPlay("hide");
}
}
function menuShowButtons() {
var _local2 = this;
if (_local2.clip.mainmenu.buttons._currentframe == 1) {
_local2.clip.mainmenu.buttons.gotoAndPlay("show");
}
}
function menuShowSlots() {
var game = this;
AdSystem.removePromoButtons();
game.clip.mainmenu.gotoAndStop("slots");
if (game.clip.mainmenu.buttons._currentframe > 1) {
game.clip.mainmenu.buttons.gotoAndPlay("hide");
}
game.clip.mainmenu.slots.gotoAndPlay(2);
var _local2 = SharedObject.getLocal("RoyPizzeriaSlot1", "/");
var _local4 = SharedObject.getLocal("RoyPizzeriaSlot2", "/");
var _local5 = SharedObject.getLocal("RoyPizzeriaSlot3", "/");
game.clip.mainmenu.slots.slot1.selector.onRollOver = function () {
game.clip.mainmenu.slots.slot1.flash.gotoAndPlay(2);
game.soundEngine.playSound("grabticket.wav");
};
game.clip.mainmenu.slots.slot2.selector.onRollOver = function () {
game.clip.mainmenu.slots.slot2.flash.gotoAndPlay(2);
game.soundEngine.playSound("grabticket.wav");
};
game.clip.mainmenu.slots.slot3.selector.onRollOver = function () {
game.clip.mainmenu.slots.slot3.flash.gotoAndPlay(2);
game.soundEngine.playSound("grabticket.wav");
};
game.clip.mainmenu.slots.slot1.selector.onRollOut = function () {
game.clip.mainmenu.slots.slot1.flash.gotoAndStop(1);
};
game.clip.mainmenu.slots.slot2.selector.onRollOut = function () {
game.clip.mainmenu.slots.slot2.flash.gotoAndStop(1);
};
game.clip.mainmenu.slots.slot3.selector.onRollOut = function () {
game.clip.mainmenu.slots.slot3.flash.gotoAndStop(1);
};
if (_local2.data.savedata != undefined) {
var _local3 = _local2.data.savedata.rank;
var _local7 = _local2.data.savedata.username;
var _local6 = game.rankTitles[_local3];
if (_local3 >= game.rankTitles.length) {
_local6 = game.rankTitles[game.rankTitles.length - 1];
}
game.clip.mainmenu.slots.slot1.gotoAndStop(1);
game.clip.mainmenu.slots.slot1.saverank.text = _local3;
game.clip.mainmenu.slots.slot1.savename.text = _local7;
game.clip.mainmenu.slots.slot1.savetitle.text = _local6;
game.clip.mainmenu.slots.slot1.selector.onPress = function () {
game.startSavedGame(1);
};
game.clip.mainmenu.slots.slot1.erase_btn.onPress = function () {
game.clip.mainmenu.slots.slot1.gotoAndStop(2);
game.clip.mainmenu.slots.slot1.yes_btn.onPress = function () {
game.eraseSaveSlot(1);
};
game.clip.mainmenu.slots.slot1.no_btn.onPress = function () {
game.menuShowSlots();
};
};
} else {
game.clip.mainmenu.slots.slot1.gotoAndStop(3);
game.clip.mainmenu.slots.slot1.selector.onPress = function () {
game.enterUserName(1);
};
}
if (_local4.data.savedata != undefined) {
var _local3 = _local4.data.savedata.rank;
var _local7 = _local4.data.savedata.username;
var _local6 = game.rankTitles[_local3];
if (_local3 >= game.rankTitles.length) {
_local6 = game.rankTitles[game.rankTitles.length - 1];
}
game.clip.mainmenu.slots.slot2.gotoAndStop(1);
game.clip.mainmenu.slots.slot2.saverank.text = _local3;
game.clip.mainmenu.slots.slot2.savename.text = _local7;
game.clip.mainmenu.slots.slot2.savetitle.text = _local6;
game.clip.mainmenu.slots.slot2.selector.onPress = function () {
game.startSavedGame(2);
};
game.clip.mainmenu.slots.slot2.erase_btn.onPress = function () {
game.clip.mainmenu.slots.slot2.gotoAndStop(2);
game.clip.mainmenu.slots.slot2.yes_btn.onPress = function () {
game.eraseSaveSlot(2);
};
game.clip.mainmenu.slots.slot2.no_btn.onPress = function () {
game.menuShowSlots();
};
};
} else {
game.clip.mainmenu.slots.slot2.gotoAndStop(3);
game.clip.mainmenu.slots.slot2.selector.onPress = function () {
game.enterUserName(2);
};
}
if (_local5.data.savedata != undefined) {
var _local3 = _local5.data.savedata.rank;
var _local7 = _local5.data.savedata.username;
var _local6 = game.rankTitles[_local3];
if (_local3 >= game.rankTitles.length) {
_local6 = game.rankTitles[game.rankTitles.length - 1];
}
game.clip.mainmenu.slots.slot3.gotoAndStop(1);
game.clip.mainmenu.slots.slot3.saverank.text = _local3;
game.clip.mainmenu.slots.slot3.savename.text = _local7;
game.clip.mainmenu.slots.slot3.savetitle.text = _local6;
game.clip.mainmenu.slots.slot3.selector.onPress = function () {
game.startSavedGame(3);
};
game.clip.mainmenu.slots.slot3.erase_btn.onPress = function () {
game.clip.mainmenu.slots.slot3.gotoAndStop(2);
game.clip.mainmenu.slots.slot3.yes_btn.onPress = function () {
game.eraseSaveSlot(3);
};
game.clip.mainmenu.slots.slot3.no_btn.onPress = function () {
game.menuShowSlots();
};
};
} else {
game.clip.mainmenu.slots.slot3.gotoAndStop(3);
game.clip.mainmenu.slots.slot3.selector.onPress = function () {
game.enterUserName(3);
};
}
}
function eraseSaveSlot(whichslot) {
var _local2 = this;
var _local3 = "RoyPizzeriaSlot" + whichslot;
var _local4 = SharedObject.getLocal(_local3, "/");
_local4.clear();
_local2.menuShowSlots();
}
function startSavedGame(whichslot) {
var _local2 = this;
var _local5 = "RoyPizzeriaSlot" + whichslot;
_local2.whichSaveSlot = whichslot;
_local2.soundEngine.playSound("buttonclick.wav");
var _local6 = SharedObject.getLocal(_local5, "/");
_local2.savedata = _local6.data.savedata;
_local2.currentDay = _local2.savedata.currentday;
_local2.totalTips = _local2.savedata.totaltips;
_local2.myRank = _local2.savedata.rank;
_local2.username = _local2.savedata.username;
_local2.playerid = _local2.savedata.playerid;
var _local4 = 0;
var _local3 = 2;
while (_local3 <= _local2.myRank) {
_local4 = _local4 + _local3;
_local3++;
}
_local2.lastRankLimit = _local4 * _local2.rankMultiplier;
trace("Loaded - myRank: " + _local2.myRank);
trace("MyRankLimit: " + _local2.lastRankLimit);
if (_local2.savedata.customerdata != undefined) {
_local2.customerdata = _local2.savedata.customerdata;
} else {
_local2.createNewCustomerData();
}
if (_local2.savedata.currentday == 1) {
_local2.training = true;
} else {
_local2.training = false;
}
_local2.startGame();
}
function enterUserName(whichslot) {
var game = this;
game.clip.mainmenu.gotoAndStop("entername");
game.soundEngine.playSound("buttonclick.wav");
game.clip.mainmenu.entername.name_ti.restrict = "a-zA-Z 0-9";
game.clip.mainmenu.entername.name_ti.maxChars = 16;
game.clip.mainmenu.entername.name_ti.setStyle("fontSize", 20);
game.clip.mainmenu.entername.name_ti.setStyle("fontWeight", "bold");
game.clip.mainmenu.entername.name_ti.text = "";
game.clip.mainmenu.entername.okay_btn.onPress = function () {
game.username = game.clip.mainmenu.entername.name_ti.text;
game.soundEngine.playSound("buttonclick.wav");
game.startNewGame(whichslot);
};
game.clip.mainmenu.entername.cancel_btn.onPress = function () {
game.soundEngine.playSound("buttonclick.wav");
game.menuShowSlots();
};
}
function cheatCodes(whichslot) {
var _local2 = this;
var _local4 = false;
if (_local2.savedata.username == "almostpapa") {
trace("***** CHEAT CODE: almostpapa *******");
var _local3 = 1;
while (_local3 <= 34) {
_local2.savedata.customerdata[_local3][6] = 3;
_local2.savedata.customerdata[_local3][0] = 1;
_local2.savedata.customerdata[_local3][3] = 1;
_local2.savedata.customerdata[_local3][4] = 15;
_local2.savedata.customerdata[_local3][5] = 4;
_local3++;
}
_local2.savedata.customerdata[35][6] = 2;
_local2.savedata.customerdata[35][0] = 1;
_local2.savedata.customerdata[35][3] = 1;
_local2.savedata.customerdata[35][4] = 13;
_local2.savedata.customerdata[35][5] = 3;
_local2.savedata.totaltips = 247000 /* 0x03C4D8 */;
_local2.savedata.rank = 30;
_local2.savedata.lastranklimit = 232000 /* 0x038A40 */;
_local2.savedata.currentday = 99;
_local4 = true;
}
if (_local4) {
var _local6 = "RoyPizzeriaSlot" + whichslot;
var _local5 = SharedObject.getLocal(_local6, "/");
_local5.data.savedata = _local2.savedata;
_local5.flush();
_local2.training = false;
_local2.currentDay = _local2.savedata.currentday;
_local2.totalTips = _local2.savedata.totaltips;
_local2.myRank = _local2.savedata.rank;
_local2.lastRankLimit = _local2.savedata.lastranklimit;
_local2.username = _local2.savedata.username;
_local2.playerid = _local2.savedata.playerid;
if (_local2.savedata.customerdata != undefined) {
_local2.customerdata = _local2.savedata.customerdata;
}
}
}
function startNewGame(whichslot) {
var _local2 = this;
var _local5 = "RoyPizzeriaSlot" + whichslot;
_local2.whichSaveSlot = whichslot;
var _local3 = SharedObject.getLocal(_local5, "/");
_local2.playerid = _local2.generatePlayerID();
_local2.savedata.totaltips = 0;
_local2.savedata.rank = 1;
_local2.savedata.currentday = 1;
_local2.savedata.playerid = _local2.playerid;
_local2.savedata.username = _local2.username;
_local2.createNewCustomerData();
_local2.savedata.customerdata = _local2.customerdata;
_local3.data.savedata = _local2.savedata;
_local3.flush();
_local2.training = true;
_local2.cheatCodes(whichslot);
_local2.startGame();
}
function saveProgress() {
var _local2 = this;
var _local4 = _local2.whichSaveSlot;
var _local5 = "RoyPizzeriaSlot" + _local4;
var _local3 = SharedObject.getLocal(_local5, "/");
_local2.savedata.totaltips = _local2.totalTips;
_local2.savedata.rank = _local2.myRank;
_local2.savedata.currentday = _local2.currentDay + 1;
_local2.savedata.customerdata = _local2.customerdata;
_local3.data.savedata = _local2.savedata;
_local3.flush();
}
function generatePlayerID() {
var _local8 = this;
var _local5 = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
var _local7 = 8;
var _local4 = "";
var _local6 = _local5.length;
var _local2 = 0;
while (_local2 < _local7) {
var _local3 = _local5[random(_local6)];
_local4 = _local4 + _local3;
_local2++;
}
return(_local4);
}
function pauseUpdate(msg) {
}
var training = false;
var whichSaveSlot = 1;
var savedata = {playerid:"a9a9a9a9", rank:1, currentday:1, totaltips:0, username:"demo"};
var blankcustomerdata = [[], [1, "Cooper", "Pepperoni", 0, 0, 0, 0], [1, "Wally", "Anchovies", 0, 0, 0, 0], [1, "Rita", "Mushrooms", 0, 0, 0, 0], [1, "Marty", "Olives", 0, 0, 0, 0], [1, "Kingsley", "Pepperoni", 0, 0, 0, 0], [1, "Timm", "Peppers", 0, 0, 0, 0], [0, "Big Pauly", "Sausage and Onions", 0, 0, 0, 0], [0, "Penny", "Sausage and Mushrooms", 0, 0, 0, 0], [0, "Maggie", "Peppers and Olives", 0, 0, 0, 0], [0, "Taylor", "Peppers and Onions", 0, 0, 0, 0], [0, "Sue", "Pepperoni and Mushrooms", 0, 0, 0, 0], [0, "Allan", "Pepperoni and Sausage", 0, 0, 0, 0], [0, "Mindy", "Mushroom and Anchovies", 0, 0, 0, 0], [0, "Chuck", "Pepperoni and Sausage", 0, 0, 0, 0], [0, "Greg", "Pepperoni and Mushrooms", 0, 0, 0, 0], [0, "Robby", "Mushroom and Peppers", 0, 0, 0, 0], [0, "Mary", "Pepperoni", 0, 0, 0, 0], [0, "Mitch", "Pepperoni, Olive, Anchovies", 0, 0, 0, 0], [0, "Prudence", "Mushroom and Onions", 0, 0, 0, 0], [0, "James", "Sausage and Olives", 0, 0, 0, 0], [0, "Cecilia", "Mushroom, Peppers, Onions", 0, 0, 0, 0], [0, "Mandi", "Pepperoni and Mushrooms", 0, 0, 0, 0], [0, "Sasha", "Peppers and Olives", 0, 0, 0, 0], [0, "Olga", "Sausage, Mushroom, Onions", 0, 0, 0, 0], [0, "Franco", "Pepperoni and Olives", 0, 0, 0, 0], [0, "Tohru", "Mushroom, Peppers, Anchovies", 0, 0, 0, 0], [0, "Clair", "Pepperoni, Mushroom, Peppers", 0, 0, 0, 0], [0, "Clover", "Pepperoni", 0, 0, 0, 0], [0, "Hugo", "Sausage and Peppers", 0, 0, 0, 0], [0, "Peggy", "Onions and Olives", 0, 0, 0, 0], [0, "Carlo Romano", "Sausage, Mushrooms, Peppers", 0, 0, 0, 0], [0, "Little Edoardo", "Onion, Olives, Anchovies", 0, 0, 0, 0], [0, "Gino Romano", "Pepperoni, Onions, Olives", 0, 0, 0, 0], [0, "Bruna Romano", "Pepperoni, Sausage, Olives", 0, 0, 0, 0], [0, "SargeFan!", "Onions Only!", 0, 0, 0, 0], [0, "PAPA LOUIE!", "The Works!", 0, 0, 0, 0]];
var currentDay = 1;
var currentOrder = 1;
var timePerDay = 180000;
var prepTimePerOrder = 45000;
var cookTimeForPizza = 3;
var tipsToday = 0;
var totalTips = 0;
var myRank = 1;
var rankTitles = ["!", "Newbie", "Trainee", "Cashier", "Delivery Boy", "Part-Time Cook", "Line Cook", "Pizza Topper", "Head Cook", "Chef Trainee", "Assistant Chef", "Sous Chef", "Pizza Chef", "Head Chef", "Master Chef", "Pizza Master", "Pepperoni Lover", "Sausage Specialist", "Mushroom Master", "Pepper Pro", "Onion Wrangler", "Olive Expert", "Anchovy Flinger", "Dough Tosser", "Cheese Grater", "Oven Expert", "Slicer and Dicer", "Pizzeria Manager", "Pizza Commander", "Master of Pizzas", "Ultimate Chef", "Better Than Papa!"];
var rankLimits = [0, 500, 2000, 3500, 5000, 7000, 9000, 11000, 13500, 16000, 18500, 22000, 25500, 29000, 33000, 37000, 41000, 45000, 50000, 55000, 60000, 70000, 80000, 90000, 100000, 110000, 120000, 130000];
var rankBaseNumber = 1000;
var rankMultiplier = 500;
var lastRankLimit = 0;
var waitingToday = 0;
var toppingToday = 0;
var bakingToday = 0;
var cuttingToday = 0;
var customersToday = 0;
var dayIsOver = false;
var showNoPapa = false;
var showNewCustomer = false;
var newCustomerNum = 1;
var showCustomerFile = false;
var showHelpScreen = false;
var inTransition = false;
var playedALevel = false;
}
Symbol 3449 MovieClip [__Packages.roygame.models.StartDayScreen] Frame 0
class roygame.models.StartDayScreen
{
function StartDayScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.setupScreen();
}
function setupScreen() {
var _local2 = this;
_local2.clip = _local2.gameclip.attachMovie("startofday", "startofday", 10);
_local2.gameObj.soundEngine.switchMusic(0);
_local2.startAnimation();
}
function startAnimation() {
var _local2 = this;
trace("Triggered Animation!");
var _local3 = _local2.gameObj.currentDay;
_local2.clip.dayMC.clip.day_text.text = _local3;
_local2.clip.dayMC.clip.day_shadow.text = _local3;
_local2.gameObj.soundEngine.switchMusic(0);
_local2.gameObj.soundEngine.playSound("startofday.wav");
_local2.clip.play();
}
function endAnimation() {
var _local2 = this;
_local2.gameObj.switchModes("buildlevel", "allow");
}
function pauseUpdate(msg) {
}
}
Symbol 3450 MovieClip [__Packages.roygame.models.EndDayScreen] Frame 0
class roygame.models.EndDayScreen
{
function EndDayScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.setupScreen();
}
function setupScreen() {
var screen = this;
var _local2 = screen.gameObj;
screen.clip = screen.gameclip.attachMovie("endofday", "endofday", 100000);
var _local4 = Math.floor(_local2.waitingToday / _local2.customersToday);
var _local3 = Math.floor(_local2.toppingToday / _local2.customersToday);
var _local5 = Math.floor(_local2.bakingToday / _local2.customersToday);
var _local6 = Math.floor(_local2.cuttingToday / _local2.customersToday);
var _local7 = Math.floor((((_local4 + _local3) + _local5) + _local6) / 4);
screen.clip.board.customers_txt.text = _local2.customersToday;
screen.clip.board.quality_txt.text = _local7 + "%";
screen.clip.board.waiting_txt.text = _local4 + "%";
screen.clip.board.topping_txt.text = _local3 + "%";
screen.clip.board.baking_txt.text = _local5 + "%";
screen.clip.board.cutting_txt.text = _local6 + "%";
_local2.soundEngine.switchMusic(6);
_local2.hudObj.setMode("endofday");
screen.clip.okclip.start_btn.onRelease = function () {
screen.moveScreen();
};
screen.clip.buttonguard.onPress = function () {
};
screen.clip.buttonguard.useHandCursor = false;
}
function moveScreen() {
var _local2 = this;
_local2.clip.play();
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "royGetUp", _local2.getupSpeed);
}
function royGetUp() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.clip.counter.roy.gotoAndPlay("getup");
trace("roy...");
_local3.soundEngine.switchMusic(2);
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "showTips", _local2.tipSpeed);
}
function showTips() {
var _local3 = this;
var _local4 = _local3.gameObj;
var _local6 = _local4.tipsToday;
_local4.totalTips = _local4.totalTips + _local6;
var _local7 = _local4.totalTips;
var _local12 = _local6 / 100;
var _local15 = _local7 / 100;
var _local5 = Math.floor(_local12);
var _local2 = _local6 - (_local5 * 100);
var _local14 = _local2 / 100;
if (_local2 < 10) {
_local2 = "0" + _local2;
} else if (_local2 == 0) {
_local2 = "00";
}
var _local8 = (("$" + _local5) + ".") + _local2;
_local5 = Math.floor(_local15);
_local2 = _local7 - (_local5 * 100);
_local14 = _local2 / 100;
if (_local2 < 10) {
_local2 = "0" + _local2;
} else if (_local2 == 0) {
_local2 = "00";
}
var _local11 = (("$" + _local5) + ".") + _local2;
if (_local6 <= 0) {
_local8 = "$0.00";
}
if (_local7 <= 0) {
_local11 = "$0.00";
}
_local3.clip.counter.tipdata.tipstoday.burst.money.text = _local8;
_local3.clip.counter.tipdata.tipstotal.burst.money.text = _local11;
_local3.clip.counter.tipdata.tipstoday.play();
_local3.clip.counter.tipdata.tipstodaytext.play();
_local3.clip.counter.tipdata.tipstotal.play();
_local3.clip.counter.tipdata.totaltipstext.play();
_local3.clip.counter.tipjar.clip.play();
clearInterval(_local3.cycleInterval);
_local3.cycleInterval = setInterval(this, "royReact", _local3.reactSpeed);
var _local13 = _local7;
var _local9 = _local4.myRank;
var _local10 = _local4.lastRankLimit + ((_local9 + 1) * _local4.rankMultiplier);
trace((("Will Hit Rank #" + (_local9 + 1)) + " at ") + _local10);
if (_local13 > _local10) {
_local3.shouldUpgrade = true;
trace("Going to upgrade.");
} else {
trace("No upgrade.");
}
}
function royReact() {
var _local2 = this;
var _local4 = _local2.gameObj;
var _local5 = _local4.tipsToday;
var _local6 = 300 * _local4.customersToday;
var _local3 = Math.floor((_local5 / _local6) * 100);
trace("tips today: " + _local5);
trace("total customers: " + _local4.customersToday);
trace("max tips: " + _local6);
trace("Percentage of tips: " + _local3);
if (_local3 > 80) {
_local2.clip.counter.roy.gotoAndPlay("proud");
} else if (_local3 > 60) {
_local2.clip.counter.roy.gotoAndPlay("happy");
} else if (_local3 > 40) {
_local2.clip.counter.roy.gotoAndPlay("okay");
} else {
_local2.clip.counter.roy.gotoAndPlay("sad");
}
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "hideTips", _local2.hideSpeed);
}
function hideTips() {
var _local2 = this;
var _local3 = _local2.gameObj;
trace("tipstoday frame: " + _local2.clip.counter.tipdata.tipstoday._currentframe);
trace("tipstotal frame: " + _local2.clip.counter.topdata.tipstotal._currentframe);
_local2.clip.counter.tipdata.tipstoday.play();
_local2.clip.counter.tipdata.tipstodaytext.play();
_local2.clip.counter.tipdata.tipstotal.play();
_local2.clip.counter.tipdata.totaltipstext.play();
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "showRank", _local2.rankSpeed);
}
function showRank() {
var _local2 = this;
var _local5 = _local2.gameObj;
var _local7 = _local5.myRank;
var _local4 = _local7.toString();
var _local6 = _local4.length;
var _local3;
if (_local6 == 1) {
_local2.clip.counter.rank.clip.num.gotoAndStop(1);
_local3 = int(_local4.charAt(0));
_local2.clip.counter.rank.clip.num.num1.gotoAndStop(_local3 + 1);
} else if (_local6 == 2) {
_local2.clip.counter.rank.clip.num.gotoAndStop(2);
_local3 = int(_local4.charAt(0));
_local2.clip.counter.rank.clip.num.num1.gotoAndStop(_local3 + 1);
_local3 = int(_local4.charAt(1));
_local2.clip.counter.rank.clip.num.num2.gotoAndStop(_local3 + 1);
} else if (_local6 == 3) {
_local2.clip.counter.rank.clip.num.gotoAndStop(3);
_local3 = int(_local4.charAt(0));
_local2.clip.counter.rank.clip.num.num1.gotoAndStop(_local3 + 1);
_local3 = int(_local4.charAt(1));
_local2.clip.counter.rank.clip.num.num2.gotoAndStop(_local3 + 1);
_local3 = int(_local4.charAt(2));
_local2.clip.counter.rank.clip.num.num3.gotoAndStop(_local3 + 1);
} else if (_local6 > 3) {
_local2.clip.counter.rank.clip.num.gotoAndStop(3);
_local2.clip.counter.rank.clip.num.num1.gotoAndStop(10);
_local2.clip.counter.rank.clip.num.num2.gotoAndStop(10);
_local2.clip.counter.rank.clip.num.num3.gotoAndStop(10);
}
var _local8 = _local5.rankTitles[_local7];
if (_local7 >= _local5.rankTitles.length) {
_local8 = _local5.rankTitles[_local5.rankTitles.length - 1];
}
_local2.clip.counter.rank.clip.rankname.titlemc.title.text = _local8;
if (!_local2.shouldUpgrade) {
_local2.clip.counter.rank.clip.rankname.gotoAndStop(30);
}
_local2.clip.counter.rank.play();
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "determineUpgrade", _local2.titleSpeed);
}
function determineUpgrade() {
var _local2 = this;
var _local5 = _local2.gameObj;
if (_local2.shouldUpgrade) {
_local5.myRank++;
_local5.lastRankLimit = _local5.lastRankLimit + (_local5.myRank * _local5.rankMultiplier);
var _local7 = _local5.myRank;
var _local4 = _local7.toString();
var _local6 = _local4.length;
var _local3;
if (_local6 == 1) {
_local2.clip.counter.rank.clip.num.gotoAndStop(1);
_local3 = int(_local4.charAt(0));
_local2.clip.counter.rank.clip.num.num1.gotoAndStop(_local3 + 1);
} else if (_local6 == 2) {
_local2.clip.counter.rank.clip.num.gotoAndStop(2);
_local3 = int(_local4.charAt(0));
_local2.clip.counter.rank.clip.num.num1.gotoAndStop(_local3 + 1);
_local3 = int(_local4.charAt(1));
_local2.clip.counter.rank.clip.num.num2.gotoAndStop(_local3 + 1);
} else if (_local6 == 3) {
_local2.clip.counter.rank.clip.num.gotoAndStop(3);
_local3 = int(_local4.charAt(0));
_local2.clip.counter.rank.clip.num.num1.gotoAndStop(_local3 + 1);
_local3 = int(_local4.charAt(1));
_local2.clip.counter.rank.clip.num.num2.gotoAndStop(_local3 + 1);
_local3 = int(_local4.charAt(2));
_local2.clip.counter.rank.clip.num.num3.gotoAndStop(_local3 + 1);
} else if (_local6 > 3) {
_local2.clip.counter.rank.clip.num.gotoAndStop(3);
_local2.clip.counter.rank.clip.num.num1.gotoAndStop(10);
_local2.clip.counter.rank.clip.num.num2.gotoAndStop(10);
_local2.clip.counter.rank.clip.num.num3.gotoAndStop(10);
}
_local2.clip.counter.rank.clip.rankname.titlemc.title.text = _local5.rankTitles[_local7];
_local2.clip.counter.rank.clip.upgrade.play();
_local5.soundEngine.playSound("customer_overjoyed.wav");
_local2.clip.counter.roy.gotoAndPlay("levelup");
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "showRankTitle", _local2.titleSpeed);
} else {
_local2.showButtons();
}
}
function showRankTitle() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.clip.counter.rank.clip.rankname.play();
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "showButtons", _local2.titleSpeed);
}
function showNextRank() {
var _local4 = this;
var _local5 = _local4.gameObj;
var _local6 = _local5.totalTips;
var _local9 = _local5.myRank;
var _local8 = _local5.lastRankLimit + ((_local9 + 1) * _local5.rankMultiplier);
var _local3 = _local8 - _local6;
if (_local3 < 0) {
_local3 = 100;
}
var _local11 = _local3 / 100;
var _local7 = Math.floor(_local11);
var _local2 = _local3 - (_local7 * 100);
var _local12 = _local2 / 100;
if (_local2 < 10) {
_local2 = "0" + _local2;
} else if (_local2 == 0) {
_local2 = "00";
}
var _local10 = (("$" + _local7) + ".") + _local2;
trace("the current tips?: " + _local6);
trace("The limit?: " + _local8);
trace("The diff?: " + _local3);
_local4.clip.counter.tipjar.clip.nextrankburst.burst.money.text = _local10;
_local4.clip.counter.tipjar.clip.gotoAndPlay(2);
_local4.clip.counter.tipjar.clip.nextrankburst.play();
}
function showButtons() {
var screen = this;
var _local2 = screen.gameObj;
screen.clip.counter.buttons.quit_btn.onPress = function () {
screen.QuitGame();
};
screen.clip.counter.buttons.score_btn.onPress = function () {
};
screen.clip.counter.buttons.score_btn._visible = false;
screen.clip.counter.buttons.score_btn.enabled = false;
screen.clip.counter.buttons.continue_btn.onPress = function () {
screen.ContinueGame();
};
screen.clip.counter.buttons.play();
clearInterval(screen.cycleInterval);
screen.showNextRank();
_local2.saveProgress();
}
function QuitGame() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local3.quitGame();
}
function SubmitScore() {
var _local2 = this;
var _local3 = _local2.gameObj;
}
function ContinueGame() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local3.nextLevel();
}
function pauseUpdate(msg) {
}
var getupSpeed = 1000;
var tipSpeed = 1000;
var reactSpeed = 1600;
var hideSpeed = 3400;
var rankSpeed = 500;
var titleSpeed = 700;
var shouldUpgrade = false;
}
Symbol 3451 MovieClip [__Packages.roygame.models.HUD] Frame 0
class roygame.models.HUD
{
function HUD (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.attachHUD();
}
function attachHUD() {
var hud = this;
var game = hud.gameObj;
hud.clip = hud.gameclip.attachMovie("hud", "hud", 50000);
hud.clip.order_btn.button.onRelease = function () {
game.switchModes("order");
game.soundEngine.playSound("buttonclick.wav");
};
hud.clip.topping_btn.button.onRelease = function () {
game.switchModes("topping");
game.soundEngine.playSound("buttonclick.wav");
};
hud.clip.baking_btn.button.onRelease = function () {
game.switchModes("baking");
game.soundEngine.playSound("buttonclick.wav");
};
hud.clip.cutting_btn.button.onRelease = function () {
game.switchModes("cutting");
game.soundEngine.playSound("buttonclick.wav");
};
hud.clip.sound_btn.onRelease = function () {
if (!game.pauseManager.isPaused) {
game.soundEngine.muteSound();
}
};
if (game.soundEngine.isMute) {
hud.clip.sound_btn.gotoAndStop("off");
}
hud.clip.pause_btn.onRelease = function () {
game.soundEngine.playSound("buttonclick.wav");
game.pauseManager.pauseGame();
};
if (game.training) {
hud.clip.file_btn._visible = false;
} else {
hud.clip.file_btn._visible = true;
}
hud.clip.file_btn.onRelease = function () {
game.soundEngine.playSound("buttonclick.wav");
game.pauseManager.pauseGame("customerfile");
};
hud.clip.help_btn.onRelease = function () {
game.soundEngine.playSound("buttonclick.wav");
game.pauseManager.pauseGame(0, "helpscreen");
};
hud.clip.quit_btn.onRelease = function () {
game.soundEngine.playSound("grabtopping.wav");
};
hud.clip.quitMC.window.yes_btn.onRelease = function () {
if (!game.pauseScreen.soundWasMuted) {
game.soundEngine.muteSound();
}
game.soundEngine.playSound("buttonclick.wav");
game.quitGame();
};
hud.clip.quitMC.window.no_btn.onRelease = function () {
game.soundEngine.playSound("buttonclick.wav");
hud.cancelQuit();
};
hud.clip.buttons.takeorder_btn.button.onRelease = function () {
game.sendScreenAction("takeorder");
game.soundEngine.playSound("buttonclick.wav");
};
hud.clip.buttons.makepizza_btn.button.onRelease = function () {
game.sendScreenAction("makepizza");
game.soundEngine.playSound("buttonclick.wav");
};
hud.clip.buttons.givepizza_btn.button.onRelease = function () {
game.sendScreenAction("givepizza");
game.soundEngine.playSound("buttonclick.wav");
};
hud.clip.buttons.putinoven_btn.button.onRelease = function () {
game.sendScreenAction("putinoven");
game.soundEngine.playSound("buttonclick.wav");
};
hud.clip.buttons.saveforlater_btn.button.onRelease = function () {
game.sendScreenAction("saveforlater");
game.soundEngine.playSound("buttonclick.wav");
};
hud.clip.buttons.throwaway_btn.button.onRelease = function () {
game.sendScreenAction("throwaway");
game.soundEngine.playSound("buttonclick.wav");
};
hud.setTooltip("** Welcome, Roy **", false);
game.pauseManager.addPauseListener(this);
}
function setTooltip(message, rollover) {
var _local2 = this;
_local2.clip.tooltip.text = message;
_local2.clip.marquee.flash.gotoAndPlay(2);
if (!rollover) {
_local2.lastToolTip = message;
}
}
function setLastTooltip() {
var _local2 = this;
_local2.clip.tooltip.text = _local2.lastToolTip;
}
function setMode(which) {
var _local2 = this;
_local2.currentMode = which;
if (which == "order") {
_local2.clip.buttons.gotoAndStop("order");
} else if (which == "topping") {
_local2.clip.buttons.gotoAndStop("topping");
} else if (which == "baking") {
_local2.clip.buttons.gotoAndStop("baking");
} else if (which == "cutting") {
_local2.clip.buttons.gotoAndStop("cutting");
} else if (which == "takeorder") {
_local2.clip.buttons.gotoAndStop("order");
} else if (which == "giveorder") {
_local2.clip.buttons.gotoAndStop("order");
} else if (which == "pause") {
_local2.clip.buttons.gotoAndStop("blank");
}
_local2.setActiveTicket(_local2.activeTicket);
}
function switchTicketMode(which) {
var _local2 = this;
if (_local2.currentMode == "topping") {
if (which == "ticket") {
_local2.clip.buttons.gotoAndStop("topping_ticket");
} else if (which == "pizza") {
_local2.clip.buttons.gotoAndStop("topping_pizza");
} else if (which == "blank") {
_local2.clip.buttons.gotoAndStop("topping");
}
} else if (_local2.currentMode == "cutting") {
if (which == "ticket") {
_local2.clip.buttons.gotoAndStop("cutting_ticket");
} else if (which == "pizza") {
_local2.clip.buttons.gotoAndStop("cutting_pizza");
} else if (which == "blank") {
_local2.clip.buttons.gotoAndStop("cutting");
}
}
}
function confirmQuit() {
var _local2 = this;
_local2.clip.quitMC.gotoAndPlay(2);
}
function cancelQuit() {
var _local2 = this;
_local2.clip.quitMC.gotoAndStop(1);
}
function setActiveTicket(which) {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.activeTicket = which;
if (_local2.activeTicket > 0) {
if (_local2.currentMode == "topping") {
var _local4 = false;
var _local9 = "ticket" + _local2.activeTicket;
var _local5 = _local3.ticketManager[_local9];
if ((_local5.whichPizza > 0) && (_local5.pizzaIsTopping)) {
_local4 = true;
}
if (!_local4) {
_local2.clip.buttons.gotoAndStop("topping_ticket");
if (_local3.training) {
if (_local3.trainingManager.currentStep == 10) {
_local3.trainingManager.finishedStep(10);
}
}
} else {
_local2.clip.buttons.gotoAndStop("topping_pizza");
}
} else if (_local2.currentMode == "order") {
var _local8 = _local3.customerManager.orderline.length;
if (_local8 > 0) {
var _local7 = _local3.customerManager.orderline[0];
if (_local7.isWalking == false) {
_local2.clip.buttons.gotoAndStop("order_customer");
if (_local3.training) {
if (_local3.trainingManager.currentStep == 5) {
_local3.trainingManager.finishedStep(5);
}
}
} else {
_local2.clip.buttons.gotoAndStop("order");
}
} else {
_local2.clip.buttons.gotoAndStop("order");
}
} else if (_local2.currentMode == "cutting") {
var _local6 = _local3.cuttingScreen.pizzas.length;
if (_local6 > 0) {
_local2.clip.buttons.gotoAndStop("cutting_ticket");
} else {
_local2.clip.buttons.gotoAndStop("cutting");
}
}
} else if (_local2.currentMode == "topping") {
_local2.clip.buttons.gotoAndStop("topping");
} else if (_local2.currentMode == "cutting") {
var _local6 = _local3.cuttingScreen.pizzas.length;
if (_local6 > 0) {
_local2.clip.buttons.gotoAndStop("cutting_pizza");
} else {
_local2.clip.buttons.gotoAndStop("cutting");
}
} else if (_local2.currentMode == "order") {
var _local8 = _local3.customerManager.orderline.length;
if (_local8 > 0) {
var _local7 = _local3.customerManager.orderline[0];
if (_local7.isWalking == false) {
_local2.clip.buttons.gotoAndStop("order_customer");
if (_local3.training) {
if (_local3.trainingManager.currentStep == 5) {
_local3.trainingManager.finishedStep(5);
}
}
} else {
_local2.clip.buttons.gotoAndStop("order");
}
} else {
_local2.clip.buttons.gotoAndStop("order");
}
}
}
function pauseUpdate(msg) {
}
var activeTicket = 0;
var lastToolTip = "";
}
Symbol 3452 MovieClip [__Packages.roygame.models.Ticket] Frame 0
class roygame.models.Ticket
{
var gameObj;
function Ticket (gameobj, ordernum, orderdata, customer) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.orderNumber = ordernum;
_local2.orderData = orderdata;
_local2.whichCustomer = customer;
_local2.attachNewTicket();
}
function attachNewTicket() {
var ticket = this;
var _local4 = ticket.gameObj;
var _local5 = "ticket" + ticket.orderNumber;
var _local3 = _local4.hudObj.clip.getNextHighestDepth();
_local3 = Math.max(_local3, 1001);
ticket.clip = _local4.hudObj.clip.attachMovie("ticket", _local5, _local3);
ticket.clip._x = ticket.detailX;
ticket.clip._y = ticket.detailY;
ticket.clip._width = ticket.detailWidth;
ticket.clip._height = ticket.detailHeight;
var _local2 = ticket.orderNumber;
if (_local2 < 10) {
_local2 = "00" + _local2;
} else if (_local2 < 100) {
_local2 = "0" + _local2;
}
ticket.clip.number.text = _local2;
gameObj.hudObj.setActiveTicket(ticket.orderNumber);
gameObj.takeOrderScreen.setActiveTicket(ticket);
ticket.clearTicketLines();
ticket.clip.onPress = function () {
ticket.dragTicket();
};
ticket.clip.onRelease = function () {
ticket.stopDragTicket();
};
ticket.clip.onReleaseOutside = function () {
ticket.stopDragTicket();
};
_local4.pauseManager.addPauseListener(this);
}
function dragTicket() {
var _local2 = this;
var _local3 = _local2.gameObj;
var _local6 = _local3.hudObj.currentMode;
var _local4 = true;
if (_local3.training) {
if (_local3.trainingManager.canDragTicket) {
_local4 = true;
} else {
_local4 = false;
}
}
var _local5 = true;
if (_local3.pauseManager.isPaused) {
_local5 = false;
}
_local2.clip.ticketflash.gotoAndStop(1);
if (((_local2.orderIsTaken && (_local6 != "giveorder")) && (_local4)) && (_local5)) {
if (_local3.hudObj.activeTicket == _local2.orderNumber) {
_local2.gameObj.hudObj.setTooltip("Drag to ticket line");
} else {
_local2.gameObj.hudObj.setTooltip("Drag to viewing area");
}
_local2.clip._width = _local2.lineWidth;
_local2.clip._height = _local2.lineHeight;
_local2.lastDepth = _local2.clip.getDepth();
_local2.clip.swapDepths(1500);
delete _local2.clip.onEnterFrame;
_local3.soundEngine.playSound("grabticket.wav");
_local2.clip.startDrag(true);
} else {
_local2.gameObj.hudObj.setTooltip("WAIT!");
}
}
function stopDragTicket() {
var _local2 = this;
var _local3 = _local2.gameObj;
var _local4 = true;
if (_local3.pauseManager.isPaused) {
_local4 = false;
}
if (_local4) {
_local2.clip.stopDrag();
_local3.hudObj.setTooltip(" ... ");
_local2.clip.swapDepths(_local3.hudObj.clip.getNextHighestDepth());
_local3.ticketManager.sortDepths();
_local3.soundEngine.playSound("dropticket.wav");
if (_local2.clip.hitTest(_local3.hudObj.clip.ticketarea)) {
_local2.snapToPanel();
} else if (_local2.clip.hitTest(_local3.hudObj.clip.ticketline)) {
_local2.snapToLine();
} else if (_local3.hudObj.activeTicket == _local2.orderNumber) {
_local2.snapToPanel();
} else {
_local2.snapToLine();
}
}
}
function tweenTicket() {
var _local2 = this;
var _local11 = Math.floor;
var _local7 = _local2.targetX - _local2.clip._x;
var _local6 = _local2.targetY - _local2.clip._y;
var _local3 = _local7 / _local2.tweenSteps;
var _local4 = _local6 / _local2.tweenSteps;
var _local9 = _local2.targetWidth - _local2.clip._width;
var _local8 = _local2.targetHeight - _local2.clip._height;
var _local5 = _local9 / _local2.tweenSteps;
var _local10 = _local8 / _local2.tweenSteps;
if ((Math.abs(_local3) < 1) && (Math.abs(_local4) < 1)) {
_local2.clip._x = _local2.targetX;
_local2.clip._y = _local2.targetY;
_local2.clip._width = _local2.targetWidth;
_local2.clip._height = _local2.targetHeight;
delete _local2.clip.onEnterFrame;
} else {
_local2.clip._x = _local2.clip._x + _local3;
_local2.clip._y = _local2.clip._y + _local4;
if (_local2.clip._width < _local2.targetWidth) {
_local2.clip._width = _local2.clip._width + _local5;
_local2.clip._height = _local2.clip._height + _local10;
} else {
_local2.clip._width = _local2.targetWidth;
_local2.clip._height = _local2.targetHeight;
}
}
}
function snapToLine(automove) {
var ticket = this;
var _local2 = ticket.gameObj;
var _local3 = ticket.clip._x;
if (automove) {
_local3 = ticket.lineMaxX - random(15);
} else if (_local3 < ticket.lineMinX) {
_local3 = ticket.lineMinX;
} else if (_local3 > ticket.lineMaxX) {
_local3 = ticket.lineMaxX;
}
ticket.targetX = _local3;
ticket.targetY = ticket.lineY;
ticket.targetWidth = ticket.lineWidth;
ticket.targetHeight = ticket.lineHeight;
if (_local2.training) {
if (_local2.trainingManager.currentStep == 16) {
_local2.trainingManager.finishedStep(16);
} else if (_local2.trainingManager.currentStep == 8) {
_local2.trainingManager.finishedStep(8);
}
}
if (_local2.hudObj.activeTicket == ticket.orderNumber) {
if (ticket.whichPizza > 0) {
if (ticket.pizzaIsTopping) {
var _local4 = ticket.whichPizza;
var _local5 = "pizza" + _local4;
_local2.pizzaManager[_local5].saveForLater();
}
}
if (_local2.currentMode == "takeOrder") {
}
_local2.hudObj.setActiveTicket(0);
}
ticket.clip.onEnterFrame = function () {
ticket.tweenTicket();
};
}
function setMyPizza(which) {
var _local2 = this;
_local2.whichPizza = which;
}
function removeMyPizza() {
var _local2 = this;
_local2.whichPizza = 0;
}
function snapToPanel() {
var ticket = this;
var _local2 = ticket.gameObj;
ticket.targetX = ticket.detailX;
ticket.targetY = ticket.detailY;
ticket.targetWidth = ticket.detailWidth;
ticket.targetHeight = ticket.detailHeight;
if (_local2.training) {
if (_local2.trainingManager.currentStep == 17) {
_local2.trainingManager.finishedStep(17);
}
}
if (_local2.hudObj.activeTicket == 0) {
_local2.hudObj.setActiveTicket(ticket.orderNumber);
} else if (_local2.hudObj.activeTicket == ticket.orderNumber) {
} else {
var _local4 = _local2.hudObj.activeTicket;
var _local3 = _local2.ticketManager["ticket" + _local4];
if (_local3.orderIsTaken) {
_local3.snapToLine("automove");
_local2.hudObj.setActiveTicket(ticket.orderNumber);
} else {
ticket.snapToLine();
}
}
ticket.clip.onEnterFrame = function () {
ticket.tweenTicket();
};
}
function finishTakingOrder() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.orderIsTaken = true;
if ((_local2.timeTaken == 0) || (_local2.timeTaken == undefined)) {
_local2.timeTaken = getTimer();
}
trace("TIME TAKEN: " + _local2.timeTaken);
_local2.ordersAheadOfMe = _local3.customerManager.waitline.length;
if (_local3.training) {
if (_local3.trainingManager.currentStep == 7) {
_local3.trainingManager.finishedStep(7);
}
}
}
function drawTicketLine(whichtopping, toppingamount, getslice1, getslice2, getslice3, getslice4) {
var _local3 = this;
var _local4 = _local3.currentDrawLine + 1;
var _local2 = _local3.clip["line" + _local4];
_local2.gotoAndStop(1);
_local2.number.gotoAndStop(toppingamount);
_local2.topping.gotoAndStop(whichtopping + 1);
if (getslice1) {
_local2.chart.slice1.gotoAndStop(1);
} else {
_local2.chart.slice1.gotoAndStop(2);
}
if (getslice2) {
_local2.chart.slice2.gotoAndStop(1);
} else {
_local2.chart.slice2.gotoAndStop(2);
}
if (getslice3) {
_local2.chart.slice3.gotoAndStop(1);
} else {
_local2.chart.slice3.gotoAndStop(2);
}
if (getslice4) {
_local2.chart.slice4.gotoAndStop(1);
} else {
_local2.chart.slice4.gotoAndStop(2);
}
_local3.currentDrawLine++;
}
function drawTicketTime(whattime) {
var _local2 = this;
_local2.cookTime = whattime;
_local2.clip.clock.gotoAndStop(_local2.cookTime + 1);
}
function drawTicketCut(whatcut) {
var _local2 = this;
_local2.cutNumber = whatcut;
if (_local2.cutNumber == 4) {
_local2.clip.cut.gotoAndStop(2);
} else if (_local2.cutNumber == 6) {
_local2.clip.cut.gotoAndStop(3);
} else if (_local2.cutNumber == 8) {
_local2.clip.cut.gotoAndStop(4);
} else {
trace("what is this cut?: " + _local2.cutNumber);
}
}
function clearTicketLines() {
var _local3 = this;
var _local2 = 1;
while (_local2 < 8) {
_local3.clip["line" + _local2].gotoAndStop(2);
_local2++;
}
_local3.clip.clock.gotoAndStop(1);
_local3.clip.cut.gotoAndStop(1);
}
function drawTicket() {
var _local5 = this;
var _local6 = 1;
var _local3 = _local5.orderData;
var _local4 = 0;
while (_local4 < 7) {
if (_local3[_local4][0] > 0) {
var _local2 = _local5.clip["line" + _local6];
_local2.number.gotoAndStop(_local3[_local4][0]);
_local2.topping.gotoAndStop(_local4 + 1);
if (_local3[_local4][1] == 1) {
_local2.chart.slice1.gotoAndStop(1);
} else {
_local2.chart.slice1.gotoAndStop(2);
}
if (_local3[_local4][2] == 1) {
_local2.chart.slice2.gotoAndStop(1);
} else {
_local2.chart.slice2.gotoAndStop(2);
}
if (_local3[_local4][3] == 1) {
_local2.chart.slice3.gotoAndStop(1);
} else {
_local2.chart.slice3.gotoAndStop(2);
}
if (_local3[_local4][4] == 1) {
_local2.chart.slice4.gotoAndStop(1);
} else {
_local2.chart.slice4.gotoAndStop(2);
}
_local6++;
}
_local4++;
}
if (_local6 < 8) {
_local4 = _local6;
while (_local4 < 8) {
_local5.clip["line" + _local4].gotoAndStop(2);
_local4++;
}
}
_local5.cookTime = _local3[7];
_local5.clip.clock.gotoAndStop(_local5.cookTime + 1);
_local5.cutNumber = _local3[8];
if (_local5.cutNumber == 4) {
_local5.clip.cut.gotoAndStop(2);
} else if (_local5.cutNumber == 6) {
_local5.clip.cut.gotoAndStop(3);
} else if (_local5.cutNumber == 8) {
_local5.clip.cut.gotoAndStop(4);
} else {
trace("what is this cut?: " + _local5.cutNumber);
}
}
function pauseUpdate(msg) {
var _local2 = this;
if (msg == "pause") {
_local2.lastPauseStart = getTimer();
} else if (msg == "unpause") {
var _local3 = getTimer() - _local2.lastPauseStart;
if (_local2.orderIsTaken) {
_local2.pauseCache = _local2.pauseCache + _local3;
}
}
}
var orderNumber = 0;
var whichPizza = 0;
var pizzaIsTopping = false;
var orderIsTaken = false;
var currentDrawLine = 0;
var detailX = 522;
var detailY = 134;
var detailWidth = 152;
var detailHeight = 288;
var lineY = 13;
var lineWidth = 43;
var lineHeight = 85;
var lineMinX = 32;
var lineMaxX = 352;
var lastDepth = 1000;
var tweenSteps = 2;
var targetX = 0;
var targetY = 0;
var targetWidth = 1;
var targetHeight = 1;
var pauseCache = 0;
var lastPauseStart = 0;
var ordersAheadOfMe = 0;
}
Symbol 3453 MovieClip [__Packages.roygame.models.Customer] Frame 0
class roygame.models.Customer
{
var gameObj;
function Customer (gameobj, num) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.number = num;
_local2.setupCustomer();
_local2.startCustomerEntering();
}
function setupCustomer() {
var _local2 = this;
_local2.gameObj.pauseManager.addPauseListener(this);
_local2.timeEntered = getTimer();
_local2.difficulty = 1;
_local2.currentOrder = 0;
}
function shortenWaitTime() {
var _local2 = this;
var _local3 = _local2.difficulty;
var _local4 = _local2.currentOrder;
_local2.orders[_local3][_local4][7] = 1;
}
function drawCustomerOrdering() {
var customer = this;
var _local2 = customer.gameObj.takeOrderScreen;
customer.instancename = (customer.clipname + "_") + customer.number;
customer.takeorder_clip = _local2.clip.attachMovie(customer.clipname, customer.instancename, 5);
customer.drawBodyParts(customer.takeorder_clip);
customer.takeorder_clip._x = customer.takeorder_x;
customer.takeorder_clip._y = customer.takeorder_y;
customer.takeorder_clip.gotoAndStop("stand");
customer.takeorder_clip.number.text = "" + customer.number;
customer.takeorder_clip.onRollOver = function () {
customer.gameObj.hudObj.setTooltip(customer.customername, true);
};
customer.takeorder_clip.onRollOut = function () {
customer.gameObj.hudObj.setLastTooltip();
};
customer.takeorder_clip.useHandCursor = false;
_local2.gameObj.customerdata[customer.customertype][4]++;
}
function drawCustomerPresenting() {
var customer = this;
var _local2 = customer.gameObj.giveOrderScreen;
customer.instancename = (customer.clipname + "_") + customer.number;
customer.giveorder_clip = _local2.clip.attachMovie(customer.clipname, customer.instancename, 5);
customer.drawBodyParts(customer.giveorder_clip);
customer.giveorder_clip._x = customer.giveorder_x;
customer.giveorder_clip._y = customer.giveorder_y;
customer.giveorder_clip.gotoAndStop("stand");
customer.giveorder_clip.onRollOver = function () {
customer.gameObj.hudObj.setTooltip(customer.customername, true);
};
customer.giveorder_clip.onRollOut = function () {
customer.gameObj.hudObj.setLastTooltip();
};
customer.giveorder_clip.useHandCursor = false;
}
function drawBodyParts(clip) {
var _local4 = this;
var _local2 = _local4.customertype;
clip.body.attachMovie(("customer" + _local2) + "_body", "clip", 1);
clip.head.attachMovie(("customer" + _local2) + "_head", "clip", 1);
clip.eyes.attachMovie(("customer" + _local2) + "_eyes", "clip", 1);
clip.mouth.attachMovie(("customer" + _local2) + "_mouth", "clip", 1);
clip.neck.attachMovie(("customer" + _local2) + "_neck", "clip", 1);
clip.hair.attachMovie(("customer" + _local2) + "_hair", "clip", 1);
clip.back_hair.attachMovie(("customer" + _local2) + "_back_hair", "clip", 1);
clip.front_shoe.attachMovie(("customer" + _local2) + "_foot", "clip", 1);
clip.back_shoe.attachMovie(("customer" + _local2) + "_foot", "clip", 1);
clip.fronthand.attachMovie(("customer" + _local2) + "_hand", "clip", 1);
clip.backhand.attachMovie(("customer" + _local2) + "_hand2", "clip", 1);
clip.front_upperarm.attachMovie(("customer" + _local2) + "_upperarm", "clip", 1);
clip.back_upperarm.attachMovie(("customer" + _local2) + "_upperarm", "clip", 1);
clip.front_forearm.attachMovie(("customer" + _local2) + "_forearm", "clip", 1);
clip.back_forearm.attachMovie(("customer" + _local2) + "_forearm", "clip", 1);
}
function drawCustomer() {
var customer = this;
var _local2 = customer.gameObj.orderScreen;
customer.instancename = (customer.clipname + "_") + customer.number;
var _local3 = 300 + customer.number;
customer.clip = _local2.clip.attachMovie(customer.clipname, customer.instancename, _local3);
customer.clip.myclass = customer;
customer.drawBodyParts(customer.clip);
customer.base_width = customer.clip._width;
customer.base_height = customer.clip._height;
customer.orderline_width = Math.floor(customer.base_width * customer.orderline_sizepercent);
customer.orderline_height = Math.floor(customer.base_height * customer.orderline_sizepercent);
customer.waitline_width = Math.floor(customer.base_width * customer.waitline_sizepercent);
customer.waitline_height = Math.floor(customer.base_height * customer.waitline_sizepercent);
customer.leaveline_width = Math.floor(customer.base_width * customer.leaveline_sizepercent);
customer.leaveline_height = Math.floor(customer.base_height * customer.leaveline_sizepercent);
customer.clip._x = customer.x;
customer.clip._y = customer.y;
if (customer.currentLine == "orderline") {
customer.clip._width = customer.orderline_width;
customer.clip._height = customer.orderline_height;
customer.clip._xscale = Math.abs(customer.clip._xscale);
} else if (customer.currentLine == "leaveline") {
customer.clip._width = customer.leaveline_width;
customer.clip._height = customer.leaveline_height;
customer.clip._xscale = Math.abs(customer.clip._xscale) * -1;
} else if (customer.currentLine == "waitline") {
customer.clip._width = customer.waitline_width;
customer.clip._height = customer.waitline_height;
customer.clip._xscale = Math.abs(customer.clip._xscale);
}
if (customer.isWalking) {
customer.clip.gotoAndPlay("walk");
} else {
customer.clip.gotoAndPlay("stand");
}
customer.isDrawn = true;
customer.clip.onRollOver = function () {
customer.gameObj.hudObj.setTooltip(customer.customername, true);
};
customer.clip.onRollOut = function () {
customer.gameObj.hudObj.setLastTooltip();
};
customer.clip.useHandCursor = false;
}
function undrawCustomer() {
var _local2 = this;
_local2.clip.removeMovieClip();
_local2.isDrawn = false;
}
function updateCustomerClip() {
var _local2 = this;
_local2.clip._x = _local2.x;
_local2.clip._y = _local2.y;
}
function startCustomerEntering() {
var _local2 = this;
var _local4 = _local2.gameObj.orderScreen;
var _local3 = _local2.gameObj.customerManager.orderline.length;
var _local5 = _local3 + 1;
_local2.x = _local2.orderline_offscreen_x;
_local2.y = _local2.orderline_y;
_local2.targetx = _local2.orderline_x + (_local3 * _local2.orderline_offset);
_local2.walkdir = -1;
_local2.clip.gotoAndPlay("walk");
_local2.currentLine = "orderline";
_local2.gameObj.customerManager.orderline.push(_local2);
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "walkCustomer", _local2.cycleSpeed);
if (gameObj.customerdata[_local2.customertype][3] == 0) {
gameObj.customerdata[_local2.customertype][3] = _local2.gameObj.currentDay;
}
}
function moveCustomerOrderDone() {
var _local2 = this;
var _local3 = _local2.gameObj.orderScreen;
_local2.x = _local2.leaveline_x;
_local2.y = _local2.leaveline_y;
_local2.clip._width = _local2.leaveline_width;
_local2.clip._height = _local2.leaveline_height;
_local2.clip._xscale = Math.abs(_local2.clip._xscale) * -1;
_local2.clip.body.clip.logo.gotoAndStop(2);
_local2.targetx = _local2.leaveline_offscreen_x;
_local2.walkdir = 1;
_local2.clip.gotoAndPlay("walk");
_local2.currentLine = "leaveline";
_local2.gameObj.customerManager.orderline.shift();
_local2.tellOthersToShift();
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "walkCustomer", _local2.cycleSpeed);
}
function moveCustomerWaitLine() {
var _local2 = this;
var _local4 = _local2.gameObj.orderScreen;
var _local3 = _local2.gameObj.customerManager.waitline.length;
_local2.clip._width = _local2.waitline_width;
_local2.clip._height = _local2.waitline_height;
_local2.clip._xscale = Math.abs(_local2.clip._xscale);
_local2.clip.body.clip.logo.gotoAndStop(1);
_local2.x = _local2.orderline_offscreen_x;
_local2.y = _local2.waitline_y;
_local2.targetx = _local2.waitline_x + (_local3 * _local2.waitline_offset);
_local2.walkdir = -1;
_local2.clip.gotoAndPlay("walk");
_local2.currentLine = "waitline";
_local2.gameObj.customerManager.waitline.push(_local2);
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "walkCustomer", _local2.cycleSpeed);
}
function tellOthersToShift() {
var _local5 = this;
var _local8 = _local5.gameObj;
var _local6 = _local8.customerManager;
var _local9 = _local8.orderScreen;
var _local7 = _local6.orderline.length;
var _local2 = 0;
while (_local2 < _local7) {
var _local3 = _local6.orderline[_local2];
var _local4 = _local5.orderline_x + (_local2 * _local5.orderline_offset);
_local3.shiftOrderLine(_local4);
_local2++;
}
_local8.hudObj.setActiveTicket(_local8.hudObj.activeTicket);
}
function shiftOrderLine(newtarget) {
var _local2 = this;
var _local3 = _local2.gameObj;
var _local4 = _local3.customerManager;
var _local5 = _local3.orderScreen;
var _local6 = _local4.orderline.length;
_local2.targetx = newtarget;
if (!_local2.isWalking) {
_local2.x = _local2.targetx;
_local2.clip._x = _local2.x;
if ((_local2.x < 450) && (!_local2.isDrawn)) {
_local2.drawCustomer();
}
}
}
function shiftWaitLine(newtarget) {
var _local2 = this;
var _local3 = _local2.gameObj;
var _local4 = _local3.customerManager;
var _local5 = _local3.orderScreen;
var _local6 = _local4.waitline.length;
_local2.targetx = newtarget;
if (!_local2.isWalking) {
_local2.x = _local2.targetx;
_local2.clip._x = _local2.x;
if ((_local2.x < 450) && (!_local2.isDrawn)) {
_local2.drawCustomer();
}
}
}
function walkCustomer() {
var _local2 = this;
var _local6 = _local2.gameObj;
var _local7 = _local2.x;
var _local4 = _local2.targetx;
var _local5 = _local2.walkspeed;
var _local3 = _local2.walkdir;
if (!_local6.pauseManager.isPaused) {
if ((_local3 == -1) && ((_local7 + (_local3 * _local5)) <= _local4)) {
trace("He's there, stop walk animation");
_local2.x = _local4;
_local2.clip.gotoAndPlay("stand");
_local2.isWalking = false;
if (_local2.currentLine == "orderline") {
_local6.hudObj.setActiveTicket(_local6.hudObj.activeTicket);
}
clearInterval(_local2.cycleInterval);
} else if ((_local3 == 1) && ((_local7 + (_local3 * _local5)) >= _local4)) {
trace("He's there, stop walk animation");
_local2.x = _local4;
_local2.clip.gotoAndPlay("stand");
if (_local2.currentLine == "leaveline") {
_local2.moveCustomerWaitLine();
} else {
_local2.isWalking = false;
clearInterval(_local2.cycleInterval);
}
} else {
_local2.isWalking = true;
_local2.x = _local2.x + (_local3 * _local5);
_local2.clip._x = _local2.x;
}
if (((_local3 == -1) && (_local2.x < 450)) || ((_local3 == 1) && (_local2.x < 550))) {
if (!_local2.isDrawn) {
_local2.drawCustomer();
} else {
_local2.updateCustomerClip();
}
} else if (_local2.isDrawn) {
_local2.undrawCustomer();
}
}
}
function pauseUpdate(msg) {
var _local2 = this;
if (msg == "pause") {
_local2.lastPauseStart = getTimer();
} else if (msg == "unpause") {
var _local3 = getTimer() - _local2.lastPauseStart;
if (_local2.currentLine == "orderline") {
_local2.pauseCache = _local2.pauseCache + _local3;
}
}
}
var clipname = "customer";
var customertype = 1;
var customername = "Customer!";
var maxTip = 300;
var extraTipPerBadge = 100;
var idealLineWait = 25000;
var takeorder_x = 270;
var takeorder_y = 101;
var giveorder_x = 230;
var giveorder_y = 101;
var cycleSpeed = 33;
var orderline_x = 110;
var orderline_y = 208;
var orderline_width = 91;
var orderline_height = 197;
var orderline_offset = 86;
var orderline_sizepercent = 0.6;
var orderline_offscreen_x = 450;
var leaveline_x = 274;
var leaveline_y = 145;
var leaveline_width = 91;
var leaveline_height = 197;
var leaveline_offscreen_x = 550;
var leaveline_sizepercent = 0.6;
var waitline_x = 207;
var waitline_y = 97;
var waitline_width = 75;
var waitline_height = 162;
var waitline_offset = 66;
var waitline_sizepercent = 0.5;
var orderIsPlaced = false;
var isWalking = false;
var isDrawn = false;
var walkspeed = 4;
var lastPauseStart = 0;
var pauseCache = 0;
var orders = [[], [[[0], [0], [0], [0], [0], [2, 0, 0, 1, 0], [0], 2, 4]]];
var difficulty = 1;
}
Symbol 3454 MovieClip [__Packages.roygame.models.TakeOrderScreen] Frame 0
class roygame.models.TakeOrderScreen
{
function TakeOrderScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.setupScreen();
}
function setupScreen() {
var _local2 = this;
_local2.clip = _local2.gameclip.attachMovie("takeorder_screen", "takeorder_screen", 9);
_local2.clip._x = -5000;
_local2.orderInProcess = false;
_local2.gameObj.pauseManager.addPauseListener(this);
}
function takeNewOrder(whichorder) {
var _local2 = this;
var _local4 = _local2.gameObj;
_local2.orderInProcess = true;
var _local9 = _local4.currentDay;
var _local8 = _local2.totalOrders + 1;
var _local10 = _local4.leveldata;
_local2.currentOrderLine = -1;
var _local7 = _local4.customerManager.orderline[0];
_local2.currentCustomer = _local7;
_local2.currentCustomer.drawCustomerOrdering();
_local2.currentCustomer.takeorder_clip.gotoAndStop("stand");
_local2.newOrder = _local2.currentCustomer.orders[_local2.currentCustomer.difficulty][_local2.currentCustomer.currentOrder];
_local4.ticketManager.AddTicket(_local8, _local2.newOrder, _local2.currentCustomer);
_local2.clip.attachMovie("takeorder_fg", "takeorder_fg", 20);
_local2.clip.bubble.gotoAndStop("open");
_local2.lineInterval = setInterval(this, "setupLineInterval", _local2.startIntervalSpeed);
_local2.whichInterval = "setup";
_local2.lastIntervalTime = getTimer();
_local2.totalOrders++;
_local2.clip.takeorder_fg.customername.text = _local4.customerdata[_local2.currentCustomer.customertype][1];
var _local5 = _local4.customerdata[_local2.currentCustomer.customertype][5];
var _local3 = 1;
while (_local3 <= _local5) {
_local2.clip.takeorder_fg.stars["star" + _local3].gotoAndStop(2);
_local3++;
}
var _local6 = _local4.customerdata[_local2.currentCustomer.customertype][6];
if (_local6 > 0) {
_local2.clip.takeorder_fg.stars.currentseal._visible = true;
_local2.clip.takeorder_fg.stars.currentseal.gotoAndStop(_local6);
} else {
_local2.clip.takeorder_fg.stars.currentseal._visible = false;
}
}
function setupLineInterval() {
var _local2 = this;
clearInterval(_local2.lineInterval);
_local2.currentCustomer.takeorder_clip.gotoAndPlay("takeorder");
_local2.drawNewOrderLine();
_local2.whichInterval = "draw";
_local2.lastIntervalTime = getTimer();
}
function setActiveTicket(ticket) {
var _local2 = this;
_local2.currentTicket = ticket;
}
function drawNewOrderLine() {
var _local4 = this;
var _local8 = _local4.gameObj;
var _local5 = _local4.newOrder;
var _local16 = _local4.currentOrderLine;
var _local6 = _local4.currentTicket;
clearInterval(_local4.lineInterval);
_local4.lineInterval = setInterval(this, "drawNewOrderLine", _local4.lineIntervalSpeed);
var _local3 = _local16 + 1;
var _local2 = _local3;
while (_local2 <= 9) {
if (_local2 < 7) {
if (_local5[_local2][0] > 0) {
_local3 = _local2;
break;
}
} else {
_local3 = _local2;
break;
}
_local2++;
}
if (_local3 < 7) {
_local4.clip.bubble.gotoAndStop("topping");
var _local14 = _local3;
var _local11 = _local5[_local3][0];
var _local12 = _local5[_local3][1];
var _local9 = _local5[_local3][2];
var _local10 = _local5[_local3][3];
var _local15 = _local5[_local3][4];
_local4.drawBalloonLine(_local14, _local11, _local12, _local9, _local10, _local15);
_local6.drawTicketLine(_local14, _local11, _local12, _local9, _local10, _local15);
} else if (_local3 == 7) {
_local4.clip.bubble.gotoAndStop("time");
var _local13 = _local5[7];
_local4.clip.bubble.clock.gotoAndStop(_local13 + 1);
_local6.drawTicketTime(_local13);
} else if (_local3 == 8) {
_local4.clip.bubble.gotoAndStop("cut");
var _local7 = _local5[8];
if (_local7 == 4) {
_local4.clip.bubble.cut.gotoAndStop(2);
} else if (_local7 == 6) {
_local4.clip.bubble.cut.gotoAndStop(3);
} else if (_local7 == 8) {
_local4.clip.bubble.cut.gotoAndStop(4);
}
_local6.drawTicketCut(_local7);
} else if (_local3 == 9) {
_local4.clip.bubble.gotoAndStop("invisible");
_local4.currentCustomer.takeorder_clip.gotoAndStop("stand");
_local6.finishTakingOrder();
_local4.currentCustomer.orderIsPlaced = true;
_local8.switchModes("order", "allow");
clearInterval(_local4.lineInterval);
_local4.whichInterval = "done";
}
if (_local3 < 9) {
_local4.clip.takeorder_fg.roy.play();
_local8.soundEngine.playSound("writepencil.wav");
_local8.soundEngine.playSound("talkbubble.wav", 0, 2);
}
_local4.lastIntervalTime = getTimer();
_local4.currentOrderLine = _local3;
}
function drawBalloonLine(whichtopping, toppingamount, getslice1, getslice2, getslice3, getslice4) {
var _local3 = this;
var _local2 = _local3.clip.bubble;
_local2.amount.text = toppingamount;
_local2.topping.gotoAndStop(whichtopping + 1);
if (getslice1) {
_local2.chart.slice1.gotoAndStop(1);
} else {
_local2.chart.slice1.gotoAndStop(2);
}
if (getslice2) {
_local2.chart.slice2.gotoAndStop(1);
} else {
_local2.chart.slice2.gotoAndStop(2);
}
if (getslice3) {
_local2.chart.slice3.gotoAndStop(1);
} else {
_local2.chart.slice3.gotoAndStop(2);
}
if (getslice4) {
_local2.chart.slice4.gotoAndStop(1);
} else {
_local2.chart.slice4.gotoAndStop(2);
}
}
function setCurrentMode() {
var _local3 = this;
var _local2 = _local3.gameObj;
_local3.clip._x = 0;
_local3.active = true;
_local2.toppingScreen.setNotCurrentMode();
_local2.orderScreen.setNotCurrentMode();
_local2.cuttingScreen.setNotCurrentMode();
_local2.bakingScreen.setNotCurrentMode();
_local2.pauseScreen.setNotCurrentMode();
_local2.soundEngine.switchMusic(1);
_local2.hudObj.setMode("takeorder");
if (!_local3.orderInProcess) {
_local3.takeNewOrder();
}
}
function setNotCurrentMode() {
var _local2 = this;
_local2.clip._x = -5000;
_local2.active = false;
}
function pauseUpdate(msg) {
var _local2 = this;
var _local5 = _local2.gameObj;
if (msg == "pause") {
if (_local2.whichInterval != "done") {
_local2.lastPauseOffset = getTimer() - _local2.lastIntervalTime;
clearInterval(_local2.lineInterval);
}
} else if (msg == "unpause") {
if (_local2.whichInterval != "done") {
var _local6 = _local2.lastPauseOffset;
var _local4;
if (_local2.whichInterval == "setup") {
_local4 = _local2.startIntervalSpeed;
} else if (_local2.whichInterval == "draw") {
_local4 = _local2.lineIntervalSpeed;
}
var _local3 = _local4 - _local6;
if (_local3 < 0) {
_local3 = _local4;
} else if (_local3 > _local4) {
_local3 = _local4;
} else {
_local2.lastIntervalTime = getTimer() - _local2.lastPauseOffset;
}
if (_local2.whichInterval == "setup") {
_local2.lineInterval = setInterval(this, "setupLineInterval", _local3);
} else if (_local2.whichInterval == "draw") {
_local2.lineInterval = setInterval(this, "drawNewOrderLine", _local3);
}
} else {
_local2.currentTicket.finishTakingOrder();
_local2.currentCustomer.orderIsPlaced = true;
_local5.switchModes("order", "allow");
}
}
}
var active = false;
var currentOrderLine = -1;
var lineIntervalSpeed = 2000;
var startIntervalSpeed = 700;
var lastIntervalTime = 0;
var lastPauseOffset = 0;
var totalOrders = 0;
var orderInProcess = false;
}
Symbol 3455 MovieClip [__Packages.roygame.models.LevelData] Frame 0
class roygame.models.LevelData
{
function LevelData (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
}
var difficulty = [[], [1, 1, 1, 1], [1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1], [2, 1, 2, 1, 1, 1, 1], [1, 2, 1, 1, 1, 2, 2], [2, 1, 1, 2, 1, 2, 2], [1, 2, 1, 2, 2, 1, 2], [2, 1, 1, 1, 2, 2, 1, 2], [1, 2, 1, 2, 2, 2, 1, 1], [1, 2, 1, 1, 2, 1, 2, 2], [1, 2, 1, 2, 1, 2, 2, 2], [1, 2, 1, 2, 2, 2, 1, 2], [1, 1, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 1, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2]];
}
Symbol 3456 MovieClip [__Packages.roygame.models.GiveOrderScreen] Frame 0
class roygame.models.GiveOrderScreen
{
var currentTipAmount, currentTipText;
function GiveOrderScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.setupScreen();
}
function setupScreen() {
var _local2 = this;
_local2.clip = _local2.gameclip.attachMovie("giveorder_screen", "giveorder_screen", 10);
_local2.clip._x = -5000;
_local2.orderInProcess = false;
_local2.gameObj.pauseManager.addPauseListener(this);
}
function presentPizza() {
var _local2 = this;
var _local4 = _local2.gameObj;
_local2.orderInProcess = true;
_local2.earnStarNumber = 0;
_local2.loseStarNumber = 0;
var _local7 = _local4.hudObj.activeTicket;
_local2.currentTicket = _local4.ticketManager["ticket" + _local7];
_local2.currentCustomer = _local2.currentTicket.whichCustomer;
_local2.currentPizza = _local4.cuttingScreen.pizzas[0];
_local2.currentCustomer.drawCustomerPresenting();
_local2.clip.attachMovie("giveorder_fg", "giveorder_fg", 20);
_local2.checkAccuracy();
_local2.clip.giveorder_fg.roy.play();
_local4.soundEngine.playSound("giveorder_drumroll.wav", 0, 2);
_local2.cycleInterval = setInterval(this, "lookAtPizza", _local2.lookSpeed);
_local2.whichInterval = "lookAtPizza";
_local2.lastIntervalTime = getTimer();
_local2.clip.giveorder_fg.customername.text = _local4.customerdata[_local2.currentCustomer.customertype][1];
var _local5 = _local4.customerdata[_local2.currentCustomer.customertype][5];
var _local3 = 1;
while (_local3 <= _local5) {
_local2.clip.giveorder_fg.stars["star" + _local3].gotoAndStop(2);
_local3++;
}
var _local6 = _local4.customerdata[_local2.currentCustomer.customertype][6];
if (_local6 > 0) {
_local2.clip.giveorder_fg.stars.currentseal._visible = true;
_local2.clip.giveorder_fg.stars.currentseal.gotoAndStop(_local6);
} else {
_local2.clip.giveorder_fg.stars.currentseal._visible = false;
}
trace("draw how many in jar?: " + _local2.coinJarFrame);
_local2.clip.giveorder_fg.tipjar.clip.tipclip.coins.gotoAndStop(_local2.coinJarFrame);
_local2.clip.giveorder_fg.stars.award.gotoAndStop(1);
}
function checkAccuracy() {
var _local2 = this;
var _local5 = _local2.gameObj;
var _local10 = _local2.checkBakingAccuracy();
var _local12 = _local2.checkWaitAccuracy();
var _local9 = _local2.checkToppingAccuracy();
var _local13 = _local2.checkCuttingAccuracy();
var _local3 = (((_local10 + _local12) + _local9) + _local13) / 400;
_local3 = Math.floor(_local3 * 100);
if (_local3 >= 90) {
_local2.customerReaction = "overjoyed";
} else if (_local3 >= 80) {
_local2.customerReaction = "happy";
} else if (_local3 >= 70) {
_local2.customerReaction = "decent";
} else if (_local3 >= 60) {
_local2.customerReaction = "worried";
} else if (_local3 >= 50) {
_local2.customerReaction = "upset";
} else if (_local3 < 50) {
_local2.customerReaction = "pissed";
} else {
_local2.customerReaction = "decent";
}
_local2.clip.giveorder_fg.accuracyclip.waitingscore.score.text = _local12;
_local2.clip.giveorder_fg.accuracyclip.toppingscore.score.text = _local9;
_local2.clip.giveorder_fg.accuracyclip.bakingscore.score.text = _local10;
_local2.clip.giveorder_fg.accuracyclip.cuttingscore.score.text = _local13;
_local5.waitingToday = _local5.waitingToday + _local12;
_local5.toppingToday = _local5.toppingToday + _local9;
_local5.bakingToday = _local5.bakingToday + _local10;
_local5.cuttingToday = _local5.cuttingToday + _local13;
_local5.customersToday++;
var _local8 = _local5.customerdata[_local2.currentCustomer.customertype][5];
if (_local3 >= 80) {
if (_local8 < 5) {
_local2.earnStarNumber = _local8 + 1;
}
} else if (_local3 < 60) {
if (_local8 > 0) {
_local2.loseStarNumber = _local8;
}
}
var _local11 = _local2.currentCustomer.maxTip;
var _local17 = _local5.customerdata[_local2.currentCustomer.customertype][6];
var _local16 = _local17 * _local2.currentCustomer.extraTipPerBadge;
_local11 = _local11 + _local16;
var _local4 = Math.round(((_local3 / 100) * _local11) - (((100 - _local3) / 100) * _local11));
if (_local4 < 0) {
_local4 = 0;
}
if (_local2.earnStarNumber == 5) {
_local4 = 900;
}
var _local18 = _local4 / 100;
_local5.tipsToday = _local5.tipsToday + _local4;
var _local6;
if (_local3 < 50) {
_local6 = 1;
} else if (_local3 < 60) {
_local6 = 2;
} else if (_local3 < 70) {
_local6 = 3;
} else if (_local3 < 80) {
_local6 = 4;
} else if (_local3 < 90) {
_local6 = 5;
} else if (_local3 < 100) {
_local6 = 6;
} else if (_local3 >= 100) {
_local6 = 6;
}
var _local14 = Math.floor(_local18);
var _local7 = _local4 - (_local14 * 100);
var _local19 = _local7 / 100;
if (_local7 < 10) {
_local7 = "0" + _local7;
} else if (_local7 == 0) {
_local7 = "00";
}
var _local15 = (("$" + _local14) + ".") + _local7;
if (_local4 <= 0) {
_local4 = 0;
_local15 = " $0.00 ";
}
_local2.coinFrame = _local6;
_local2.currentTipAmount = _local4;
_local2.currentTipText = _local15;
trace("-- The tip (c): " + currentTipAmount);
trace("-- The tip ($): " + currentTipText);
trace(" ");
}
function checkBakingAccuracy() {
var _local2 = this;
var _local10 = _local2.currentPizza;
var _local5 = _local2.currentTicket;
var _local3 = _local5.cookTime;
var _local9 = _local10.cookTime;
var _local11 = _local3 * 45;
var _local8 = Math.abs(_local11 - _local9);
var _local6 = 90;
var _local4 = _local8 / _local6;
var _local7 = Math.max(0, Math.floor(100 - (_local4 * 100)));
return(_local7);
}
function checkWaitAccuracy() {
var _local3 = this;
var _local19 = _local3.gameObj;
var _local29 = _local3.currentPizza;
var _local4 = _local3.currentTicket;
var _local15 = _local3.currentCustomer;
trace(" ");
trace("----- WAITING ACCURACY -----");
var _local2 = _local4.timeTaken;
trace("time start: " + _local2);
var _local10 = getTimer();
trace("time now: " + _local10);
var _local11 = _local15.timeEntered;
trace("time entered: " + _local11);
var _local23 = _local4.cookTime;
var _local20 = (_local19.bakingScreen.cookTimeForPizza * 60) * 1000;
var _local26 = (_local23 / 8) * _local20;
var _local24 = _local4.ordersAheadOfMe;
var _local27 = (_local24 * (_local20 / 2)) / 4;
var _local21 = _local19.prepTimePerOrder;
trace("preptime: " + _local21);
var _local5 = _local4.pauseCache;
var _local7 = _local15.pauseCache;
trace("orderpausetime: " + _local5);
trace("waitpausetime: " + _local7);
var _local12 = (_local10 - _local2) - _local5;
var _local17 = (_local26 + _local21) + _local27;
var _local14 = (_local2 - _local11) - _local7;
trace("waitlength = timenow - timestart - orderpausetime");
trace((((((_local12 + " = ") + _local10) + " - ") + _local2) + " - ") + _local5);
trace("waitinline = timestart - timeentered - waitpausetime");
trace((((((_local14 + " = ") + _local2) + " - ") + _local11) + " - ") + _local7);
var _local9 = _local15.idealLineWait;
trace("idealwaitinline: " + _local9);
var _local8 = _local14 - _local9;
var _local13 = 0;
var _local28 = 0.3;
if (_local8 > 0) {
_local13 = (_local8 / 1000) * _local28;
}
trace("linepercentoff: " + _local13);
var _local6 = _local12 - _local17;
trace("timeoff: " + _local6);
var _local16 = 0;
var _local25 = 0.3;
var _local22 = false;
if (_local6 > 0) {
_local22 = true;
_local16 = (_local6 / 1000) * _local25;
}
trace("percentoff: " + _local16);
var _local18 = Math.max(0, Math.floor((100 - _local16) - _local13));
trace(" ");
trace("-- Ideal Wait Time (secs): " + (_local17 / 1000));
trace("-- Order Wait Time (secs): " + (_local12 / 1000));
trace("-- Order Pause Time (secs): " + (_local5 / 1000));
trace("-- Difference (secs): " + (_local6 / 1000));
trace("-- Was the order late?: " + _local22);
trace("--");
trace("-- Ideal Line Wait Time (secs): " + (_local9 / 1000));
trace("-- Line Wait Time (secs): " + (_local14 / 1000));
trace("-- Wait Pause Time (secs): " + (_local7 / 1000));
trace("-- Difference (secs): " + (_local8 / 1000));
trace("--");
trace("-- ACCURACY: " + _local18);
return(_local18);
}
function checkToppingAccuracy() {
var _local17 = this;
var _local15 = _local17.currentPizza;
var _local30 = _local17.currentTicket;
var _local14 = _local30.orderData;
var _local10 = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]];
var _local16 = [];
_local16 = _local15.toppings;
var _local20 = 0;
var _local8 = 0;
while (_local8 < _local16.length) {
var _local3 = _local15[_local16[_local8]];
if (((_local3 == 0) || (_local3 == null)) || (_local3 == undefined)) {
} else {
var _local6 = _local3.x;
var _local5 = _local3.y;
var _local12 = _local3.whichTopping;
var _local7 = _local12 - 1;
var _local13 = _local14[_local7];
var _local9 = true;
if (_local13[0] == 0) {
_local9 = false;
}
if (_local9) {
var _local11 = _local15.width;
var _local2 = _local11 / 2;
var _local4 = 0;
if ((_local6 > _local2) && (_local5 < _local2)) {
_local4 = 1;
} else if ((_local6 > _local2) && (_local5 > _local2)) {
_local4 = 2;
} else if ((_local6 < _local2) && (_local5 > _local2)) {
_local4 = 3;
} else if ((_local6 < _local2) && (_local5 < _local2)) {
_local4 = 4;
}
_local10[_local7][0]++;
_local10[_local7][_local4]++;
} else {
_local20++;
}
}
_local8++;
}
var _local23 = _local17.checkSingleToppingAccuracy(_local14[0], _local10[0], "pepperoni");
var _local26 = _local17.checkSingleToppingAccuracy(_local14[1], _local10[1], "sausage");
var _local29 = _local17.checkSingleToppingAccuracy(_local14[2], _local10[2], "mushroom");
var _local28 = _local17.checkSingleToppingAccuracy(_local14[3], _local10[3], "peppers");
var _local25 = _local17.checkSingleToppingAccuracy(_local14[4], _local10[4], "onions");
var _local27 = _local17.checkSingleToppingAccuracy(_local14[5], _local10[5], "olives");
var _local22 = _local17.checkSingleToppingAccuracy(_local14[6], _local10[6], "anchovies");
var _local18 = 0;
var _local19 = 0;
if (!isNaN(_local23)) {
_local18 = _local18 + _local23;
_local19 = _local19 + 100;
}
if (!isNaN(_local26)) {
_local18 = _local18 + _local26;
_local19 = _local19 + 100;
}
if (!isNaN(_local29)) {
_local18 = _local18 + _local29;
_local19 = _local19 + 100;
}
if (!isNaN(_local28)) {
_local18 = _local18 + _local28;
_local19 = _local19 + 100;
}
if (!isNaN(_local25)) {
_local18 = _local18 + _local25;
_local19 = _local19 + 100;
}
if (!isNaN(_local27)) {
_local18 = _local18 + _local27;
_local19 = _local19 + 100;
}
if (!isNaN(_local22)) {
_local18 = _local18 + _local22;
_local19 = _local19 + 100;
}
var _local24 = (_local18 / _local19) * 100;
var _local31 = _local20 * (0.2 * _local24);
var _local21 = Math.max(0, Math.floor(_local24 - _local31));
if (isNaN(_local21)) {
_local21 = 0;
}
return(_local21);
}
function checkSingleToppingAccuracy(targetArray, currentArray, typename) {
var _local16 = this;
var _local11 = targetArray[0];
var _local13 = currentArray[0];
var _local14 = Math.abs(_local11 - _local13);
var _local9 = 0;
var _local8 = 0;
var _local2 = 1;
while (_local2 <= 4) {
if ((currentArray[_local2] > 0) && (targetArray[_local2] == 1)) {
_local9 = _local9 + currentArray[_local2];
} else if ((currentArray[_local2] > 0) && (targetArray[_local2] == 0)) {
_local8 = _local8 + currentArray[_local2];
}
_local2++;
}
var _local15 = ((targetArray[1] + targetArray[2]) + targetArray[3]) + targetArray[4];
var _local6 = _local11 / _local15;
var _local7 = 0;
_local2 = 1;
while (_local2 <= 4) {
if ((targetArray[_local2] == 1) && (currentArray[_local2] != _local6)) {
var _local5 = Math.abs(currentArray[_local2] - _local6);
_local7 = _local7 + _local5;
}
_local2++;
}
var _local12;
if (_local13 >= _local11) {
_local12 = 100 / _local13;
} else if (_local13 < _local11) {
_local12 = 100 / _local11;
}
var _local10 = 100;
_local10 = _local10 - (_local14 * _local12);
_local10 = _local10 - (_local8 * (_local12 / 2));
_local10 = _local10 - (_local7 * (_local12 / 4));
_local10 = Math.max(0, _local10);
return(_local10);
}
function checkCuttingAccuracy() {
var _local32 = this;
var _local26 = _local32.currentPizza;
var _local36 = _local32.currentTicket;
var _local42 = _local26.cuttingClip;
var _local8 = _local42.cutLines;
var _local30 = _local36.cutNumber;
var _local23 = _local30 / 2;
var _local39 = _local8.length;
var _local33 = Math.abs(_local23 - _local39);
var _local35 = [0, 90];
var _local34 = [0, 60, 120];
var _local40 = [0, 45, 90, 135];
var _local24;
if (_local30 == 4) {
_local24 = _local35;
} else if (_local30 == 6) {
_local24 = _local34;
} else if (_local30 == 8) {
_local24 = _local40;
}
var _local25 = 0;
var _local28 = 0;
var _local4 = [];
var _local3 = 0;
while (_local3 < _local8.length) {
_local4.push(_local8[_local3]);
_local3++;
}
var _local7 = 0;
while (_local7 < _local24.length) {
var _local5 = _local24[_local7];
var _local6 = 5000;
var _local12;
_local3 = 0;
while (_local3 < _local4.length) {
var _local21 = _local4[_local3][0];
var _local19 = _local4[_local3][1];
var _local20 = _local4[_local3][2];
var _local17 = _local4[_local3][3];
var _local16 = _local20 - _local21;
var _local15 = _local17 - _local19;
var _local22 = Math.sqrt((_local16 * _local16) + (_local15 * _local15));
var _local11 = Math.atan2(_local15, _local16);
var _local2 = _local11 * 57.2957795130823;
if (_local2 < 0) {
_local2 = _local2 + 180;
}
_local2 = _local2 + 90;
if (_local2 > 180) {
_local2 = _local2 - 180;
}
if ((_local2 > 135) && (_local5 == 0)) {
_local2 = _local2 - 180;
}
_local2 = Math.round(_local2);
var _local10 = Math.abs(_local6 - _local5);
var _local9 = Math.abs(_local2 - _local5);
if (_local9 < _local10) {
_local6 = _local2;
_local12 = _local3;
}
_local3++;
}
if (_local6 == 5000) {
_local25 = _local25 + 45;
} else {
var _local18 = Math.abs(_local6 - _local5);
_local25 = _local25 + _local18;
_local28 = _local28 + 45;
_local4.splice(_local12, 1);
}
_local7++;
}
var _local37 = Math.max(0, ((_local28 - _local25) / _local28) * 100);
var _local14 = 0;
var _local29 = 0;
_local7 = 0;
while (_local7 < _local8.length) {
var _local21 = _local8[_local7][0];
var _local19 = _local8[_local7][1];
var _local20 = _local8[_local7][2];
var _local17 = _local8[_local7][3];
var _local16 = _local20 - _local21;
var _local15 = _local17 - _local19;
var _local22 = Math.sqrt((_local16 * _local16) + (_local15 * _local15));
var _local13 = Math.max(0, (((_local22 - (_local26.width / 1.5)) * 3) / _local26.width) * 100);
_local13 = Math.round(_local13);
if (_local14 < (_local23 * 100)) {
_local29 = _local29 + _local13;
_local14 = _local14 + 100;
} else if (_local14 >= (_local23 * 100)) {
_local14 = _local14 + 100;
}
_local7++;
}
if (_local14 < (_local23 * 100)) {
_local14 = _local23 * 100;
}
var _local41 = Math.floor((_local29 / _local14) * 100);
var _local31 = 100;
var _local38 = 15;
_local31 = _local31 - (_local33 * _local38);
_local31 = Math.max(0, _local31);
var _local27 = ((_local41 * 0.5) + (_local37 * 0.5)) * (_local31 / 100);
_local27 = Math.floor(_local27) + 1;
_local27 = Math.min(100, _local27);
_local27 = Math.max(0, Math.floor(_local27));
if (isNaN(_local27)) {
_local27 = 0;
}
if (_local33 == _local23) {
_local27 = 0;
}
return(_local27);
}
function lookAtPizza() {
var _local2 = this;
_local2.currentCustomer.giveorder_clip.gotoAndPlay("look");
_local2.clip.giveorder_fg.accuracyclip.gotoAndPlay(2);
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "reactToPizza", _local2.reactSpeed);
_local2.whichInterval = "reactToPizza";
_local2.lastIntervalTime = getTimer();
}
function reactToPizza() {
var _local2 = this;
var _local4 = _local2.gameObj;
var _local7 = _local2.customerReaction;
_local2.currentCustomer.giveorder_clip.gotoAndPlay(_local7);
if (_local2.earnStarNumber > 0) {
_local2.clip.giveorder_fg.stars["star" + _local2.earnStarNumber].gotoAndStop(3);
_local4.soundEngine.playSound("getstar.wav", 0, 1);
_local4.customerdata[_local2.currentCustomer.customertype][5] = _local2.earnStarNumber;
var _local5 = _local4.customerdata[_local2.currentCustomer.customertype][6];
if ((_local2.earnStarNumber == 5) && (_local5 < 3)) {
var _local6 = _local5 + 1;
_local4.customerdata[_local2.currentCustomer.customertype][6] = _local6;
_local4.customerdata[_local2.currentCustomer.customertype][5] = 0;
_local2.clip.giveorder_fg.stars.fireworks.gotoAndPlay(2);
_local2.clip.giveorder_fg.stars.award.seal.gotoAndStop(_local6);
_local2.clip.giveorder_fg.stars.award.gotoAndPlay(2);
} else if ((_local2.earnStarNumber == 5) && (_local5 == 3)) {
_local4.customerdata[_local2.currentCustomer.customertype][5] = 0;
_local2.clip.giveorder_fg.stars.fireworks.gotoAndPlay(2);
}
} else if (_local2.loseStarNumber > 0) {
var _local3 = 1;
while (_local3 <= _local2.loseStarNumber) {
_local2.clip.giveorder_fg.stars["star" + _local3].gotoAndStop(4);
_local3++;
}
_local4.soundEngine.playSound("grabtopping.wav", 0, 1);
_local4.customerdata[_local2.currentCustomer.customertype][5] = 0;
}
var _local8 = ("customer_" + _local7) + ".wav";
_local4.soundEngine.playSound(_local8, 0, 2);
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "depositTip", _local2.tipSpeed);
_local2.whichInterval = "depositTip";
_local2.lastIntervalTime = getTimer();
}
function depositTip() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.clip.giveorder_fg.tipjar.clip.starburst.burst.money.text = _local2.currentTipText;
_local2.clip.giveorder_fg.tips.gotoAndStop(_local2.coinFrame);
_local2.clip.giveorder_fg.tipjar.clip.play();
_local2.clip.giveorder_fg.tipjar.clip.starburst.play();
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "returnToCutting", _local2.returnSpeed);
_local2.whichInterval = "returnToCutting";
_local2.lastIntervalTime = getTimer();
if (_local2.coinFrame > 1) {
if (_local2.coinFrame < 4) {
_local3.soundEngine.playSound("singlecoin.wav");
} else {
_local3.soundEngine.playSound("multicoin.wav");
}
}
}
function adjustJarCoins() {
var _local3 = this;
var _local6 = _local3.gameObj;
var _local5 = _local6.tipsToday;
var _local7 = 3000;
var _local4 = _local5 / _local7;
if (_local4 > 1) {
_local4 = 1;
}
var _local2 = Math.ceil(_local4 * 10);
if ((_local2 < 2) && (_local5 > 0)) {
_local2 = 2;
} else if (_local2 > 10) {
_local2 = 10;
}
_local3.coinJarFrame = _local2;
_local3.clip.giveorder_fg.tipjar.clip.tipclip.coins.gotoAndStop(_local2);
}
function endOfDay() {
var _local2 = this;
var _local3 = _local2.gameObj;
clearInterval(_local2.cycleInterval);
_local3.switchModes("endofday", "allow");
_local2.whichInterval = "done";
_local2.lastIntervalTime = getTimer();
}
function returnToCutting() {
var _local2 = this;
var _local3 = _local2.gameObj;
clearInterval(_local2.cycleInterval);
_local2.pizzaWasGiven();
if (_local3.dayIsOver) {
_local2.clip.giveorder_fg.roy.gotoAndPlay("endofday");
_local3.soundEngine.playSound("endofday.wav", 0, 2);
clearInterval(_local2.cycleInterval);
_local2.cycleInterval = setInterval(this, "endOfDay", _local2.endSpeed);
_local2.whichInterval = "endOfDay";
_local2.lastIntervalTime = getTimer();
} else {
_local3.switchModes("cutting", "allow");
_local2.whichInterval = "done";
_local2.lastIntervalTime = getTimer();
}
}
function pizzaWasGiven() {
var _local3 = this;
var _local2 = _local3.gameObj;
var _local6 = _local2.cuttingScreen;
var _local4 = _local3.currentTicket.whichPizza;
_local2.customerManager.deleteCustomer(_local3.currentCustomer);
_local2.ticketManager.deleteTicket(_local3.currentTicket);
_local2.pizzaManager.deletePizza(_local3.currentPizza);
if (_local4 > 0) {
var _local5 = _local2.pizzaManager["pizza" + _local4];
_local2.pizzaManager.deletePizza(_local5);
}
_local2.cuttingScreen.pizzas.shift();
}
function setCurrentMode() {
var _local3 = this;
var _local2 = _local3.gameObj;
_local3.clip._x = 0;
_local3.active = true;
_local2.toppingScreen.setNotCurrentMode();
_local2.orderScreen.setNotCurrentMode();
_local2.cuttingScreen.setNotCurrentMode();
_local2.bakingScreen.setNotCurrentMode();
_local2.takeOrderScreen.setNotCurrentMode();
_local2.pauseScreen.setNotCurrentMode();
_local2.soundEngine.switchMusic(0);
_local2.hudObj.setMode("giveorder");
if (!_local3.orderInProcess) {
_local3.presentPizza();
}
}
function setNotCurrentMode() {
var _local2 = this;
_local2.clip._x = -5000;
_local2.active = false;
}
function pauseUpdate(msg) {
var _local2 = this;
var _local7 = _local2.gameObj;
if (msg == "pause") {
if (_local2.whichInterval != "done") {
_local2.lastPauseOffset = getTimer() - _local2.lastIntervalTime;
clearInterval(_local2.cycleInterval);
}
} else if (msg == "unpause") {
if (_local2.whichInterval != "done") {
var _local5 = _local2.lastPauseOffset;
var _local4;
if (_local2.whichInterval == "lookAtPizza") {
_local4 = _local2.lookSpeed;
} else if (_local2.whichInterval == "reactToPizza") {
_local4 = _local2.reactSpeed;
} else if (_local2.whichInterval == "depositTip") {
_local4 = _local2.tipSpeed;
} else if (_local2.whichInterval == "returnToCutting") {
_local4 = _local2.returnSpeed;
} else if (_local2.whichInterval == "endOfDay") {
_local4 = _local2.endSpeed;
}
var _local3 = _local4 - _local5;
if (_local3 < 0) {
_local3 = _local4;
} else if (_local3 > _local4) {
_local3 = _local4;
} else {
_local2.lastIntervalTime = getTimer() - _local2.lastPauseOffset;
}
if (_local2.whichInterval == "lookAtPizza") {
_local2.cycleInterval = setInterval(this, "lookAtPizza", _local3);
} else if (_local2.whichInterval == "reactToPizza") {
_local2.cycleInterval = setInterval(this, "reactToPizza", _local3);
} else if (_local2.whichInterval == "depositTip") {
_local2.cycleInterval = setInterval(this, "depositTip", _local3);
} else if (_local2.whichInterval == "returnToCutting") {
_local2.cycleInterval = setInterval(this, "returnToCutting", _local3);
} else if (_local2.whichInterval == "endOfDay") {
_local2.cycleInterval = setInterval(this, "endOfDay", _local3);
}
}
}
}
var active = false;
var orderInProcess = false;
var lookSpeed = 1980;
var reactSpeed = 1485;
var returnSpeed = 3300;
var tipSpeed = 1300;
var endSpeed = 600;
var lastIntervalTime = 0;
var lastPauseOffset = 0;
var coinFrame = 1;
var coinJarFrame = 1;
var earnStarNumber = 0;
var loseStarNumber = 0;
}
Symbol 3457 MovieClip [__Packages.roygame.models.Pizza] Frame 0
class roygame.models.Pizza
{
function Pizza (gameobj, where, newid) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.id = newid;
_local2.toppings = [];
_local2.attachNewPizza(where);
_local2.gameObj.pauseManager.addPauseListener(this);
}
function addTopping(which, dragging) {
var _local2 = this;
var _local3 = _local2.gameObj;
var _local5 = _local2.totalToppings + 1;
var _local4 = "topping" + _local5;
_local2[_local4] = new roygame.models.Topping(_local3, which, _local5, dragging, _local2);
_local2.totalToppings++;
_local2.toppings.push(_local4);
if (_local3.training) {
if ((_local3.trainingManager.currentStep == 13) || (_local3.trainingManager.currentStep == 12)) {
if (_local2.toppings.length >= 4) {
_local3.trainingManager.finishedStep(13);
}
}
}
}
function removeTopping(whichid) {
var _local2 = this;
var _local3 = "topping" + whichid;
_local2.gameObj.pauseManager.removePauseListener(_local2[_local3]);
_local2[_local3].clip.removeMovieClip();
delete _local2[_local3];
_local2[_local3] = null;
if (whichid > 0) {
_local2.toppings[whichid - 1] = 0;
}
}
function releaseTopping() {
var _local2 = this;
var _local3 = _local2.totalToppings;
var _local4 = "topping" + _local3;
_local2[_local4].stopDragTopping();
}
function attachNewPizza(where) {
var _local2 = this;
var _local4 = _local2.gameObj;
if (where == "topping") {
var _local7 = "pizza" + _local2.id;
var _local6 = 100 + _local2.id;
_local2.clip = _local4.toppingScreen.clip.attachMovie("pizza", _local7, _local6);
_local2.targetX = _local2.toppingTargetX;
_local2.targetY = _local2.toppingTargetY;
_local2.clip._y = _local2.targetY;
_local2.clip._x = -_local2.clip._width;
_local2.currentLocation = where;
_local2.targetPosition = "topping";
var _local5 = _local4.hudObj.activeTicket;
var _local3 = _local4.ticketManager["ticket" + _local5];
_local3.setMyPizza(_local2.id);
_local3.pizzaIsTopping = true;
_local2.whichTicket = _local3;
_local2.startMovingPizza();
}
}
function drawPizza(where) {
var pizza = this;
var _local4 = pizza.gameObj;
if (where == "topping") {
var _local8 = "pizza" + pizza.id;
var _local7 = 100 + pizza.id;
pizza.clip = _local4.toppingScreen.clip.attachMovie("pizza", _local8, _local7);
pizza.targetX = pizza.toppingTargetX;
pizza.targetY = pizza.toppingTargetY;
pizza.clip._y = pizza.targetY;
pizza.clip._x = -pizza.clip._width;
pizza.currentLocation = where;
pizza.targetPosition = "topping";
pizza.whichTicket.pizzaIsTopping = true;
var _local2 = 0;
while (_local2 < pizza.toppings.length) {
var _local3 = pizza.toppings[_local2];
if (_local3 != 0) {
pizza[_local3].attachTopping(false, true);
}
_local2++;
}
_local4.soundEngine.playSound("pizzaslide.wav", 0, 2);
pizza.startMovingPizza();
} else if (where == "baking") {
var _local8 = "pizza" + pizza.id;
var _local7 = 100 + pizza.id;
pizza.clip = _local4.bakingScreen.clip.attachMovie("pizza", _local8, _local7);
var _local5 = pizza.whichOvenSlot;
pizza.targetX = pizza["bakingTargetX" + _local5];
pizza.targetY = pizza["bakingTargetY" + _local5];
pizza.clip._y = pizza.targetY;
if (pizza.currentLocation == "baking") {
pizza.clip._x = pizza.targetX;
pizza.clip._y = pizza.targetY;
} else {
if ((_local5 == 1) || (_local5 == 3)) {
pizza.clip._x = -pizza.clip._width;
} else {
pizza.clip._x = 450;
}
_local4.soundEngine.playSound("pizzaslide.wav", 0, 2);
}
pizza.clip._width = pizza.bakingTargetWidth;
pizza.clip._height = pizza.bakingTargetWidth;
pizza.currentLocation = where;
pizza.targetPosition = "ovenslot";
var _local2 = 0;
while (_local2 < pizza.toppings.length) {
var _local3 = pizza.toppings[_local2];
if (_local3 != 0) {
pizza[_local3].attachTopping(false, false);
}
_local2++;
}
pizza.clip.onRelease = function () {
pizza.removeFromOven();
};
pizza.changeCookLook(pizza.currentCookLook);
pizza.startMovingPizza();
} else if (where == "cutting") {
var _local8 = "pizza" + pizza.id;
var _local7 = 100 + pizza.id;
pizza.clip = _local4.cuttingScreen.clip.attachMovie("pizza", _local8, _local7);
pizza.targetX = pizza.cuttingTargetX;
pizza.targetY = pizza.cuttingTargetY;
pizza.clip._y = pizza.targetY;
if (pizza.currentLocation == "cutting") {
pizza.clip._x = pizza.targetX;
pizza.clip._y = pizza.targetY;
} else {
pizza.clip._x = 450;
_local4.soundEngine.playSound("pizzaslide.wav", 0, 2);
}
pizza.currentLocation = where;
pizza.targetPosition = "cutting";
var _local2 = 0;
while (_local2 < pizza.toppings.length) {
var _local3 = pizza.toppings[_local2];
if (_local3 != 0) {
pizza[_local3].attachTopping(false, false);
}
_local2++;
}
pizza.changeCookLook(pizza.currentCookLook);
if (pizza.cuttingClip == null) {
pizza.cuttingClip = new roygame.models.PizzaCutter(pizza);
} else {
pizza.cuttingClip.redrawPizzaCutter();
}
pizza.startMovingPizza();
}
}
function changeCookLook(which) {
var _local4 = this;
_local4.currentCookLook = which;
_local4.clip.shell.gotoAndStop(which + 1);
var _local2 = 0;
while (_local2 < _local4.toppings.length) {
var _local3 = _local4.toppings[_local2];
if (_local3 != 0) {
_local4[_local3].changeCookLook(which);
}
_local2++;
}
}
function undrawPizza() {
var _local2 = this;
_local2.clip.removeMovieClip();
}
function retopPizza() {
var _local2 = this;
_local2.drawPizza("topping");
_local2.setPizzaTarget("topping");
}
function setPizzaTarget(where) {
var _local2 = this;
var _local4 = _local2.gameObj;
if (where == "save") {
_local2.targetX = _local2.saveTargetX;
_local2.targetY = _local2.saveTargetY;
_local2.targetPosition = "save";
} else if (where == "oven") {
_local2.targetX = _local2.ovenTargetX;
_local2.targetY = _local2.ovenTargetY;
_local2.targetPosition = "oven";
} else if (where == "topping") {
_local2.targetX = _local2.toppingTargetX;
_local2.targetY = _local2.toppingTargetY;
_local2.targetPosition = "topping";
} else if (where == "outofoven") {
if ((_local2.whichOvenSlot == 1) || (_local2.whichOvenSlot == 3)) {
_local2.targetX = -_local2.clip._width;
_local2.targetY = _local2.clip._y;
} else {
_local2.targetX = 450;
_local2.targetY = _local2.clip._y;
}
_local2.targetPosition = "outofoven";
} else if (where == "throwaway") {
_local2.targetX = -_local2.clip._width;
_local2.targetY = _local2.clip._y;
_local2.targetPosition = "throwaway";
}
_local4.soundEngine.playSound("pizzaslide.wav", 0, 2);
_local2.startMovingPizza();
}
function startMovingPizza() {
var pizza = this;
var _local2 = pizza.gameObj;
pizza.isMoving = true;
pizza.clip.onEnterFrame = function () {
pizza.movePizza();
};
}
function stopMovingPizza() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.isMoving = false;
delete _local2.clip.onEnterFrame;
if (_local2.targetPosition == "topping") {
_local3.hudObj.switchTicketMode("pizza");
} else if (_local2.targetPosition == "oven") {
_local2.undrawPizza();
if (_local3.hudObj.activeTicket > 0) {
_local3.hudObj.switchTicketMode("topping");
}
_local3.switchModes("baking", "allow");
} else if (_local2.targetPosition == "save") {
_local2.undrawPizza();
if (_local3.hudObj.activeTicket > 0) {
_local3.hudObj.switchTicketMode("ticket");
}
} else if (_local2.targetPosition == "outofoven") {
_local2.undrawPizza();
_local3.switchModes("cutting", "allow");
} else if (_local2.targetPosition == "cutting") {
if (_local3.hudObj.activeTicket > 0) {
_local3.hudObj.switchTicketMode("ticket");
} else {
_local3.hudObj.switchTicketMode("pizza");
}
} else if (_local2.targetPosition == "throwaway") {
_local2.undrawPizza();
_local3.hudObj.switchTicketMode("blank");
_local3.cuttingScreen.pizzaWasThrown();
}
}
function movePizza() {
var _local2 = this;
var _local7 = _local2.gameObj;
if (!_local7.pauseManager.isPaused) {
var _local6 = _local2.targetX - _local2.clip._x;
var _local5 = _local2.targetY - _local2.clip._y;
var _local4 = _local6 / _local2.speedSteps;
var _local3 = _local5 / _local2.speedSteps;
if ((Math.abs(_local4) < 1) && (Math.abs(_local3) < 1)) {
_local2.clip._x = _local2.targetX;
_local2.clip._y = _local2.targetY;
_local2.stopMovingPizza();
} else {
_local2.clip._x = _local2.clip._x + _local4;
_local2.clip._y = _local2.clip._y + _local3;
}
}
}
function saveForLater() {
var _local2 = this;
_local2.setPizzaTarget("save");
_local2.whichTicket.pizzaIsTopping = false;
}
function throwAway() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.setPizzaTarget("throwaway");
}
function putInOven() {
var _local2 = this;
var _local4 = _local2.gameObj;
var _local3 = _local4.bakingScreen.checkPizzaSlots();
if (_local3 != 0) {
_local2.setPizzaTarget("oven");
_local2.whichTicket.removeMyPizza();
_local2.whichTicket = null;
_local2.whichOvenSlot = _local3;
_local4.bakingScreen.pizzas[_local3 - 1] = _local2;
_local4.bakingScreen.restartTimer(_local3);
} else {
trace("oven is full!");
}
}
function removeFromOven() {
var _local2 = this;
var _local3 = _local2.gameObj;
var _local4 = false;
if (_local3.training) {
if (_local3.trainingManager.currentStep == 19) {
_local4 = true;
}
}
var _local5 = _local3.pauseManager.isPaused;
if (((!_local3.training) || (_local4)) && (!_local5)) {
var _local6 = _local3.bakingScreen["cooktime" + _local2.whichOvenSlot];
_local2.cookTime = _local6;
trace((("Total Baking Time: " + _local2.cookTime) + " degrees: Doneness Level ") + Math.floor(_local2.cookTime / 45));
_local3.bakingScreen.pizzas[_local2.whichOvenSlot - 1] = 0;
_local3.cuttingScreen.pizzas.push(_local2);
_local2.setPizzaTarget("outofoven");
_local3.bakingScreen.stopTimer(_local2.whichOvenSlot);
}
}
function pauseUpdate(msg) {
}
var id = 0;
var currentCookLook = 0;
var cookTime = 0;
var totalToppings = 0;
var toppings = [];
var whichOvenSlot = 0;
var cuttingClip = null;
var toppingTargetX = 83;
var toppingTargetY = 103;
var ovenTargetX = 450;
var ovenTargetY = 103;
var saveTargetX = -274;
var saveTargetY = 103;
var width = 274;
var bakingTargetWidth = 158;
var bakingTargetX1 = 60;
var bakingTargetY1 = 118;
var bakingTargetX2 = 226;
var bakingTargetY2 = 118;
var bakingTargetX3 = 60;
var bakingTargetY3 = 282;
var bakingTargetX4 = 226;
var bakingTargetY4 = 282;
var cuttingTargetX = 84;
var cuttingTargetY = 133;
var targetX = 0;
var targetY = 0;
var speedSteps = 3;
var isMoving = false;
var targetPosition = "topping";
}
Symbol 3458 MovieClip [__Packages.roygame.models.PizzaCutter] Frame 0
class roygame.models.PizzaCutter
{
function PizzaCutter (pizzaobj) {
var _local2 = this;
_local2.pizza = pizzaobj;
_local2.gameObj = _local2.pizza.gameObj;
_local2.cutLines = [];
_local2.lines = [];
_local2.setupCutter();
}
function redrawPizzaCutter() {
var _local3 = this;
_local3.setupCutter();
var _local9 = _local3.cutLines.length;
var _local2 = 0;
while (_local2 < _local9) {
var _local7 = _local3.cutLines[_local2][0];
var _local5 = _local3.cutLines[_local2][1];
var _local6 = _local3.cutLines[_local2][2];
var _local4 = _local3.cutLines[_local2][3];
var _local8 = _local2 + 1;
_local3.drawPizzaCut(_local7, _local5, _local6, _local4, false, _local8);
_local2++;
}
}
function setupCutter() {
var cutter = this;
cutter.clip = cutter.pizza.clip.attachMovie("pizzacutarea", "pizzacutarea", 40000);
cutter.clip._x = cutter.x;
cutter.clip._y = cutter.y;
cutter.clip.onPress = function () {
cutter.pressCutter();
};
cutter.clip.onRelease = function () {
cutter.releaseCutter();
};
cutter.clip.onReleaseOutside = function () {
cutter.releaseCutter();
};
}
function pressCutter() {
var cutter = this;
var _local2 = cutter.gameObj;
var _local3 = _local2.pauseManager.isPaused;
if (!_local3) {
cutter.startCutX = cutter.clip._xmouse;
cutter.startCutY = cutter.clip._ymouse;
cutter.addDottedLine();
_local2.soundEngine.playSound("dottedline.wav", "loop");
cutter.clip.onEnterFrame = function () {
cutter.drawDottedLine();
};
}
}
function addDottedLine() {
var _local2 = this;
var _local4 = _local2.lines.length + 1;
var _local5 = "line" + _local4;
var _local6 = 100 + _local4;
var _local3 = _local2.clip.attachMovie("pizzacut", _local5, _local6);
_local3._x = _local2.startCutX;
_local3._y = _local2.startCutY;
_local3.shape._width = 1;
_local2.currentline = _local3;
_local2.lines.push(_local3);
}
function drawPizzaCut(x1, y1, x2, y2, animate, linenum) {
var _local4 = this;
var _local14 = _local4.gameObj;
var _local17 = _local4.currentline;
var _local7 = linenum;
var _local8 = "cut" + _local7;
var _local13 = 100 + _local7;
var _local16 = 10000 + _local7;
var _local6 = x2 - x1;
var _local5 = y2 - y1;
var _local10 = Math.sqrt((_local6 * _local6) + (_local5 * _local5));
var _local15 = Math.atan2(_local5, _local6);
var _local9 = _local15 * 57.2957795130823;
var _local2 = _local4.clip.attachMovie("pizza_cut_animation", _local8, _local13);
_local2._x = x1;
_local2._y = y1;
_local2._rotation = _local9;
_local2.shape._width = _local10;
var _local3 = _local4.clip.attachMovie("pizza_cut_animation_top", _local8, _local16);
_local3._x = x1;
_local3._y = y1;
_local3._rotation = _local9;
_local3.shape._width = _local10;
if (animate == false) {
_local2.shape.gotoAndStop(6);
_local3.shape.gotoAndStop(6);
} else {
_local14.soundEngine.playSound("cut.wav");
}
}
function undrawDottedLine() {
var _local3 = this;
var _local2 = _local3.currentline;
_local2.removeMovieClip();
}
function releaseCutter() {
var _local2 = this;
var _local3 = _local2.gameObj;
var _local4 = _local3.pauseManager.isPaused;
if (!_local4) {
_local2.endCutX = _local2.clip._xmouse;
_local2.endCutY = _local2.clip._ymouse;
_local3.soundEngine.playSound(0);
_local2.checkLineIntersection();
delete _local2.clip.onEnterFrame;
}
}
function checkLineIntersection() {
var _local2 = this;
var _local20 = _local2.gameObj;
var _local27 = _local2.startCutX;
var _local25 = _local2.endCutX;
var _local26 = _local2.startCutY;
var _local24 = _local2.endCutY;
var _local35 = _local25 - _local27;
var _local31 = _local24 - _local26;
var _local3 = Math.sqrt((_local35 * _local35) + (_local31 * _local31));
var _local21 = _local2.pizza.clip.shell._width / 2;
var _local22 = Math.abs(_local2.x) + _local21;
var _local17 = Math.abs(_local2.y) + _local21;
var _local16 = _local27 - _local22;
var _local13 = _local25 - _local22;
var _local14 = _local26 - _local17;
var _local12 = _local24 - _local17;
var _local8 = _local12 - _local14;
var _local11 = _local13 - _local16;
var _local9 = (_local16 * _local12) - (_local13 * _local14);
var _local15 = ((_local21 * _local21) * (_local3 * _local3)) - (_local9 * _local9);
if (_local15 > 0) {
var _local23;
if (_local8 < 0) {
_local23 = -1;
} else {
_local23 = 1;
}
var _local7 = ((_local9 * _local8) + ((_local23 * _local11) * Math.sqrt(_local15))) / (_local3 * _local3);
var _local5 = ((_local9 * _local8) - ((_local23 * _local11) * Math.sqrt(_local15))) / (_local3 * _local3);
var _local6 = ((-1 * (_local9 * _local11)) + (Math.abs(_local8) * Math.sqrt(_local15))) / (_local3 * _local3);
var _local4 = ((-1 * (_local9 * _local11)) - (Math.abs(_local8) * Math.sqrt(_local15))) / (_local3 * _local3);
var _local29 = _local5 - _local7;
var _local28 = _local4 - _local6;
var _local32 = Math.sqrt((_local29 * _local29) + (_local28 * _local28));
if (_local8 >= 0) {
var _local39 = _local7;
var _local38 = _local6;
_local7 = _local5;
_local6 = _local4;
_local5 = _local39;
_local4 = _local38;
}
var _local19;
var _local18;
if (_local11 >= 0) {
if (((_local16 <= _local7) && (_local7 <= _local5)) && (_local5 <= _local13)) {
_local19 = true;
} else {
_local19 = false;
}
} else if (((_local13 < _local5) && (_local5 < _local7)) && (_local7 < _local16)) {
_local19 = true;
} else {
_local19 = false;
}
if (_local8 >= 0) {
if (((_local14 <= _local6) && (_local6 <= _local4)) && (_local4 <= _local12)) {
_local18 = true;
} else {
_local18 = false;
}
} else if (((_local12 < _local4) && (_local4 < _local6)) && (_local6 < _local14)) {
_local18 = true;
} else {
_local18 = false;
}
if (((_local32 < (_local3 + 20)) && (_local19)) && (_local18)) {
var _local33 = _local7 + _local22;
var _local36 = _local5 + _local22;
var _local30 = _local6 + _local17;
var _local34 = _local4 + _local17;
_local2.undrawDottedLine();
var _local37 = _local2.cutLines.length + 1;
_local2.drawPizzaCut(_local33, _local30, _local36, _local34, true, _local37);
var _local10 = [];
_local10.push(_local33);
_local10.push(_local30);
_local10.push(_local36);
_local10.push(_local34);
_local2.cutLines.push(_local10);
if (_local20.training) {
if ((_local20.trainingManager.currentStep == 21) || (_local20.trainingManager.currentStep == 20)) {
if (_local2.cutLines.length >= 2) {
_local20.trainingManager.finishedStep(21);
}
}
}
trace("Good Cut Line");
} else {
trace((((((((((((((((((("Not Good Cut. Data: pizzacutdist: " + _local32) + ", drawlinedist: ") + _local3) + " | ") + _local16) + ", ") + _local7) + ", ") + _local13) + ", ") + _local5) + ", ") + _local14) + ", ") + _local6) + ", ") + _local12) + ", ") + _local4);
_local2.undrawDottedLine();
}
} else {
_local2.undrawDottedLine();
}
}
function drawDottedLine() {
var _local2 = this;
var _local5 = _local2.currentline;
var _local9 = _local2.startCutX;
var _local7 = _local2.startCutY;
var _local6 = _local2.clip._xmouse;
var _local12 = _local2.clip._ymouse;
var _local4 = _local6 - _local9;
var _local3 = _local12 - _local7;
var _local10 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local11 = Math.atan2(_local3, _local4);
var _local8 = _local11 * 57.2957795130823;
_local5._rotation = _local8;
_local5.shape._width = _local10;
}
function pauseUpdate(msg) {
}
var x = -84;
var y = -133;
var startCutX = 0;
var startCutY = 0;
var endCutX = 0;
var endCutY = 0;
var cutLines = [];
var currentline = 0;
var lines = [];
}
Symbol 3459 MovieClip [__Packages.roygame.models.Topping] Frame 0
class roygame.models.Topping
{
function Topping (gameobj, which, id, dragging, pizza) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.whichTopping = which;
_local2.id = id;
_local2.whichPizza = pizza;
_local2.x = _local2.whichPizza.clip._xmouse;
_local2.y = _local2.whichPizza.clip._ymouse;
_local2.rotation = random(360);
_local2.attachTopping(dragging, true);
}
function attachTopping(dragging, draggable) {
var topping = this;
var _local5 = topping.gameObj;
var _local2 = "topping" + topping.id;
var _local3 = 500 + topping.id;
var _local4 = topping.whichPizza;
topping.clip = _local4.clip.attachMovie("topping", _local2, _local3);
topping.clip._x = topping.x;
topping.clip._y = topping.y;
topping.clip._rotation = topping.rotation;
topping.clip.gotoAndStop(topping.whichTopping);
if (draggable) {
topping.clip.onPress = function () {
topping.dragTopping();
};
topping.clip.onRelease = function () {
topping.stopDragTopping();
};
topping.clip.onReleaseOutside = function () {
topping.stopDragTopping();
};
if (dragging) {
topping.dragTopping();
}
}
}
function changeCookLook(which) {
var _local2 = this;
_local2.clip.look.gotoAndStop(which + 1);
}
function dragTopping() {
var _local2 = this;
var _local3 = _local2.gameObj;
if (!_local3.pauseManager.isPaused) {
_local2.lastx = _local2.clip._x;
_local2.lasty = _local2.clip._y;
_local3.soundEngine.playSound("grabtopping.wav");
_local2.clip.startDrag(true);
}
}
function stopDragTopping() {
var _local2 = this;
var _local3 = _local2.gameObj;
var _local5 = _local2.whichTopping;
var _local4 = _local3.toppingScreen.clip;
if (!_local3.pauseManager.isPaused) {
_local2.clip.stopDrag();
if (_local2.checkDroppedOnPizza()) {
_local2.x = _local2.clip._x;
_local2.y = _local2.clip._y;
_local3.soundEngine.playSound("droptopping.wav");
} else if (_local2.checkDroppedInCup()) {
_local2.removeTopping();
_local3.soundEngine.playSound("grabtopping.wav");
} else {
_local2.moveToppingBack();
}
}
}
function moveToppingBack() {
var topping = this;
topping.targetx = topping.lastx;
topping.targety = topping.lasty;
topping.clip.onEnterFrame = function () {
topping.moveTopping();
};
}
function moveTopping() {
var _local2 = this;
var _local5 = _local2.gameObj;
var _local7 = _local2.targetx - _local2.clip._x;
var _local6 = _local2.targety - _local2.clip._y;
var _local4 = _local7 / _local2.speedSteps;
var _local3 = _local6 / _local2.speedSteps;
if ((Math.abs(_local4) < 1) && (Math.abs(_local3) < 1)) {
_local2.clip._x = _local2.targetx;
_local2.clip._y = _local2.targety;
_local2.x = _local2.targetx;
_local2.y = _local2.targety;
if (_local2.checkDroppedInCup()) {
_local2.removeTopping();
_local5.soundEngine.playSound("grabtopping.wav");
} else {
_local5.soundEngine.playSound("droptopping.wav");
}
delete _local2.clip.onEnterFrame;
} else {
_local2.clip._x = _local2.clip._x + _local4;
_local2.clip._y = _local2.clip._y + _local3;
}
}
function checkDroppedOnPizza() {
var _local2 = this;
var _local3 = _local2.whichPizza;
var _local5 = _local2.clip._x - _local3.clip.center._x;
var _local4 = _local2.clip._y - _local3.clip.center._y;
var _local6 = (_local2.clip._width / 2) + (_local3.clip.center._width / 2);
var _local7 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
if (_local7 < _local6) {
return(true);
}
return(false);
}
function checkDroppedInCup() {
var _local4 = this;
var _local3 = _local4.whichTopping;
var _local12 = _local4.gameObj;
var _local5 = _local12.toppingScreen.clip;
var _local6 = _local4.whichPizza;
var _local2 = "";
if (_local3 == 1) {
_local2 = "cup_pepperoni";
} else if (_local3 == 2) {
_local2 = "cup_sausage";
} else if (_local3 == 3) {
_local2 = "cup_mushroom";
} else if (_local3 == 4) {
_local2 = "cup_pepper";
} else if (_local3 == 5) {
_local2 = "cup_onion";
} else if (_local3 == 6) {
_local2 = "cup_olive";
} else if (_local3 == 7) {
_local2 = "cup_anchovy";
}
var _local9 = _local4.clip._x + _local6.clip._x;
var _local10 = _local4.clip._y + _local6.clip._y;
var _local15 = _local5[_local2].center._x + _local5[_local2]._x;
var _local13 = _local5[_local2].center._y + _local5[_local2]._y;
var _local8 = _local9 - _local15;
var _local7 = _local10 - _local13;
var _local11 = (_local4.clip._width / 2) + (_local5[_local2].center._width / 2);
var _local14 = Math.sqrt((_local8 * _local8) + (_local7 * _local7));
if (_local14 < _local11) {
return(true);
}
return(false);
}
function removeTopping() {
var _local2 = this;
var _local4 = _local2.gameObj;
var _local3 = _local2.whichPizza;
_local3.removeTopping(_local2.id);
}
function pauseUpdate(msg) {
}
var whichTopping = 1;
var id = 1;
var onPizza = false;
var lastx = 0;
var lasty = 0;
var speedSteps = 2;
}
Symbol 3460 MovieClip [__Packages.roygame.models.CuttingScreen] Frame 0
class roygame.models.CuttingScreen
{
function CuttingScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.pizzas = [];
_local2.setupScreen();
}
function setupScreen() {
var _local2 = this;
_local2.clip = _local2.gameclip.attachMovie("cutting_screen", "cutting_screen", 8);
_local2.clip._x = -5000;
}
function setCurrentMode() {
var _local3 = this;
var _local2 = _local3.gameObj;
_local3.clip._x = 0;
_local3.active = true;
_local2.toppingScreen.setNotCurrentMode();
_local2.orderScreen.setNotCurrentMode();
_local2.bakingScreen.setNotCurrentMode();
_local2.takeOrderScreen.setNotCurrentMode();
_local2.giveOrderScreen.setNotCurrentMode();
_local2.pauseScreen.setNotCurrentMode();
_local2.soundEngine.switchMusic(4);
_local2.hudObj.setMode("cutting");
_local3.redrawCuttingPizzas();
}
function setNotCurrentMode() {
var _local2 = this;
_local2.clip._x = -5000;
_local2.active = false;
}
function pizzaWasThrown() {
var _local2 = this;
_local2.pizzas.shift();
_local2.redrawCuttingPizzas();
}
function redrawCuttingPizzas() {
var _local2 = this;
if (_local2.pizzas.length > 0) {
var _local3 = _local2.pizzas[0];
_local3.drawPizza("cutting");
}
}
function givePizza() {
var _local3 = this;
var _local2 = _local3.gameObj;
_local2.giveOrderScreen.orderInProcess = false;
_local2.switchModes("giveOrder");
}
function throwAwayPizza() {
var _local2 = this;
var _local3 = _local2.gameObj;
var _local4 = _local2.pizzas[0];
_local4.throwAway();
_local3.hudObj.switchTicketMode("blank");
}
function pauseUpdate(msg) {
}
var active = false;
var pizzas = [];
}
Symbol 3461 MovieClip [__Packages.roygame.models.OrderScreen] Frame 0
class roygame.models.OrderScreen
{
function OrderScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.setupScreen();
}
function setupScreen() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.clip = _local2.gameclip.attachMovie("order_screen", "order_screen", 5);
_local2.clip._x = -5000;
_local2.signclip = _local2.clip.attachMovie("opensign_overlay", "signlayer", 10000);
}
function setCurrentMode() {
var _local3 = this;
var _local2 = _local3.gameObj;
_local3.clip._x = 0;
_local3.active = true;
_local2.toppingScreen.setNotCurrentMode();
_local2.cuttingScreen.setNotCurrentMode();
_local2.bakingScreen.setNotCurrentMode();
_local2.takeOrderScreen.setNotCurrentMode();
_local2.giveOrderScreen.setNotCurrentMode();
_local2.pauseScreen.setNotCurrentMode();
_local2.hudObj.setMode("order");
_local2.soundEngine.switchMusic(1);
_local3.clip.roy.gotoAndPlay(1);
var _local4 = _local2.customerManager.orderline[0];
if (_local4.orderIsPlaced && (_local4.currentLine == "orderline")) {
_local4.moveCustomerOrderDone();
}
clearInterval(_local3.forceCustomerInterval);
var _local5 = _local2.customerManager.orderline;
if ((_local5.length == 0) && (!_local2.training)) {
_local3.forceCustomerInterval = setInterval(this, "forceNewCustomer", _local3.forceCustomerTime);
}
}
function forceNewCustomer() {
var _local3 = this;
var _local2 = _local3.gameObj;
trace("Force a customer out!");
var _local4 = getTimer();
var _local7 = _local2.customerManager.lastSpawnTime + _local2.customerManager.spawnSpeed;
var _local8 = _local2.customerManager.lastSpawnTime;
var _local5 = Math.abs(_local7 - _local4);
var _local6 = Math.abs(_local4 - _local8);
if ((_local5 > 9000) && (_local6 > 9000)) {
_local2.customerManager.spawnCustomer();
}
clearInterval(_local3.forceCustomerInterval);
}
function setNotCurrentMode() {
var _local2 = this;
_local2.clip._x = -5000;
_local2.active = false;
clearInterval(_local2.forceCustomerInterval);
}
function takeOrder() {
var _local3 = this;
var _local2 = _local3.gameObj;
_local3.firstCustomer = _local2.customerManager.orderline[0];
var _local4 = _local2.hudObj.activeTicket;
if (_local4 == 0) {
_local2.takeOrderScreen.orderInProcess = false;
_local2.switchModes("takeOrder");
_local2.currentOrder++;
} else {
var _local5 = _local2.ticketManager["ticket" + _local4];
_local5.snapToLine("automove");
_local2.takeOrderScreen.orderInProcess = false;
_local2.switchModes("takeOrder");
_local2.currentOrder++;
}
}
function pauseUpdate(msg) {
}
var signclip = null;
var active = false;
var forceCustomerTime = 9000;
}
Symbol 3462 MovieClip [__Packages.roygame.models.CustomerManager] Frame 0
class roygame.models.CustomerManager
{
function CustomerManager (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.totalCustomers = 0;
_local2.customers = [];
_local2.orderline = [];
_local2.waitline = [];
_local2.customerLineup = [];
if (_local2.gameObj.training) {
_local2.trainingLineup();
} else {
_local2.decideLineup();
}
_local2.gameObj.pauseManager.addPauseListener(_local2);
}
function trainingLineup() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.customerLineup = [1, 5];
}
function decideLineup() {
var _local9 = this;
var _local8 = _local9.gameObj;
var _local14 = _local8.myRank;
var _local15 = _local14;
if (_local15 >= _local9.numberOfCustomers.length) {
_local15 = _local9.numberOfCustomers.length - 1;
}
var _local13 = _local9.numberOfCustomers[_local15];
var _local5 = 6;
var _local10 = 35;
_local5 = _local5 + (_local14 - 1);
if (_local5 > _local10) {
_local5 = _local10;
}
if (_local14 >= 31) {
var _local11 = 0;
var _local4 = 1;
while (_local4 <= _local10) {
_local11 = _local11 + _local8.customerdata[_local4][6];
_local4++;
}
if (_local11 == (_local10 * 3)) {
trace("UNLOCK PAPA!!");
_local5++;
_local8.showNoPapa = false;
} else {
trace("No papa....");
_local8.showNoPapa = true;
}
} else {
_local8.showNoPapa = false;
}
var _local2 = [];
var _local4 = 1;
while (_local4 <= _local5) {
_local2.push(_local4);
_local4++;
}
_local9.customerLineup = [];
var _local12 = 0;
if (_local14 >= 2) {
_local9.customerLineup.push(_local5);
_local2.splice(_local5 - 1, 1);
_local12 = 1;
var _local18 = _local8.customerdata[_local5][0];
if (_local18 == 0) {
trace((("NEW CUSTOMER! ---> " + _local5) + ": ") + _local8.customerdata[_local5][1]);
_local8.showNewCustomer = true;
_local8.newCustomerNum = _local5;
} else {
trace((("Already earned this customer... " + _local5) + ": ") + _local8.customerdata[_local5][1]);
_local8.showNewCustomer = false;
}
}
_local4 = _local12;
while (_local4 < _local13) {
var _local7 = _local2.length;
var _local3 = random(_local7);
var _local6 = _local2[_local3];
_local9.customerLineup.push(_local6);
_local2.splice(_local3, 1);
_local4++;
}
var _local19 = 25;
var _local16 = _local14 / _local19;
if (_local16 > 1) {
_local16 = 1;
}
var _local17 = Math.floor(_local16 * 10);
if (_local17 < 1) {
_local17 = 1;
}
_local9.customerDifficulty = _local17;
trace("Chosen Customers: " + _local9.customerLineup);
}
function setupSpawn() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.totalTime = _local3.timePerDay;
var _local4 = _local2.customerLineup.length;
_local2.spawnSpeed = Math.floor(_local2.totalTime / (_local4 - 1));
_local2.spawnCustomer();
}
function spawnCustomer() {
var _local2 = this;
var _local5 = _local2.gameObj;
var _local3 = _local2.totalCustomers;
if (_local3 < _local2.customerLineup.length) {
var _local6 = _local2.customerLineup[_local3];
var _local4 = false;
if (_local3 == (_local2.customerLineup.length - 1)) {
_local5.orderScreen.clip.signlayer.mainsign.sign.play();
_local4 = true;
}
_local2.addCustomer(_local6, _local4);
_local2.lastSpawnTime = getTimer();
clearInterval(_local2.spawnInterval);
_local2.spawnInterval = setInterval(this, "spawnCustomer", _local2.spawnSpeed);
} else {
trace("stop spawning.");
clearInterval(_local2.spawnInterval);
}
}
function addCustomer(which, last) {
var _local2 = this;
var _local5 = _local2.gameObj;
_local2.totalCustomers++;
var _local3 = _local2.totalCustomers;
var _local4 = "Customer" + _local3;
if (which == 1) {
_local2[_local4] = new roygame.models.customers.Customer1(_local5, _local3);
} else if (which == 2) {
_local2[_local4] = new roygame.models.customers.Customer2(_local5, _local3);
} else if (which == 3) {
_local2[_local4] = new roygame.models.customers.Customer3(_local5, _local3);
} else if (which == 4) {
_local2[_local4] = new roygame.models.customers.Customer4(_local5, _local3);
} else if (which == 5) {
_local2[_local4] = new roygame.models.customers.Customer5(_local5, _local3);
} else if (which == 6) {
_local2[_local4] = new roygame.models.customers.Customer6(_local5, _local3);
} else if (which == 7) {
_local2[_local4] = new roygame.models.customers.Customer7(_local5, _local3);
} else if (which == 8) {
_local2[_local4] = new roygame.models.customers.Customer8(_local5, _local3);
} else if (which == 9) {
_local2[_local4] = new roygame.models.customers.Customer9(_local5, _local3);
} else if (which == 10) {
_local2[_local4] = new roygame.models.customers.Customer10(_local5, _local3);
} else if (which == 11) {
_local2[_local4] = new roygame.models.customers.Customer11(_local5, _local3);
} else if (which == 12) {
_local2[_local4] = new roygame.models.customers.Customer12(_local5, _local3);
} else if (which == 13) {
_local2[_local4] = new roygame.models.customers.Customer13(_local5, _local3);
} else if (which == 14) {
_local2[_local4] = new roygame.models.customers.Customer14(_local5, _local3);
} else if (which == 15) {
_local2[_local4] = new roygame.models.customers.Customer15(_local5, _local3);
} else if (which == 16) {
_local2[_local4] = new roygame.models.customers.Customer16(_local5, _local3);
} else if (which == 17) {
_local2[_local4] = new roygame.models.customers.Customer17(_local5, _local3);
} else if (which == 18) {
_local2[_local4] = new roygame.models.customers.Customer18(_local5, _local3);
} else if (which == 19) {
_local2[_local4] = new roygame.models.customers.Customer19(_local5, _local3);
} else if (which == 20) {
_local2[_local4] = new roygame.models.customers.Customer20(_local5, _local3);
} else if (which == 21) {
_local2[_local4] = new roygame.models.customers.Customer21(_local5, _local3);
} else if (which == 22) {
_local2[_local4] = new roygame.models.customers.Customer22(_local5, _local3);
} else if (which == 23) {
_local2[_local4] = new roygame.models.customers.Customer23(_local5, _local3);
} else if (which == 24) {
_local2[_local4] = new roygame.models.customers.Customer24(_local5, _local3);
} else if (which == 25) {
_local2[_local4] = new roygame.models.customers.Customer25(_local5, _local3);
} else if (which == 26) {
_local2[_local4] = new roygame.models.customers.Customer26(_local5, _local3);
} else if (which == 27) {
_local2[_local4] = new roygame.models.customers.Customer27(_local5, _local3);
} else if (which == 28) {
_local2[_local4] = new roygame.models.customers.Customer28(_local5, _local3);
} else if (which == 29) {
_local2[_local4] = new roygame.models.customers.Customer29(_local5, _local3);
} else if (which == 30) {
_local2[_local4] = new roygame.models.customers.Customer30(_local5, _local3);
} else if (which == 31) {
_local2[_local4] = new roygame.models.customers.Customer31(_local5, _local3);
} else if (which == 32) {
_local2[_local4] = new roygame.models.customers.Customer32(_local5, _local3);
} else if (which == 33) {
_local2[_local4] = new roygame.models.customers.Customer33(_local5, _local3);
} else if (which == 34) {
_local2[_local4] = new roygame.models.customers.Customer34(_local5, _local3);
} else if (which == 35) {
_local2[_local4] = new roygame.models.customers.Customer35(_local5, _local3);
} else if (which == 36) {
_local2[_local4] = new roygame.models.customers.Customer36(_local5, _local3);
}
if (last) {
_local2[_local4].shortenWaitTime();
}
}
function deleteCustomer(whichcustomer) {
var _local3 = this;
var _local8 = _local3.gameObj;
var _local7 = whichcustomer;
var _local10 = _local7.number;
var _local9 = "Customer" + _local10;
var _local6 = 999999 /* 0x0F423F */;
var _local2 = 0;
while (_local2 < _local3.waitline.length) {
if (_local3.waitline[_local2] == _local7) {
_local6 = _local2;
}
_local2++;
}
if (_local6 != 999999) {
_local3.waitline.splice(_local6, 1);
}
_local2 = _local6;
while (_local2 < _local3.waitline.length) {
var _local4 = _local3.waitline[_local2];
var _local5 = _local4.waitline_x + (_local2 * _local4.waitline_offset);
_local4.shiftWaitLine(_local5);
_local2++;
}
_local8.pauseManager.removePauseListener(_local7);
_local7.clip.removeMovieClip();
delete _local3[_local9];
_local3[_local9] = null;
if ((_local3.waitline.length == 0) && (_local3.orderline.length == 0)) {
if (_local3.totalCustomers == _local3.customerLineup.length) {
_local8.dayIsOver = true;
}
}
}
function pauseUpdate(msg) {
var _local2 = this;
var _local5 = _local2.gameObj;
if (!_local5.training) {
if (msg == "pause") {
_local2.lastPauseOffset = getTimer() - _local2.lastSpawnTime;
clearInterval(_local2.spawnInterval);
} else if (msg == "unpause") {
var _local4 = _local2.lastPauseOffset;
var _local3 = _local2.spawnSpeed - _local4;
if (_local3 < 0) {
_local3 = _local2.spawnSpeed;
} else if (_local3 > _local2.spawnSpeed) {
_local3 = _local2.spawnSpeed;
} else {
_local2.lastSpawnTime = getTimer() - _local2.lastPauseOffset;
}
_local2.spawnInterval = setInterval(this, "spawnCustomer", _local3);
}
}
}
var totalCustomers = 0;
var customers = [];
var orderline = [];
var waitline = [];
var numberOfCustomers = [4, 4, 5, 5, 6, 7, 7, 8, 8, 9, 10];
var customerLineup = [];
var customerDifficulty = 1;
var lastSpawnTime = 0;
var lastPauseOffset = 0;
}
Symbol 3463 MovieClip [__Packages.roygame.models.customers.Customer1] Frame 0
class roygame.models.customers.Customer1 extends roygame.models.Customer
{
function Customer1 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 1 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 1;
var customername = "Cooper";
var orders = [[], [[[4, 0, 0, 1, 1], [0], [0], [0], [0], [0], [0], 1, 4]]];
}
Symbol 3464 MovieClip [__Packages.roygame.models.customers.Customer2] Frame 0
class roygame.models.customers.Customer2 extends roygame.models.Customer
{
function Customer2 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 2 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 2;
var customername = "Wally";
var orders = [[], [[[0], [0], [0], [0], [0], [0], [8, 1, 1, 1, 1], 2, 8]]];
}
Symbol 3465 MovieClip [__Packages.roygame.models.customers.Customer3] Frame 0
class roygame.models.customers.Customer3 extends roygame.models.Customer
{
function Customer3 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 3 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 3;
var customername = "Rita";
var orders = [[], [[[0], [0], [6, 0, 1, 1, 0], [0], [0], [0], [0], 4, 4]]];
}
Symbol 3466 MovieClip [__Packages.roygame.models.customers.Customer4] Frame 0
class roygame.models.customers.Customer4 extends roygame.models.Customer
{
function Customer4 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 4 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 4;
var customername = "Marty";
var orders = [[], [[[0], [0], [0], [0], [0], [6, 1, 1, 0, 0], [0], 3, 4]]];
}
Symbol 3467 MovieClip [__Packages.roygame.models.customers.Customer5] Frame 0
class roygame.models.customers.Customer5 extends roygame.models.Customer
{
function Customer5 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 5 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 5;
var customername = "Kingsley";
var orders = [[], [[[8, 1, 1, 1, 1], [0], [0], [0], [0], [0], [0], 4, 4]]];
}
Symbol 3468 MovieClip [__Packages.roygame.models.customers.Customer6] Frame 0
class roygame.models.customers.Customer6 extends roygame.models.Customer
{
function Customer6 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 6 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 6;
var customername = "Timm";
var orders = [[], [[[0], [0], [0], [4, 0, 0, 1, 1], [0], [0], [0], 4, 6]]];
}
Symbol 3469 MovieClip [__Packages.roygame.models.customers.Customer7] Frame 0
class roygame.models.customers.Customer7 extends roygame.models.Customer
{
function Customer7 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 7 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 7;
var customername = "Big Pauly";
var orders = [[], [[[0], [4, 1, 1, 0, 0], [0], [0], [4, 0, 0, 1, 1], [0], [0], 3, 8]]];
}
Symbol 3470 MovieClip [__Packages.roygame.models.customers.Customer8] Frame 0
class roygame.models.customers.Customer8 extends roygame.models.Customer
{
function Customer8 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 8 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 8;
var customername = "Penny";
var orders = [[], [[[0], [8, 1, 1, 1, 1], [2, 1, 0, 0, 0], [0], [0], [0], [0], 2, 6]]];
}
Symbol 3471 MovieClip [__Packages.roygame.models.customers.Customer9] Frame 0
class roygame.models.customers.Customer9 extends roygame.models.Customer
{
function Customer9 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 9 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 9;
var customername = "Maggie";
var orders = [[], [[[0], [0], [0], [4, 0, 0, 1, 1], [0], [6, 1, 1, 0, 0], [0], 2, 4]]];
}
Symbol 3472 MovieClip [__Packages.roygame.models.customers.Customer10] Frame 0
class roygame.models.customers.Customer10 extends roygame.models.Customer
{
function Customer10 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 10 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 10;
var customername = "Taylor";
var orders = [[], [[[0], [0], [0], [2, 1, 1, 0, 0], [6, 1, 1, 0, 0], [0], [0], 3, 4]]];
}
Symbol 3473 MovieClip [__Packages.roygame.models.customers.Customer11] Frame 0
class roygame.models.customers.Customer11 extends roygame.models.Customer
{
function Customer11 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 11 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 11;
var customername = "Sue";
var orders = [[], [[[6, 1, 0, 0, 1], [0], [6, 0, 1, 1, 0], [0], [0], [0], [0], 3, 6]]];
}
Symbol 3474 MovieClip [__Packages.roygame.models.customers.Customer12] Frame 0
class roygame.models.customers.Customer12 extends roygame.models.Customer
{
function Customer12 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 12 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 12;
var customername = "Allan";
var orders = [[], [[[4, 1, 0, 0, 1], [4, 0, 1, 1, 0], [0], [0], [0], [0], [0], 4, 6]]];
}
Symbol 3475 MovieClip [__Packages.roygame.models.customers.Customer13] Frame 0
class roygame.models.customers.Customer13 extends roygame.models.Customer
{
function Customer13 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 13 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 13;
var customername = "Mindy";
var orders = [[], [[[0], [0], [4, 1, 0, 0, 0], [0], [0], [0], [6, 1, 1, 0, 0], 5, 8]]];
}
Symbol 3476 MovieClip [__Packages.roygame.models.customers.Customer14] Frame 0
class roygame.models.customers.Customer14 extends roygame.models.Customer
{
function Customer14 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 14 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 14;
var customername = "Chuck";
var orders = [[], [[[8, 1, 1, 1, 1], [4, 0, 1, 1, 0], [0], [0], [0], [0], [0], 2, 6]]];
}
Symbol 3477 MovieClip [__Packages.roygame.models.customers.Customer15] Frame 0
class roygame.models.customers.Customer15 extends roygame.models.Customer
{
function Customer15 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 15 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 15;
var customername = "Greg";
var orders = [[], [[[6, 0, 1, 1, 1], [0], [4, 0, 0, 1, 0], [0], [0], [0], [0], 4, 4]]];
}
Symbol 3478 MovieClip [__Packages.roygame.models.customers.Customer16] Frame 0
class roygame.models.customers.Customer16 extends roygame.models.Customer
{
function Customer16 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 16 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 16;
var customername = "Robby";
var orders = [[], [[[0], [0], [6, 0, 1, 1, 1], [6, 0, 0, 1, 1], [0], [0], [0], 4, 6]]];
}
Symbol 3479 MovieClip [__Packages.roygame.models.customers.Customer17] Frame 0
class roygame.models.customers.Customer17 extends roygame.models.Customer
{
function Customer17 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 17 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 17;
var customername = "Mary";
var orders = [[], [[[8, 1, 1, 1, 1], [0], [0], [0], [0], [0], [0], 2, 4]]];
}
Symbol 3480 MovieClip [__Packages.roygame.models.customers.Customer18] Frame 0
class roygame.models.customers.Customer18 extends roygame.models.Customer
{
function Customer18 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 18 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 18;
var customername = "Mitch";
var orders = [[], [[[4, 1, 1, 0, 0], [0], [0], [0], [0], [2, 1, 0, 0, 0], [4, 1, 1, 0, 0], 2, 4]]];
}
Symbol 3481 MovieClip [__Packages.roygame.models.customers.Customer19] Frame 0
class roygame.models.customers.Customer19 extends roygame.models.Customer
{
function Customer19 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 19 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 19;
var customername = "Prudence";
var orders = [[], [[[0], [0], [5, 1, 0, 0, 0], [0], [3, 0, 1, 0, 0], [0], [0], 2, 6]]];
}
Symbol 3482 MovieClip [__Packages.roygame.models.customers.Customer20] Frame 0
class roygame.models.customers.Customer20 extends roygame.models.Customer
{
function Customer20 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 20 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 20;
var customername = "James";
var orders = [[], [[[0], [4, 1, 1, 0, 0], [0], [0], [0], [8, 0, 1, 1, 0], [0], 2, 4]]];
}
Symbol 3483 MovieClip [__Packages.roygame.models.customers.Customer21] Frame 0
class roygame.models.customers.Customer21 extends roygame.models.Customer
{
function Customer21 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 21 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 21;
var customername = "Cecilia";
var orders = [[], [[[0], [0], [6, 1, 1, 1, 0], [3, 0, 1, 1, 1], [3, 1, 1, 0, 1], [0], [0], 2, 8]]];
}
Symbol 3484 MovieClip [__Packages.roygame.models.customers.Customer22] Frame 0
class roygame.models.customers.Customer22 extends roygame.models.Customer
{
function Customer22 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 22 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 22;
var customername = "Mandi";
var orders = [[], [[[4, 1, 1, 0, 0], [0], [6, 1, 0, 1, 1], [0], [0], [0], [0], 4, 8]]];
}
Symbol 3485 MovieClip [__Packages.roygame.models.customers.Customer23] Frame 0
class roygame.models.customers.Customer23 extends roygame.models.Customer
{
function Customer23 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 23 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 23;
var customername = "Sasha";
var orders = [[], [[[0], [0], [0], [4, 0, 1, 0, 0], [0], [8, 1, 1, 1, 1], [0], 4, 8]]];
}
Symbol 3486 MovieClip [__Packages.roygame.models.customers.Customer24] Frame 0
class roygame.models.customers.Customer24 extends roygame.models.Customer
{
function Customer24 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 24 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 24;
var customername = "Olga";
var orders = [[], [[[0], [6, 1, 1, 1, 0], [4, 0, 0, 1, 0], [2, 0, 0, 1, 0], [0], [0], [0], 6, 4]]];
}
Symbol 3487 MovieClip [__Packages.roygame.models.customers.Customer25] Frame 0
class roygame.models.customers.Customer25 extends roygame.models.Customer
{
function Customer25 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 25 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 25;
var customername = "Franco";
var orders = [[], [[[8, 1, 1, 1, 1], [0], [0], [0], [0], [3, 1, 0, 1, 1], [0], 4, 8]]];
}
Symbol 3488 MovieClip [__Packages.roygame.models.customers.Customer26] Frame 0
class roygame.models.customers.Customer26 extends roygame.models.Customer
{
function Customer26 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 26 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 26;
var customername = "Tohru";
var orders = [[], [[[0], [0], [6, 0, 0, 1, 1], [2, 1, 0, 0, 0], [0], [0], [8, 1, 1, 1, 1], 2, 8]]];
}
Symbol 3489 MovieClip [__Packages.roygame.models.customers.Customer27] Frame 0
class roygame.models.customers.Customer27 extends roygame.models.Customer
{
function Customer27 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 27 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 27;
var customername = "Clair";
var orders = [[], [[[4, 1, 1, 1, 1], [0], [6, 0, 0, 1, 1], [4, 0, 1, 0, 0], [0], [0], [0], 4, 4]]];
}
Symbol 3490 MovieClip [__Packages.roygame.models.customers.Customer28] Frame 0
class roygame.models.customers.Customer28 extends roygame.models.Customer
{
function Customer28 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 28 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 28;
var customername = "Clover";
var orders = [[], [[[8, 1, 1, 1, 1], [0], [0], [0], [0], [0], [0], 4, 8]]];
}
Symbol 3491 MovieClip [__Packages.roygame.models.customers.Customer29] Frame 0
class roygame.models.customers.Customer29 extends roygame.models.Customer
{
function Customer29 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 29 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 29;
var customername = "Hugo";
var orders = [[], [[[0], [4, 1, 1, 0, 0], [0], [4, 0, 1, 0, 0], [0], [0], [0], 4, 6]]];
}
Symbol 3492 MovieClip [__Packages.roygame.models.customers.Customer30] Frame 0
class roygame.models.customers.Customer30 extends roygame.models.Customer
{
function Customer30 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 30 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 30;
var customername = "Peggy";
var orders = [[], [[[0], [0], [0], [0], [4, 1, 1, 1, 1], [6, 1, 1, 1, 0], [0], 3, 8]]];
}
Symbol 3493 MovieClip [__Packages.roygame.models.customers.Customer31] Frame 0
class roygame.models.customers.Customer31 extends roygame.models.Customer
{
function Customer31 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 31 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 31;
var customername = "Carlo Romano";
var orders = [[], [[[0], [4, 1, 1, 0, 0], [6, 0, 0, 1, 1], [4, 0, 1, 0, 0], [0], [0], [0], 4, 8]]];
}
Symbol 3494 MovieClip [__Packages.roygame.models.customers.Customer32] Frame 0
class roygame.models.customers.Customer32 extends roygame.models.Customer
{
function Customer32 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 32 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 32;
var customername = "Little Edoardo";
var orders = [[], [[[0], [0], [0], [0], [4, 1, 1, 1, 1], [4, 1, 1, 1, 1], [4, 1, 1, 1, 1], 5, 8]]];
}
Symbol 3495 MovieClip [__Packages.roygame.models.customers.Customer33] Frame 0
class roygame.models.customers.Customer33 extends roygame.models.Customer
{
function Customer33 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 33 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 33;
var customername = "Gino Romano";
var orders = [[], [[[8, 1, 1, 1, 1], [0], [0], [0], [4, 1, 1, 1, 1], [4, 1, 1, 1, 1], [0], 4, 8]]];
}
Symbol 3496 MovieClip [__Packages.roygame.models.customers.Customer34] Frame 0
class roygame.models.customers.Customer34 extends roygame.models.Customer
{
function Customer34 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 34 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 34;
var customername = "Bruna Romano";
var orders = [[], [[[2, 1, 0, 0, 0], [4, 1, 1, 1, 1], [0], [0], [0], [4, 1, 1, 1, 1], [0], 5, 4]]];
}
Symbol 3497 MovieClip [__Packages.roygame.models.customers.Customer35] Frame 0
class roygame.models.customers.Customer35 extends roygame.models.Customer
{
function Customer35 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 35 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 35;
var customername = "SargeFan!";
var orders = [[], [[[0], [0], [0], [0], [12, 1, 1, 1, 1], [0], [0], 5, 6]]];
}
Symbol 3498 MovieClip [__Packages.roygame.models.customers.Customer36] Frame 0
class roygame.models.customers.Customer36 extends roygame.models.Customer
{
function Customer36 (gameobj, num) {
super();
var _local3 = this;
_local3.gameObj = gameobj;
_local3.number = num;
trace("new customer 36 added");
_local3.setupCustomer();
_local3.startCustomerEntering();
}
var clipname = "customer";
var customertype = 36;
var customername = "PAPA LOUIE!";
var orders = [[], [[[2, 1, 0, 0, 0], [2, 0, 1, 0, 0], [2, 0, 0, 1, 0], [2, 0, 0, 0, 1], [2, 1, 0, 0, 0], [2, 0, 1, 0, 0], [2, 0, 0, 1, 0], 4, 4]]];
}
Symbol 3499 MovieClip [__Packages.roygame.models.NewCustomerScreen] Frame 0
class roygame.models.NewCustomerScreen
{
function NewCustomerScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
if (_local2.gameObj.showNoPapa) {
_local2.setupNoPapaScreen();
} else {
_local2.setupScreen();
}
}
function buildCustomer() {
var _local2 = this;
var _local3 = _local2.customernum;
_local2.clip.circleMC.customerMC.body.attachMovie(("customer" + _local3) + "_body", "clip", 1);
_local2.clip.circleMC.customerMC.head.attachMovie(("customer" + _local3) + "_head", "clip", 1);
_local2.clip.circleMC.customerMC.eyes.attachMovie(("customer" + _local3) + "_eyes", "clip", 1);
_local2.clip.circleMC.customerMC.mouth.attachMovie(("customer" + _local3) + "_mouth", "clip", 1);
_local2.clip.circleMC.customerMC.neck.attachMovie(("customer" + _local3) + "_neck", "clip", 1);
_local2.clip.circleMC.customerMC.hair.attachMovie(("customer" + _local3) + "_hair", "clip", 1);
_local2.clip.circleMC.customerMC.back_hair.attachMovie(("customer" + _local3) + "_back_hair", "clip", 1);
_local2.clip.circleMC.customerMC.front_shoe.attachMovie(("customer" + _local3) + "_foot", "clip", 1);
_local2.clip.circleMC.customerMC.back_shoe.attachMovie(("customer" + _local3) + "_foot", "clip", 1);
_local2.clip.circleMC.customerMC.fronthand.attachMovie(("customer" + _local3) + "_hand", "clip", 1);
_local2.clip.circleMC.customerMC.backhand.attachMovie(("customer" + _local3) + "_hand2", "clip", 1);
_local2.clip.circleMC.customerMC.front_upperarm.attachMovie(("customer" + _local3) + "_upperarm", "clip", 1);
_local2.clip.circleMC.customerMC.back_upperarm.attachMovie(("customer" + _local3) + "_upperarm", "clip", 1);
_local2.clip.circleMC.customerMC.front_forearm.attachMovie(("customer" + _local3) + "_forearm", "clip", 1);
_local2.clip.circleMC.customerMC.back_forearm.attachMovie(("customer" + _local3) + "_forearm", "clip", 1);
_local2.clip.circleMC.customerMC.gotoAndPlay("overjoyed");
_local2.clip.circleMC.customerMC._xscale = 80;
_local2.clip.circleMC.customerMC._yscale = 80;
}
function setupNoPapaScreen() {
var _local2 = this;
var _local4 = _local2.gameObj;
_local2.clip = _local2.gameclip.attachMovie("newcustomer_nopapa", "newcustomer_screen", 10);
_local2.gameObj.soundEngine.switchMusic(0);
var _local3 = "endofday.wav";
_local2.gameObj.soundEngine.playSound(_local3, 0, 2);
_local2.startSealAnimation();
}
function startSealAnimation() {
var _local2 = this;
trace("Show seal");
_local2.clip.sealMC.seal.gotoAndStop(3);
_local2.clip.sealMC.gotoAndPlay(2);
}
function setupScreen() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.clip = _local2.gameclip.attachMovie("newcustomer_screen", "newcustomer_screen", 10);
_local2.customernum = _local3.newCustomerNum;
var _local4 = _local2.customernum;
var _local5 = _local3.customerdata[_local4][1];
trace("My customer num: " + _local4);
trace("My customer name: " + _local5);
_local2.buildCustomer();
_local2.clip.circleMC.customername.text = _local5;
_local2.gameObj.soundEngine.switchMusic(0);
var _local6 = "customer_overjoyed.wav";
_local2.gameObj.soundEngine.playSound(_local6, 0, 2);
_local3.customerdata[_local4][0] = 1;
_local3.customerdata[_local4][3] = _local3.currentDay;
}
function endAnimation() {
var _local2 = this;
_local2.gameObj.switchModes("startofday", "allow");
}
function pauseUpdate(msg) {
}
var customernum = 1;
}
Symbol 3500 MovieClip [__Packages.roygame.models.CustomerFileScreen] Frame 0
class roygame.models.CustomerFileScreen
{
function CustomerFileScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.setupScreen();
}
function buildCustomerPoloroid(num, starred) {
var _local2 = this;
var _local4 = "customer" + num;
_local2.clip.profilecard.poloroid_bg.customerMC.eyes.clip.removeMovieClip();
_local2.clip.profilecard.poloroid_bg.customerMC.mouth.clip.removeMovieClip();
_local2.clip.profilecard.poloroid_bg.customerMC.hair.clip.removeMovieClip();
_local2.clip.profilecard.poloroid_bg.customerMC.back_hair.clip.removeMovieClip();
_local2.clip.profilecard.poloroid_bg.customerMC.body.attachMovie(("customer" + num) + "_body", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.head.attachMovie(("customer" + num) + "_head", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.eyes.attachMovie(("customer" + num) + "_eyes", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.mouth.attachMovie(("customer" + num) + "_mouth", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.neck.attachMovie(("customer" + num) + "_neck", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.hair.attachMovie(("customer" + num) + "_hair", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.back_hair.attachMovie(("customer" + num) + "_back_hair", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.front_shoe.attachMovie(("customer" + num) + "_foot", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.back_shoe.attachMovie(("customer" + num) + "_foot", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.fronthand.attachMovie(("customer" + num) + "_hand", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.backhand.attachMovie(("customer" + num) + "_hand2", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.front_upperarm.attachMovie(("customer" + num) + "_upperarm", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.back_upperarm.attachMovie(("customer" + num) + "_upperarm", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.front_forearm.attachMovie(("customer" + num) + "_forearm", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.back_forearm.attachMovie(("customer" + num) + "_forearm", "clip", 1);
_local2.clip.profilecard.poloroid_bg.customerMC.eyes.clip.gotoAndStop(1);
_local2.clip.profilecard.poloroid_bg.customerMC.mouth.clip.gotoAndStop(1);
_local2.clip.profilecard.poloroid_bg.customerMC.gotoAndStop(1);
if (starred) {
_local2.clip.profilecard.poloroid_bg.customerMC.gotoAndStop("overjoyedposter");
}
_local2.clip.profilecard.poloroid_bg.gotoAndStop(num);
_local2.clip.profilecard.poloroid_bg.setMask(_local2.clip.profilecard.poloroid_mask);
}
function setupScreen() {
var screen = this;
var gameObj = screen.gameObj;
screen.clip = screen.gameclip.attachMovie("customerfile_screen", "customerfile_screen", 50005);
screen.buildThumbs();
screen.gameObj.soundEngine.switchMusic(5);
screen.clip.close_btn.onPress = function () {
gameObj.pauseManager.pauseGame();
};
screen.clip.main_btn.onPress = function () {
screen.flipToMain();
};
screen.clip.big_btn.onPress = function () {
screen.flipToMain();
};
screen.clip.buttonguard.onPress = function () {
};
screen.clip.buttonguard.useHandCursor = false;
}
function buildThumbs() {
var screen = this;
var _local3 = screen.gameObj;
var _local7 = _local3.customerdata.length - 1;
var _local2 = 1;
while (_local2 <= _local7) {
var _local4 = _local3.customerdata[_local2][0];
var _local5 = _local3.customerdata[_local2][3];
var _local6 = _local3.customerdata[_local2][6];
if (_local4 && (_local5 > 0)) {
screen.clip.maincard["btn" + _local2]._alpha = 0;
screen.clip.maincard["btn" + _local2].mynum = _local2;
screen.clip.maincard["btn" + _local2].onPress = function () {
screen.flipToProfile(this.mynum);
};
screen.clip.maincard["btn" + _local2].onRollOver = function () {
screen.clip.maincard.rolloverMC._x = this._x;
screen.clip.maincard.rolloverMC._y = this._y;
};
if (_local6) {
screen.clip.maincard["star" + _local2]._visible = true;
} else {
screen.clip.maincard["star" + _local2]._visible = false;
}
}
_local2++;
}
trace(("Built " + _local7) + " customers..");
}
function flipToProfile(which) {
var _local2 = this;
var _local3 = _local2.gameObj;
var _local8 = _local3.customerdata[which][1];
var _local7 = _local3.customerdata[which][2];
var _local6 = _local3.customerdata[which][3];
var _local9 = _local3.customerdata[which][4];
var _local5 = _local3.customerdata[which][6];
_local2.clip.profilecard.customername.text = _local8;
_local2.clip.profilecard.toppings.text = _local7;
_local2.clip.profilecard.pizzas.text = _local9;
_local2.clip.profilecard.day.text = _local6;
if (_local5 > 0) {
_local2.clip.profilecard.sealMC._visible = true;
_local2.clip.profilecard.sealMC.gotoAndStop(_local5);
} else {
_local2.clip.profilecard.sealMC._visible = false;
}
_local2.buildCustomerPoloroid(which, _local5);
_local2.clip.gotoAndPlay("flipprofile");
}
function flipToMain() {
var _local2 = this;
_local2.clip.gotoAndPlay("flipmain");
}
function pauseUpdate(msg) {
}
var customernum = 1;
}
Symbol 3501 MovieClip [__Packages.roygame.models.ToppingScreen] Frame 0
class roygame.models.ToppingScreen
{
function ToppingScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.setupScreen();
}
function setupScreen() {
var screen = this;
var game = screen.gameObj;
screen.clip = screen.gameclip.attachMovie("topping_screen", "topping_screen", 6);
screen.clip._x = -5000;
if (game.training) {
screen.clip.cup_pepperoni.onPress = function () {
screen.chooseTopping(1);
};
screen.clip.cup_sausage.gotoAndStop(2);
screen.clip.cup_mushroom.gotoAndStop(2);
screen.clip.cup_pepper.gotoAndStop(2);
screen.clip.cup_onion.gotoAndStop(2);
screen.clip.cup_olive.gotoAndStop(2);
screen.clip.cup_anchovy.gotoAndStop(2);
} else {
screen.clip.cup_pepperoni.onPress = function () {
screen.chooseTopping(1);
};
screen.clip.cup_sausage.onPress = function () {
screen.chooseTopping(2);
};
screen.clip.cup_mushroom.onPress = function () {
screen.chooseTopping(3);
};
screen.clip.cup_pepper.onPress = function () {
screen.chooseTopping(4);
};
screen.clip.cup_onion.onPress = function () {
screen.chooseTopping(5);
};
screen.clip.cup_olive.onPress = function () {
screen.chooseTopping(6);
};
screen.clip.cup_anchovy.onPress = function () {
screen.chooseTopping(7);
};
}
screen.clip.cup_pepperoni.onRollOver = function () {
game.hudObj.setTooltip("Pepperoni", true);
};
screen.clip.cup_sausage.onRollOver = function () {
game.hudObj.setTooltip("Sausage", true);
};
screen.clip.cup_mushroom.onRollOver = function () {
game.hudObj.setTooltip("Mushrooms", true);
};
screen.clip.cup_pepper.onRollOver = function () {
game.hudObj.setTooltip("Peppers", true);
};
screen.clip.cup_onion.onRollOver = function () {
game.hudObj.setTooltip("Onions", true);
};
screen.clip.cup_olive.onRollOver = function () {
game.hudObj.setTooltip("Olives", true);
};
screen.clip.cup_anchovy.onRollOver = function () {
game.hudObj.setTooltip("Anchovies", true);
};
screen.clip.cup_pepperoni.onRollOut = function () {
game.hudObj.setLastTooltip();
};
screen.clip.cup_sausage.onRollOut = function () {
game.hudObj.setLastTooltip();
};
screen.clip.cup_mushroom.onRollOut = function () {
game.hudObj.setLastTooltip();
};
screen.clip.cup_pepper.onRollOut = function () {
game.hudObj.setLastTooltip();
};
screen.clip.cup_olive.onRollOut = function () {
game.hudObj.setLastTooltip();
};
screen.clip.cup_onion.onRollOut = function () {
game.hudObj.setLastTooltip();
};
screen.clip.cup_anchovy.onRollOut = function () {
game.hudObj.setLastTooltip();
};
screen.clip.cup_pepperoni.onReleaseOutside = function () {
screen.releaseTopping();
};
screen.clip.cup_sausage.onReleaseOutside = function () {
screen.releaseTopping();
};
screen.clip.cup_mushroom.onReleaseOutside = function () {
screen.releaseTopping();
};
screen.clip.cup_pepper.onReleaseOutside = function () {
screen.releaseTopping();
};
screen.clip.cup_onion.onReleaseOutside = function () {
screen.releaseTopping();
};
screen.clip.cup_olive.onReleaseOutside = function () {
screen.releaseTopping();
};
screen.clip.cup_anchovy.onReleaseOutside = function () {
screen.releaseTopping();
};
}
function releaseTopping() {
var _local3 = this;
var _local2 = _local3.gameObj;
if (!_local2.pauseManager.isPaused) {
var _local4 = _local2.hudObj.activeTicket;
var _local5 = _local2.ticketManager["ticket" + _local4].whichPizza;
var _local6 = _local2.pizzaManager["pizza" + _local5];
_local6.releaseTopping();
}
}
function chooseTopping(which) {
var _local5 = this;
var _local2 = _local5.gameObj;
if (!_local2.pauseManager.isPaused) {
var _local3 = _local2.hudObj.activeTicket;
if (_local3 > 0) {
var _local4 = _local2.ticketManager["ticket" + _local3];
if (_local4.pizzaIsTopping) {
var _local6 = _local4.whichPizza;
var _local7 = _local2.pizzaManager["pizza" + _local6];
_local7.addTopping(which, true);
}
}
}
}
function setCurrentMode() {
var _local3 = this;
var _local2 = _local3.gameObj;
_local3.clip._x = 0;
_local3.active = true;
_local2.cuttingScreen.setNotCurrentMode();
_local2.orderScreen.setNotCurrentMode();
_local2.bakingScreen.setNotCurrentMode();
_local2.takeOrderScreen.setNotCurrentMode();
_local2.giveOrderScreen.setNotCurrentMode();
_local2.pauseScreen.setNotCurrentMode();
_local2.soundEngine.switchMusic(2);
_local2.hudObj.setMode("topping");
}
function setNotCurrentMode() {
var _local2 = this;
_local2.clip._x = -5000;
_local2.active = false;
}
function makePizza() {
var _local5 = this;
var _local2 = _local5.gameObj;
var _local6 = _local2.hudObj.activeTicket;
var _local3 = _local2.ticketManager["ticket" + _local6];
if (_local3.whichPizza > 0) {
var _local4 = _local2.pizzaManager["pizza" + _local3.whichPizza];
if (_local4.currentLocation == "topping") {
_local4.retopPizza();
} else {
_local2.pizzaManager.addPizza("topping");
}
} else {
if (_local2.training) {
if (_local2.trainingManager.currentStep == 11) {
_local2.trainingManager.finishedStep(11);
}
}
_local2.pizzaManager.addPizza("topping");
}
_local2.hudObj.switchTicketMode("blank");
}
function putInOven() {
var _local4 = this;
var _local2 = _local4.gameObj;
var _local3 = false;
if (_local2.training) {
if (_local2.trainingManager.currentStep == 14) {
_local3 = true;
}
}
if ((!_local2.training) || (_local3)) {
var _local8 = _local2.bakingScreen.checkPizzaSlots();
if (_local8 != 0) {
var _local5 = _local2.hudObj.activeTicket;
var _local6 = _local2.ticketManager["ticket" + _local5].whichPizza;
var _local7 = _local2.pizzaManager["pizza" + _local6];
_local7.putInOven();
_local2.hudObj.switchTicketMode("blank");
}
}
}
function saveForLater() {
var _local3 = this;
var _local2 = _local3.gameObj;
if (!_local2.training) {
var _local4 = _local2.hudObj.activeTicket;
var _local5 = _local2.ticketManager["ticket" + _local4].whichPizza;
var _local6 = _local2.pizzaManager["pizza" + _local5];
_local6.saveForLater();
_local2.hudObj.switchTicketMode("blank");
}
}
function pauseUpdate(msg) {
}
var active = false;
}
Symbol 3502 MovieClip [__Packages.roygame.models.BakingScreen] Frame 0
class roygame.models.BakingScreen
{
function BakingScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.pizzas = [0, 0, 0, 0];
_local2.setupScreen();
}
function setupScreen() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.clip = _local2.gameclip.attachMovie("baking_screen", "baking_screen", 7);
_local2.clip._x = -5000;
_local2.TimePerDegree = ((_local2.cookTimeForPizza * 60) / 360) * 1000;
_local2.setupTimers();
_local3.pauseManager.addPauseListener(_local2);
}
function setupTimers() {
var _local2 = this;
_local2.timer1 = _local2.clip.timer1;
_local2.timer2 = _local2.clip.timer2;
_local2.timer3 = _local2.clip.timer3;
_local2.timer4 = _local2.clip.timer4;
}
function restartTimer(which) {
var screen = this;
var _local2 = screen["timer" + which];
_local2.needle._rotation = 0;
screen["timerstart" + which] = getTimer();
screen["cooktime" + which] = 0;
screen["pizzastage" + which] = 0;
screen["timerpausestart" + which] = 0;
screen["timerpausecache" + which] = 0;
delete _local2.onEnterFrame;
_local2.onEnterFrame = function () {
screen.runTimer(which);
};
}
function stopTimer(which) {
var _local2 = this;
var _local4 = _local2["timer" + which];
_local4.needle._rotation = 0;
_local2["timerstart" + which] = getTimer();
_local2["cooktime" + which] = 0;
_local2["pizzastage" + which] = 0;
_local2["timerpausestart" + which] = 0;
_local2["timerpausecache" + which] = 0;
delete _local4.onEnterFrame;
}
function pauseTimer(which) {
var _local2 = this;
var _local3 = _local2["timer" + which];
_local2["timerpausestart" + which] = getTimer();
delete _local3.onEnterFrame;
}
function unpauseTimer(which) {
var screen = this;
var _local4 = screen["timer" + which];
var _local2 = getTimer();
var _local3 = _local2 - screen["timerpausestart" + which];
screen["timerpausecache" + which] = screen["timerpausecache" + which] + _local3;
if (screen.pizzas[which - 1] != 0) {
_local4.onEnterFrame = function () {
screen.runTimer(which);
};
}
}
function runTimer(which) {
var _local2 = this;
var _local6 = _local2.gameObj;
var _local11 = _local2["timer" + which];
var _local12 = _local2["timerstart" + which];
var _local14 = getTimer();
var _local8 = _local2["timerpausecache" + which];
var _local10 = (_local14 - _local8) - _local12;
var _local4 = Math.floor(_local10 / _local2.TimePerDegree);
_local2["cooktime" + which] = _local4;
_local11.needle._rotation = _local4;
var _local9 = _local4 / 45;
var _local5 = Math.floor(_local9);
if (_local2["pizzastage" + which] < _local5) {
var _local7 = which - 1;
var _local13 = _local2.pizzas[_local7];
_local13.changeCookLook(_local5);
}
_local2["pizzastage" + which] = _local5;
if (_local4 >= 360) {
_local2.stopTimer(which);
}
if (_local6.training) {
if ((_local6.trainingManager.currentStep == 18) && (_local4 >= 45)) {
_local6.trainingManager.finishedStep(18);
}
}
}
function setCurrentMode() {
var _local4 = this;
var _local5 = _local4.gameObj;
_local4.clip._x = 0;
_local4.active = true;
_local5.toppingScreen.setNotCurrentMode();
_local5.orderScreen.setNotCurrentMode();
_local5.cuttingScreen.setNotCurrentMode();
_local5.takeOrderScreen.setNotCurrentMode();
_local5.giveOrderScreen.setNotCurrentMode();
_local5.pauseScreen.setNotCurrentMode();
_local5.soundEngine.switchMusic(3);
_local5.hudObj.setMode("baking");
var _local2 = 0;
while (_local2 < 4) {
if (_local4.pizzas[_local2] != 0) {
var _local3 = _local4.pizzas[_local2];
_local3.drawPizza("baking");
}
_local2++;
}
}
function setNotCurrentMode() {
var _local4 = this;
_local4.clip._x = -5000;
_local4.active = false;
var _local2 = 0;
while (_local2 < 4) {
if (_local4.pizzas[_local2] != 0) {
var _local3 = _local4.pizzas[_local2];
_local3.undrawPizza();
}
_local2++;
}
}
function checkPizzaSlots() {
var _local4 = this;
var _local3 = 0;
var _local2 = 0;
while (_local2 < 4) {
if (_local4.pizzas[_local2] == 0) {
_local3 = _local2 + 1;
break;
}
_local2++;
}
return(_local3);
}
function pauseUpdate(msg) {
var _local2 = this;
if (msg == "pause") {
_local2.pauseTimer(1);
_local2.pauseTimer(2);
_local2.pauseTimer(3);
_local2.pauseTimer(4);
} else if (msg == "unpause") {
_local2.unpauseTimer(1);
_local2.unpauseTimer(2);
_local2.unpauseTimer(3);
_local2.unpauseTimer(4);
}
}
var active = false;
var cookTimeForPizza = 3;
var timerstart1 = 0;
var timerstart2 = 0;
var timerstart3 = 0;
var timerstart4 = 0;
var timerpausecache1 = 0;
var timerpausecache2 = 0;
var timerpausecache3 = 0;
var timerpausecache4 = 0;
var timerpausestart1 = 0;
var timerpausestart2 = 0;
var timerpausestart3 = 0;
var timerpausestart4 = 0;
var cooktime1 = 0;
var cooktime2 = 0;
var cooktime3 = 0;
var cooktime4 = 0;
var pizzastage1 = 0;
var pizzastage2 = 0;
var pizzastage3 = 0;
var pizzastage4 = 0;
var pizzas = [0, 0, 0, 0];
}
Symbol 3503 MovieClip [__Packages.roygame.models.Transition] Frame 0
class roygame.models.Transition
{
function Transition (gameobj, which) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.whichMode = which;
_local2.setupTransition();
}
function setupTransition() {
var _local2 = this;
var _local3 = 4000;
var _local4 = _local2.gameObj.showCustomerFile;
var _local5 = _local2.gameObj.showHelpScreen;
_local2.adServed = false;
if (_local2.whichMode == "endofday") {
_local3 = 100001 /* 0x0186A1 */;
_local2.fadeAmount = 10;
} else if (_local2.whichMode == "startofday") {
_local3 = 100001 /* 0x0186A1 */;
_local2.fadeAmount = 25;
} else if (_local2.whichMode == "newcustomer") {
_local3 = 100001 /* 0x0186A1 */;
_local2.fadeAmount = 25;
} else if (_local2.whichMode == "highscores") {
_local3 = 100001 /* 0x0186A1 */;
_local2.fadeAmount = 25;
} else if (_local2.whichMode == "customerfile") {
_local3 = 100001 /* 0x0186A1 */;
_local2.fadeAmount = 25;
} else if (_local2.whichMode == "helpscreen") {
_local3 = 100001 /* 0x0186A1 */;
_local2.fadeAmount = 25;
} else if (_local5) {
_local3 = 100001 /* 0x0186A1 */;
_local2.fadeAmount = 25;
} else if (_local4) {
_local3 = 100001 /* 0x0186A1 */;
_local2.fadeAmount = 25;
} else if (_local2.whichMode == "buildlevel") {
_local3 = 100001 /* 0x0186A1 */;
_local2.fadeAmount = 25;
}
_local2.clip = _local2.gameclip.attachMovie("fader", "fader", _local3);
_local2.clip._alpha = 0;
_local2.fadedIn = false;
_local2.cycleInterval = setInterval(this, "transitionCycle", _local2.cycleSpeed);
}
function continueTransition() {
var _local2 = this;
trace("continuing transition");
_local2.adServed = true;
_local2.cycleInterval = setInterval(this, "transitionCycle", _local2.cycleSpeed);
}
function transitionCycle() {
var _local2 = this;
if ((_local2.clip._alpha < 100) && (_local2.fadedIn == false)) {
_local2.clip._alpha = _local2.clip._alpha + _local2.fadeAmount;
} else if ((_local2.clip._alpha >= 100) && (_local2.fadedIn == false)) {
_local2.fadedIn = true;
_local2.triggerAction();
} else if ((_local2.clip._alpha > 0) && (_local2.fadedIn == true)) {
_local2.clip._alpha = _local2.clip._alpha - _local2.fadeAmount;
} else if ((_local2.clip._alpha <= 0) && (_local2.fadedIn == true)) {
_local2.endTransition();
}
}
function triggerAction() {
var _local2 = this;
var _local3 = _local2.gameObj;
if (((_local2.whichMode == "startofday") && (!_local2.adServed)) && (_local3.playedALevel == true)) {
_local2.serveAd();
} else {
_local3.finishSwitchModes(_local2.whichMode);
}
}
function serveAd() {
var screen = this;
var _local3 = screen.gameObj;
trace("Serve Ad");
screen.fadedIn = false;
clearInterval(screen.cycleInterval);
var _local4 = new InterstitialAd(_root, function () {
screen.continueTransition();
});
}
function endTransition() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.clip.removeMovieClip();
clearInterval(_local2.cycleInterval);
_local2.gameObj.killTransition(_local2.whichMode);
}
function pauseUpdate(msg) {
}
var cycleSpeed = 33;
var fadeAmount = 35;
var fadedIn = false;
var adServed = false;
}
Symbol 3504 MovieClip [__Packages.InterstitialAd] Frame 0
class InterstitialAd
{
function InterstitialAd (container, finishFunction) {
var _local2 = this;
_local2.container = container;
_local2.finishFunction = finishFunction;
_local2.setupScreen();
}
function setupScreen() {
var screen = this;
trace("[AS] Setup");
screen.startTime = getTimer();
screen.clip = screen.container.attachMovie("static_interstitial", "static_interstitial", 50009);
screen.clip.progbar.onEnterFrame = function () {
screen.updateProgress();
};
screen.clip.progbar._visible = false;
screen.clip.continue_btn.onPress = function () {
screen.clickContinue();
};
screen.clip.continue_btn.gotoAndStop(1);
screen.clip.continue_btn.enabled = false;
}
function updateProgress() {
var _local2 = this;
var _local3 = (getTimer() - _local2.startTime) / _local2.delay;
if (_local3 > 1) {
_local3 = 1;
}
if (_local3 >= 1) {
if (_local2.clip.continue_btn.enabled == false) {
trace("[AS] Show Continue");
_local2.clip.continue_btn.gotoAndPlay(2);
_local2.clip.continue_btn.enabled = true;
_local2.clip.progbar.onEnterFrame = null;
}
}
}
function clickContinue() {
trace("CLICK CONTINUE");
var _local2 = this;
if (_local2.finishFunction != null) {
_local2.finishFunction();
}
_local2.finishFunction = null;
_local2.clip.continue_btn.onPress = null;
_local2.clip.removeMovieClip();
_local2.clip = null;
}
var container = null;
var finishFunction = null;
var delay = 5000;
var startTime = 0;
}
Symbol 3505 MovieClip [__Packages.roygame.models.TicketManager] Frame 0
class roygame.models.TicketManager
{
function TicketManager (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.totalTickets = 0;
_local2.tickets = [];
_local2.gameObj.pauseManager.addPauseListener(this);
}
function AddTicket(ordernum, orderdata, customer) {
var _local2 = this;
var _local4 = _local2.gameObj;
var _local3 = "ticket" + ordernum;
_local2[_local3] = new roygame.models.Ticket(_local4, ordernum, orderdata, customer);
_local2.totalTickets++;
_local2.tickets.push(_local3);
}
function deleteTicket(whichticket) {
var _local3 = this;
var _local6 = _local3.gameObj;
var _local5 = whichticket;
var _local4 = "ticket" + _local5.orderNumber;
var _local2 = 0;
while (_local2 < _local3.tickets.length) {
if (_local3.tickets[_local2] == _local4) {
}
_local2++;
}
if (_local6.hudObj.activeTicket == _local5.orderNumber) {
_local6.hudObj.setActiveTicket(0);
}
_local6.pauseManager.removePauseListener(_local5);
_local5.clip.removeMovieClip();
delete _local3[_local4];
_local3[_local4] = null;
}
function sortDepths() {
var _local3 = this;
var _local10 = _local3.gameObj;
var _local4 = [];
var _local2 = 0;
while (_local2 < _local3.tickets.length) {
var _local6 = _local3.tickets[_local2];
var _local7 = _local3[_local6].clip.getDepth();
_local4.push({name:String(_local6), depth:_local7});
_local2++;
}
_local4.sortOn("depth");
_local2 = 0;
while (_local2 < _local4.length) {
var _local6 = _local4[_local2].name;
var _local5 = 1000 + (_local2 + 1);
_local3[_local6].clip.swapDepths(_local5);
_local2++;
}
}
function pauseUpdate(msg) {
}
var totalTickets = 0;
var tickets = [];
}
Symbol 3506 MovieClip [__Packages.roygame.models.PizzaManager] Frame 0
class roygame.models.PizzaManager
{
function PizzaManager (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.totalPizzas = 0;
_local2.pizzas = [];
_local2.gameObj.pauseManager.addPauseListener(this);
}
function addPizza(where) {
var _local2 = this;
var _local5 = _local2.gameObj;
var _local3 = _local2.totalPizzas + 1;
var _local4 = "pizza" + _local3;
_local2[_local4] = new roygame.models.Pizza(_local5, where, _local3);
_local2.totalPizzas++;
_local2.pizzas.push(_local4);
}
function deletePizza(whichpizza) {
var _local3 = this;
var _local6 = _local3.gameObj;
var _local5 = whichpizza;
var _local4 = "pizza" + _local5.id;
var _local2 = 0;
while (_local2 < _local3.pizzas.length) {
if (_local3.pizzas[_local2] == _local4) {
}
_local2++;
}
_local6.pauseManager.removePauseListener(_local5);
_local5.clip.removeMovieClip();
delete _local3[_local4];
_local3[_local4] = null;
}
function pauseUpdate(msg) {
}
var totalPizzas = 0;
var pizzas = [];
}
Symbol 3507 MovieClip [__Packages.roygame.models.PauseManager] Frame 0
class roygame.models.PauseManager
{
function PauseManager (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
}
function pauseGame(customerfile, helpscreen) {
var _local2 = this;
var _local3 = _local2.gameObj;
if (_local3.inTransition == true) {
_local3.transitionScreen.triggerAction();
}
trace((((((((((((((("***** PAUSE COMMAND: Manager Paused: " + _local2.isPaused) + ", customerfile: ") + customerfile) + ", game.showfile: ") + _local3.showCustomerFile) + ", helpscreen: ") + helpscreen) + ", game.showhelp: ") + _local3.showHelpScreen) + ", Previous: ") + _local2.previousScreen) + ", current: ") + _local3.hudObj.currentMode) + ", prevonpause: ") + _local2.previouslyOnPause);
if (((_local2.isPaused == true) && (!customerfile)) && (!helpscreen)) {
if (_local2.previouslyOnPause == true) {
trace("Go back to pause? I guess?");
_local3.switchModes("pause", "allow");
_local2.previouslyOnPause = false;
} else {
_local2.notifyListeners("unpause");
_local2.isPaused = false;
_local3.switchModes(_local2.previousScreen, "allow");
trace("Unpause - go back to " + _local2.previousScreen);
trace("---------------------");
}
} else if (customerfile && (!_local3.showCustomerFile)) {
if (_local3.hudObj.currentMode != "pause") {
_local2.previousScreen = _local3.hudObj.currentMode;
if (_local2.previousScreen == "giveorder") {
_local2.previousScreen = "giveOrder";
} else if (_local2.previousScreen == "takeorder") {
_local2.previousScreen = "takeOrder";
}
_local2.previouslyOnPause = false;
} else {
_local2.previouslyOnPause = true;
}
_local3.showCustomerFile = true;
_local3.switchModes("customerfile", "allow");
if (!_local2.previouslyOnPause) {
_local2.notifyListeners("pause");
}
_local2.isPaused = true;
trace("Pause with Customer File");
trace("---------------------");
} else if (helpscreen && (!_local3.showHelpScreen)) {
if (_local3.hudObj.currentMode != "pause") {
_local2.previousScreen = _local3.hudObj.currentMode;
if ((_local3.hudObj == null) || (_local3.hudObj == undefined)) {
_local2.previousScreen = "mainmenu";
}
if (_local2.previousScreen == "giveorder") {
_local2.previousScreen = "giveOrder";
} else if (_local2.previousScreen == "takeorder") {
_local2.previousScreen = "takeOrder";
}
_local2.previouslyOnPause = false;
} else {
_local2.previouslyOnPause = true;
}
_local3.showHelpScreen = true;
_local3.switchModes("helpscreen", "allow");
if (!_local2.previouslyOnPause) {
_local2.notifyListeners("pause");
}
_local2.isPaused = true;
trace("Pause with Help Screen");
trace("---------------------");
} else if (_local2.isPaused == false) {
if (_local3.hudObj.currentMode != "pause") {
_local2.previousScreen = _local3.hudObj.currentMode;
if (_local2.previousScreen == "giveorder") {
_local2.previousScreen = "giveOrder";
} else if (_local2.previousScreen == "takeorder") {
_local2.previousScreen = "takeOrder";
}
_local3.switchModes("pause", "allow");
_local2.notifyListeners("pause");
_local2.isPaused = true;
trace("Pause");
trace("---------------------");
} else {
trace("ALREADY PAUSED! Um, tell the manager?");
_local3.switchModes("pause", "allow");
_local2.isPaused = true;
_local2.notifyListeners("pause");
trace("---------------------");
}
}
}
function resetManager() {
var _local2 = this;
_local2.isPaused = false;
_local2.clearListeners();
}
function addPauseListener(o) {
var _local3 = this;
var _local5 = _local3.gameObj;
if (o == null) {
return(false);
}
var _local2 = 0;
while (_local2 < _local3.observers.length) {
if (_local3.observers[_local2] == o) {
return(false);
}
_local2++;
}
_local3.observers.push(o);
return(true);
}
function removePauseListener(o) {
var _local3 = this;
var _local6 = _local3.gameObj;
var _local4 = _local3.observers.length;
var _local2 = 0;
while (_local2 < _local4) {
if (_local3.observers[_local2] == o) {
_local3.observers.splice(_local2, 1);
return(true);
}
_local2++;
}
return(false);
}
function clearListeners() {
var _local2 = this;
_local2.observers = new Array();
_local2.isPaused = false;
}
function notifyListeners(msg) {
var _local5 = this;
if (msg == undefined) {
return(false);
}
var _local3 = _local5.observers.slice(0);
var _local2 = _local3.length - 1;
while (_local2 >= 0) {
_local3[_local2].pauseUpdate(msg);
_local2--;
}
}
var observers = new Array();
var isPaused = false;
var previousScreen = null;
var previouslyOnPause = false;
}
Symbol 3508 MovieClip [__Packages.roygame.models.PauseScreen] Frame 0
class roygame.models.PauseScreen
{
function PauseScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.setupScreen();
}
function updateText() {
var _local3 = this;
var _local6 = _local3.gameObj;
var _local4 = _local6.tipsToday;
var _local10 = _local4 / 100;
var _local8 = Math.floor(_local10);
var _local2 = _local4 - (_local8 * 100);
var _local11 = _local2 / 100;
if (_local2 < 10) {
_local2 = "0" + _local2;
} else if (_local2 == 0) {
_local2 = "00";
}
var _local9 = (("$" + _local8) + ".") + _local2;
if (_local4 <= 0) {
_local9 = "$0.00 ";
}
var _local5 = _local6.totalTips;
_local10 = _local5 / 100;
_local8 = Math.floor(_local10);
_local2 = _local5 - (_local8 * 100);
_local11 = _local2 / 100;
if (_local2 < 10) {
_local2 = "0" + _local2;
} else if (_local2 == 0) {
_local2 = "00";
}
var _local7 = (("$" + _local8) + ".") + _local2;
if (_local5 <= 0) {
_local7 = "$0.00 ";
}
_local3.clip.day_text.text = _local6.currentDay;
_local3.clip.tips_text.text = _local9;
_local3.clip.total_text.text = _local7;
}
function setupScreen() {
var _local2 = this;
var game = _local2.gameObj;
_local2.clip = _local2.gameclip.attachMovie("pause_screen", "pause_screen", 30);
_local2.clip._x = -5000;
_local2.clip.quit_btn.onPress = function () {
game.soundEngine.playSound("grabtopping.wav");
game.hudObj.confirmQuit();
};
_local2.clip.continue_btn.onPress = function () {
game.soundEngine.playSound("buttonclick.wav");
game.pauseManager.pauseGame();
};
_local2.clip.help_btn.onPress = function () {
game.soundEngine.playSound("grabtopping.wav");
game.pauseManager.pauseGame(0, "helpscreen");
};
game.pauseManager.addPauseListener(_local2);
}
function setCurrentMode() {
var _local3 = this;
var _local2 = _local3.gameObj;
_local3.clip._x = 0;
_local3.active = true;
_local3.updateText();
_local2.toppingScreen.setNotCurrentMode();
_local2.orderScreen.setNotCurrentMode();
_local2.cuttingScreen.setNotCurrentMode();
_local2.takeOrderScreen.setNotCurrentMode();
_local2.giveOrderScreen.setNotCurrentMode();
_local2.hudObj.setMode("pause");
}
function setNotCurrentMode() {
var _local2 = this;
_local2.clip._x = -5000;
_local2.active = false;
_local2.clip.helpscreen.gotoAndPlay("closehelp");
}
function pauseUpdate(msg) {
var _local2 = this;
var _local3 = _local2.gameObj;
if (_local3.showCustomerFile) {
} else if (msg == "pause") {
_local2.soundWasMuted = _local3.soundEngine.isMute;
if (!_local2.soundWasMuted) {
_local3.soundEngine.muteSound();
}
} else if (msg == "unpause") {
if (!_local2.soundWasMuted) {
_local3.soundEngine.muteSound();
}
}
}
var active = false;
var soundWasMuted = false;
}
Symbol 3509 MovieClip [__Packages.roygame.models.SoundEngine] Frame 0
class roygame.models.SoundEngine
{
function SoundEngine (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.setupEngine();
}
function setupEngine() {
var _local3 = this;
_local3.clip = _root.createEmptyMovieClip("soundMCs", 10000);
var _local11 = _local3.clip.createEmptyMovieClip("clip1mc", 1);
var _local10 = _local3.clip.createEmptyMovieClip("clip2mc", 2);
var _local9 = _local3.clip.createEmptyMovieClip("clip3mc", 3);
var _local8 = _local3.clip.createEmptyMovieClip("clip4mc", 4);
var _local7 = _local3.clip.createEmptyMovieClip("clip5mc", 5);
var _local6 = _local3.clip.createEmptyMovieClip("clip6mc", 6);
var _local5 = _local3.clip.createEmptyMovieClip("clip7mc", 7);
var _local4 = _local3.clip.createEmptyMovieClip("clip8mc", 8);
_local3.Track1 = new Sound(_local11);
_local3.Track2 = new Sound(_local10);
_local3.Track3 = new Sound(_local9);
_local3.Track4 = new Sound(_local8);
_local3.Track5 = new Sound(_local7);
_local3.Track6 = new Sound(_local6);
_local3.SoundFX = new Sound(_local5);
_local3.SoundFX2 = new Sound(_local4);
}
function playSound(which, loop, track) {
var _local3 = this;
var _local2;
if (track == 2) {
_local2 = _local3.SoundFX2;
} else {
_local2 = _local3.SoundFX;
}
_local2.stop();
if (which != 0) {
_local2.attachSound(which);
if (loop) {
_local2.start(0, 1000);
} else {
_local2.start();
}
}
}
function muteSound() {
var _local2 = this;
var _local3 = _local2.gameObj.hudObj;
if (!_local2.isMute) {
_local2.SoundFX.setVolume(0);
_local2.SoundFX2.setVolume(0);
_local2.Track1.setVolume(0);
_local2.Track2.setVolume(0);
_local2.Track3.setVolume(0);
_local2.Track4.setVolume(0);
_local2.Track5.setVolume(0);
_local2.Track6.setVolume(0);
_local2.isMute = true;
_local3.clip.sound_btn.gotoAndStop("off");
} else {
_local2.SoundFX.setVolume(100);
_local2.SoundFX2.setVolume(100);
_local2.Track1.setVolume(0);
_local2.Track2.setVolume(0);
_local2.Track3.setVolume(0);
_local2.Track4.setVolume(0);
_local2.Track5.setVolume(0);
_local2.Track6.setVolume(0);
_local2["Track" + _local2.currentTrack].setVolume(_local2.maxvolume);
_local2.isMute = false;
_local3.clip.sound_btn.gotoAndStop("on");
}
}
function startMainMenuMusic() {
var engine = this;
trace("Let's play the mainmenu music!");
clearInterval(engine.fadeCycle);
engine.Track1.stop();
engine.Track2.stop();
engine.Track3.stop();
engine.Track4.stop();
engine.Track5.stop();
engine.Track6.stop();
engine.SoundFX.stop();
engine.SoundFX2.stop();
engine.Track1.attachSound("toppingscreen_music");
engine.currentTrack = 1;
engine.Track1.setVolume(0);
engine.Track2.setVolume(0);
engine.Track3.setVolume(0);
engine.Track4.setVolume(0);
engine.Track5.setVolume(0);
engine.Track6.setVolume(0);
if (!engine.isMute) {
engine.SoundFX.setVolume(100);
engine.SoundFX2.setVolume(60);
engine["Track" + engine.currentTrack].setVolume(engine.maxvolume);
} else {
trace("I want to play the mainmenu music.... but I'm muted!");
}
engine.Track1.start();
engine.Track1.onSoundComplete = function () {
engine.Track1.start();
};
}
function startGameMusic() {
var engine = this;
clearInterval(engine.fadeCycle);
engine.Track1.stop();
engine.Track2.stop();
engine.Track3.stop();
engine.Track4.stop();
engine.Track5.stop();
engine.Track6.stop();
engine.SoundFX.stop();
engine.SoundFX2.stop();
engine.Track1.attachSound("takeorder_music");
engine.Track2.attachSound("toppingscreen_music");
engine.Track3.attachSound("bakingscreen_music");
engine.Track4.attachSound("cuttingscreen_music");
engine.Track5.attachSound("orderscreen_music");
engine.Track6.attachSound("justguitar_music");
engine.currentTrack = 1;
engine.Track1.setVolume(0);
engine.Track2.setVolume(0);
engine.Track3.setVolume(0);
engine.Track4.setVolume(0);
engine.Track5.setVolume(0);
engine.Track6.setVolume(0);
if (!engine.isMute) {
engine.SoundFX.setVolume(100);
engine.SoundFX2.setVolume(100);
engine["Track" + engine.currentTrack].setVolume(engine.maxvolume);
}
engine.Track1.start();
engine.Track2.start();
engine.Track3.start();
engine.Track4.start();
engine.Track5.start();
engine.Track6.start();
engine.Track1.onSoundComplete = function () {
engine.Track1.start();
};
engine.Track2.onSoundComplete = function () {
engine.Track2.start();
};
engine.Track3.onSoundComplete = function () {
engine.Track3.start();
};
engine.Track4.onSoundComplete = function () {
engine.Track4.start();
};
engine.Track5.onSoundComplete = function () {
engine.Track5.start();
};
engine.Track6.onSoundComplete = function () {
engine.Track6.start();
};
}
function switchMusic(which) {
var _local2 = this;
var _local3 = _local2.currentTrack;
var _local4 = which;
if (!_local2.isMute) {
if (_local4 != _local3) {
_local2.currentTrack = which;
clearInterval(_local2.fadeCycle);
_local2.fadeCycle = setInterval(this, "fadeMusic", _local2.fadeSpeed, _local4, _local3);
}
} else {
_local2.currentTrack = which;
}
}
function fadeMusic(raisetrack, lowertrack) {
var _local2 = this;
if (raisetrack != 0) {
var _local9 = _local2["Track" + raisetrack].getVolume();
var _local5 = _local9 + _local2.fadeAmount;
if (_local5 > _local2.maxvolume) {
_local5 = _local2.maxvolume;
}
_local2["Track" + raisetrack].setVolume(_local5);
}
if (lowertrack != 0) {
var _local10 = _local2["Track" + lowertrack].getVolume();
var _local6 = _local10 - _local2.fadeAmount;
if (_local6 < 0) {
_local6 = 0;
}
_local2["Track" + lowertrack].setVolume(_local6);
}
var _local7 = false;
var _local8 = false;
if (raisetrack == 0) {
_local7 = true;
} else if (_local2["Track" + raisetrack].getVolume() == _local2.maxvolume) {
_local7 = true;
}
if (lowertrack == 0) {
_local8 = true;
} else if (_local2["Track" + lowertrack].getVolume() == 0) {
_local8 = true;
}
if (_local7 && (_local8)) {
_local2.Track1.setVolume(0);
_local2.Track2.setVolume(0);
_local2.Track3.setVolume(0);
_local2.Track4.setVolume(0);
_local2.Track5.setVolume(0);
_local2.Track6.setVolume(0);
_local2["Track" + lowertrack].setVolume(0);
_local2["Track" + raisetrack].setVolume(_local2.maxvolume);
clearInterval(_local2.fadeCycle);
}
if (_local2.isMute) {
_local2.Track1.setVolume(0);
_local2.Track2.setVolume(0);
_local2.Track3.setVolume(0);
_local2.Track4.setVolume(0);
_local2.Track5.setVolume(0);
_local2.Track6.setVolume(0);
clearInterval(_local2.fadeCycle);
}
}
function pauseUpdate(msg) {
}
var isMute = false;
var currentTrack = 1;
var fadeSpeed = 100;
var fadeAmount = 10;
var maxvolume = 70;
}
Symbol 3510 MovieClip [__Packages.roygame.models.TrainingManager] Frame 0
class roygame.models.TrainingManager
{
function TrainingManager (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.setupTraining();
}
function setupTraining() {
var _local2 = this;
var _local3 = _local2.gameObj;
_local2.clip = _local3.hudObj.clip.attachMovie("hud_navi", "hud_navi", 1000000);
_local2.finishedStep(0);
_local2.gameObj.pauseManager.addPauseListener(this);
}
function trainTrigger(which) {
var _local2 = this;
var _local4 = _local2.gameObj;
var _local5 = _local4.hudObj;
_local2.currentStep = which;
_local2.clip.gotoAndStop(which);
if (which == 1) {
_local2.switchToMode = "topping";
} else if (which == 2) {
_local2.switchToMode = "baking";
} else if (which == 3) {
_local2.switchToMode = "cutting";
} else if (which == 4) {
_local2.switchToMode = "order";
} else if (which == 9) {
_local2.switchToMode = "topping";
} else if (which == 24) {
_local2.switchToMode = "order";
} else {
_local2.switchToMode = "none";
}
if (which == 5) {
_local4.customerManager.spawnCustomer();
} else if (which == 25) {
_local4.customerManager.spawnCustomer();
_local4.endTraining();
}
if ((((which == 8) || (which == 10)) || (which == 16)) || (which == 17)) {
_local2.canDragTicket = true;
} else {
_local2.canDragTicket = false;
}
clearInterval(_local2.cycleInterval);
}
function switchedMode(which) {
var _local2 = this;
var _local5 = _local2.gameObj;
var _local6 = _local5.hudObj;
var _local3 = _local2.currentStep;
if ((which == "topping") && (_local3 == 1)) {
_local2.finishedStep(1);
} else if ((which == "baking") && (_local3 == 2)) {
_local2.finishedStep(2);
} else if ((which == "cutting") && (_local3 == 3)) {
_local2.finishedStep(3);
} else if ((which == "order") && (_local3 == 4)) {
_local2.finishedStep(4);
} else if ((which == "takeOrder") && (_local3 == 6)) {
_local2.finishedStep(6);
} else if ((which == "topping") && (_local3 == 9)) {
_local2.finishedStep(9);
} else if ((which == "baking") && (_local3 == 14)) {
_local2.finishedStep(14);
} else if ((which == "cutting") && (_local3 == 19)) {
_local2.finishedStep(19);
} else if ((which == "giveOrder") && (_local3 == 22)) {
_local2.finishedStep(22);
} else if ((which == "cutting") && (_local3 == 23)) {
_local2.finishedStep(23);
} else if ((which == "order") && (_local3 == 24)) {
_local2.finishedStep(24);
}
}
function finishedStep(which) {
var _local2 = this;
var _local6 = _local2.gameObj;
var _local4 = which + 1;
var _local3 = _local2.cycleDelay;
if (which < 4) {
_local3 = 100;
}
_local2.clip.gotoAndStop(100);
_local2.cycleInterval = setInterval(this, "trainTrigger", _local3, _local4);
_local2.currentStep = 0;
}
function pauseUpdate(msg) {
var _local2 = this;
if (msg == "pause") {
_local2.clip._visible = false;
} else if (msg == "unpause") {
_local2.clip._visible = true;
}
}
var currentStep = 1;
var switchToMode = "none";
var canDragTicket = false;
var cycleDelay = 600;
}
Symbol 3511 MovieClip [__Packages.roygame.models.HighScores] Frame 0
class roygame.models.HighScores
{
var scoresObject;
function HighScores (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.setupScreen();
}
function setupScreen() {
var _local2 = this;
var game = _local2.gameObj;
_local2.clip = game.clip.attachMovie("highscores", "highscores", 100000);
_local2.clip.board.continue_btn.onPress = function () {
game.nextLevel();
};
_local2.clip.board.quit_btn.onPress = function () {
game.quitGame();
};
game.soundEngine.switchMusic(5);
_local2.setupScores();
_local2.submitScore();
}
function setupScores() {
var _local2 = this;
var _local3 = _local2.gameObj;
}
function submitScore() {
}
function onScoresReceived(args) {
}
function setupScoresDisplay() {
var _local2 = this;
var _local11 = _local2.gameObj;
_local2.scoredisplaytype = "daily";
_local2.currentscores.drank = _local2.scoresObject.places.daily;
_local2.currentscores.wrank = _local2.scoresObject.places.weekly;
_local2.currentscores.mrank = _local2.scoresObject.places.monthly;
_local2.currentscores.arank = _local2.scoresObject.places.alltime;
var _local10 = _local2.parseScore(String(_local2.currentscores.pscore));
_local2.currentscores.pscore = _local10;
var _local3;
var _local4;
var _local9 = 10;
var _local6 = Math.min(scoresObject.daily.length, _local9);
var _local5 = Math.min(scoresObject.weekly.length, _local9);
var _local7 = Math.min(scoresObject.monthly.length, _local9);
var _local8 = Math.min(scoresObject.alltime.length, _local9);
_local4 = 0;
while (_local4 < _local6) {
_local3 = scoresObject.daily[_local4];
_local2.leaderboardtext.dnames = _local2.leaderboardtext.dnames + (_local3.name + newline);
_local2.leaderboardtext.dscores = _local2.leaderboardtext.dscores + (_local2.parseScore(_local3.score) + newline);
_local2.leaderboardtext.ddates = _local2.leaderboardtext.ddates + (_local2.parseTimestamp(_local3.timestamp) + newline);
_local4++;
}
_local4 = 0;
while (_local4 < _local5) {
_local3 = scoresObject.weekly[_local4];
_local2.leaderboardtext.wnames = _local2.leaderboardtext.wnames + (_local3.name + newline);
_local2.leaderboardtext.wscores = _local2.leaderboardtext.wscores + (_local2.parseScore(_local3.score) + newline);
_local2.leaderboardtext.wdates = _local2.leaderboardtext.wdates + (_local2.parseTimestamp(_local3.timestamp) + newline);
_local4++;
}
_local4 = 0;
while (_local4 < _local7) {
_local3 = scoresObject.monthly[_local4];
_local2.leaderboardtext.mnames = _local2.leaderboardtext.mnames + (_local3.name + newline);
_local2.leaderboardtext.mscores = _local2.leaderboardtext.mscores + (_local2.parseScore(_local3.score) + newline);
_local2.leaderboardtext.mdates = _local2.leaderboardtext.mdates + (_local2.parseTimestamp(_local3.timestamp) + newline);
_local4++;
}
_local4 = 0;
while (_local4 < _local8) {
_local3 = scoresObject.alltime[_local4];
_local2.leaderboardtext.anames = _local2.leaderboardtext.anames + (_local3.name + newline);
_local2.leaderboardtext.ascores = _local2.leaderboardtext.ascores + (_local2.parseScore(_local3.score) + newline);
_local2.leaderboardtext.adates = _local2.leaderboardtext.adates + (_local2.parseTimestamp(_local3.timestamp) + newline);
_local4++;
}
_local2.clip.board.viewboardMC.name_txt.text = _local2.leaderboardtext.dnames;
_local2.clip.board.viewboardMC.score_txt.text = _local2.leaderboardtext.dscores;
_local2.clip.board.viewboardMC.date_txt.text = _local2.leaderboardtext.ddates;
_local2.clip.board.viewboardMC.current.name_txt.text = _local2.currentscores.pname;
_local2.clip.board.viewboardMC.current.score_txt.text = _local2.currentscores.pscore;
_local2.clip.board.viewboardMC.current.rank_txt.text = _local2.currentscores.drank;
}
function switchScoreDisplay() {
var _local2 = this;
var _local3 = _local2.gameObj;
trace("Switching the score display to: " + _local2.scoredisplaytype);
if (_local2.scoredisplaytype == "daily") {
_local2.clip.board.viewboardMC.name_txt.text = _local2.leaderboardtext.dnames;
_local2.clip.board.viewboardMC.score_txt.text = _local2.leaderboardtext.dscores;
_local2.clip.board.viewboardMC.date_txt.text = _local2.leaderboardtext.ddates;
_local2.clip.board.viewboardMC.current.name_txt.text = _local2.currentscores.pname;
_local2.clip.board.viewboardMC.current.score_txt.text = _local2.currentscores.pscore;
_local2.clip.board.viewboardMC.current.rank_txt.text = _local2.currentscores.drank;
} else if (_local2.scoredisplaytype == "weekly") {
_local2.clip.board.viewboardMC.name_txt.text = _local2.leaderboardtext.wnames;
_local2.clip.board.viewboardMC.score_txt.text = _local2.leaderboardtext.wscores;
_local2.clip.board.viewboardMC.date_txt.text = _local2.leaderboardtext.wdates;
_local2.clip.board.viewboardMC.current.name_txt.text = _local2.currentscores.pname;
_local2.clip.board.viewboardMC.current.score_txt.text = _local2.currentscores.pscore;
_local2.clip.board.viewboardMC.current.rank_txt.text = _local2.currentscores.wrank;
} else if (_local2.scoredisplaytype == "monthly") {
_local2.clip.board.viewboardMC.name_txt.text = _local2.leaderboardtext.mnames;
_local2.clip.board.viewboardMC.score_txt.text = _local2.leaderboardtext.mscores;
_local2.clip.board.viewboardMC.date_txt.text = _local2.leaderboardtext.mdates;
_local2.clip.board.viewboardMC.current.name_txt.text = _local2.currentscores.pname;
_local2.clip.board.viewboardMC.current.score_txt.text = _local2.currentscores.pscore;
_local2.clip.board.viewboardMC.current.rank_txt.text = _local2.currentscores.mrank;
} else if (_local2.scoredisplaytype == "alltime") {
_local2.clip.board.viewboardMC.name_txt.text = _local2.leaderboardtext.anames;
_local2.clip.board.viewboardMC.score_txt.text = _local2.leaderboardtext.ascores;
_local2.clip.board.viewboardMC.date_txt.text = _local2.leaderboardtext.adates;
_local2.clip.board.viewboardMC.current.name_txt.text = _local2.currentscores.pname;
_local2.clip.board.viewboardMC.current.score_txt.text = _local2.currentscores.pscore;
_local2.clip.board.viewboardMC.current.rank_txt.text = _local2.currentscores.arank;
}
}
function parseScore(score) {
var _local4 = score / 100;
var _local2 = Math.floor(_local4);
var _local1 = score - (_local2 * 100);
var _local6 = _local1 / 100;
if (_local1 < 10) {
_local1 = "0" + _local1;
} else if (_local1 == 0) {
_local1 = "00";
}
var _local3 = (("$" + _local2) + ".") + _local1;
if (score <= 0) {
_local3 = " $0.00 ";
}
return(_local3);
}
function parseDate(date) {
var _local3;
var _local5 = date.slice(0, 2);
var _local1 = date.slice(2, 4);
var _local4 = date.slice(4);
var _local6 = [0, "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
var _local7 = _local6[parseInt(_local1)];
_local3 = (((_local1 + "/") + _local4) + "/") + _local5;
return(_local3);
}
function parseTimestamp(stamp) {
var _local4 = new Date(stamp);
var _local6 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
var _local3 = _local4.getYear() - 100;
var _local1 = _local4.getMonth() + 1;
var _local2 = _local4.getDate();
if (_local3 < 10) {
_local3 = String("0" + _local3);
}
if (_local1 < 10) {
_local1 = String("0" + _local1);
}
if (_local2 < 10) {
_local2 = String("0" + _local2);
}
var _local5 = String((((_local1 + "/") + _local2) + "/") + _local3);
return(_local5);
}
function pauseUpdate(msg) {
}
}
Symbol 3512 MovieClip [__Packages.roygame.models.HelpScreen] Frame 0
class roygame.models.HelpScreen
{
function HelpScreen (gameobj) {
var _local2 = this;
_local2.gameObj = gameobj;
_local2.gameclip = _local2.gameObj.clip;
_local2.setupScreen();
}
function switchScreens(which) {
var _local2 = this;
if (which < 1) {
} else {
if (which > _local2.maxscreens) {
which = 1;
}
_local2.currentscreen = which;
_local2.clip.board.gotoAndStop(which);
_local2.clip.board.fader.gotoAndPlay(1);
}
}
function setupScreen() {
var screen = this;
var gameObj = screen.gameObj;
screen.clip = screen.gameclip.attachMovie("helpscreen", "helpscreen", 50005);
screen.gameObj.soundEngine.switchMusic(0);
screen.clip.board.basics_btn.onPress = function () {
screen.switchScreens(2);
};
screen.clip.board.orders_btn.onPress = function () {
screen.switchScreens(3);
};
screen.clip.board.readingtickets_btn.onPress = function () {
screen.switchScreens(4);
};
screen.clip.board.movingtickets_btn.onPress = function () {
screen.switchScreens(5);
};
screen.clip.board.topping_btn.onPress = function () {
screen.switchScreens(6);
};
screen.clip.board.baking_btn.onPress = function () {
screen.switchScreens(7);
};
screen.clip.board.cutting_btn.onPress = function () {
screen.switchScreens(8);
};
screen.clip.board.finishing_btn.onPress = function () {
screen.switchScreens(9);
};
screen.clip.board.ranking_btn.onPress = function () {
screen.switchScreens(10);
};
screen.clip.board.customers_btn.onPress = function () {
screen.switchScreens(11);
};
screen.clip.board.rewards_btn.onPress = function () {
screen.switchScreens(12);
};
screen.clip.board.saving_btn.onPress = function () {
screen.switchScreens(13);
};
screen.clip.board.menustrip.next_btn.onPress = function () {
screen.switchScreens(screen.currentscreen + 1);
};
screen.clip.board.menustrip.prev_btn.onPress = function () {
screen.switchScreens(screen.currentscreen - 1);
};
screen.clip.board.menustrip.menu_btn.onPress = function () {
screen.switchScreens(1);
};
screen.clip.board.close_btn.onPress = function () {
gameObj.pauseManager.pauseGame();
};
screen.clip.buttonguard.onPress = function () {
};
screen.clip.buttonguard.useHandCursor = false;
}
function pauseUpdate(msg) {
}
var currentscreen = 1;
var maxscreens = 13;
}
Symbol 1597 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 1598 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 1599 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.126";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 1618 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 1619 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 1620 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 1621 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 1622 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 1623 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 1624 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 1625 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 1626 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 1627 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 1628 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.126";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 1629 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 1630 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 1631 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 1632 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 1633 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 1634 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 1635 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 1636 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 1637 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 191 MovieClip Frame 5
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 19
gotoAndPlay (7);
Symbol 233 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 1
stop();
Symbol 409 MovieClip [customer] Frame 1
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
mouth.clip.gotoAndStop(1);
fronthand.clip.gotoAndStop(1);
backhand.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 10
mouth.clip.gotoAndStop(1);
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
fronthand.clip.gotoAndStop(1);
backhand.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 15
back_shoe.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 20
back_shoe.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 22
back_shoe.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 23
back_shoe.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 30
front_shoe.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 35
front_shoe.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 37
front_shoe.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 38
front_shoe.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 40
if (this.myclass.isWalking) {
gotoAndPlay ("walk");
} else {
gotoAndPlay ("stand");
}
Symbol 409 MovieClip [customer] Frame 45
mouth.clip.gotoAndStop(1);
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
fronthand.clip.gotoAndStop(1);
backhand.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 78
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 79
eyes.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 81
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 82
eyes.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 217
mouth.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 219
mouth.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 227
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 228
eyes.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 230
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 231
eyes.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 263
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 264
eyes.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 266
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 267
eyes.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 306
mouth.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 311
mouth.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 322
gotoAndPlay ("stand");
Symbol 409 MovieClip [customer] Frame 323
eyes.clip.gotoAndStop(1);
fronthand.clip.gotoAndStop(1);
backhand.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 325
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 326
eyes.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 328
eyes.clip.gotoAndStop(2);
mouth.clip.gotoAndStop(15);
Symbol 409 MovieClip [customer] Frame 329
eyes.clip.gotoAndStop(1);
mouth.clip.gotoAndStop(15);
Symbol 409 MovieClip [customer] Frame 331
mouth.clip.gotoAndStop(16);
Symbol 409 MovieClip [customer] Frame 333
mouth.clip.gotoAndStop(16);
Symbol 409 MovieClip [customer] Frame 334
mouth.clip.gotoAndStop(21);
Symbol 409 MovieClip [customer] Frame 335
mouth.clip.gotoAndStop(20);
Symbol 409 MovieClip [customer] Frame 336
mouth.clip.gotoAndStop(15);
Symbol 409 MovieClip [customer] Frame 341
mouth.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 343
mouth.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 345
mouth.clip.gotoAndStop(8);
Symbol 409 MovieClip [customer] Frame 347
mouth.clip.gotoAndStop(15);
Symbol 409 MovieClip [customer] Frame 350
mouth.clip.gotoAndStop(16);
Symbol 409 MovieClip [customer] Frame 354
mouth.clip.gotoAndStop(15);
Symbol 409 MovieClip [customer] Frame 358
mouth.clip.gotoAndStop(18);
Symbol 409 MovieClip [customer] Frame 360
mouth.clip.gotoAndStop(20);
Symbol 409 MovieClip [customer] Frame 366
mouth.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 370
mouth.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 373
mouth.clip.gotoAndStop(19);
Symbol 409 MovieClip [customer] Frame 376
mouth.clip.gotoAndStop(15);
Symbol 409 MovieClip [customer] Frame 381
mouth.clip.gotoAndStop(16);
Symbol 409 MovieClip [customer] Frame 383
mouth.clip.gotoAndStop(21);
Symbol 409 MovieClip [customer] Frame 386
mouth.clip.gotoAndStop(20);
Symbol 409 MovieClip [customer] Frame 389
mouth.clip.gotoAndStop(5);
Symbol 409 MovieClip [customer] Frame 392
mouth.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 394
gotoAndPlay ("takeorder");
mouth.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 395
mouth.clip.gotoAndStop(1);
eyes.clip.gotoAndStop(1);
fronthand.clip.gotoAndStop(1);
backhand.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 408
mouth.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 434
stop();
Symbol 409 MovieClip [customer] Frame 435
mouth.clip.gotoAndStop(3);
eyes.clip.gotoAndStop(1);
fronthand.clip.gotoAndStop(1);
backhand.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 437
mouth.clip.gotoAndStop(1);
eyes.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 440
mouth.clip.gotoAndStop(16);
Symbol 409 MovieClip [customer] Frame 442
fronthand.clip.gotoAndStop(2);
backhand.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 443
mouth.clip.gotoAndStop(12);
Symbol 409 MovieClip [customer] Frame 445
mouth.clip.gotoAndStop(11);
eyes.clip.gotoAndStop(8);
Symbol 409 MovieClip [customer] Frame 481
stop();
mouth.clip.gotoAndStop(11);
eyes.clip.gotoAndStop(8);
fronthand.clip.gotoAndStop(2);
backhand.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 482
mouth.clip.gotoAndStop(3);
eyes.clip.gotoAndStop(1);
fronthand.clip.gotoAndStop(1);
backhand.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 488
mouth.clip.gotoAndStop(16);
Symbol 409 MovieClip [customer] Frame 491
backhand.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 494
backhand.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 500
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 501
eyes.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 503
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 504
eyes.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 528
stop();
Symbol 409 MovieClip [customer] Frame 529
mouth.clip.gotoAndStop(3);
eyes.clip.gotoAndStop(1);
fronthand.clip.gotoAndStop(1);
backhand.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 554
mouth.clip.gotoAndStop(7);
Symbol 409 MovieClip [customer] Frame 559
mouth.clip.gotoAndStop(8);
Symbol 409 MovieClip [customer] Frame 573
mouth.clip.gotoAndStop(7);
Symbol 409 MovieClip [customer] Frame 588
stop();
Symbol 409 MovieClip [customer] Frame 589
mouth.clip.gotoAndStop(3);
eyes.clip.gotoAndStop(1);
fronthand.clip.gotoAndStop(1);
backhand.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 596
mouth.clip.gotoAndStop(8);
Symbol 409 MovieClip [customer] Frame 599
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 600
eyes.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 601
mouth.clip.gotoAndStop(9);
Symbol 409 MovieClip [customer] Frame 602
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 603
eyes.clip.gotoAndStop(9);
Symbol 409 MovieClip [customer] Frame 628
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 629
eyes.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 631
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 632
eyes.clip.gotoAndStop(5);
Symbol 409 MovieClip [customer] Frame 633
mouth.clip.gotoAndStop(8);
Symbol 409 MovieClip [customer] Frame 666
stop();
Symbol 409 MovieClip [customer] Frame 667
mouth.clip.gotoAndStop(3);
eyes.clip.gotoAndStop(1);
fronthand.clip.gotoAndStop(1);
backhand.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 671
eyes.clip.gotoAndStop(2);
Symbol 409 MovieClip [customer] Frame 672
mouth.clip.gotoAndStop(8);
eyes.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 676
eyes.clip.gotoAndStop(7);
Symbol 409 MovieClip [customer] Frame 679
mouth.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 718
eyes.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 721
mouth.clip.gotoAndStop(20);
eyes.clip.gotoAndStop(10);
Symbol 409 MovieClip [customer] Frame 722
mouth.clip.gotoAndStop(19);
Symbol 409 MovieClip [customer] Frame 740
mouth.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 761
stop();
Symbol 409 MovieClip [customer] Frame 762
mouth.clip.gotoAndStop(3);
eyes.clip.gotoAndStop(1);
fronthand.clip.gotoAndStop(1);
backhand.clip.gotoAndStop(1);
Symbol 409 MovieClip [customer] Frame 767
mouth.clip.gotoAndStop(6);
eyes.clip.gotoAndStop(6);
Symbol 409 MovieClip [customer] Frame 805
eyes.clip.gotoAndStop(7);
Symbol 409 MovieClip [customer] Frame 806
eyes.clip.gotoAndStop(3);
Symbol 409 MovieClip [customer] Frame 808
eyes.clip.gotoAndStop(6);
Symbol 409 MovieClip [customer] Frame 816
stop();
Symbol 445 MovieClip Frame 1
stop();
Symbol 466 MovieClip [customerfile_screen] Frame 1
stop();
this.maincard.gotoAndStop(1);
Symbol 466 MovieClip [customerfile_screen] Frame 4
this.maincard.gotoAndStop(2);
Symbol 466 MovieClip [customerfile_screen] Frame 9
stop();
Symbol 466 MovieClip [customerfile_screen] Frame 16
this.maincard.gotoAndStop(1);
Symbol 466 MovieClip [customerfile_screen] Frame 21
this.gotoAndStop(1);
Symbol 474 MovieClip Frame 100
_root.game.newCustomerScreen.endAnimation();
stop();
Symbol 478 MovieClip Frame 21
stop();
Symbol 485 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 2
play();
Symbol 485 MovieClip Frame 28
stop();
Symbol 489 MovieClip [newcustomer_nopapa] Frame 86
_root.game.newCustomerScreen.endAnimation();
stop();
Symbol 525 MovieClip Frame 62
stop();
Symbol 549 MovieClip [startofday] Frame 113
_root.game.startDayScreen.endAnimation();
stop();
Symbol 557 MovieClip Frame 1
stop();
Symbol 557 MovieClip Frame 2
stop();
Symbol 570 MovieClip Frame 1
stop();
var inputname = _root.savedata.playername;
if (inputname == undefined) {
inputname = "";
}
input_txt.text = inputname;
input_txt.restrict = "A-Z a-z 0-9";
Selection.setFocus("input_txt");
Symbol 570 MovieClip Frame 2
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 2
_parent.play();
Symbol 576 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 2
_parent.play();
Symbol 580 MovieClip Frame 13
stop();
Symbol 610 Button
on (press) {
gotoAndStop ("weekly");
_parent.gotoAndPlay("change");
}
Symbol 611 Button
on (press) {
gotoAndStop ("monthly");
_parent.gotoAndPlay("change");
}
Symbol 612 Button
on (press) {
gotoAndStop ("alltime");
_parent.gotoAndPlay("change");
}
Symbol 613 Button
on (press) {
gotoAndStop ("daily");
_parent.gotoAndPlay("change");
}
Symbol 614 MovieClip Frame 2
_root.game.highScores.scoredisplaytype = "daily";
stop();
Symbol 614 MovieClip Frame 3
_root.game.highScores.scoredisplaytype = "weekly";
stop();
Symbol 614 MovieClip Frame 4
_root.game.highScores.scoredisplaytype = "monthly";
stop();
Symbol 614 MovieClip Frame 5
_root.game.highScores.scoredisplaytype = "alltime";
stop();
Symbol 615 MovieClip Frame 38
stop();
Symbol 615 MovieClip Frame 51
_root.game.highScores.switchScoreDisplay();
gotoAndPlay ("redraw");
Symbol 616 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 6
MochiAd.showTimedAd({id:"80669065c412741c", res:"500x300", clip:adbox2, ad_msec:6000, ad_timeout:12000});
stop();
Symbol 616 MovieClip Frame 12
stop();
_root.game.highScores.setupScoresDisplay();
Symbol 630 MovieClip Frame 1
stop();
Symbol 635 MovieClip Frame 14
stop();
Symbol 640 MovieClip Frame 14
stop();
Symbol 645 MovieClip Frame 14
stop();
Symbol 650 MovieClip Frame 14
stop();
Symbol 691 MovieClip Frame 47
stop();
_root.game.trainingManager.finishedStep(12);
Symbol 695 MovieClip Frame 130
stop();
_root.game.trainingManager.finishedStep(15);
Symbol 696 MovieClip Frame 130
Symbol 719 MovieClip Frame 41
stop();
_root.game.trainingManager.finishedStep(20);
Symbol 724 MovieClip [hud_navi] Frame 1
stop();
Symbol 731 MovieClip Frame 1
stop();
Symbol 731 MovieClip Frame 39
stop();
Symbol 732 MovieClip Frame 1
Symbol 732 MovieClip Frame 31
stop();
Symbol 732 MovieClip Frame 38
gotoAndStop (28);
Symbol 745 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 1
stop();
Symbol 758 MovieClip Frame 1
stop();
Symbol 764 MovieClip Frame 1
stop();
Symbol 769 MovieClip Frame 1
stop();
Symbol 776 MovieClip Frame 1
stop();
Symbol 777 MovieClip [topping] Frame 1
stop();
Symbol 783 MovieClip Frame 1
stop();
Symbol 788 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 15
stop();
Symbol 790 MovieClip [bubble] Frame 1
stop();
Symbol 807 MovieClip Frame 1
stop();
Symbol 807 MovieClip Frame 33
gotoAndStop (1);
Symbol 810 MovieClip Frame 1
stop();
Symbol 810 MovieClip Frame 19
stop();
Symbol 814 MovieClip Frame 10
stop();
Symbol 817 MovieClip Frame 10
stop();
Symbol 818 MovieClip Frame 1
stop();
Symbol 833 MovieClip Frame 1
stop();
Symbol 850 MovieClip Frame 1
Symbol 850 MovieClip Frame 77
stop();
Symbol 850 MovieClip Frame 94
stop();
Symbol 853 MovieClip Frame 1
stop();
Symbol 861 MovieClip Frame 1
stop();
Symbol 861 MovieClip Frame 71
stop();
Symbol 867 MovieClip Frame 1
stop();
Symbol 867 MovieClip Frame 71
stop();
Symbol 868 MovieClip Frame 1
stop();
Symbol 868 MovieClip Frame 2
play();
Symbol 868 MovieClip Frame 35
_root.game.soundEngine.playSound("boing.wav");
_root.game.giveOrderScreen.adjustJarCoins();
Symbol 868 MovieClip Frame 51
stop();
Symbol 870 MovieClip Frame 1
stop();
Symbol 870 MovieClip Frame 56
stop();
Symbol 877 MovieClip Frame 26
stop();
Symbol 878 MovieClip Frame 26
stop();
Symbol 879 MovieClip Frame 26
stop();
Symbol 880 MovieClip Frame 26
stop();
Symbol 881 MovieClip Frame 26
stop();
Symbol 882 MovieClip Frame 1
stop();
Symbol 888 MovieClip Frame 6
stop();
Symbol 892 MovieClip Frame 6
stop();
Symbol 911 MovieClip [ticket_line] Frame 1
stop();
Symbol 913 MovieClip [fader] Frame 1
guard_btn.useHandCursor = false;
Symbol 919 MovieClip Frame 1
stop();
Symbol 1001 MovieClip Frame 77
gotoAndPlay (19);
Symbol 1003 MovieClip Frame 1
stop();
Symbol 1006 MovieClip Frame 1
stop();
Symbol 1017 Button
on (rollOver) {
roller = 1;
if (this._currentframe == 1) {
gotoAndPlay (2);
}
}
on (rollOut, dragOut) {
roller = 0;
play();
}
Symbol 1046 MovieClip Frame 1
roller = 0;
stop();
Symbol 1046 MovieClip Frame 8
if (roller == 1) {
stop();
}
Symbol 1046 MovieClip Frame 9
if (roller == 1) {
gotoAndStop (8);
}
Symbol 1046 MovieClip Frame 10
if (roller == 1) {
gotoAndPlay (21);
}
Symbol 1046 MovieClip Frame 11
if (roller == 1) {
gotoAndPlay (20);
}
Symbol 1046 MovieClip Frame 12
if (roller == 1) {
gotoAndPlay (19);
}
Symbol 1046 MovieClip Frame 13
if (roller == 1) {
gotoAndPlay (18);
}
Symbol 1046 MovieClip Frame 14
if (roller == 1) {
gotoAndPlay (17);
}
Symbol 1046 MovieClip Frame 15
gotoAndStop (1);
Symbol 1046 MovieClip Frame 16
if (roller == 0) {
gotoAndStop (1);
}
Symbol 1046 MovieClip Frame 17
if (roller == 0) {
gotoAndPlay (14);
}
Symbol 1046 MovieClip Frame 18
if (roller == 0) {
gotoAndPlay (13);
}
Symbol 1046 MovieClip Frame 19
if (roller == 0) {
gotoAndPlay (12);
}
Symbol 1046 MovieClip Frame 20
if (roller == 0) {
gotoAndPlay (11);
}
Symbol 1046 MovieClip Frame 21
if (roller == 0) {
gotoAndPlay (10);
}
Symbol 1046 MovieClip Frame 22
gotoAndStop (8);
Symbol 1047 Button
on (rollOver) {
roller = 1;
if (this._currentframe == 1) {
gotoAndPlay (2);
}
}
on (rollOut, dragOut) {
roller = 0;
play();
}
Symbol 1076 MovieClip Frame 1
roller = 0;
stop();
Symbol 1076 MovieClip Frame 8
if (roller == 1) {
stop();
}
Symbol 1076 MovieClip Frame 9
if (roller == 1) {
gotoAndStop (8);
}
Symbol 1076 MovieClip Frame 10
if (roller == 1) {
gotoAndPlay (21);
}
Symbol 1076 MovieClip Frame 11
if (roller == 1) {
gotoAndPlay (20);
}
Symbol 1076 MovieClip Frame 12
if (roller == 1) {
gotoAndPlay (19);
}
Symbol 1076 MovieClip Frame 13
if (roller == 1) {
gotoAndPlay (18);
}
Symbol 1076 MovieClip Frame 14
if (roller == 1) {
gotoAndPlay (17);
}
Symbol 1076 MovieClip Frame 15
gotoAndStop (1);
Symbol 1076 MovieClip Frame 16
if (roller == 0) {
gotoAndStop (1);
}
Symbol 1076 MovieClip Frame 17
if (roller == 0) {
gotoAndPlay (14);
}
Symbol 1076 MovieClip Frame 18
if (roller == 0) {
gotoAndPlay (13);
}
Symbol 1076 MovieClip Frame 19
if (roller == 0) {
gotoAndPlay (12);
}
Symbol 1076 MovieClip Frame 20
if (roller == 0) {
gotoAndPlay (11);
}
Symbol 1076 MovieClip Frame 21
if (roller == 0) {
gotoAndPlay (10);
}
Symbol 1076 MovieClip Frame 22
gotoAndStop (8);
Symbol 1077 Button
on (rollOver) {
roller = 1;
if (this._currentframe == 1) {
gotoAndPlay (2);
}
}
on (rollOut, dragOut) {
roller = 0;
play();
}
Symbol 1106 MovieClip Frame 1
roller = 0;
stop();
Symbol 1106 MovieClip Frame 8
if (roller == 1) {
stop();
}
Symbol 1106 MovieClip Frame 9
if (roller == 1) {
gotoAndStop (8);
}
Symbol 1106 MovieClip Frame 10
if (roller == 1) {
gotoAndPlay (21);
}
Symbol 1106 MovieClip Frame 11
if (roller == 1) {
gotoAndPlay (20);
}
Symbol 1106 MovieClip Frame 12
if (roller == 1) {
gotoAndPlay (19);
}
Symbol 1106 MovieClip Frame 13
if (roller == 1) {
gotoAndPlay (18);
}
Symbol 1106 MovieClip Frame 14
if (roller == 1) {
gotoAndPlay (17);
}
Symbol 1106 MovieClip Frame 15
gotoAndStop (1);
Symbol 1106 MovieClip Frame 16
if (roller == 0) {
gotoAndStop (1);
}
Symbol 1106 MovieClip Frame 17
if (roller == 0) {
gotoAndPlay (14);
}
Symbol 1106 MovieClip Frame 18
if (roller == 0) {
gotoAndPlay (13);
}
Symbol 1106 MovieClip Frame 19
if (roller == 0) {
gotoAndPlay (12);
}
Symbol 1106 MovieClip Frame 20
if (roller == 0) {
gotoAndPlay (11);
}
Symbol 1106 MovieClip Frame 21
if (roller == 0) {
gotoAndPlay (10);
}
Symbol 1106 MovieClip Frame 22
gotoAndStop (8);
Symbol 1107 Button
on (rollOver) {
roller = 1;
if (this._currentframe == 1) {
gotoAndPlay (2);
}
}
on (rollOut, dragOut) {
roller = 0;
play();
}
Symbol 1136 MovieClip Frame 1
roller = 0;
stop();
Symbol 1136 MovieClip Frame 8
if (roller == 1) {
stop();
}
Symbol 1136 MovieClip Frame 9
if (roller == 1) {
gotoAndStop (8);
}
Symbol 1136 MovieClip Frame 10
if (roller == 1) {
gotoAndPlay (21);
}
Symbol 1136 MovieClip Frame 11
if (roller == 1) {
gotoAndPlay (20);
}
Symbol 1136 MovieClip Frame 12
if (roller == 1) {
gotoAndPlay (19);
}
Symbol 1136 MovieClip Frame 13
if (roller == 1) {
gotoAndPlay (18);
}
Symbol 1136 MovieClip Frame 14
if (roller == 1) {
gotoAndPlay (17);
}
Symbol 1136 MovieClip Frame 15
gotoAndStop (1);
Symbol 1136 MovieClip Frame 16
if (roller == 0) {
gotoAndStop (1);
}
Symbol 1136 MovieClip Frame 17
if (roller == 0) {
gotoAndPlay (14);
}
Symbol 1136 MovieClip Frame 18
if (roller == 0) {
gotoAndPlay (13);
}
Symbol 1136 MovieClip Frame 19
if (roller == 0) {
gotoAndPlay (12);
}
Symbol 1136 MovieClip Frame 20
if (roller == 0) {
gotoAndPlay (11);
}
Symbol 1136 MovieClip Frame 21
if (roller == 0) {
gotoAndPlay (10);
}
Symbol 1136 MovieClip Frame 22
gotoAndStop (8);
Symbol 1139 Button
on (rollOver) {
roller = 1;
if (this._currentframe == 1) {
gotoAndPlay (2);
}
}
on (rollOut, dragOut) {
roller = 0;
play();
}
Symbol 1168 MovieClip Frame 1
roller = 0;
stop();
Symbol 1168 MovieClip Frame 8
if (roller == 1) {
stop();
}
Symbol 1168 MovieClip Frame 9
if (roller == 1) {
gotoAndStop (8);
}
Symbol 1168 MovieClip Frame 10
if (roller == 1) {
gotoAndPlay (21);
}
Symbol 1168 MovieClip Frame 11
if (roller == 1) {
gotoAndPlay (20);
}
Symbol 1168 MovieClip Frame 12
if (roller == 1) {
gotoAndPlay (19);
}
Symbol 1168 MovieClip Frame 13
if (roller == 1) {
gotoAndPlay (18);
}
Symbol 1168 MovieClip Frame 14
if (roller == 1) {
gotoAndPlay (17);
}
Symbol 1168 MovieClip Frame 15
gotoAndStop (1);
Symbol 1168 MovieClip Frame 16
if (roller == 0) {
gotoAndStop (1);
}
Symbol 1168 MovieClip Frame 17
if (roller == 0) {
gotoAndPlay (14);
}
Symbol 1168 MovieClip Frame 18
if (roller == 0) {
gotoAndPlay (13);
}
Symbol 1168 MovieClip Frame 19
if (roller == 0) {
gotoAndPlay (12);
}
Symbol 1168 MovieClip Frame 20
if (roller == 0) {
gotoAndPlay (11);
}
Symbol 1168 MovieClip Frame 21
if (roller == 0) {
gotoAndPlay (10);
}
Symbol 1168 MovieClip Frame 22
gotoAndStop (8);
Symbol 1169 Button
on (rollOver) {
roller = 1;
if (this._currentframe == 1) {
gotoAndPlay (2);
}
}
on (rollOut, dragOut) {
roller = 0;
play();
}
Symbol 1198 MovieClip Frame 1
roller = 0;
stop();
Symbol 1198 MovieClip Frame 8
if (roller == 1) {
stop();
}
Symbol 1198 MovieClip Frame 9
if (roller == 1) {
gotoAndStop (8);
}
Symbol 1198 MovieClip Frame 10
if (roller == 1) {
gotoAndPlay (21);
}
Symbol 1198 MovieClip Frame 11
if (roller == 1) {
gotoAndPlay (20);
}
Symbol 1198 MovieClip Frame 12
if (roller == 1) {
gotoAndPlay (19);
}
Symbol 1198 MovieClip Frame 13
if (roller == 1) {
gotoAndPlay (18);
}
Symbol 1198 MovieClip Frame 14
if (roller == 1) {
gotoAndPlay (17);
}
Symbol 1198 MovieClip Frame 15
gotoAndStop (1);
Symbol 1198 MovieClip Frame 16
if (roller == 0) {
gotoAndStop (1);
}
Symbol 1198 MovieClip Frame 17
if (roller == 0) {
gotoAndPlay (14);
}
Symbol 1198 MovieClip Frame 18
if (roller == 0) {
gotoAndPlay (13);
}
Symbol 1198 MovieClip Frame 19
if (roller == 0) {
gotoAndPlay (12);
}
Symbol 1198 MovieClip Frame 20
if (roller == 0) {
gotoAndPlay (11);
}
Symbol 1198 MovieClip Frame 21
if (roller == 0) {
gotoAndPlay (10);
}
Symbol 1198 MovieClip Frame 22
gotoAndStop (8);
Symbol 1199 MovieClip Frame 1
stop();
Symbol 1203 Button
on (rollOver) {
roller = 1;
if (this._currentframe == 1) {
gotoAndPlay (2);
}
_root.game.hudObj.setTooltip("** Order Station **", true);
}
on (rollOut, dragOut) {
roller = 0;
play();
_root.game.hudObj.setLastTooltip();
}
Symbol 1232 MovieClip Frame 1
roller = 0;
stop();
Symbol 1232 MovieClip Frame 8
if (roller == 1) {
stop();
}
Symbol 1232 MovieClip Frame 9
if (roller == 1) {
gotoAndStop (8);
}
Symbol 1232 MovieClip Frame 10
if (roller == 1) {
gotoAndPlay (21);
}
Symbol 1232 MovieClip Frame 11
if (roller == 1) {
gotoAndPlay (20);
}
Symbol 1232 MovieClip Frame 12
if (roller == 1) {
gotoAndPlay (19);
}
Symbol 1232 MovieClip Frame 13
if (roller == 1) {
gotoAndPlay (18);
}
Symbol 1232 MovieClip Frame 14
if (roller == 1) {
gotoAndPlay (17);
}
Symbol 1232 MovieClip Frame 15
gotoAndStop (1);
Symbol 1232 MovieClip Frame 16
if (roller == 0) {
gotoAndStop (1);
}
Symbol 1232 MovieClip Frame 17
if (roller == 0) {
gotoAndPlay (14);
}
Symbol 1232 MovieClip Frame 18
if (roller == 0) {
gotoAndPlay (13);
}
Symbol 1232 MovieClip Frame 19
if (roller == 0) {
gotoAndPlay (12);
}
Symbol 1232 MovieClip Frame 20
if (roller == 0) {
gotoAndPlay (11);
}
Symbol 1232 MovieClip Frame 21
if (roller == 0) {
gotoAndPlay (10);
}
Symbol 1232 MovieClip Frame 22
gotoAndStop (8);
Symbol 1235 Button
on (rollOver) {
roller = 1;
if (this._currentframe == 1) {
gotoAndPlay (2);
}
_root.game.hudObj.setTooltip("** Topping Station **", true);
}
on (rollOut, dragOut) {
roller = 0;
play();
_root.game.hudObj.setLastTooltip();
}
Symbol 1264 MovieClip Frame 1
roller = 0;
stop();
Symbol 1264 MovieClip Frame 8
if (roller == 1) {
stop();
}
Symbol 1264 MovieClip Frame 9
if (roller == 1) {
gotoAndStop (8);
}
Symbol 1264 MovieClip Frame 10
if (roller == 1) {
gotoAndPlay (21);
}
Symbol 1264 MovieClip Frame 11
if (roller == 1) {
gotoAndPlay (20);
}
Symbol 1264 MovieClip Frame 12
if (roller == 1) {
gotoAndPlay (19);
}
Symbol 1264 MovieClip Frame 13
if (roller == 1) {
gotoAndPlay (18);
}
Symbol 1264 MovieClip Frame 14
if (roller == 1) {
gotoAndPlay (17);
}
Symbol 1264 MovieClip Frame 15
gotoAndStop (1);
Symbol 1264 MovieClip Frame 16
if (roller == 0) {
gotoAndStop (1);
}
Symbol 1264 MovieClip Frame 17
if (roller == 0) {
gotoAndPlay (14);
}
Symbol 1264 MovieClip Frame 18
if (roller == 0) {
gotoAndPlay (13);
}
Symbol 1264 MovieClip Frame 19
if (roller == 0) {
gotoAndPlay (12);
}
Symbol 1264 MovieClip Frame 20
if (roller == 0) {
gotoAndPlay (11);
}
Symbol 1264 MovieClip Frame 21
if (roller == 0) {
gotoAndPlay (10);
}
Symbol 1264 MovieClip Frame 22
gotoAndStop (8);
Symbol 1267 Button
on (rollOver) {
roller = 1;
if (this._currentframe == 1) {
gotoAndPlay (2);
}
_root.game.hudObj.setTooltip("** Baking Station **", true);
}
on (rollOut, dragOut) {
roller = 0;
play();
_root.game.hudObj.setLastTooltip();
}
Symbol 1296 MovieClip Frame 1
roller = 0;
stop();
Symbol 1296 MovieClip Frame 8
if (roller == 1) {
stop();
}
Symbol 1296 MovieClip Frame 9
if (roller == 1) {
gotoAndStop (8);
}
Symbol 1296 MovieClip Frame 10
if (roller == 1) {
gotoAndPlay (21);
}
Symbol 1296 MovieClip Frame 11
if (roller == 1) {
gotoAndPlay (20);
}
Symbol 1296 MovieClip Frame 12
if (roller == 1) {
gotoAndPlay (19);
}
Symbol 1296 MovieClip Frame 13
if (roller == 1) {
gotoAndPlay (18);
}
Symbol 1296 MovieClip Frame 14
if (roller == 1) {
gotoAndPlay (17);
}
Symbol 1296 MovieClip Frame 15
gotoAndStop (1);
Symbol 1296 MovieClip Frame 16
if (roller == 0) {
gotoAndStop (1);
}
Symbol 1296 MovieClip Frame 17
if (roller == 0) {
gotoAndPlay (14);
}
Symbol 1296 MovieClip Frame 18
if (roller == 0) {
gotoAndPlay (13);
}
Symbol 1296 MovieClip Frame 19
if (roller == 0) {
gotoAndPlay (12);
}
Symbol 1296 MovieClip Frame 20
if (roller == 0) {
gotoAndPlay (11);
}
Symbol 1296 MovieClip Frame 21
if (roller == 0) {
gotoAndPlay (10);
}
Symbol 1296 MovieClip Frame 22
gotoAndStop (8);
Symbol 1299 Button
on (rollOver) {
roller = 1;
if (this._currentframe == 1) {
gotoAndPlay (2);
}
_root.game.hudObj.setTooltip("** Cutting Station **", true);
}
on (rollOut, dragOut) {
roller = 0;
play();
_root.game.hudObj.setLastTooltip();
}
Symbol 1328 MovieClip Frame 1
roller = 0;
stop();
Symbol 1328 MovieClip Frame 8
if (roller == 1) {
stop();
}
Symbol 1328 MovieClip Frame 9
if (roller == 1) {
gotoAndStop (8);
}
Symbol 1328 MovieClip Frame 10
if (roller == 1) {
gotoAndPlay (21);
}
Symbol 1328 MovieClip Frame 11
if (roller == 1) {
gotoAndPlay (20);
}
Symbol 1328 MovieClip Frame 12
if (roller == 1) {
gotoAndPlay (19);
}
Symbol 1328 MovieClip Frame 13
if (roller == 1) {
gotoAndPlay (18);
}
Symbol 1328 MovieClip Frame 14
if (roller == 1) {
gotoAndPlay (17);
}
Symbol 1328 MovieClip Frame 15
gotoAndStop (1);
Symbol 1328 MovieClip Frame 16
if (roller == 0) {
gotoAndStop (1);
}
Symbol 1328 MovieClip Frame 17
if (roller == 0) {
gotoAndPlay (14);
}
Symbol 1328 MovieClip Frame 18
if (roller == 0) {
gotoAndPlay (13);
}
Symbol 1328 MovieClip Frame 19
if (roller == 0) {
gotoAndPlay (12);
}
Symbol 1328 MovieClip Frame 20
if (roller == 0) {
gotoAndPlay (11);
}
Symbol 1328 MovieClip Frame 21
if (roller == 0) {
gotoAndPlay (10);
}
Symbol 1328 MovieClip Frame 22
gotoAndStop (8);
Symbol 1333 MovieClip Frame 1
stop();
Symbol 1333 MovieClip Frame 2
play();
Symbol 1333 MovieClip Frame 10
gotoAndStop (1);
Symbol 1387 MovieClip Frame 1
stop();
Symbol 1398 MovieClip Frame 1
stop();
Symbol 1398 MovieClip Frame 15
this.buttonguard.useHandCursor = false;
stop();
Symbol 1420 MovieClip Frame 8
stop();
Symbol 1420 MovieClip Frame 59
stop();
Symbol 1420 MovieClip Frame 128
stop();
Symbol 1420 MovieClip Frame 206
stop();
Symbol 1420 MovieClip Frame 289
stop();
Symbol 1420 MovieClip Frame 369
stop();
Symbol 1420 MovieClip Frame 404
stop();
Symbol 1420 MovieClip Frame 445
stop();
Symbol 1423 MovieClip Frame 1
stop();
Symbol 1423 MovieClip Frame 12
stop();
Symbol 1423 MovieClip Frame 22
stop();
Symbol 1426 MovieClip Frame 1
stop();
Symbol 1426 MovieClip Frame 82
stop();
Symbol 1426 MovieClip Frame 92
stop();
Symbol 1430 MovieClip Frame 1
stop();
Symbol 1430 MovieClip Frame 71
stop();
Symbol 1430 MovieClip Frame 81
stop();
Symbol 1433 MovieClip Frame 1
stop();
Symbol 1433 MovieClip Frame 98
_root.game.soundEngine.playSound("cash.wav");
Symbol 1433 MovieClip Frame 110
stop();
Symbol 1433 MovieClip Frame 120
stop();
Symbol 1441 MovieClip Frame 1
stop();
Symbol 1441 MovieClip Frame 30
stop();
Symbol 1462 MovieClip Frame 1
stop();
Symbol 1463 MovieClip Frame 1
stop();
Symbol 1467 MovieClip Frame 1
stop();
Symbol 1467 MovieClip Frame 19
stop();
Symbol 1472 MovieClip Frame 1
stop();
Symbol 1472 MovieClip Frame 17
stop();
Symbol 1478 MovieClip Frame 1
stop();
Symbol 1478 MovieClip Frame 21
stop();
Symbol 1526 MovieClip Frame 30
stop();
Symbol 1527 MovieClip [endofday] Frame 1
stop();
Symbol 1527 MovieClip [endofday] Frame 34
stop();
Symbol 1532 MovieClip Frame 66
stop();
Symbol 1553 MovieClip Frame 25
stop();
Symbol 1553 MovieClip Frame 38
gotoAndStop (1);
Symbol 1557 Button
on (press) {
play();
}
Symbol 1558 MovieClip Frame 1
stop();
Symbol 1558 MovieClip Frame 19
stop();
Symbol 1558 MovieClip Frame 30
stop();
_root.game.menuShowButtons();
Symbol 1562 MovieClip Frame 1
stop();
Symbol 1562 MovieClip Frame 19
stop();
Symbol 1562 MovieClip Frame 30
stop();
_root.game.menuShowButtons();
Symbol 1590 MovieClip Frame 1
stop();
Symbol 1590 MovieClip Frame 45
stop();
Symbol 1602 MovieClip [Defaults] Frame 1
#initclip 91
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 1603 MovieClip [UIObjectExtensions] Frame 1
#initclip 92
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 1604 MovieClip [UIObject] Frame 1
#initclip 93
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 1605 MovieClip [Border] Frame 1
#initclip 94
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 1606 MovieClip [RectBorder] Frame 1
#initclip 95
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 1609 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 1610 MovieClip Frame 1
#initclip 96
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 1613 MovieClip [FocusRect] Frame 1
#initclip 97
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 1614 MovieClip [FocusManager] Frame 1
#initclip 98
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 1615 MovieClip [UIComponentExtensions] Frame 1
#initclip 99
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 1616 MovieClip [UIComponent] Frame 1
#initclip 100
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 1617 MovieClip [TextInput] Frame 1
#initclip 101
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Instance of Symbol 1617 MovieClip [TextInput] "name_ti" in Symbol 1643 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "Enter Name";
maxChars = 0;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1644 MovieClip [mainmenu] Frame 1
stop();
Symbol 1663 MovieClip Frame 1
stop();
Symbol 1678 MovieClip Frame 1
stop();
Symbol 1744 MovieClip [customer2_hand] Frame 1
stop();
Symbol 1748 MovieClip [customer2_hand2] Frame 1
stop();
Symbol 1761 MovieClip [customer1_hand] Frame 1
stop();
Symbol 1765 MovieClip [customer1_hand2] Frame 1
stop();
Symbol 1785 MovieClip [customer3_foot] Frame 1
stop();
Symbol 1824 MovieClip [customer3_model] Frame 1
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
mouth.clip.gotoAndStop(1);
Symbol 1824 MovieClip [customer3_model] Frame 10
mouth.clip.gotoAndStop(1);
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
Symbol 1824 MovieClip [customer3_model] Frame 15
back_shoe.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 20
back_shoe.clip.gotoAndStop(3);
Symbol 1824 MovieClip [customer3_model] Frame 22
back_shoe.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 23
back_shoe.clip.gotoAndStop(1);
Symbol 1824 MovieClip [customer3_model] Frame 30
front_shoe.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 35
front_shoe.clip.gotoAndStop(3);
Symbol 1824 MovieClip [customer3_model] Frame 37
front_shoe.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 38
front_shoe.clip.gotoAndStop(1);
Symbol 1824 MovieClip [customer3_model] Frame 40
Symbol 1824 MovieClip [customer3_model] Frame 45
mouth.clip.gotoAndStop(1);
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
Symbol 1824 MovieClip [customer3_model] Frame 78
eyes.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 79
eyes.clip.gotoAndStop(3);
Symbol 1824 MovieClip [customer3_model] Frame 81
eyes.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 82
eyes.clip.gotoAndStop(1);
Symbol 1824 MovieClip [customer3_model] Frame 217
mouth.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 219
mouth.clip.gotoAndStop(3);
Symbol 1824 MovieClip [customer3_model] Frame 227
eyes.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 228
eyes.clip.gotoAndStop(3);
Symbol 1824 MovieClip [customer3_model] Frame 230
eyes.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 231
eyes.clip.gotoAndStop(1);
Symbol 1824 MovieClip [customer3_model] Frame 263
eyes.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 264
eyes.clip.gotoAndStop(3);
Symbol 1824 MovieClip [customer3_model] Frame 266
eyes.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 267
eyes.clip.gotoAndStop(1);
Symbol 1824 MovieClip [customer3_model] Frame 306
mouth.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 311
mouth.clip.gotoAndStop(1);
Symbol 1824 MovieClip [customer3_model] Frame 322
Symbol 1824 MovieClip [customer3_model] Frame 323
eyes.clip.gotoAndStop(1);
Symbol 1824 MovieClip [customer3_model] Frame 325
eyes.clip.gotoAndStop(2);
Symbol 1824 MovieClip [customer3_model] Frame 326
eyes.clip.gotoAndStop(3);
Symbol 1824 MovieClip [customer3_model] Frame 328
eyes.clip.gotoAndStop(2);
mouth.clip.gotoAndStop(15);
Symbol 1824 MovieClip [customer3_model] Frame 329
eyes.clip.gotoAndStop(1);
mouth.clip.gotoAndStop(15);
Symbol 1824 MovieClip [customer3_model] Frame 331
mouth.clip.gotoAndStop(16);
Symbol 1824 MovieClip [customer3_model] Frame 333
mouth.clip.gotoAndStop(16);
Symbol 1824 MovieClip [customer3_model] Frame 334
mouth.clip.gotoAndStop(16);
Symbol 1824 MovieClip [customer3_model] Frame 335
mouth.clip.gotoAndStop(15);
Symbol 1824 MovieClip [customer3_model] Frame 336
mouth.clip.gotoAndStop(15);
Symbol 1824 MovieClip [customer3_model] Frame 341
mouth.clip.gotoAndStop(1);
Symbol 1824 MovieClip [customer3_model] Frame 343
mouth.clip.gotoAndStop(3);
Symbol 1824 MovieClip [customer3_model] Frame 345
mouth.clip.gotoAndStop(8);
Symbol 1824 MovieClip [customer3_model] Frame 347
mouth.clip.gotoAndStop(15);
Symbol 1824 MovieClip [customer3_model] Frame 350
mouth.clip.gotoAndStop(16);
Symbol 1824 MovieClip [customer3_model] Frame 354
mouth.clip.gotoAndStop(15);
Symbol 1824 MovieClip [customer3_model] Frame 358
mouth.clip.gotoAndStop(18);
Symbol 1824 MovieClip [customer3_model] Frame 360
mouth.clip.gotoAndStop(20);
Symbol 1824 MovieClip [customer3_model] Frame 366
mouth.clip.gotoAndStop(3);
Symbol 1824 MovieClip [customer3_model] Frame 370
mouth.clip.gotoAndStop(3);
Symbol 1824 MovieClip [customer3_model] Frame 373
mouth.clip.gotoAndStop(19);
Symbol 1824 MovieClip [customer3_model] Frame 376
mouth.clip.gotoAndStop(15);
Symbol 1824 MovieClip [customer3_model] Frame 381
mouth.clip.gotoAndStop(16);
Symbol 1824 MovieClip [customer3_model] Frame 383
mouth.clip.gotoAndStop(21);
Symbol 1824 MovieClip [customer3_model] Frame 386
mouth.clip.gotoAndStop(20);
Symbol 1824 MovieClip [customer3_model] Frame 389
mouth.clip.gotoAndStop(5);
Symbol 1824 MovieClip [customer3_model] Frame 392
mouth.clip.gotoAndStop(3);
Symbol 1824 MovieClip [customer3_model] Frame 394
gotoAndPlay ("takeorder");
mouth.clip.gotoAndStop(1);
Symbol 1848 MovieClip [customer4_hand] Frame 1
stop();
Symbol 1852 MovieClip [customer4_hand2] Frame 1
stop();
Symbol 1870 MovieClip [customer4_model] Frame 40
if (this.myclass.isWalking) {
gotoAndPlay ("walk");
} else {
gotoAndPlay ("stand");
}
Symbol 1870 MovieClip [customer4_model] Frame 322
gotoAndPlay ("stand");
Symbol 1870 MovieClip [customer4_model] Frame 394
gotoAndPlay ("takeorder");
Symbol 1888 MovieClip [customer6_hand] Frame 1
stop();
Symbol 1892 MovieClip [customer6_hand2] Frame 1
stop();
Symbol 1922 MovieClip [customer7_hand] Frame 1
stop();
Symbol 1926 MovieClip [customer7_hand2] Frame 1
stop();
Symbol 1960 MovieClip [customer9_foot] Frame 1
stop();
Symbol 2003 MovieClip [customer8_foot] Frame 1
stop();
Symbol 2049 MovieClip [customer11_foot] Frame 1
stop();
Symbol 2091 MovieClip [customer10_hand] Frame 1
stop();
Symbol 2095 MovieClip [customer10_hand2] Frame 1
stop();
Symbol 2128 MovieClip [customer12_hand] Frame 1
stop();
Symbol 2132 MovieClip [customer12_hand2] Frame 1
stop();
Symbol 2148 MovieClip [enemyhit] Frame 11
this.removeMovieClip();
Symbol 2172 MovieClip [customer14_hand] Frame 1
stop();
Symbol 2176 MovieClip [customer14_hand2] Frame 1
stop();
Symbol 2207 MovieClip [customer15_hand] Frame 1
stop();
Symbol 2211 MovieClip [customer15_hand2] Frame 1
stop();
Symbol 2245 MovieClip [customer16_hand] Frame 1
stop();
Symbol 2249 MovieClip [customer16_hand2] Frame 1
stop();
Symbol 2288 MovieClip [customer18_hand] Frame 1
stop();
Symbol 2292 MovieClip [customer18_hand2] Frame 1
stop();
Symbol 2326 MovieClip [customer19_foot] Frame 1
stop();
Symbol 2381 MovieClip [customer20_hand] Frame 1
stop();
Symbol 2385 MovieClip [customer20_hand2] Frame 1
stop();
Symbol 2417 MovieClip [customer21_foot] Frame 1
stop();
Symbol 2459 MovieClip [customer23_foot] Frame 1
stop();
Symbol 2521 MovieClip [customer24_hand] Frame 1
stop();
Symbol 2525 MovieClip [customer24_hand2] Frame 1
stop();
Symbol 2563 MovieClip [customer25_hand] Frame 1
stop();
Symbol 2567 MovieClip [customer25_hand2] Frame 1
stop();
Symbol 2609 MovieClip [customer26_hand] Frame 1
stop();
Symbol 2614 MovieClip [customer26_hand2] Frame 1
stop();
Symbol 2650 MovieClip [customer27_foot] Frame 1
stop();
Symbol 2701 MovieClip [customer28_hand] Frame 1
stop();
Symbol 2705 MovieClip [customer28_hand2] Frame 1
stop();
Symbol 2749 MovieClip [customer29_hand] Frame 1
stop();
Symbol 2753 MovieClip [customer29_hand2] Frame 1
stop();
Symbol 2788 MovieClip [customer5_hand2] Frame 1
stop();
Symbol 2791 MovieClip [customer5_hand] Frame 1
stop();
Symbol 2853 MovieClip Frame 10
stop();
Symbol 2930 MovieClip [intro_master] Frame 1171
stop();
_root.game.endIntro();
Symbol 2948 MovieClip [customer31_foot] Frame 1
stop();
Symbol 2955 MovieClip [customer31_hand] Frame 1
stop();
Symbol 2959 MovieClip [customer31_hand2] Frame 1
stop();
Symbol 2993 MovieClip [customer32_foot] Frame 1
stop();
Symbol 2999 MovieClip [customer32_hand] Frame 1
stop();
Symbol 3003 MovieClip [customer32_hand2] Frame 1
stop();
Symbol 3035 MovieClip [customer33_foot] Frame 1
stop();
Symbol 3042 MovieClip [customer33_hand] Frame 1
stop();
Symbol 3046 MovieClip [customer33_hand2] Frame 1
stop();
Symbol 3062 MovieClip [customer33_model] Frame 40
if (this.myclass.isWalking) {
gotoAndPlay ("walk");
} else {
gotoAndPlay ("stand");
}
Symbol 3062 MovieClip [customer33_model] Frame 322
gotoAndPlay ("stand");
Symbol 3062 MovieClip [customer33_model] Frame 394
gotoAndPlay ("takeorder");
Symbol 3083 MovieClip [customer34_foot] Frame 1
stop();
Symbol 3123 MovieClip [customer5_model] Frame 40
if (this.myclass.isWalking) {
gotoAndPlay ("walk");
} else {
gotoAndPlay ("stand");
}
Symbol 3123 MovieClip [customer5_model] Frame 322
gotoAndPlay ("stand");
Symbol 3123 MovieClip [customer5_model] Frame 394
gotoAndPlay ("takeorder");
Symbol 3144 MovieClip [customer13_foot] Frame 1
stop();
Symbol 3186 MovieClip [customer13_model] Frame 1
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
mouth.clip.gotoAndStop(1);
Symbol 3186 MovieClip [customer13_model] Frame 10
mouth.clip.gotoAndStop(1);
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
Symbol 3186 MovieClip [customer13_model] Frame 15
back_shoe.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 20
back_shoe.clip.gotoAndStop(3);
Symbol 3186 MovieClip [customer13_model] Frame 22
back_shoe.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 23
back_shoe.clip.gotoAndStop(1);
Symbol 3186 MovieClip [customer13_model] Frame 30
front_shoe.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 35
front_shoe.clip.gotoAndStop(3);
Symbol 3186 MovieClip [customer13_model] Frame 37
front_shoe.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 38
front_shoe.clip.gotoAndStop(1);
Symbol 3186 MovieClip [customer13_model] Frame 40
Symbol 3186 MovieClip [customer13_model] Frame 45
mouth.clip.gotoAndStop(1);
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
Symbol 3186 MovieClip [customer13_model] Frame 78
eyes.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 79
eyes.clip.gotoAndStop(3);
Symbol 3186 MovieClip [customer13_model] Frame 81
eyes.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 82
eyes.clip.gotoAndStop(1);
Symbol 3186 MovieClip [customer13_model] Frame 217
mouth.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 219
mouth.clip.gotoAndStop(3);
Symbol 3186 MovieClip [customer13_model] Frame 227
eyes.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 228
eyes.clip.gotoAndStop(3);
Symbol 3186 MovieClip [customer13_model] Frame 230
eyes.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 231
eyes.clip.gotoAndStop(1);
Symbol 3186 MovieClip [customer13_model] Frame 263
eyes.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 264
eyes.clip.gotoAndStop(3);
Symbol 3186 MovieClip [customer13_model] Frame 266
eyes.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 267
eyes.clip.gotoAndStop(1);
Symbol 3186 MovieClip [customer13_model] Frame 306
mouth.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 311
mouth.clip.gotoAndStop(1);
Symbol 3186 MovieClip [customer13_model] Frame 322
Symbol 3186 MovieClip [customer13_model] Frame 323
eyes.clip.gotoAndStop(1);
Symbol 3186 MovieClip [customer13_model] Frame 325
eyes.clip.gotoAndStop(2);
Symbol 3186 MovieClip [customer13_model] Frame 326
eyes.clip.gotoAndStop(3);
Symbol 3186 MovieClip [customer13_model] Frame 328
eyes.clip.gotoAndStop(2);
mouth.clip.gotoAndStop(15);
Symbol 3186 MovieClip [customer13_model] Frame 329
eyes.clip.gotoAndStop(1);
mouth.clip.gotoAndStop(15);
Symbol 3186 MovieClip [customer13_model] Frame 331
mouth.clip.gotoAndStop(16);
Symbol 3186 MovieClip [customer13_model] Frame 333
mouth.clip.gotoAndStop(16);
Symbol 3186 MovieClip [customer13_model] Frame 334
mouth.clip.gotoAndStop(16);
Symbol 3186 MovieClip [customer13_model] Frame 335
mouth.clip.gotoAndStop(15);
Symbol 3186 MovieClip [customer13_model] Frame 336
mouth.clip.gotoAndStop(15);
Symbol 3186 MovieClip [customer13_model] Frame 341
mouth.clip.gotoAndStop(1);
Symbol 3186 MovieClip [customer13_model] Frame 343
mouth.clip.gotoAndStop(3);
Symbol 3186 MovieClip [customer13_model] Frame 345
mouth.clip.gotoAndStop(8);
Symbol 3186 MovieClip [customer13_model] Frame 347
mouth.clip.gotoAndStop(15);
Symbol 3186 MovieClip [customer13_model] Frame 350
mouth.clip.gotoAndStop(16);
Symbol 3186 MovieClip [customer13_model] Frame 354
mouth.clip.gotoAndStop(15);
Symbol 3186 MovieClip [customer13_model] Frame 358
mouth.clip.gotoAndStop(18);
Symbol 3186 MovieClip [customer13_model] Frame 360
mouth.clip.gotoAndStop(20);
Symbol 3186 MovieClip [customer13_model] Frame 366
mouth.clip.gotoAndStop(3);
Symbol 3186 MovieClip [customer13_model] Frame 370
mouth.clip.gotoAndStop(3);
Symbol 3186 MovieClip [customer13_model] Frame 373
mouth.clip.gotoAndStop(19);
Symbol 3186 MovieClip [customer13_model] Frame 376
mouth.clip.gotoAndStop(15);
Symbol 3186 MovieClip [customer13_model] Frame 381
mouth.clip.gotoAndStop(16);
Symbol 3186 MovieClip [customer13_model] Frame 383
mouth.clip.gotoAndStop(21);
Symbol 3186 MovieClip [customer13_model] Frame 386
mouth.clip.gotoAndStop(20);
Symbol 3186 MovieClip [customer13_model] Frame 389
mouth.clip.gotoAndStop(5);
Symbol 3186 MovieClip [customer13_model] Frame 392
mouth.clip.gotoAndStop(3);
Symbol 3186 MovieClip [customer13_model] Frame 394
gotoAndPlay ("takeorder");
mouth.clip.gotoAndStop(1);
Symbol 3206 MovieClip [customer17_foot] Frame 1
stop();
Symbol 3233 MovieClip [customer17_model] Frame 1
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
mouth.clip.gotoAndStop(1);
Symbol 3233 MovieClip [customer17_model] Frame 10
mouth.clip.gotoAndStop(1);
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
Symbol 3233 MovieClip [customer17_model] Frame 15
back_shoe.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 20
back_shoe.clip.gotoAndStop(3);
Symbol 3233 MovieClip [customer17_model] Frame 22
back_shoe.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 23
back_shoe.clip.gotoAndStop(1);
Symbol 3233 MovieClip [customer17_model] Frame 30
front_shoe.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 35
front_shoe.clip.gotoAndStop(3);
Symbol 3233 MovieClip [customer17_model] Frame 37
front_shoe.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 38
front_shoe.clip.gotoAndStop(1);
Symbol 3233 MovieClip [customer17_model] Frame 40
Symbol 3233 MovieClip [customer17_model] Frame 45
mouth.clip.gotoAndStop(1);
eyes.clip.gotoAndStop(1);
front_shoe.clip.gotoAndStop(1);
back_shoe.clip.gotoAndStop(1);
Symbol 3233 MovieClip [customer17_model] Frame 78
eyes.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 79
eyes.clip.gotoAndStop(3);
Symbol 3233 MovieClip [customer17_model] Frame 81
eyes.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 82
eyes.clip.gotoAndStop(1);
Symbol 3233 MovieClip [customer17_model] Frame 217
mouth.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 219
mouth.clip.gotoAndStop(3);
Symbol 3233 MovieClip [customer17_model] Frame 227
eyes.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 228
eyes.clip.gotoAndStop(3);
Symbol 3233 MovieClip [customer17_model] Frame 230
eyes.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 231
eyes.clip.gotoAndStop(1);
Symbol 3233 MovieClip [customer17_model] Frame 263
eyes.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 264
eyes.clip.gotoAndStop(3);
Symbol 3233 MovieClip [customer17_model] Frame 266
eyes.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 267
eyes.clip.gotoAndStop(1);
Symbol 3233 MovieClip [customer17_model] Frame 306
mouth.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 311
mouth.clip.gotoAndStop(1);
Symbol 3233 MovieClip [customer17_model] Frame 322
Symbol 3233 MovieClip [customer17_model] Frame 323
eyes.clip.gotoAndStop(1);
Symbol 3233 MovieClip [customer17_model] Frame 325
eyes.clip.gotoAndStop(2);
Symbol 3233 MovieClip [customer17_model] Frame 326
eyes.clip.gotoAndStop(3);
Symbol 3233 MovieClip [customer17_model] Frame 328
eyes.clip.gotoAndStop(2);
mouth.clip.gotoAndStop(15);
Symbol 3233 MovieClip [customer17_model] Frame 329
eyes.clip.gotoAndStop(1);
mouth.clip.gotoAndStop(15);
Symbol 3233 MovieClip [customer17_model] Frame 331
mouth.clip.gotoAndStop(16);
Symbol 3233 MovieClip [customer17_model] Frame 333
mouth.clip.gotoAndStop(16);
Symbol 3233 MovieClip [customer17_model] Frame 334
mouth.clip.gotoAndStop(16);
Symbol 3233 MovieClip [customer17_model] Frame 335
mouth.clip.gotoAndStop(15);
Symbol 3233 MovieClip [customer17_model] Frame 336
mouth.clip.gotoAndStop(15);
Symbol 3233 MovieClip [customer17_model] Frame 341
mouth.clip.gotoAndStop(1);
Symbol 3233 MovieClip [customer17_model] Frame 343
mouth.clip.gotoAndStop(3);
Symbol 3233 MovieClip [customer17_model] Frame 345
mouth.clip.gotoAndStop(8);
Symbol 3233 MovieClip [customer17_model] Frame 347
mouth.clip.gotoAndStop(15);
Symbol 3233 MovieClip [customer17_model] Frame 350
mouth.clip.gotoAndStop(16);
Symbol 3233 MovieClip [customer17_model] Frame 354
mouth.clip.gotoAndStop(15);
Symbol 3233 MovieClip [customer17_model] Frame 358
mouth.clip.gotoAndStop(18);
Symbol 3233 MovieClip [customer17_model] Frame 360
mouth.clip.gotoAndStop(20);
Symbol 3233 MovieClip [customer17_model] Frame 366
mouth.clip.gotoAndStop(3);
Symbol 3233 MovieClip [customer17_model] Frame 370
mouth.clip.gotoAndStop(3);
Symbol 3233 MovieClip [customer17_model] Frame 373
mouth.clip.gotoAndStop(19);
Symbol 3233 MovieClip [customer17_model] Frame 376
mouth.clip.gotoAndStop(15);
Symbol 3233 MovieClip [customer17_model] Frame 381
mouth.clip.gotoAndStop(16);
Symbol 3233 MovieClip [customer17_model] Frame 383
mouth.clip.gotoAndStop(21);
Symbol 3233 MovieClip [customer17_model] Frame 386
mouth.clip.gotoAndStop(20);
Symbol 3233 MovieClip [customer17_model] Frame 389
mouth.clip.gotoAndStop(5);
Symbol 3233 MovieClip [customer17_model] Frame 392
mouth.clip.gotoAndStop(3);
Symbol 3233 MovieClip [customer17_model] Frame 394
gotoAndPlay ("takeorder");
mouth.clip.gotoAndStop(1);
Symbol 3260 MovieClip [customer22_hand] Frame 1
stop();
Symbol 3264 MovieClip [customer22_hand2] Frame 1
stop();
Symbol 3293 MovieClip [customer30_hand] Frame 1
stop();
Symbol 3297 MovieClip [customer30_hand2] Frame 1
stop();
Symbol 3328 MovieClip [customer35_hand] Frame 1
stop();
Symbol 3332 MovieClip [customer35_hand2] Frame 1
stop();
Symbol 3380 MovieClip [customer36_hand] Frame 1
stop();
Symbol 3384 MovieClip [customer36_hand2] Frame 1
stop();
Symbol 3426 MovieClip Frame 1
stop();
Instance of Symbol 1617 MovieClip [TextInput] in Symbol 3426 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = 0;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 3437 MovieClip Frame 136
_root.nextFrame();
Symbol 3442 MovieClip Frame 20
_parent.nextFrame();