Frame 1
stop();
this.onEnterFrame = function () {
curr_time = getTimer() / 1000;
bytes_loaded = this.getBytesLoaded();
bytes_total = this.getBytesTotal();
loaded_kbytes = Math.floor(bytes_loaded / 1024);
kbytespersec = Math.floor(loaded_kbytes / curr_time);
total_kbytes = Math.floor(bytes_total / 1024);
bytes_remaining = total_kbytes - loaded_kbytes;
time_rem = Math.floor(bytes_remaining / kbytespersec);
percent_loaded = Math.floor((bytes_loaded / bytes_total) * 100);
progress_bar._xscale = percent_loaded;
percent.text = percent_loaded + "%";
Kbloaded.text = loaded_kbytes + " Kb";
Kbtotal.text = total_kbytes + " Kb";
drate.text = kbytespersec + " Kb/sec";
timeremain.text = time_rem + " sec";
if (percent_loaded == 100) {
delete this.onEnterFrame;
gotoAndStop (2);
}
};
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
Frame 2
instruction_btn.onPress = function () {
instruction_mc.gotoAndStop(1);
this.enabled = false;
play_btn.enabled = false;
highscores_btn.enabled = false;
trace("instruction called");
instruction_mc._visible = true;
};
play_btn.onPress = function () {
nextFrame();
};
highscores_btn.onPress = function () {
trace("Highscores called");
};
var game_level = 1;
var total = 0;
Instance of Symbol 653 MovieClip in Frame 2
onClipEvent (load) {
trace(this.getDepth());
}
Instance of Symbol 673 MovieClip in Frame 2
onClipEvent (load) {
var i = 0;
cval = 0;
cflake._visible = false;
}
on (rollOver) {
}
on (press) {
if (_root.pause_pressed == false) {
mcnam = _parent.mousedown.objname;
if (_root.cone[this._name].flavour_cnt != 0) {
_visible = false;
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt < 1)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
_parent.update_cone_order(this._name, mcnam, cval);
}
}
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt < 2)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
} else if (cval == 2) {
_root.cone[this._name].flavour2 = mcnam;
}
_parent.update_cone_order(this._name, mcnam, cval);
}
}
i++;
if (cval == 1) {
this.duplicateMovieClip("cn1_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn1_" + i].gotoAndStop(1);
frm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn1_" + i].one.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn1_" + i].one.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
} else if (_root.cone[this._name].typ == 2) {
_root["cn1_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn1_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn1_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
} else if (_root.cone[this._name].toppings2 != "") {
top = _root["cn1_" + i].two.two.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
} else if (cval == 2) {
this.duplicateMovieClip("cn1_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn1_" + i].gotoAndStop(1);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn1_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
} else if (_root.cone[this._name].typ == 2) {
_root["cn1_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn1_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
frm = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
mc = _root["cn1_" + i].two.two.attachMovie(_root.cone[this._name].flavour2, _root.cone[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc2 = mc;
}
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn1_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
if (_root.cone[this._name].toppings2 != "") {
top = _root["cn1_" + i].two.two.attachMovie(_root.cone[this._name].toppings2, _root.cone[this._name].toppings2 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
if (_root.cone[this._name].cflak == true) {
_root["cn1_" + i].onLoad = function () {
_root["cn1_" + i].cflake._visible = true;
};
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt == 1)) {
_root["cn1_" + i].nam = "cone";
_root["cn1_" + i]._visible = true;
_root["cn1_" + i].startDrag();
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt == 2)) {
_root["cn1_" + i].nam = "dcone";
_root["cn1_" + i]._visible = true;
_root["cn1_" + i].startDrag();
}
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
if (_root.cone[this._name].flavour_cnt != 0) {
_parent.mousedown.objname = null;
_root["cn1_" + i].stopDrag();
_root["cn1_" + i].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_parent.reset_cone_object(this._name);
_visible = false;
}
if (_root.cone[this._name].typ == 1) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root["cn1_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr:" + _root.cone[this._name].flavour1);
trace("cooked topps:" + _root.cone[this._name].toppings1);
trace("cooked chocoflake:" + _root.cone[this._name].cflak);
trace("cust chocoflake:" + conts[kk][3]);
trace("cust flvr:" + conts[kk][2]);
trace("cust topps:" + conts[kk][1]);
if (_root.cone[this._name].flavour1 == conts[kk][2]) {
if (_root.cone[this._name].toppings1 == conts[kk][1]) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 15;
if (_root.cone[this._name].cflak && (conts[kk][3] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
}
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
} else if (_root.cone[this._name].flavour1 != conts[kk][2]) {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if ((kfrm > 225) && (kfrm <= 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
if (_root.cone[this._name].typ == 2) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["cn1_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
if ((_root.cone[this._name].flavour2 == conts[kk][2]) && (_root.cone[this._name].flavour1 == conts[kk][4])) {
if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
}
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 0;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 0;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
}
}
}
Instance of Symbol 673 MovieClip in Frame 2
onClipEvent (load) {
var i = 0;
cval = 0;
cflake._visible = false;
}
on (rollOver) {
}
on (press) {
if (_root.pause_pressed == false) {
mcnam = _parent.mousedown.objname;
if (_root.cone[this._name].flavour_cnt != 0) {
_visible = false;
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt < 1)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
_parent.update_cone_order(this._name, mcnam, cval);
}
}
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt < 2)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
} else if (cval == 2) {
_root.cone[this._name].flavour2 = mcnam;
}
_parent.update_cone_order(this._name, mcnam, cval);
}
}
i++;
if (cval == 1) {
this.duplicateMovieClip("cn3_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn3_" + i].gotoAndStop(1);
frm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn3_" + i].one.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn3_" + i].one.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
} else if (_root.cone[this._name].typ == 2) {
_root["cn3_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn3_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn3_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
} else if (_root.cone[this._name].toppings2 != "") {
top = _root["cn3_" + i].two.two.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
} else if (cval == 2) {
this.duplicateMovieClip("cn3_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn3_" + i].gotoAndStop(1);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn3_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
} else if (_root.cone[this._name].typ == 2) {
_root["cn3_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn3_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
frm = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
mc = _root["cn3_" + i].two.two.attachMovie(_root.cone[this._name].flavour2, _root.cone[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc2 = mc;
}
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn3_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
if (_root.cone[this._name].toppings2 != "") {
top = _root["cn3_" + i].two.two.attachMovie(_root.cone[this._name].toppings2, _root.cone[this._name].toppings2 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
if (_root.cone[this._name].cflak == true) {
_root["cn3_" + i].onLoad = function () {
_root["cn3_" + i].cflake._visible = true;
};
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt == 1)) {
_root["cn3_" + i].nam = "cone";
_root["cn3_" + i]._visible = true;
_root["cn3_" + i].startDrag();
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt == 2)) {
_root["cn3_" + i].nam = "dcone";
_root["cn3_" + i]._visible = true;
_root["cn3_" + i].startDrag();
}
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
if (_root.cone[this._name].flavour_cnt != 0) {
_parent.mousedown.objname = null;
_root["cn3_" + i].stopDrag();
_root["cn3_" + i].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_parent.reset_cone_object(this._name);
_visible = false;
}
if (_root.cone[this._name].typ == 1) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root["cn3_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr:" + _root.cone[this._name].flavour1);
trace("cooked topps:" + _root.cone[this._name].toppings1);
trace("cooked chocoflake:" + _root.cone[this._name].cflak);
trace("cust chocoflake:" + conts[kk][3]);
trace("cust flvr:" + conts[kk][2]);
trace("cust topps:" + conts[kk][1]);
if (_root.cone[this._name].flavour1 == conts[kk][2]) {
if (_root.cone[this._name].toppings1 == conts[kk][1]) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 15;
if (_root.cone[this._name].cflak && (conts[kk][3] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
}
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
} else if (_root.cone[this._name].flavour1 != conts[kk][2]) {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if ((kfrm > 225) && (kfrm <= 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
if (_root.cone[this._name].typ == 2) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["cn3_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
if ((_root.cone[this._name].flavour2 == conts[kk][2]) && (_root.cone[this._name].flavour1 == conts[kk][4])) {
if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
}
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 0;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 0;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
}
}
}
Instance of Symbol 673 MovieClip in Frame 2
onClipEvent (load) {
var i = 0;
cval = 0;
cflake._visible = false;
}
on (rollOver) {
}
on (press) {
if (_root.pause_pressed == false) {
mcnam = _parent.mousedown.objname;
if (_root.cone[this._name].flavour_cnt != 0) {
_visible = false;
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt < 1)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
_parent.update_cone_order(this._name, mcnam, cval);
}
}
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt < 2)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
} else if (cval == 2) {
_root.cone[this._name].flavour2 = mcnam;
}
_parent.update_cone_order(this._name, mcnam, cval);
}
}
i++;
if (cval == 1) {
this.duplicateMovieClip("cn2_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn2_" + i].gotoAndStop(1);
frm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn2_" + i].one.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn2_" + i].one.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
} else if (_root.cone[this._name].typ == 2) {
_root["cn2_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn2_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn2_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
} else if (_root.cone[this._name].toppings2 != "") {
top = _root["cn2_" + i].two.two.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
} else if (cval == 2) {
this.duplicateMovieClip("cn2_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn2_" + i].gotoAndStop(1);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn2_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
} else if (_root.cone[this._name].typ == 2) {
_root["cn2_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn2_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
frm = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
mc = _root["cn2_" + i].two.two.attachMovie(_root.cone[this._name].flavour2, _root.cone[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc2 = mc;
}
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn2_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
if (_root.cone[this._name].toppings2 != "") {
top = _root["cn2_" + i].two.two.attachMovie(_root.cone[this._name].toppings2, _root.cone[this._name].toppings2 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
if (_root.cone[this._name].cflak == true) {
_root["cn2_" + i].onLoad = function () {
_root["cn2_" + i].cflake._visible = true;
};
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt == 1)) {
_root["cn2_" + i].nam = "cone";
_root["cn2_" + i]._visible = true;
_root["cn2_" + i].startDrag();
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt == 2)) {
_root["cn2_" + i].nam = "dcone";
_root["cn2_" + i]._visible = true;
_root["cn2_" + i].startDrag();
}
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
if (_root.cone[this._name].flavour_cnt != 0) {
_parent.mousedown.objname = null;
_root["cn2_" + i].stopDrag();
_root["cn2_" + i].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_parent.reset_cone_object(this._name);
_visible = false;
}
if (_root.cone[this._name].typ == 1) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root["cn2_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr:" + _root.cone[this._name].flavour1);
trace("cooked topps:" + _root.cone[this._name].toppings1);
trace("cooked chocoflake:" + _root.cone[this._name].cflak);
trace("cust chocoflake:" + conts[kk][3]);
trace("cust flvr:" + conts[kk][2]);
trace("cust topps:" + conts[kk][1]);
if (_root.cone[this._name].flavour1 == conts[kk][2]) {
if (_root.cone[this._name].toppings1 == conts[kk][1]) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 15;
if (_root.cone[this._name].cflak && (conts[kk][3] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
}
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
} else if (_root.cone[this._name].flavour1 != conts[kk][2]) {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if ((kfrm > 225) && (kfrm <= 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
if (_root.cone[this._name].typ == 2) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["cn2_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
if ((_root.cone[this._name].flavour2 == conts[kk][2]) && (_root.cone[this._name].flavour1 == conts[kk][4])) {
if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
}
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 0;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 0;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
}
}
}
Instance of Symbol 673 MovieClip in Frame 2
onClipEvent (load) {
var i = 0;
cval = 0;
cflake._visible = false;
}
on (rollOver) {
}
on (press) {
if (_root.pause_pressed == false) {
mcnam = _parent.mousedown.objname;
if (_root.cone[this._name].flavour_cnt != 0) {
_visible = false;
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt < 1)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
_parent.update_cone_order(this._name, mcnam, cval);
}
}
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt < 2)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
} else if (cval == 2) {
_root.cone[this._name].flavour2 = mcnam;
}
_parent.update_cone_order(this._name, mcnam, cval);
}
}
i++;
if (cval == 1) {
this.duplicateMovieClip("cn4_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn4_" + i].gotoAndStop(1);
frm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn4_" + i].one.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn4_" + i].one.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
} else if (_root.cone[this._name].typ == 2) {
_root["cn4_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn4_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn4_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
} else if (_root.cone[this._name].toppings2 != "") {
top = _root["cn4_" + i].two.two.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
} else if (cval == 2) {
this.duplicateMovieClip("cn4_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn4_" + i].gotoAndStop(1);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn4_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
} else if (_root.cone[this._name].typ == 2) {
_root["cn4_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn4_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
frm = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
mc = _root["cn4_" + i].two.two.attachMovie(_root.cone[this._name].flavour2, _root.cone[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc2 = mc;
}
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn4_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
if (_root.cone[this._name].toppings2 != "") {
top = _root["cn4_" + i].two.two.attachMovie(_root.cone[this._name].toppings2, _root.cone[this._name].toppings2 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
if (_root.cone[this._name].cflak == true) {
_root["cn4_" + i].onLoad = function () {
_root["cn4_" + i].cflake._visible = true;
};
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt == 1)) {
_root["cn4_" + i].nam = "cone";
_root["cn4_" + i]._visible = true;
_root["cn4_" + i].startDrag();
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt == 2)) {
_root["cn4_" + i].nam = "dcone";
_root["cn4_" + i]._visible = true;
_root["cn4_" + i].startDrag();
}
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
if (_root.cone[this._name].flavour_cnt != 0) {
_parent.mousedown.objname = null;
_root["cn4_" + i].stopDrag();
_root["cn4_" + i].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_parent.reset_cone_object(this._name);
_visible = false;
}
if (_root.cone[this._name].typ == 1) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root["cn4_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr:" + _root.cone[this._name].flavour1);
trace("cooked topps:" + _root.cone[this._name].toppings1);
trace("cooked chocoflake:" + _root.cone[this._name].cflak);
trace("cust chocoflake:" + conts[kk][3]);
trace("cust flvr:" + conts[kk][2]);
trace("cust topps:" + conts[kk][1]);
if (_root.cone[this._name].flavour1 == conts[kk][2]) {
if (_root.cone[this._name].toppings1 == conts[kk][1]) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 15;
if (_root.cone[this._name].cflak && (conts[kk][3] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
}
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
} else if (_root.cone[this._name].flavour1 != conts[kk][2]) {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if ((kfrm > 225) && (kfrm <= 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
if (_root.cone[this._name].typ == 2) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["cn4_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
if ((_root.cone[this._name].flavour2 == conts[kk][2]) && (_root.cone[this._name].flavour1 == conts[kk][4])) {
if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
}
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 0;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 0;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -2;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + -4;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = 1;
}
trace("kfrm:" + kfrm);
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
}
}
}
Instance of Symbol 682 MovieClip in Frame 2
onClipEvent (load) {
}
Instance of Symbol 752 MovieClip in Frame 2
onClipEvent (load) {
}
Instance of Symbol 759 MovieClip in Frame 2
on (press) {
if (_root.pause_pressed == false) {
_parent.orng_slice.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"].onLoad = function () {
this.nam = "orange_slice";
};
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
i = 1;
while (i <= 3) {
if (eval ("_root.orangejuice_" + i).hitTest(_root._xmouse, _root._ymouse, true)) {
if (eval ("_root.orangejuice_" + i)._currentframe == 1) {
eval ("_root.orangejuice_" + i).gotoAndStop(4);
} else if (eval ("_root.orangejuice_" + i)._currentframe == 2) {
eval ("_root.orangejuice_" + i).gotoAndStop(3);
}
}
i++;
}
}
}
Instance of Symbol 766 MovieClip in Frame 2
on (release) {
if ((_root.orangejuice_1._visible == false) && (_root.pause_pressed == false)) {
_root.orangejuice_1._visible = true;
_root.orangejuice_1.gotoAndStop(1);
_root.juice_reset++;
} else if ((_root.orangejuice_2._visible == false) && (_root.pause_pressed == false)) {
_root.orangejuice_2._visible = true;
_root.orangejuice_2.gotoAndStop(1);
_root.juice_reset++;
} else if ((_root.orangejuice_3._visible == false) && (_root.pause_pressed == false)) {
_root.orangejuice_3._visible = true;
_root.orangejuice_3.gotoAndStop(1);
_root.juice_reset++;
}
}
Instance of Symbol 853 MovieClip in Frame 2
on (press) {
if (_root.pause_pressed == false) {
_parent.orang.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"].onLoad = function () {
this.nam = "orange";
};
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
if (_root.juice_machine.fruitholder.hitTest(_root._xmouse, _root._ymouse, true)) {
a = _root.juice_machine.fruitholder._currentframe;
trace("a:" + a);
if (Number(a) < 4) {
a++;
_root.juice_machine.fruitholder.gotoAndStop(a);
if (a == 4) {
_root.juice_machine.gotoAndStop(2);
}
}
}
}
}
Instance of Symbol 858 MovieClip in Frame 2
on (release) {
getURL ("javascript:closeme();");
}
Instance of Symbol 887 MovieClip "sndonoff" in Frame 2
on (press) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.truck.play();
_root.soundon = true;
} else {
this.gotoAndStop(1);
_root.truck.gotoAndStop(1);
_root.soundon = false;
}
}
Instance of Symbol 905 MovieClip "instruction_mc" in Frame 2
onClipEvent (load) {
_visible = false;
}
Frame 3
function update_point_system(earned) {
pointsystem.goal.autoSize = true;
pointsystem.earnings.autoSize = true;
if ((Number(pointsystem.earnings.text) == 0) && (earned == -1)) {
} else {
pointsystem.earnings.text = Number(pointsystem.earnings.text) + earned;
}
}
function level_updation() {
need = Number(level_target[Number(game_level) - 1]);
earned = Number(pointsystem.earnings.text);
shutter.shutter_mc.gotoAndPlay(98);
if (earned >= need) {
result = "A successful day!";
lvl_update.newday._visible = true;
lvl_update.ply_agn._visible = false;
_root.profit = earned - need;
if (_root.profit < 0) {
_root.profit = 0;
_root.total = _root.total + _root.profit;
} else {
_root.total = _root.total + _root.profit;
}
} else {
result = "You are not able to reach the target!";
lvl_update.newday._visible = false;
lvl_update.ply_agn._visible = true;
}
}
function ctrl_flvr_topps_enablility(mod) {
for (var tot_flvr in total_flavours) {
eval (total_flavours[tot_flvr]).enabled = mod;
eval (total_flavours[tot_flvr])._visible = mod;
_root.table.freezer.strawberry._visible = false;
_root.table.freezer.butterscotch._visible = false;
}
for (var tot_topps in total_toppings) {
eval (total_toppings[tot_topps]).enabled = mod;
eval (total_toppings[tot_topps])._visible = mod;
}
}
function control_flavours_and_toppings(level_status) {
if (((level_status == 1) || (level_status == 2)) || (level_status == 3)) {
flavor = 0;
while (flavor < (total_flavours.length - 2)) {
eval (total_flavours[flavor]).enabled = true;
_root.table.freezer.strawberry._visible = false;
_root.table.freezer.butterscotch._visible = false;
eval (total_flavours[flavor])._visible = true;
flavor++;
}
topps = 0;
while (topps < (total_toppings.length - 1)) {
eval (total_toppings[topps]).enabled = true;
eval (total_toppings[topps])._visible = true;
topps++;
}
} else if (level_status == 4) {
flavor = 0;
while (flavor < (total_flavours.length - 1)) {
eval (total_flavours[flavor]).enabled = true;
eval (total_flavours[flavor])._visible = true;
_root.table.freezer.strawberry._visible = true;
flavor++;
}
topps = 0;
while (topps < total_toppings.length) {
eval (total_toppings[topps]).enabled = true;
eval (total_toppings[topps])._visible = true;
topps++;
}
} else {
flavor = 0;
while (flavor < total_flavours.length) {
eval (total_flavours[flavor]).enabled = true;
eval (total_flavours[flavor])._visible = true;
_root.table.freezer.strawberry._visible = true;
_root.table.freezer.butterscotch._visible = true;
flavor++;
}
topps = 0;
while (topps < total_toppings.length) {
eval (total_toppings[topps]).enabled = true;
eval (total_toppings[topps])._visible = true;
topps++;
}
}
}
function check_any_customer() {
this.onEnterFrame = function () {
if (_root.pause_pressed == false) {
ccount = 0;
i = 1;
while (i <= 18) {
if (eval ("girlmc_" + i)._x == eval ("girlmc_" + i).prevx) {
ccount++;
if (ccount == 18) {
delete this.onEnterFrame;
level_updation();
trace("go to level updation");
}
}
i++;
}
}
};
}
function tub_visibility(bool) {
i = 1;
while (i <= max_tub) {
eval ("tub_" + i)._visible = bool;
i++;
}
}
function update_tub_order(hitmc, flavour, cnt) {
if (cnt == 1) {
mc = eval (hitmc).one_flav.one.attachMovie(flavour, flavour + "_mc", 1);
eval (mc).gotoAndStop(2);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
eval (mc).play();
} else {
eval (mc).stop();
}
};
tub[hitmc].flavourmc1 = mc;
mousedown.objname = null;
if (tub[hitmc].cflak) {
eval (hitmc).cflake._visible = true;
}
} else if (cnt == 2) {
one_flavr = tub[hitmc].flavour1;
one_flavr_mc = ((eval (hitmc) + ".one_flav.one.") + one_flavr) + "_mc";
frm = Number(eval (one_flavr_mc)._currentframe);
eval (one_flavr_mc).unloadMovie();
one_toppings = tub[hitmc].toppings1;
one_toppings_mc = ((eval (hitmc) + ".one_flav.one.") + one_toppings) + "_m";
eval (one_toppings_mc).unloadMovie();
mc1 = eval (hitmc).two_flav.one.attachMovie(one_flavr, one_flavr + "_mc", 1);
eval (mc1).gotoAndStop(frm);
eval (mc1).onEnterFrame = function () {
if (_root.pause_pressed == false) {
eval (mc1).play();
} else {
eval (mc1).stop();
}
};
tub[hitmc].flavourmc1 = mc1;
if (tub[hitmc].toppings1 != "") {
top = eval (hitmc).two_flav.one.attachMovie(one_toppings, one_toppings + "_m", 4);
tub[hitmc].toppingsmc1 = top;
}
mc = eval (hitmc).two_flav.two.attachMovie(flavour, flavour + "_mc", 2);
eval (mc).gotoAndStop(2);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
eval (mc).play();
} else {
eval (mc).stop();
}
};
tub[hitmc].flavourmc2 = mc;
if (tub[hitmc].cflak) {
eval (hitmc).cflake._visible = true;
}
mousedown.objname = null;
} else if (cnt == 3) {
two_flavr_one = tub[hitmc].flavour1;
two_flavr_one_mc = ((eval (hitmc) + ".two_flav.one.") + two_flavr_one) + "_mc";
two_flavr_two = tub[hitmc].flavour2;
two_flavr_two_mc = ((eval (hitmc) + ".two_flav.two.") + two_flavr_two) + "_mc";
two_toppings_one = tub[hitmc].toppings1;
two_toppings_one_mc = ((eval (hitmc) + ".one_flav.one.") + two_toppings_one) + "_m";
two_toppings_two = tub[hitmc].toppings2;
two_toppings_two_mc = ((eval (hitmc) + ".one_flav.one.") + two_toppings_two) + "_m";
frm1 = eval (two_flavr_one_mc)._currentframe;
frm2 = eval (two_flavr_two_mc)._currentframe;
eval (two_flavr_one_mc).unloadMovie();
eval (two_flavr_two_mc).unloadMovie();
eval (two_toppings_one_mc).unloadMovie();
eval (two_toppings_two_mc).unloadMovie();
mc = eval (hitmc).three_flav.one.attachMovie(two_flavr_one, two_flavr_one + "_mc", 1);
eval (mc).gotoAndStop(frm1);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
eval (mc).play();
} else {
eval (mc).stop();
}
};
tub[hitmc].flavourmc1 = mc;
if (tub[hitmc].toppings1 != "") {
top = eval (hitmc).three_flav.one.attachMovie(tub[hitmc].toppings1, tub[hitmc].toppings1 + "_m", 4);
tub[hitmc].toppingsmc1 = top;
}
mc = eval (hitmc).three_flav.two.attachMovie(two_flavr_two, two_flavr_two + "_mc", 2);
eval (mc).gotoAndStop(frm2);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
eval (mc).play();
} else {
eval (mc).stop();
}
};
tub[hitmc].flavourmc2 = mc;
if (tub[hitmc].toppings2 != "") {
top = eval (hitmc).three_flav.two.attachMovie(tub[hitmc].toppings2, tub[hitmc].toppings2 + "_m", 4);
tub[hitmc].toppingsmc2 = top;
}
mc = eval (hitmc).three_flav.three.attachMovie(flavour, flavour + "_mc", 3);
eval (mc).gotoAndStop(2);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
eval (mc).play();
} else {
eval (mc).stop();
}
};
tub[hitmc].flavourmc3 = mc;
if (tub[hitmc].cflak) {
eval (hitmc).cflake._visible = true;
}
mousedown.objname = null;
}
}
function reset_tub_object(tubname) {
for (var propert in tub[tubname]) {
}
getmc = [];
getmc = String(tub[tubname].flavourmc1).split(".");
getmc[1] = tubname;
i = 0;
while (i < getmc.length) {
if (i == 0) {
unloadmc = getmc[i];
} else {
unloadmc = unloadmc + ("." + getmc[i]);
}
i++;
}
eval (unloadmc).unloadMovie();
getmc = [];
getmc = String(tub[tubname].flavourmc2).split(".");
getmc[1] = tubname;
i = 0;
while (i < getmc.length) {
if (i == 0) {
unloadmc = getmc[i];
} else {
unloadmc = unloadmc + ("." + getmc[i]);
}
i++;
}
eval (unloadmc).unloadMovie();
getmc = [];
getmc = String(tub[tubname].flavourmc3).split(".");
getmc[1] = tubname;
i = 0;
while (i < getmc.length) {
if (i == 0) {
unloadmc = getmc[i];
} else {
unloadmc = unloadmc + ("." + getmc[i]);
}
i++;
}
eval (unloadmc).unloadMovie();
getmc = [];
getmc = String(tub[tubname].toppingsmc1).split(".");
getmc[1] = tubname;
i = 0;
while (i < getmc.length) {
if (i == 0) {
unloadmc = getmc[i];
} else {
unloadmc = unloadmc + ("." + getmc[i]);
}
i++;
}
eval (unloadmc).unloadMovie();
getmc = [];
getmc = String(tub[tubname].toppingsmc2).split(".");
getmc[1] = tubname;
i = 0;
while (i < getmc.length) {
if (i == 0) {
unloadmc = getmc[i];
} else {
unloadmc = unloadmc + ("." + getmc[i]);
}
i++;
}
eval (unloadmc).unloadMovie();
getmc = [];
getmc = String(tub[tubname].toppingsmc3).split(".");
getmc[1] = tubname;
i = 0;
while (i < getmc.length) {
if (i == 0) {
unloadmc = getmc[i];
} else {
unloadmc = unloadmc + ("." + getmc[i]);
}
i++;
}
eval (unloadmc).unloadMovie();
eval (tubname).i = 0;
eval (tubname).val = 0;
eval (tubname).cflake._visible = false;
tub[tubname].nam = tubname;
tub[tubname].flavour_cnt = 0;
tub[tubname].flavour1 = "";
tub[tubname].flavourmc1 = "";
tub[tubname].flavour2 = "";
tub[tubname].flavourmc2 = "";
tub[tubname].flavour3 = "";
tub[tubname].flavourmc3 = "";
tub[tubname].cflak = false;
tub[tubname].toppings_cnt = 0;
tub[tubname].toppings1 = "";
tub[tubname].toppingsmc1 = "";
tub[tubname].toppings2 = "";
tub[tubname].toppingsmc2 = "";
tub[tubname].toppings3 = "";
tub[tubname].toppingsmc3 = "";
tub[tubname].typ = "";
for (var propert in tub[tubname]) {
}
}
function cone_visibility(bool) {
i = 1;
while (i <= max_cone) {
eval ("cone_" + i)._visible = bool;
i++;
}
}
function update_cone_order(hitmc, flavour, cnt) {
if (cnt == 1) {
if (cone[hitmc].typ == 1) {
mc = eval (hitmc).one.one.attachMovie(flavour, flavour + "_mc", 1);
eval (mc).gotoAndStop(2);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
eval (mc).play();
} else {
eval (mc).stop();
}
};
cone[hitmc].flavourmc1 = mc;
} else {
mc = eval (hitmc).two.one.attachMovie(flavour, flavour + "_mc", 1);
eval (mc).gotoAndStop(2);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
eval (mc).play();
} else {
eval (mc).stop();
}
};
cone[hitmc].flavourmc2 = mc;
}
mousedown.objname = null;
if (cone[hitmc].cflak) {
eval (hitmc).cflake._visible = true;
}
} else if (cnt == 2) {
mc = eval (hitmc).two.two.attachMovie(flavour, flavour + "_mc", 2);
eval (mc).gotoAndStop(2);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
eval (mc).play();
} else {
eval (mc).stop();
}
};
cone[hitmc].flavourmc2 = mc;
if (cone[hitmc].cflak) {
eval (hitmc).cflake._visible = true;
}
mousedown.objname = null;
if (cone[hitmc].cflak) {
eval (hitmc).cflake._visible = true;
}
}
}
function reset_cone_object(conename) {
for (var propert in cone[conename]) {
}
getmc = [];
getmc = String(cone[conename].flavourmc1).split(".");
getmc[1] = conename;
i = 0;
while (i < getmc.length) {
if (i == 0) {
unloadmc = getmc[i];
} else {
unloadmc = unloadmc + ("." + getmc[i]);
}
i++;
}
eval (unloadmc).unloadMovie();
getmc = [];
getmc = String(cone[conename].flavourmc2).split(".");
getmc[1] = conename;
i = 0;
while (i < getmc.length) {
if (i == 0) {
unloadmc = getmc[i];
} else {
unloadmc = unloadmc + ("." + getmc[i]);
}
i++;
}
eval (unloadmc).unloadMovie();
getmc = [];
getmc = String(cone[conename].toppingsmc1).split(".");
getmc[1] = conename;
i = 0;
while (i < getmc.length) {
if (i == 0) {
unloadmc = getmc[i];
} else {
unloadmc = unloadmc + ("." + getmc[i]);
}
i++;
}
eval (unloadmc).unloadMovie();
getmc = [];
getmc = String(cone[conename].toppingsmc2).split(".");
getmc[1] = conename;
i = 0;
while (i < getmc.length) {
if (i == 0) {
unloadmc = getmc[i];
} else {
unloadmc = unloadmc + ("." + getmc[i]);
}
i++;
}
eval (unloadmc).unloadMovie();
eval (conename).i = 0;
eval (conename).cval = 0;
eval (conename).cflake._visible = false;
cone[conename].nam = conename;
cone[conename].typ = "";
cone[conename].flavour_cnt = 0;
cone[conename].flavour1 = "";
cone[conename].flavourmc1 = "";
cone[conename].flavour2 = "";
cone[conename].flavourmc2 = "";
cone[conename].cflak = false;
cone[conename].toppings_cnt = 0;
cone[conename].toppings1 = "";
cone[conename].toppingsmc1 = "";
cone[conename].toppings2 = "";
cone[conename].toppingsmc2 = "";
for (var propert in cone[conename]) {
}
}
function chk() {
bool = false;
val = random(max) + 1;
if (shuffled.length == 0) {
} else {
k = 0;
while (k < shuffled.length) {
if (val == Number(shuffled[k])) {
bool = true;
}
k++;
}
}
if (bool) {
chk();
} else {
shuffled.push(val);
customer_name.push("girlmc_" + val);
}
}
function chkk() {
bool = false;
val = random(maxi) + 1;
if (shuffled1.length == 0) {
} else {
k = 0;
while (k < shuffled1.length) {
if (val == Number(shuffled1[k])) {
bool = true;
}
k++;
}
}
if (bool) {
chkk();
} else {
shuffled1.push(val);
counter_no.push("h" + val);
}
}
function cl(cust_hold) {
no_of_customers++;
if (no_of_customers == 1) {
depthswap++;
trace("one customerrrrrrrrrrrr");
custname = customer_name.shift();
custcount = counter_no.pop();
eval (custname).swapDepths(depthrange - depthswap);
eval (custname).customerplace = eval (custcount);
eval (custname).flag = true;
} else if (no_of_customers == 2) {
trace("two customerrrrrrrrrrrr");
i = 1;
while (i <= 2) {
depthswap++;
custname = customer_name.shift();
custcount = counter_no.pop();
eval (custname).swapDepths(depthrange - depthswap);
eval (custname).customerplace = eval (custcount);
eval (custname).flag = true;
i++;
}
} else if (no_of_customers == 4) {
trace("three customerrrrrrrrrrrr");
i = 1;
while (i <= 3) {
depthswap++;
custname = customer_name.shift();
custcount = counter_no.pop();
eval (custname).swapDepths(depthrange - depthswap);
eval (custname).customerplace = eval (custcount);
eval (custname).flag = true;
i++;
}
} else if (no_of_customers == 7) {
trace("four customerrrrrrrrrrrr");
i = 1;
while (i <= 4) {
depthswap++;
custname = customer_name.shift();
custcount = counter_no.pop();
eval (custname).swapDepths(depthrange - depthswap);
eval (custname).customerplace = eval (custcount);
eval (custname).flag = true;
i++;
}
} else if (no_of_customers == 8) {
depthswap++;
no_of_customers = 7;
trace("fourrrrrrrrrrr saturated");
custname = customer_name.shift();
custcount = eval (cust_hold);
eval (custname).swapDepths(depthrange - depthswap);
eval (custname).customerplace = custcount;
eval (custname).flag = true;
}
}
function show_money(mc, val) {
mm++;
eval (mc)._visible = true;
eval (mc).val = val;
eval (mc).attachMovie("moving_money", "moving_money" + mm, _root.getNextHighestDepth());
update_point_system(val);
}
function orangejuice_visibility(bool) {
i = 1;
while (i <= max_juice) {
eval ("orangejuice_" + i)._visible = bool;
i++;
}
}
function fill_juice() {
var cc = 0;
i = 1;
while (i <= max_juice) {
if (eval ("orangejuice_" + i)._visible) {
if (eval ("_root.orangejuice_" + i)._currentframe == 1) {
eval ("_root.orangejuice_" + i).gotoAndStop(2);
_root.juice_machine.gotoAndStop(1);
} else if (eval ("_root.orangejuice_" + i)._currentframe == 4) {
eval ("_root.orangejuice_" + i).gotoAndStop(3);
_root.juice_machine.gotoAndStop(1);
} else {
_root.juice_machine.gotoAndStop(1);
}
} else {
cc++;
}
i++;
}
if (cc == 3) {
_root.juice_machine.gotoAndStop(1);
}
}
stop();
trace("root.soundon:" + _root.soundon);
logo._visible = true;
lvl_update._visible = false;
congrats._visible = false;
var need = 0;
var earned = 0;
var profit = 0;
var run_count = 0;
var thief_count = 0;
var theft_val = 0;
var pause_pressed = false;
var level_target = ["180", "190", "200", "220", "240", "280", "300", "320", "330", "340", "350", "360", "370", "420"];
var level_target_val;
day = "Day " + game_level;
level_target_val = "You need to make " + level_target[Number(game_level) - 1];
shutter.shutter_mc.gotoAndPlay(2);
tgt.gotoAndPlay(2);
var total_flavours = new Array("vanilla", "orange", "chocolate", "strawberry", "butterscotch");
var total_toppings = new Array("chocoflake", "hunderdsofthousands", "strawsauce", "chocosauce");
pointsystem.goal.text = Number(level_target[Number(game_level) - 1]);
update_point_system(0);
ctrl_flvr_topps_enablility(false);
control_flavours_and_toppings(game_level);
i = 1;
while (i <= 4) {
eval ("money" + i)._visible = false;
eval ("money" + i).onPress = function () {
this._visible = false;
};
i++;
}
var simple_order = ["cone1", "cone2", "cone3", "cone4", "cone5", "cone6", "cone7", "cone8", "cone9", "tub1", "tub2", "tub3", "tub4", "tub5", "tub6", "tub7", "tub8", "tub9", "conecan1", "conecan2", "conecan3", "conebottle1", "conebottle2", "conebottle3", "tubcan1", "tubcan2", "tubcan3", "tubbottle1", "tubbottle2", "tubbottle3", "corder61", "corder62", "corder63", "corder65", "juice1", "juice2", "juice3", "juice4", "juice6", "juice8", "juice9", "juice11", "juice12", "juice13", "juice15", "juice16", "flake1", "flake2", "flake3", "flake4", "flake7", "flake8", "flake13", "tub_order2", "tub_order9"];
var complex_order = ["corder61", "corder62", "corder63", "corder64", "corder65", "corder66", "corder67", "corder68", "corder69", "corder70", "corder71", "corder72", "corder73", "corder74", "corder75", "corder76", "corder77", "corder78", "corder79", "corder80", "corder81", "corder82", "corder83", "corder84", "corder85", "corder86", "corder87", "corder88", "corder89", "corder90", "juice5", "juice7", "juice10", "juice14", "juice17", "juice18", "juice19", "juice20", "juice21", "juice22", "juice23", "juice23", "juice24", "juice25", "juice26", "juice27", "juice28", "juice29", "juice30", "juice31", "juice32", "juice33", "juice34", "juice35", "juice36", "juice37", "juice38", "juice39", "juice40", "flake5", "flake6", "flake9", "flake10", "flake11", "flake12", "flake14", "flake15", "tub_order1", "tub_order2", "tub_order3", "tub_order4", "tub_order5", "tub_order6", "tub_order7", "tub_order8", "tub_order9", "tub_order10", "tub_order11", "tub_order12", "tub_order13", "tub_order14", "tub_order15", "tub_order16", "tub_order17", "tub_order18", "tub_order19", "tub_order20", "strawberry1", "strawberry2", "strawberry3", "strawberry4", "strawberry5", "strawberry6", "strawberry7", "strawberry8", "strawberry9", "strawberry10", "strawberry11", "strawberry12"];
var lvl4 = ["cone4", "cone5", "cone6", "cone7", "cone8", "cone9", "tub4", "tub5", "tub6", "tub7", "tub8", "tub9", "conecan1", "conecan2", "conecan3", "conebottle1", "conebottle2", "conebottle3", "tubcan1", "tubcan2", "tubcan3", "tubbottle1", "tubbottle2", "tubbottle3", "corder61", "corder62", "corder63", "corder65", "juice1", "juice2", "juice3", "juice4", "juice6", "juice8", "juice9", "juice11", "juice12", "juice13", "juice15", "juice16", "flake1", "flake2", "flake3", "flake4", "flake7", "flake8", "flake13", "strawberry1", "strawberry2", "strawberry3", "strawberry4", "strawberry5", "strawberry6", "strawberry12", "tub_order2", "tub_order4", "tub_order9", "tub_order13"];
var seconds;
var secons;
seconds = 0;
secons = 0;
var time_is_up = false;
this.onEnterFrame = function () {
if (start_timer && (_root.pause_pressed == false)) {
seconds++;
clock.smallneedle._rotation = clock.smallneedle._rotation + 0.12;
clock.bigneedle._rotation = clock.bigneedle._rotation + 1.44;
if ((seconds % 25) == 0) {
secons++;
}
if (secons == 120) {
time_is_up = true;
delete this.onEnterFrame;
check_any_customer();
}
}
};
var max_tub = 3;
var mousedown = new Object();
mousedown = {objname:null};
tub_visibility(false);
var tub = new Object();
tub.tub_1 = {nam:"tub_1", typ:"", flavour_cnt:0, flavour1:"", flavourmc1:"", flavour2:"", flavourmc2:"", flavour3:"", flavourmc3:"", cflak:false, toppings_cnt:0, toppings1:"", toppingsmc1:"", toppings2:"", toppingsmc2:"", toppings3:"", toppingsmc3:""};
tub.tub_2 = {nam:"tub_2", typ:"", flavour_cnt:0, flavour1:"", flavourmc1:"", flavour2:"", flavourmc2:"", flavour3:"", flavourmc3:"", cflak:false, toppings_cnt:0, toppings1:"", toppingsmc1:"", toppings2:"", toppingsmc2:"", toppings3:"", toppingsmc3:""};
tub.tub_3 = {nam:"tub_3", typ:"", flavour_cnt:0, flavour1:"", flavourmc1:"", flavour2:"", flavourmc2:"", flavour3:"", flavourmc3:"", cflak:false, toppings_cnt:0, toppings1:"", toppingsmc1:"", toppings2:"", toppingsmc2:"", toppings3:"", toppingsmc3:""};
var max_cone = 4;
cone_visibility(false);
var cone = new Object();
cone.cone_1 = {nam:"cone_1", typ:"", flavour_cnt:0, flavour1:"", flavourmc1:"", flavour2:"", flavourmc2:"", cflak:false, toppings_cnt:0, toppings1:"", toppingsmc1:"", toppings2:"", toppingsmc1:""};
cone.cone_2 = {nam:"cone_2", typ:"", flavour_cnt:0, flavour1:"", flavourmc1:"", flavour2:"", flavourmc2:"", cflak:false, toppings_cnt:0, toppings1:"", toppingsmc1:"", toppings2:"", toppingsmc1:""};
cone.cone_3 = {nam:"cone_3", typ:"", flavour_cnt:0, flavour1:"", flavourmc1:"", flavour2:"", flavourmc2:"", cflak:false, toppings_cnt:0, toppings1:"", toppingsmc1:"", toppings2:"", toppingsmc1:""};
cone.cone_4 = {nam:"cone_4", typ:"", flavour_cnt:0, flavour1:"", flavourmc1:"", flavour2:"", flavourmc2:"", cflak:false, toppings_cnt:0, toppings1:"", toppingsmc1:"", toppings2:"", toppingsmc1:""};
var customer_name = [];
var counter_no = [];
var counter_engaged = ["n", "n", "n", "n"];
var max = 18;
var maxi = 5;
var shuffled = new Array();
var shuffled1 = new Array();
i = 0;
while (i < 10) {
shuffled = [];
j = 0;
while (j < max) {
chk();
j++;
}
i++;
}
i = 0;
while (i < 4) {
shuffled1 = [];
maxi--;
j = 0;
while (j < maxi) {
chkk();
j++;
}
i++;
}
i = 0;
while (i < 100) {
i++;
}
var no_of_customers = 0;
var depthswap = 0;
var depthrange = -16000;
i = 1;
while (i <= 20) {
eval ("_root.delay" + i).flag = false;
i++;
}
i = 1;
while (i <= 20) {
eval ("_root.delay" + i).onEnterFrame = function () {
if (this.flag && (_root.pause_pressed == false)) {
this.play();
} else {
this.stop();
}
};
i++;
}
j = 1;
while (j <= 20) {
customername = "girlmc_" + j;
eval (customername).onEnterFrame = function () {
if (this.flag && (_root.pause_pressed == false)) {
this.c++;
this._x = this._x + this.xmov;
if (((Math.round(this._x) == (Math.round(eval (this.customerplace)._x) - 3)) || (Math.round(this._x) == (Math.round(eval (this.customerplace)._x) - 2))) || (Math.round(this._x) == (Math.round(eval (this.customerplace)._x) - 1))) {
this.flag = false;
this._x = eval (this.customerplace)._x;
this.hold_num = Number(eval (this.customerplace)._name.split("h")[1]);
this.mny = eval ("money" + this.hold_num);
this.mny.prev_visited_customer = this._name;
this.dnum = this._name.split("_")[1];
eval ("_root.delay" + this.dnum).flag = true;
if (_root.game_level <= 3) {
ordr = Number(random(simple_order.length));
this.cust_order = simple_order[ordr];
} else if (_root.game_level == 4) {
ordr = Number(random(lvl4.length));
this.cust_order = lvl4[ordr];
} else {
ordr = Number(random(complex_order.length));
this.cust_order = complex_order[ordr];
}
this.attached_order = this.attachMovie(this.cust_order, this.cust_order + "order", 1);
for (var prop in this.attached_order) {
this.no_of_orders++;
}
this[this.cust_order + "order"]._y = (-(this._height / 2)) - 30;
}
if ((this.c % this.togglerate) == 0) {
this._y = this._y + this.ymov;
this.ymov = -this.ymov;
}
if (this.prevx < 0) {
if (this._x > 750) {
this.flag = false;
this._x = this.prevx;
this.swapDepths(this.prevdepth);
if (no_of_customers == 7) {
if (!_root.time_is_up) {
cl(this.customerplace);
this.init();
}
} else if (!_root.time_is_up) {
this.init();
cl();
}
}
} else if (this._x < -25) {
this.flag = false;
this._x = this.prevx;
this.swapDepths(this.prevdepth);
if (no_of_customers == 7) {
if (!_root.time_is_up) {
cl(this.customerplace);
this.init();
}
} else if (!_root.time_is_up) {
this.init();
cl();
}
}
}
};
eval (customername).onPress = function () {
trace("pressed:" + _root.run_count);
trace("can i run:" + this.run);
if (this.run) {
thief_count++;
this.flag = false;
this.run = false;
if (this.xmov < 0) {
this.xmov = -3;
} else {
this.xmov = 3;
}
_root.theft_val = this.moneygiven;
_root.attachMovie("moving_money_new", "moving_money_new" + thief_count, 5000 + thief_count);
_root["moving_money_new" + thief_count].girl = eval (this);
_root["moving_money_new" + thief_count]._x = this._x;
_root["moving_money_new" + thief_count]._y = 220.4;
}
};
j++;
}
var mm = 0;
var max_juice = 3;
orangejuice_visibility(false);
Instance of Symbol 591 MovieClip "shutter" in Frame 3
onClipEvent (load) {
trace("shutter:" + this.getDepth());
}
Instance of Symbol 942 MovieClip "girlmc_4" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = -3;
this.ymov = 3;
this.thiefmove = -4;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 967 MovieClip "girlmc_2" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.face.gotoAndStop(1);
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = 3;
this.thiefmove = 4;
this.ymov = 3;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 985 MovieClip "girlmc_3dum" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.face.gotoAndStop(1);
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = 3;
this.thiefmove = 4;
this.ymov = 3;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1008 MovieClip "girlmc_5" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = -3;
this.ymov = 3;
this.thiefmove = -4;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1025 MovieClip "girlmc_6" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.face.gotoAndStop(1);
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = 3;
this.thiefmove = 4;
this.ymov = 3;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1045 MovieClip "girlmc_7dum" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.face.gotoAndStop(1);
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = 3;
this.thiefmove = 4;
this.ymov = 3;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1055 MovieClip "girlmc_8" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.face.gotoAndStop(1);
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = 3;
this.thiefmove = 4;
this.ymov = 3;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1076 MovieClip "girlmc_9" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.face.gotoAndStop(1);
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = 3;
this.thiefmove = 4;
this.ymov = 3;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1094 MovieClip "girlmc_10" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.face.gotoAndStop(1);
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = 3;
this.thiefmove = 4;
this.ymov = 3;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1129 MovieClip "girlmc_11" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = -3;
this.ymov = 3;
this.thiefmove = -4;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1155 MovieClip "girlmc_12" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = -3;
this.ymov = 3;
this.thiefmove = -4;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1185 MovieClip "girlmc_13" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = -3;
this.ymov = 3;
this.thiefmove = -4;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1217 MovieClip "girlmc_14" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = -3;
this.ymov = 3;
this.thiefmove = -4;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1245 MovieClip "girlmc_15" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = -3;
this.ymov = 3;
this.thiefmove = -4;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1262 MovieClip "girlmc_16" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = -3;
this.ymov = 3;
this.thiefmove = -4;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1286 MovieClip "girlmc_17" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = -3;
this.ymov = 3;
this.thiefmove = -4;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1307 MovieClip "girlmc_18" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = -3;
this.ymov = 3;
this.thiefmove = -4;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1325 MovieClip "girlmc_7" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.face.gotoAndStop(1);
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = 3;
this.thiefmove = 4;
this.ymov = 3;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1351 MovieClip "girlmc_3" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = -3;
this.ymov = 3;
this.thiefmove = -4;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 1367 MovieClip "girlmc_1" in Frame 3
onClipEvent (load) {
function init() {
this.flag = false;
this.run = false;
this.face.gotoAndStop(1);
this.nextmove = false;
this.customerplace = "";
this.attached_order = "";
this.no_of_orders = 0;
this.no_of_orders_delivered = 0;
this.c = 0;
this.xmov = 3;
this.thiefmove = 4;
this.ymov = 3;
this.togglerate = 8;
this.prevx = this._x;
this.moneygiven = 0;
this._y = 190;
}
this.init();
}
Instance of Symbol 653 MovieClip "table" in Frame 3
onClipEvent (load) {
trace(this.getDepth());
}
Instance of Symbol 447 MovieClip [chocolate] "chocolate" in Frame 3
onClipEvent (load) {
var i = 0;
}
on (press) {
if (_root.pause_pressed == false) {
i++;
_parent.mousedown.objname = this._name;
_parent.chocolate_flavr.duplicateMovieClip("chocolate_" + i, 3000 + i);
_root["chocolate_" + i]._x = _root._xmouse;
_root["chocolate_" + i]._y = _root._ymouse;
_root["chocolate_" + i].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root["chocolate_" + i].unloadMovie();
k = 1;
while (k <= 3) {
if (eval ("_root.tub_" + k)._visible == true) {
if (_root["chocolate_" + i].hitTest(eval ("_root.tub_" + k))) {
_root["chocolate_" + i].hitmc = "tub_" + k;
if (eval ("_root.tub_" + k).val < 3) {
val = ++_root.tub[_root["chocolate_" + i].hitmc].flavour_cnt;
s = ++eval ("_root.tub_" + k).val;
}
if (val == 1) {
_root.tub[_root["chocolate_" + i].hitmc].flavour1 = "chocolate";
} else if (val == 2) {
_root.tub[_root["chocolate_" + i].hitmc].flavour2 = "chocolate";
} else if (val == 3) {
_root.tub[_root["chocolate_" + i].hitmc].flavour3 = "chocolate";
}
_parent.update_tub_order(_root["chocolate_" + i].hitmc, "chocolate", val);
break;
}
}
k++;
}
j = 1;
while (j <= 4) {
if (eval ("_root.cone_" + j)._visible == true) {
if (eval ("_root.cone_" + j).hitTest(_root._xmouse, _root._ymouse)) {
_root["chocolate_" + i].hitmc = "cone_" + j;
if ((_root.cone[_root["chocolate_" + i].hitmc].typ == 1) && (_root.cone[_root["chocolate_" + i].hitmc].flavour_cnt < 1)) {
cval = ++_root.cone[_root["chocolate_" + i].hitmc].flavour_cnt;
c = ++eval ("_root.cone_" + j).cval;
_root.cone[_root["chocolate_" + i].hitmc].flavour1 = "chocolate";
_parent.update_cone_order(_root["chocolate_" + i].hitmc, "chocolate", cval);
break;
}
if ((_root.cone[_root["chocolate_" + i].hitmc].typ == 2) && (_root.cone[_root["chocolate_" + i].hitmc].flavour_cnt < 2)) {
cval = ++_root.cone[_root["chocolate_" + i].hitmc].flavour_cnt;
if (eval ("_root.cone_" + j).cval < 2) {
c = ++eval ("_root.cone_" + j).cval;
}
if (cval == 1) {
_root.cone[_root["chocolate_" + i].hitmc].flavour1 = "chocolate";
} else if (cval == 2) {
_root.cone[_root["chocolate_" + i].hitmc].flavour2 = "chocolate";
}
_parent.update_cone_order(_root["chocolate_" + i].hitmc, "chocolate", cval);
break;
}
}
}
j++;
}
}
}
Instance of Symbol 442 MovieClip [vanilla] "vanilla" in Frame 3
onClipEvent (load) {
var i = 0;
}
on (press) {
if (_root.pause_pressed == false) {
i++;
_parent.mousedown.objname = this._name;
_parent.vanilla_flavr.duplicateMovieClip("vanilla_" + i, 3000 + i);
_root["vanilla_" + i]._x = _root._xmouse;
_root["vanilla_" + i]._y = _root._ymouse;
_root["vanilla_" + i].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root["vanilla_" + i].unloadMovie();
k = 1;
while (k <= 3) {
if (eval ("_root.tub_" + k)._visible == true) {
if (_root["vanilla_" + i].hitTest(eval ("_root.tub_" + k))) {
_root["vanilla_" + i].hitmc = "tub_" + k;
if (eval ("_root.tub_" + k).val < 3) {
val = ++_root.tub[_root["vanilla_" + i].hitmc].flavour_cnt;
s = ++eval ("_root.tub_" + k).val;
}
if (val == 1) {
_root.tub[_root["vanilla_" + i].hitmc].flavour1 = "vanilla";
} else if (val == 2) {
_root.tub[_root["vanilla_" + i].hitmc].flavour2 = "vanilla";
} else if (val == 3) {
_root.tub[_root["vanilla_" + i].hitmc].flavour3 = "vanilla";
}
_parent.update_tub_order(_root["vanilla_" + i].hitmc, "vanilla", val);
break;
}
}
k++;
}
j = 1;
while (j <= 4) {
if (eval ("_root.cone_" + j)._visible == true) {
if (eval ("_root.cone_" + j).hitTest(_root._xmouse, _root._ymouse)) {
_root["vanilla_" + i].hitmc = "cone_" + j;
if ((_root.cone[_root["vanilla_" + i].hitmc].typ == 1) && (_root.cone[_root["vanilla_" + i].hitmc].flavour_cnt < 1)) {
cval = ++_root.cone[_root["vanilla_" + i].hitmc].flavour_cnt;
c = ++eval ("_root.cone_" + j).cval;
_root.cone[_root["vanilla_" + i].hitmc].flavour1 = "vanilla";
_parent.update_cone_order(_root["vanilla_" + i].hitmc, "vanilla", cval);
break;
}
if ((_root.cone[_root["vanilla_" + i].hitmc].typ == 2) && (_root.cone[_root["vanilla_" + i].hitmc].flavour_cnt < 2)) {
cval = ++_root.cone[_root["vanilla_" + i].hitmc].flavour_cnt;
if (eval ("_root.cone_" + j).cval < 2) {
c = ++eval ("_root.cone_" + j).cval;
}
if (cval == 1) {
_root.cone[_root["vanilla_" + i].hitmc].flavour1 = "vanilla";
} else if (cval == 2) {
_root.cone[_root["vanilla_" + i].hitmc].flavour2 = "vanilla";
}
_parent.update_cone_order(_root["vanilla_" + i].hitmc, "vanilla", cval);
break;
}
}
}
j++;
}
}
}
Instance of Symbol 437 MovieClip [strawberry] "strawberry" in Frame 3
onClipEvent (load) {
var i = 0;
}
on (press) {
if (_root.pause_pressed == false) {
i++;
_parent.mousedown.objname = this._name;
_parent.strawberry_flavr.duplicateMovieClip("strawberry_" + i, 3000 + i);
_root["strawberry_" + i]._x = _root._xmouse;
_root["strawberry_" + i]._y = _root._ymouse;
_root["strawberry_" + i].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root["strawberry_" + i].unloadMovie();
k = 1;
while (k <= 3) {
if (eval ("_root.tub_" + k)._visible == true) {
if (_root["strawberry_" + i].hitTest(eval ("_root.tub_" + k))) {
_root["strawberry_" + i].hitmc = "tub_" + k;
if (eval ("_root.tub_" + k).val < 3) {
val = ++_root.tub[_root["strawberry_" + i].hitmc].flavour_cnt;
s = ++eval ("_root.tub_" + k).val;
}
if (val == 1) {
_root.tub[_root["strawberry_" + i].hitmc].flavour1 = "strawberry";
} else if (val == 2) {
_root.tub[_root["strawberry_" + i].hitmc].flavour2 = "strawberry";
} else if (val == 3) {
_root.tub[_root["strawberry_" + i].hitmc].flavour3 = "strawberry";
}
_parent.update_tub_order(_root["strawberry_" + i].hitmc, "strawberry", val);
break;
}
}
k++;
}
j = 1;
while (j <= 4) {
if (eval ("_root.cone_" + j)._visible == true) {
if (eval ("_root.cone_" + j).hitTest(_root._xmouse, _root._ymouse)) {
_root["strawberry_" + i].hitmc = "cone_" + j;
if ((_root.cone[_root["strawberry_" + i].hitmc].typ == 1) && (_root.cone[_root["strawberry_" + i].hitmc].flavour_cnt < 1)) {
cval = ++_root.cone[_root["strawberry_" + i].hitmc].flavour_cnt;
c = ++eval ("_root.cone_" + j).cval;
_root.cone[_root["strawberry_" + i].hitmc].flavour1 = "strawberry";
_parent.update_cone_order(_root["strawberry_" + i].hitmc, "strawberry", cval);
break;
}
if ((_root.cone[_root["strawberry_" + i].hitmc].typ == 2) && (_root.cone[_root["strawberry_" + i].hitmc].flavour_cnt < 2)) {
cval = ++_root.cone[_root["strawberry_" + i].hitmc].flavour_cnt;
if (eval ("_root.cone_" + j).cval < 2) {
c = ++eval ("_root.cone_" + j).cval;
}
if (cval == 1) {
_root.cone[_root["strawberry_" + i].hitmc].flavour1 = "strawberry";
} else if (cval == 2) {
_root.cone[_root["strawberry_" + i].hitmc].flavour2 = "strawberry";
}
_parent.update_cone_order(_root["strawberry_" + i].hitmc, "strawberry", cval);
break;
}
}
}
j++;
}
}
}
Instance of Symbol 432 MovieClip [butterscotch] "butterscotch" in Frame 3
onClipEvent (load) {
var i = 0;
}
on (press) {
if (_root.pause_pressed == false) {
i++;
_parent.mousedown.objname = this._name;
_parent.butterscotch_flavr.duplicateMovieClip("butterscotch_" + i, 3000 + i);
_root["butterscotch_" + i]._x = _root._xmouse;
_root["butterscotch_" + i]._y = _root._ymouse;
_root["butterscotch_" + i].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root["butterscotch_" + i].unloadMovie();
k = 1;
while (k <= 3) {
if (eval ("_root.tub_" + k)._visible == true) {
if (_root["butterscotch_" + i].hitTest(eval ("_root.tub_" + k))) {
_root["butterscotch_" + i].hitmc = "tub_" + k;
if (eval ("_root.tub_" + k).val < 3) {
val = ++_root.tub[_root["butterscotch_" + i].hitmc].flavour_cnt;
s = ++eval ("_root.tub_" + k).val;
}
if (val == 1) {
_root.tub[_root["butterscotch_" + i].hitmc].flavour1 = "butterscotch";
} else if (val == 2) {
_root.tub[_root["butterscotch_" + i].hitmc].flavour2 = "butterscotch";
} else if (val == 3) {
_root.tub[_root["butterscotch_" + i].hitmc].flavour3 = "butterscotch";
}
_parent.update_tub_order(_root["butterscotch_" + i].hitmc, "butterscotch", val);
break;
}
}
k++;
}
j = 1;
while (j <= 4) {
if (eval ("_root.cone_" + j)._visible == true) {
if (eval ("_root.cone_" + j).hitTest(_root._xmouse, _root._ymouse)) {
_root["butterscotch_" + i].hitmc = "cone_" + j;
if ((_root.cone[_root["butterscotch_" + i].hitmc].typ == 1) && (_root.cone[_root["butterscotch_" + i].hitmc].flavour_cnt < 1)) {
cval = ++_root.cone[_root["butterscotch_" + i].hitmc].flavour_cnt;
c = ++eval ("_root.cone_" + j).cval;
_root.cone[_root["butterscotch_" + i].hitmc].flavour1 = "butterscotch";
_parent.update_cone_order(_root["butterscotch_" + i].hitmc, "butterscotch", cval);
break;
}
if ((_root.cone[_root["butterscotch_" + i].hitmc].typ == 2) && (_root.cone[_root["butterscotch_" + i].hitmc].flavour_cnt < 2)) {
cval = ++_root.cone[_root["butterscotch_" + i].hitmc].flavour_cnt;
if (eval ("_root.cone_" + j).cval < 2) {
c = ++eval ("_root.cone_" + j).cval;
}
if (cval == 1) {
_root.cone[_root["butterscotch_" + i].hitmc].flavour1 = "butterscotch";
} else if (cval == 2) {
_root.cone[_root["butterscotch_" + i].hitmc].flavour2 = "butterscotch";
}
_parent.update_cone_order(_root["butterscotch_" + i].hitmc, "butterscotch", cval);
break;
}
}
}
j++;
}
}
}
Instance of Symbol 427 MovieClip [orange] "orange" in Frame 3
onClipEvent (load) {
var i = 0;
}
on (press) {
if (_root.pause_pressed == false) {
i++;
_parent.mousedown.objname = this._name;
_parent.orange_flavr.duplicateMovieClip("orange_" + i, 3000 + i);
_root["orange_" + i]._x = _root._xmouse;
_root["orange_" + i]._y = _root._ymouse;
_root["orange_" + i].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root["orange_" + i].unloadMovie();
k = 1;
while (k <= 3) {
if (eval ("_root.tub_" + k)._visible == true) {
if (_root["orange_" + i].hitTest(eval ("_root.tub_" + k))) {
_root["orange_" + i].hitmc = "tub_" + k;
if (eval ("_root.tub_" + k).val < 3) {
val = ++_root.tub[_root["orange_" + i].hitmc].flavour_cnt;
s = ++eval ("_root.tub_" + k).val;
}
if (val == 1) {
_root.tub[_root["orange_" + i].hitmc].flavour1 = "orange";
} else if (val == 2) {
_root.tub[_root["orange_" + i].hitmc].flavour2 = "orange";
} else if (val == 3) {
_root.tub[_root["orange_" + i].hitmc].flavour3 = "orange";
}
_parent.update_tub_order(_root["orange_" + i].hitmc, "orange", val);
break;
}
}
k++;
}
j = 1;
while (j <= 4) {
if (eval ("_root.cone_" + j)._visible == true) {
if (eval ("_root.cone_" + j).hitTest(_root._xmouse, _root._ymouse)) {
_root["orange_" + i].hitmc = "cone_" + j;
if ((_root.cone[_root["orange_" + i].hitmc].typ == 1) && (_root.cone[_root["orange_" + i].hitmc].flavour_cnt < 1)) {
cval = ++_root.cone[_root["orange_" + i].hitmc].flavour_cnt;
c = ++eval ("_root.cone_" + j).cval;
_root.cone[_root["orange_" + i].hitmc].flavour1 = "orange";
_parent.update_cone_order(_root["orange_" + i].hitmc, "orange", cval);
break;
}
if ((_root.cone[_root["orange_" + i].hitmc].typ == 2) && (_root.cone[_root["orange_" + i].hitmc].flavour_cnt < 2)) {
cval = ++_root.cone[_root["orange_" + i].hitmc].flavour_cnt;
if (eval ("_root.cone_" + j).cval < 2) {
c = ++eval ("_root.cone_" + j).cval;
}
if (cval == 1) {
_root.cone[_root["orange_" + i].hitmc].flavour1 = "orange";
} else if (cval == 2) {
_root.cone[_root["orange_" + i].hitmc].flavour2 = "orange";
}
_parent.update_cone_order(_root["orange_" + i].hitmc, "orange", cval);
break;
}
}
}
j++;
}
}
}
Instance of Symbol 663 MovieClip "pointsystem" in Frame 3
/* no clip actions */
Instance of Symbol 1377 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(-16300);
}
Instance of Symbol 673 MovieClip "cone_1" in Frame 3
onClipEvent (load) {
var i = 0;
cval = 0;
cflake._visible = false;
}
on (rollOver) {
}
on (press) {
if (_root.pause_pressed == false) {
mcnam = _parent.mousedown.objname;
if (_root.cone[this._name].flavour_cnt != 0) {
_visible = false;
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt < 1)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
_parent.update_cone_order(this._name, mcnam, cval);
}
}
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt < 2)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
} else if (cval == 2) {
_root.cone[this._name].flavour2 = mcnam;
}
_parent.update_cone_order(this._name, mcnam, cval);
}
}
i++;
if (cval == 1) {
this.duplicateMovieClip("cn1_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn1_" + i].gotoAndStop(1);
frm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn1_" + i].one.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn1_" + i].one.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
} else if (_root.cone[this._name].typ == 2) {
_root["cn1_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn1_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn1_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
} else if (_root.cone[this._name].toppings2 != "") {
top = _root["cn1_" + i].two.two.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
} else if (cval == 2) {
this.duplicateMovieClip("cn1_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn1_" + i].gotoAndStop(1);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn1_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
} else if (_root.cone[this._name].typ == 2) {
_root["cn1_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn1_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
frm = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
mc = _root["cn1_" + i].two.two.attachMovie(_root.cone[this._name].flavour2, _root.cone[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc2 = mc;
}
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn1_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
if (_root.cone[this._name].toppings2 != "") {
top = _root["cn1_" + i].two.two.attachMovie(_root.cone[this._name].toppings2, _root.cone[this._name].toppings2 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
if (_root.cone[this._name].cflak == true) {
_root["cn1_" + i].onLoad = function () {
_root["cn1_" + i].cflake._visible = true;
};
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt == 1)) {
_root["cn1_" + i].nam = "cone";
_root["cn1_" + i]._visible = true;
_root["cn1_" + i].startDrag();
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt == 2)) {
_root["cn1_" + i].nam = "dcone";
_root["cn1_" + i]._visible = true;
_root["cn1_" + i].startDrag();
}
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
if (_root.cone[this._name].flavour_cnt != 0) {
_parent.mousedown.objname = null;
_root["cn1_" + i].stopDrag();
_root["cn1_" + i].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_parent.reset_cone_object(this._name);
_visible = false;
}
if (_root.cone[this._name].typ == 1) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root["cn1_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr:" + _root.cone[this._name].flavour1);
trace("cooked topps:" + _root.cone[this._name].toppings1);
trace("cooked chocoflake:" + _root.cone[this._name].cflak);
trace("cust chocoflake:" + conts[kk][3]);
trace("cust flvr:" + conts[kk][2]);
trace("cust topps:" + conts[kk][1]);
if (_root.cone[this._name].flavour1 == conts[kk][2]) {
if (_root.cone[this._name].toppings1 == conts[kk][1]) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
trace("main val <150");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 15;
} else if ((kfrm > 150) && (kfrm <= 225)) {
trace("main val bet 150 && 225");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 13;
} else if ((kfrm > 225) && (kfrm < 275)) {
trace("main val bet 225 && 275");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if (kfrm == 275) {
trace("main val 275");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else if (_root.cone[this._name].toppings1 == "") {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 9;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 13;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 9;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
}
if (_root.cone[this._name].cflak && (conts[kk][3] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (_root.cone[this._name].flavour1 != conts[kk][2]) {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 5;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 3;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
if (_root.cone[this._name].typ == 2) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["cn1_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
if ((_root.cone[this._name].flavour2 == conts[kk][2]) && (_root.cone[this._name].flavour1 == conts[kk][4])) {
if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if ((_root.cone[this._name].toppings2 != conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 != conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 18;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
}
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
}
}
}
Instance of Symbol 673 MovieClip "cone_3" in Frame 3
onClipEvent (load) {
var i = 0;
cval = 0;
cflake._visible = false;
}
on (rollOver) {
}
on (press) {
if (_root.pause_pressed == false) {
mcnam = _parent.mousedown.objname;
if (_root.cone[this._name].flavour_cnt != 0) {
_visible = false;
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt < 1)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
_parent.update_cone_order(this._name, mcnam, cval);
}
}
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt < 2)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
} else if (cval == 2) {
_root.cone[this._name].flavour2 = mcnam;
}
_parent.update_cone_order(this._name, mcnam, cval);
}
}
i++;
if (cval == 1) {
this.duplicateMovieClip("cn3_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn3_" + i].gotoAndStop(1);
frm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn3_" + i].one.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn3_" + i].one.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
} else if (_root.cone[this._name].typ == 2) {
_root["cn3_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn3_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn3_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
} else if (_root.cone[this._name].toppings2 != "") {
top = _root["cn3_" + i].two.two.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
} else if (cval == 2) {
this.duplicateMovieClip("cn3_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn3_" + i].gotoAndStop(1);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn3_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
} else if (_root.cone[this._name].typ == 2) {
_root["cn3_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn3_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
frm = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
mc = _root["cn3_" + i].two.two.attachMovie(_root.cone[this._name].flavour2, _root.cone[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc2 = mc;
}
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn3_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
if (_root.cone[this._name].toppings2 != "") {
top = _root["cn3_" + i].two.two.attachMovie(_root.cone[this._name].toppings2, _root.cone[this._name].toppings2 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
if (_root.cone[this._name].cflak == true) {
_root["cn3_" + i].onLoad = function () {
_root["cn3_" + i].cflake._visible = true;
};
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt == 1)) {
_root["cn3_" + i].nam = "cone";
_root["cn3_" + i]._visible = true;
_root["cn3_" + i].startDrag();
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt == 2)) {
_root["cn3_" + i].nam = "dcone";
_root["cn3_" + i]._visible = true;
_root["cn3_" + i].startDrag();
}
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
if (_root.cone[this._name].flavour_cnt != 0) {
_parent.mousedown.objname = null;
_root["cn3_" + i].stopDrag();
_root["cn3_" + i].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_parent.reset_cone_object(this._name);
_visible = false;
}
if (_root.cone[this._name].typ == 1) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root["cn3_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr:" + _root.cone[this._name].flavour1);
trace("cooked topps:" + _root.cone[this._name].toppings1);
trace("cooked chocoflake:" + _root.cone[this._name].cflak);
trace("cust chocoflake:" + conts[kk][3]);
trace("cust flvr:" + conts[kk][2]);
trace("cust topps:" + conts[kk][1]);
if (_root.cone[this._name].flavour1 == conts[kk][2]) {
if (_root.cone[this._name].toppings1 == conts[kk][1]) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
trace("main val <150");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 15;
} else if ((kfrm > 150) && (kfrm <= 225)) {
trace("main val bet 150 && 225");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 13;
} else if ((kfrm > 225) && (kfrm < 275)) {
trace("main val bet 225 && 275");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if (kfrm == 275) {
trace("main val 275");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else if (_root.cone[this._name].toppings1 == "") {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 9;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 13;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 9;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
}
if (_root.cone[this._name].cflak && (conts[kk][3] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (_root.cone[this._name].flavour1 != conts[kk][2]) {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 5;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 3;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
if (_root.cone[this._name].typ == 2) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["cn3_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
if ((_root.cone[this._name].flavour2 == conts[kk][2]) && (_root.cone[this._name].flavour1 == conts[kk][4])) {
if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if ((_root.cone[this._name].toppings2 != conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 != conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 18;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
}
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
}
}
}
Instance of Symbol 673 MovieClip "cone_2" in Frame 3
onClipEvent (load) {
var i = 0;
cval = 0;
cflake._visible = false;
}
on (rollOver) {
}
on (press) {
if (_root.pause_pressed == false) {
mcnam = _parent.mousedown.objname;
if (_root.cone[this._name].flavour_cnt != 0) {
_visible = false;
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt < 1)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
_parent.update_cone_order(this._name, mcnam, cval);
}
}
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt < 2)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
} else if (cval == 2) {
_root.cone[this._name].flavour2 = mcnam;
}
_parent.update_cone_order(this._name, mcnam, cval);
}
}
i++;
if (cval == 1) {
this.duplicateMovieClip("cn2_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn2_" + i].gotoAndStop(1);
frm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn2_" + i].one.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn2_" + i].one.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
} else if (_root.cone[this._name].typ == 2) {
_root["cn2_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn2_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn2_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
} else if (_root.cone[this._name].toppings2 != "") {
top = _root["cn2_" + i].two.two.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
} else if (cval == 2) {
this.duplicateMovieClip("cn2_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn2_" + i].gotoAndStop(1);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn2_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
} else if (_root.cone[this._name].typ == 2) {
_root["cn2_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn2_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
frm = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
mc = _root["cn2_" + i].two.two.attachMovie(_root.cone[this._name].flavour2, _root.cone[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc2 = mc;
}
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn2_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
if (_root.cone[this._name].toppings2 != "") {
top = _root["cn2_" + i].two.two.attachMovie(_root.cone[this._name].toppings2, _root.cone[this._name].toppings2 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
if (_root.cone[this._name].cflak == true) {
_root["cn2_" + i].onLoad = function () {
_root["cn2_" + i].cflake._visible = true;
};
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt == 1)) {
_root["cn2_" + i].nam = "cone";
_root["cn2_" + i]._visible = true;
_root["cn2_" + i].startDrag();
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt == 2)) {
_root["cn2_" + i].nam = "dcone";
_root["cn2_" + i]._visible = true;
_root["cn2_" + i].startDrag();
}
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
if (_root.cone[this._name].flavour_cnt != 0) {
_parent.mousedown.objname = null;
_root["cn2_" + i].stopDrag();
_root["cn2_" + i].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_parent.reset_cone_object(this._name);
_visible = false;
}
if (_root.cone[this._name].typ == 1) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root["cn2_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr:" + _root.cone[this._name].flavour1);
trace("cooked topps:" + _root.cone[this._name].toppings1);
trace("cooked chocoflake:" + _root.cone[this._name].cflak);
trace("cust chocoflake:" + conts[kk][3]);
trace("cust flvr:" + conts[kk][2]);
trace("cust topps:" + conts[kk][1]);
if (_root.cone[this._name].flavour1 == conts[kk][2]) {
if (_root.cone[this._name].toppings1 == conts[kk][1]) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
trace("main val <150");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 15;
} else if ((kfrm > 150) && (kfrm <= 225)) {
trace("main val bet 150 && 225");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 13;
} else if ((kfrm > 225) && (kfrm < 275)) {
trace("main val bet 225 && 275");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if (kfrm == 275) {
trace("main val 275");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else if (_root.cone[this._name].toppings1 == "") {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 9;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 13;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 9;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
}
if (_root.cone[this._name].cflak && (conts[kk][3] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (_root.cone[this._name].flavour1 != conts[kk][2]) {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 5;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 3;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
if (_root.cone[this._name].typ == 2) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["cn2_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
if ((_root.cone[this._name].flavour2 == conts[kk][2]) && (_root.cone[this._name].flavour1 == conts[kk][4])) {
if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if ((_root.cone[this._name].toppings2 != conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 != conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 18;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
}
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
}
}
}
Instance of Symbol 673 MovieClip "cone_4" in Frame 3
onClipEvent (load) {
var i = 0;
cval = 0;
cflake._visible = false;
}
on (rollOver) {
}
on (press) {
if (_root.pause_pressed == false) {
mcnam = _parent.mousedown.objname;
if (_root.cone[this._name].flavour_cnt != 0) {
_visible = false;
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt < 1)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
_parent.update_cone_order(this._name, mcnam, cval);
}
}
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt < 2)) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
cval = ++_root.cone[this._name].flavour_cnt;
if (cval == 1) {
_root.cone[this._name].flavour1 = mcnam;
} else if (cval == 2) {
_root.cone[this._name].flavour2 = mcnam;
}
_parent.update_cone_order(this._name, mcnam, cval);
}
}
i++;
if (cval == 1) {
this.duplicateMovieClip("cn4_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn4_" + i].gotoAndStop(1);
frm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn4_" + i].one.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn4_" + i].one.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
} else if (_root.cone[this._name].typ == 2) {
_root["cn4_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn4_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn4_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
} else if (_root.cone[this._name].toppings2 != "") {
top = _root["cn4_" + i].two.two.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
} else if (cval == 2) {
this.duplicateMovieClip("cn4_" + i, 2000 + i);
if (_root.cone[this._name].typ == 1) {
_root["cn4_" + i].gotoAndStop(1);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn4_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
} else if (_root.cone[this._name].typ == 2) {
_root["cn4_" + i].gotoAndStop(2);
frm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
trace("frm:" + frm);
mc = _root["cn4_" + i].two.one.attachMovie(_root.cone[this._name].flavour1, _root.cone[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc1 = mc;
frm = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
mc = _root["cn4_" + i].two.two.attachMovie(_root.cone[this._name].flavour2, _root.cone[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.cone[this._name].flavourmc2 = mc;
}
if (_root.cone[this._name].toppings1 != "") {
top = _root["cn4_" + i].two.one.attachMovie(_root.cone[this._name].toppings1, _root.cone[this._name].toppings1 + "_m", 4);
_root.cone[this._name].toppingsmc1 = top;
}
if (_root.cone[this._name].toppings2 != "") {
top = _root["cn4_" + i].two.two.attachMovie(_root.cone[this._name].toppings2, _root.cone[this._name].toppings2 + "_m", 4);
_root.cone[this._name].toppingsmc2 = top;
}
}
if (_root.cone[this._name].cflak == true) {
_root["cn4_" + i].onLoad = function () {
_root["cn4_" + i].cflake._visible = true;
};
}
if ((_root.cone[this._name].typ == 1) && (_root.cone[this._name].flavour_cnt == 1)) {
_root["cn4_" + i].nam = "cone";
_root["cn4_" + i]._visible = true;
_root["cn4_" + i].startDrag();
} else if ((_root.cone[this._name].typ == 2) && (_root.cone[this._name].flavour_cnt == 2)) {
_root["cn4_" + i].nam = "dcone";
_root["cn4_" + i]._visible = true;
_root["cn4_" + i].startDrag();
}
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
if (_root.cone[this._name].flavour_cnt != 0) {
_parent.mousedown.objname = null;
_root["cn4_" + i].stopDrag();
_root["cn4_" + i].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_parent.reset_cone_object(this._name);
_visible = false;
}
if (_root.cone[this._name].typ == 1) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root["cn4_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr:" + _root.cone[this._name].flavour1);
trace("cooked topps:" + _root.cone[this._name].toppings1);
trace("cooked chocoflake:" + _root.cone[this._name].cflak);
trace("cust chocoflake:" + conts[kk][3]);
trace("cust flvr:" + conts[kk][2]);
trace("cust topps:" + conts[kk][1]);
if (_root.cone[this._name].flavour1 == conts[kk][2]) {
if (_root.cone[this._name].toppings1 == conts[kk][1]) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
trace("main val <150");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 15;
} else if ((kfrm > 150) && (kfrm <= 225)) {
trace("main val bet 150 && 225");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 13;
} else if ((kfrm > 225) && (kfrm < 275)) {
trace("main val bet 225 && 275");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if (kfrm == 275) {
trace("main val 275");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else if (_root.cone[this._name].toppings1 == "") {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 9;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 13;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 11;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 9;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
}
if (_root.cone[this._name].cflak && (conts[kk][3] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (_root.cone[this._name].flavour1 != conts[kk][2]) {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".one.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 7;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 5;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 3;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
if (_root.cone[this._name].typ == 2) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["cn4_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
if ((_root.cone[this._name].flavour2 == conts[kk][2]) && (_root.cone[this._name].flavour1 == conts[kk][4])) {
if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if ((_root.cone[this._name].toppings2 != conts[kk][1]) && (_root.cone[this._name].toppings1 == conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if ((_root.cone[this._name].toppings2 == conts[kk][1]) && (_root.cone[this._name].toppings1 != conts[kk][3])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
if (_root.cone[this._name].cflak && (conts[kk][5] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 18;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
}
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".two.one.") + _root.cone[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two.two.") + _root.cone[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm == 275) || (kfrm == (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_cone_object(this._name);
}
}
k++;
}
}
}
}
}
Instance of Symbol 677 MovieClip in Frame 3
onClipEvent (load) {
}
on (release) {
if ((_root.cone_1._visible == false) && (_root.pause_pressed == false)) {
_root.cone_1._visible = true;
_root.cone_1.gotoAndStop(1);
_root.cone.cone_1.typ = 1;
} else if ((_root.cone_2._visible == false) && (_root.pause_pressed == false)) {
_root.cone_2._visible = true;
_root.cone_2.gotoAndStop(1);
_root.cone.cone_2.typ = 1;
} else if ((_root.cone_3._visible == false) && (_root.pause_pressed == false)) {
_root.cone_3._visible = true;
_root.cone_3.gotoAndStop(1);
_root.cone.cone_3.typ = 1;
} else if ((_root.cone_4._visible == false) && (_root.pause_pressed == false)) {
_root.cone_4._visible = true;
_root.cone_4.gotoAndStop(1);
_root.cone.cone_4.typ = 1;
}
}
Instance of Symbol 680 MovieClip in Frame 3
onClipEvent (load) {
}
on (release) {
if ((_root.cone_1._visible == false) && (_root.pause_pressed == false)) {
_root.cone_1._visible = true;
_root.cone_1.gotoAndStop(2);
_root.cone.cone_1.typ = 2;
} else if ((_root.cone_2._visible == false) && (_root.pause_pressed == false)) {
_root.cone_2._visible = true;
_root.cone_2.gotoAndStop(2);
_root.cone.cone_2.typ = 2;
} else if ((_root.cone_3._visible == false) && (_root.pause_pressed == false)) {
_root.cone_3._visible = true;
_root.cone_3.gotoAndStop(2);
_root.cone.cone_3.typ = 2;
} else if ((_root.cone_4._visible == false) && (_root.pause_pressed == false)) {
_root.cone_4._visible = true;
_root.cone_4.gotoAndStop(2);
_root.cone.cone_4.typ = 2;
}
}
Instance of Symbol 682 MovieClip in Frame 3
onClipEvent (load) {
}
Instance of Symbol 684 MovieClip "chocosauce" in Frame 3
onClipEvent (load) {
}
on (press) {
if (_root.pause_pressed == false) {
_parent.chocosauc.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"]._rotation = 210;
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
toppings = eval (_root[this._name + "_m"]._droptarget);
str = String(toppings).substr(-3, 3);
if (str == "_mc") {
str = eval (_root[this._name + "_m"]._droptarget);
strarr = String(str).split(".");
i = 0;
while (i < strarr.length) {
trace((("strarr[" + i) + "]:") + strarr[i]);
i++;
}
typ = strarr[1].split("_")[0];
if (typ == "tub") {
_root.squirt_snd.play();
if (strarr[3] == "one") {
if (_root.tub[strarr[1]].toppings1 == "") {
_root.tub[strarr[1]].toppings1 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 4);
_root.tub[strarr[1]].toppingsmc1 = top;
_root.tub[strarr[1]].toppings_cnt++;
}
} else if (strarr[3] == "two") {
if (_root.tub[strarr[1]].toppings2 == "") {
_root.tub[strarr[1]].toppings2 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 4);
_root.tub[strarr[1]].toppingsmc2 = top;
_root.tub[strarr[1]].toppings_cnt++;
}
} else if (strarr[3] == "three") {
if (_root.tub[strarr[1]].toppings3 == "") {
_root.tub[strarr[1]].toppings3 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 4);
_root.tub[strarr[1]].toppingsmc3 = top;
_root.tub[strarr[1]].toppings_cnt++;
}
}
} else if (typ == "cone") {
_root.squirt_snd.play();
if (strarr[2] == "one") {
if (_root.cone[strarr[1]].toppings1 == "") {
_root.cone[strarr[1]].toppings1 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 1);
_root.cone[strarr[1]].toppingsmc1 = top;
_root.cone[strarr[1]].toppings_cnt++;
}
} else if (strarr[2] == "two") {
if (strarr[3] == "one") {
if (_root.cone[strarr[1]].toppings1 == "") {
_root.cone[strarr[1]].toppings1 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 1);
_root.cone[strarr[1]].toppingsmc1 = top;
_root.cone[strarr[1]].toppings_cnt++;
}
} else if (strarr[3] == "two") {
if (_root.cone[strarr[1]].toppings2 == "") {
_root.cone[strarr[1]].toppings2 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 2);
_root.cone[strarr[1]].toppingsmc2 = top;
_root.cone[strarr[1]].toppings_cnt++;
}
}
}
}
}
_root[this._name + "_m"].unloadMovie();
}
}
Instance of Symbol 686 MovieClip "strawsauce" in Frame 3
onClipEvent (load) {
}
on (press) {
if (_root.pause_pressed == false) {
_parent.strawsauc.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"]._rotation = 210;
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
toppings = eval (_root[this._name + "_m"]._droptarget);
str = String(toppings).substr(-3, 3);
if (str == "_mc") {
str = eval (_root[this._name + "_m"]._droptarget);
strarr = String(str).split(".");
i = 0;
while (i < strarr.length) {
trace((("strarr[" + i) + "]:") + strarr[i]);
i++;
}
typ = strarr[1].split("_")[0];
if (typ == "tub") {
_root.squirt_snd.play();
if (strarr[3] == "one") {
if (_root.tub[strarr[1]].toppings1 == "") {
_root.tub[strarr[1]].toppings1 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 4);
_root.tub[strarr[1]].toppingsmc1 = top;
_root.tub[strarr[1]].toppings_cnt++;
}
} else if (strarr[3] == "two") {
if (_root.tub[strarr[1]].toppings2 == "") {
_root.tub[strarr[1]].toppings2 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 4);
_root.tub[strarr[1]].toppingsmc2 = top;
_root.tub[strarr[1]].toppings_cnt++;
}
} else if (strarr[3] == "three") {
if (_root.tub[strarr[1]].toppings3 == "") {
_root.tub[strarr[1]].toppings3 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 4);
_root.tub[strarr[1]].toppingsmc3 = top;
_root.tub[strarr[1]].toppings_cnt++;
}
}
} else if (typ == "cone") {
_root.squirt_snd.play();
if (strarr[2] == "one") {
if (_root.cone[strarr[1]].toppings1 == "") {
_root.cone[strarr[1]].toppings1 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 1);
_root.cone[strarr[1]].toppingsmc1 = top;
_root.cone[strarr[1]].toppings_cnt++;
}
} else if (strarr[2] == "two") {
if (strarr[3] == "one") {
if (_root.cone[strarr[1]].toppings1 == "") {
_root.cone[strarr[1]].toppings1 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 1);
_root.cone[strarr[1]].toppingsmc1 = top;
_root.cone[strarr[1]].toppings_cnt++;
}
} else if (strarr[3] == "two") {
if (_root.cone[strarr[1]].toppings2 == "") {
_root.cone[strarr[1]].toppings2 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 2);
_root.cone[strarr[1]].toppingsmc2 = top;
_root.cone[strarr[1]].toppings_cnt++;
}
}
}
}
}
_root[this._name + "_m"].unloadMovie();
}
}
Instance of Symbol 688 MovieClip "hundredsofthousands" in Frame 3
onClipEvent (load) {
}
on (press) {
if (_root.pause_pressed == false) {
_parent.hunderds_of_thousands.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
toppings = eval (_root[this._name + "_m"]._droptarget);
str = String(toppings).substr(-3, 3);
if (str == "_mc") {
str = eval (_root[this._name + "_m"]._droptarget);
strarr = String(str).split(".");
i = 0;
while (i < strarr.length) {
trace((("strarr[" + i) + "]:") + strarr[i]);
i++;
}
typ = strarr[1].split("_")[0];
if (typ == "tub") {
if (strarr[3] == "one") {
if (_root.tub[strarr[1]].toppings1 == "") {
_root.tub[strarr[1]].toppings1 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 4);
_root.tub[strarr[1]].toppingsmc1 = top;
_root.tub[strarr[1]].toppings_cnt++;
}
} else if (strarr[3] == "two") {
if (_root.tub[strarr[1]].toppings2 == "") {
_root.tub[strarr[1]].toppings2 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 4);
_root.tub[strarr[1]].toppingsmc2 = top;
_root.tub[strarr[1]].toppings_cnt++;
}
} else if (strarr[3] == "three") {
if (_root.tub[strarr[1]].toppings3 == "") {
_root.tub[strarr[1]].toppings3 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 4);
_root.tub[strarr[1]].toppingsmc3 = top;
_root.tub[strarr[1]].toppings_cnt++;
}
}
} else if (typ == "cone") {
if (strarr[2] == "one") {
if (_root.cone[strarr[1]].toppings1 == "") {
_root.cone[strarr[1]].toppings1 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 1);
_root.cone[strarr[1]].toppingsmc1 = top;
_root.cone[strarr[1]].toppings_cnt++;
}
} else if (strarr[2] == "two") {
if (strarr[3] == "one") {
if (_root.cone[strarr[1]].toppings1 == "") {
_root.cone[strarr[1]].toppings1 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 1);
_root.cone[strarr[1]].toppingsmc1 = top;
_root.cone[strarr[1]].toppings_cnt++;
}
} else if (strarr[3] == "two") {
if (_root.cone[strarr[1]].toppings2 == "") {
_root.cone[strarr[1]].toppings2 = this._name;
top = eval ((((((((("_root." + strarr[0]) + ".") + strarr[1]) + ".") + strarr[2]) + ".") + strarr[3]) + ".") + strarr[4]).attachMovie(this._name, this._name + "_m", 2);
_root.cone[strarr[1]].toppingsmc2 = top;
_root.cone[strarr[1]].toppings_cnt++;
}
}
}
}
}
_root[this._name + "_m"].unloadMovie();
}
}
Instance of Symbol 690 MovieClip "chocoflake" in Frame 3
onClipEvent (load) {
}
on (press) {
if (_root.pause_pressed == false) {
_parent.chocoflak.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
k = 1;
while (k <= 3) {
if (eval ("_root.tub_" + k)._visible == true) {
if (eval ("_root.tub_" + k).hitTest(_root._xmouse, _root._ymouse)) {
hitmc = "tub_" + k;
if (_root.tub[hitmc].flavour_cnt != 0) {
eval ("_root.tub_" + k).cflake._visible = true;
_root.tub[hitmc].cflak = true;
}
}
}
k++;
}
j = 1;
while (j <= 4) {
if (eval ("_root.cone_" + j)._visible == true) {
if (eval ("_root.cone_" + j).hitTest(_root._xmouse, _root._ymouse)) {
hitmc = "cone_" + j;
if (_root.cone[hitmc].flavour_cnt != 0) {
eval ("_root.cone_" + j).cflake._visible = true;
_root.cone[hitmc].cflak = true;
}
}
}
j++;
}
}
}
Instance of Symbol 442 MovieClip [vanilla] "vanilla_flavr" in Frame 3
onClipEvent (load) {
var i = 0;
}
on (press) {
i++;
_parent.mousedown.objname = this._name;
this.duplicateMovieClip("vanilla_" + i, _root.getNextHighestDepth());
_root["vanilla_" + i]._x = _root._xmouse;
_root["vanilla_" + i]._y = _root._ymouse;
_root["vanilla_" + i].startDrag();
}
on (release, releaseOutside) {
_root["vanilla_" + i].unloadMovie();
k = 1;
while (k <= 3) {
if (eval ("_root.tub_" + k)._visible == true) {
if (_root["vanilla_" + i].hitTest(eval ("_root.tub_" + k))) {
_root["vanilla_" + i].hitmc = "tub_" + k;
if (eval ("_root.tub_" + k).val < 3) {
val = ++_root.tub[_root["vanilla_" + i].hitmc].flavour_cnt;
s = ++eval ("_root.tub_" + k).val;
}
if (val == 1) {
_root.tub[_root["vanilla_" + i].hitmc].flavour1 = "vanilla";
} else if (val == 2) {
_root.tub[_root["vanilla_" + i].hitmc].flavour2 = "vanilla";
} else if (val == 3) {
_root.tub[_root["vanilla_" + i].hitmc].flavour3 = "vanilla";
}
_parent.update_tub_order(_root["vanilla_" + i].hitmc, "vanilla", val);
break;
}
}
k++;
}
j = 1;
while (j <= 4) {
if (eval ("_root.cone_" + j)._visible == true) {
if (eval ("_root.cone_" + j).hitTest(_root._xmouse, _root._ymouse)) {
_root["vanilla_" + i].hitmc = "cone_" + j;
if ((_root.cone[_root["vanilla_" + i].hitmc].typ == 1) && (_root.cone[_root["vanilla_" + i].hitmc].flavour_cnt < 1)) {
cval = ++_root.cone[_root["vanilla_" + i].hitmc].flavour_cnt;
c = ++eval ("_root.cone_" + j).cval;
_root.cone[_root["vanilla_" + i].hitmc].flavour1 = "vanilla";
delete _root.cone[_root["vanilla_" + i].hitmc].flavour2;
_parent.update_cone_order(_root["vanilla_" + i].hitmc, "vanilla", cval);
break;
}
if ((_root.cone[_root["vanilla_" + i].hitmc].typ == 2) && (_root.cone[_root["vanilla_" + i].hitmc].flavour_cnt < 2)) {
cval = ++_root.cone[_root["vanilla_" + i].hitmc].flavour_cnt;
if (eval ("_root.cone_" + j).cval < 2) {
c = ++eval ("_root.cone_" + j).cval;
}
if (cval == 1) {
_root.cone[_root["vanilla_" + i].hitmc].flavour1 = "vanilla";
} else if (cval == 2) {
_root.cone[_root["vanilla_" + i].hitmc].flavour2 = "vanilla";
}
_parent.update_cone_order(_root["vanilla_" + i].hitmc, "vanilla", cval);
break;
}
}
}
j++;
}
}
Instance of Symbol 447 MovieClip [chocolate] "chocolate_flavr" in Frame 3
onClipEvent (load) {
var i = 0;
}
on (press) {
i++;
_parent.mousedown.objname = this._name;
this.duplicateMovieClip("chocolate_" + i, _root.getNextHighestDepth());
_root["chocolate_" + i]._x = _root._xmouse;
_root["chocolate_" + i]._y = _root._ymouse;
_root["chocolate_" + i].startDrag();
}
on (release, releaseOutside) {
_root["chocolate_" + i].unloadMovie();
k = 1;
while (k <= 3) {
if (eval ("_root.tub_" + k)._visible == true) {
if (_root["chocolate_" + i].hitTest(eval ("_root.tub_" + k))) {
_root["chocolate_" + i].hitmc = "tub_" + k;
if (eval ("_root.tub_" + k).val < 3) {
val = ++_root.tub[_root["chocolate_" + i].hitmc].flavour_cnt;
s = ++eval ("_root.tub_" + k).val;
}
if (val == 1) {
_root.tub[_root["chocolate_" + i].hitmc].flavour1 = "chocolate";
} else if (val == 2) {
_root.tub[_root["chocolate_" + i].hitmc].flavour2 = "chocolate";
} else if (val == 3) {
_root.tub[_root["chocolate_" + i].hitmc].flavour3 = "chocolate";
}
_parent.update_tub_order(_root["chocolate_" + i].hitmc, "chocolate", val);
break;
}
}
k++;
}
j = 1;
while (j <= 4) {
if (eval ("_root.cone_" + j)._visible == true) {
if (eval ("_root.cone_" + j).hitTest(_root._xmouse, _root._ymouse)) {
_root["chocolate_" + i].hitmc = "cone_" + j;
if ((_root.cone[_root["chocolate_" + i].hitmc].typ == 1) && (_root.cone[_root["chocolate_" + i].hitmc].flavour_cnt < 1)) {
cval = ++_root.cone[_root["chocolate_" + i].hitmc].flavour_cnt;
c = ++eval ("_root.cone_" + j).cval;
_root.cone[_root["chocolate_" + i].hitmc].flavour1 = "chocolate";
delete _root.cone[_root["chocolate_" + i].hitmc].flavour2;
_parent.update_cone_order(_root["chocolate_" + i].hitmc, "chocolate", cval);
break;
}
if ((_root.cone[_root["chocolate_" + i].hitmc].typ == 2) && (_root.cone[_root["chocolate_" + i].hitmc].flavour_cnt < 2)) {
cval = ++_root.cone[_root["chocolate_" + i].hitmc].flavour_cnt;
if (eval ("_root.cone_" + j).cval < 2) {
c = ++eval ("_root.cone_" + j).cval;
}
if (cval == 1) {
_root.cone[_root["chocolate_" + i].hitmc].flavour1 = "chocolate";
} else if (cval == 2) {
_root.cone[_root["chocolate_" + i].hitmc].flavour2 = "chocolate";
}
_parent.update_cone_order(_root["chocolate_" + i].hitmc, "chocolate", cval);
break;
}
}
}
j++;
}
}
Instance of Symbol 432 MovieClip [butterscotch] "butterscotch_flavr" in Frame 3
onClipEvent (load) {
var i = 0;
}
on (press) {
i++;
_parent.mousedown.objname = this._name;
this.duplicateMovieClip("butterscotch_" + i, _root.getNextHighestDepth());
_root["butterscotch_" + i]._x = _root._xmouse;
_root["butterscotch_" + i]._y = _root._ymouse;
_root["butterscotch_" + i].startDrag();
}
on (release, releaseOutside) {
_root["butterscotch_" + i].unloadMovie();
k = 1;
while (k <= 3) {
if (eval ("_root.tub_" + k)._visible == true) {
if (_root["butterscotch_" + i].hitTest(eval ("_root.tub_" + k))) {
_root["butterscotch_" + i].hitmc = "tub_" + k;
if (eval ("_root.tub_" + k).val < 3) {
val = ++_root.tub[_root["butterscotch_" + i].hitmc].flavour_cnt;
s = ++eval ("_root.tub_" + k).val;
}
if (val == 1) {
_root.tub[_root["butterscotch_" + i].hitmc].flavour1 = "butterscotch";
} else if (val == 2) {
_root.tub[_root["butterscotch_" + i].hitmc].flavour2 = "butterscotch";
} else if (val == 3) {
_root.tub[_root["butterscotch_" + i].hitmc].flavour3 = "butterscotch";
}
_parent.update_tub_order(_root["butterscotch_" + i].hitmc, "butterscotch", val);
break;
}
}
k++;
}
j = 1;
while (j <= 4) {
if (eval ("_root.cone_" + j)._visible == true) {
if (eval ("_root.cone_" + j).hitTest(_root._xmouse, _root._ymouse)) {
_root["butterscotch_" + i].hitmc = "cone_" + j;
if ((_root.cone[_root["butterscotch_" + i].hitmc].typ == 1) && (_root.cone[_root["butterscotch_" + i].hitmc].flavour_cnt < 1)) {
cval = ++_root.cone[_root["butterscotch_" + i].hitmc].flavour_cnt;
c = ++eval ("_root.cone_" + j).cval;
_root.cone[_root["butterscotch_" + i].hitmc].flavour1 = "butterscotch";
delete _root.cone[_root["butterscotch_" + i].hitmc].flavour2;
_parent.update_cone_order(_root["butterscotch_" + i].hitmc, "butterscotch", cval);
break;
}
if ((_root.cone[_root["butterscotch_" + i].hitmc].typ == 2) && (_root.cone[_root["butterscotch_" + i].hitmc].flavour_cnt < 2)) {
cval = ++_root.cone[_root["butterscotch_" + i].hitmc].flavour_cnt;
if (eval ("_root.cone_" + j).cval < 2) {
c = ++eval ("_root.cone_" + j).cval;
}
if (cval == 1) {
_root.cone[_root["butterscotch_" + i].hitmc].flavour1 = "butterscotch";
} else if (cval == 2) {
_root.cone[_root["butterscotch_" + i].hitmc].flavour2 = "butterscotch";
}
_parent.update_cone_order(_root["butterscotch_" + i].hitmc, "butterscotch", cval);
break;
}
}
}
j++;
}
}
Instance of Symbol 437 MovieClip [strawberry] "strawberry_flavr" in Frame 3
onClipEvent (load) {
var i = 0;
}
on (press) {
i++;
_parent.mousedown.objname = this._name;
this.duplicateMovieClip("strawberry_" + i, _root.getNextHighestDepth());
_root["strawberry_" + i]._x = _root._xmouse;
_root["strawberry_" + i]._y = _root._ymouse;
_root["strawberry_" + i].startDrag();
}
on (release, releaseOutside) {
_root["strawberry_" + i].unloadMovie();
k = 1;
while (k <= 3) {
if (eval ("_root.tub_" + k)._visible == true) {
if (_root["strawberry_" + i].hitTest(eval ("_root.tub_" + k))) {
_root["strawberry_" + i].hitmc = "tub_" + k;
if (eval ("_root.tub_" + k).val < 3) {
val = ++_root.tub[_root["strawberry_" + i].hitmc].flavour_cnt;
s = ++eval ("_root.tub_" + k).val;
}
if (val == 1) {
_root.tub[_root["strawberry_" + i].hitmc].flavour1 = "strawberry";
} else if (val == 2) {
_root.tub[_root["strawberry_" + i].hitmc].flavour2 = "strawberry";
} else if (val == 3) {
_root.tub[_root["strawberry_" + i].hitmc].flavour3 = "strawberry";
}
_parent.update_tub_order(_root["strawberry_" + i].hitmc, "strawberry", val);
break;
}
}
k++;
}
j = 1;
while (j <= 4) {
if (eval ("_root.cone_" + j)._visible == true) {
if (eval ("_root.cone_" + j).hitTest(_root._xmouse, _root._ymouse)) {
_root["strawberry_" + i].hitmc = "cone_" + j;
if ((_root.cone[_root["strawberry_" + i].hitmc].typ == 1) && (_root.cone[_root["strawberry_" + i].hitmc].flavour_cnt < 1)) {
cval = ++_root.cone[_root["strawberry_" + i].hitmc].flavour_cnt;
c = ++eval ("_root.cone_" + j).cval;
_root.cone[_root["strawberry_" + i].hitmc].flavour1 = "strawberry";
delete _root.cone[_root["strawberry_" + i].hitmc].flavour2;
_parent.update_cone_order(_root["strawberry_" + i].hitmc, "strawberry", cval);
break;
}
if ((_root.cone[_root["strawberry_" + i].hitmc].typ == 2) && (_root.cone[_root["strawberry_" + i].hitmc].flavour_cnt < 2)) {
cval = ++_root.cone[_root["strawberry_" + i].hitmc].flavour_cnt;
if (eval ("_root.cone_" + j).cval < 2) {
c = ++eval ("_root.cone_" + j).cval;
}
if (cval == 1) {
_root.cone[_root["strawberry_" + i].hitmc].flavour1 = "strawberry";
} else if (cval == 2) {
_root.cone[_root["strawberry_" + i].hitmc].flavour2 = "strawberry";
}
_parent.update_cone_order(_root["strawberry_" + i].hitmc, "strawberry", cval);
break;
}
}
}
j++;
}
}
Instance of Symbol 427 MovieClip [orange] "orange_flavr" in Frame 3
onClipEvent (load) {
var i = 0;
}
on (press) {
i++;
_parent.mousedown.objname = this._name;
this.duplicateMovieClip("orange_" + i, _root.getNextHighestDepth());
_root["orange_" + i]._x = _root._xmouse;
_root["orange_" + i]._y = _root._ymouse;
_root["orange_" + i].startDrag();
}
on (release, releaseOutside) {
_root["orange_" + i].unloadMovie();
k = 1;
while (k <= 3) {
if (eval ("_root.tub_" + k)._visible == true) {
if (_root["orange_" + i].hitTest(eval ("_root.tub_" + k))) {
_root["orange_" + i].hitmc = "tub_" + k;
if (eval ("_root.tub_" + k).val < 3) {
val = ++_root.tub[_root["orange_" + i].hitmc].flavour_cnt;
s = ++eval ("_root.tub_" + k).val;
}
if (val == 1) {
_root.tub[_root["orange_" + i].hitmc].flavour1 = "orange";
} else if (val == 2) {
_root.tub[_root["orange_" + i].hitmc].flavour2 = "orange";
} else if (val == 3) {
_root.tub[_root["orange_" + i].hitmc].flavour3 = "orange";
}
_parent.update_tub_order(_root["orange_" + i].hitmc, "orange", val);
break;
}
}
k++;
}
j = 1;
while (j <= 4) {
if (eval ("_root.cone_" + j)._visible == true) {
if (eval ("_root.cone_" + j).hitTest(_root._xmouse, _root._ymouse)) {
_root["orange_" + i].hitmc = "cone_" + j;
if ((_root.cone[_root["orange_" + i].hitmc].typ == 1) && (_root.cone[_root["orange_" + i].hitmc].flavour_cnt < 1)) {
cval = ++_root.cone[_root["orange_" + i].hitmc].flavour_cnt;
c = ++eval ("_root.cone_" + j).cval;
_root.cone[_root["orange_" + i].hitmc].flavour1 = "orange";
delete _root.cone[_root["orange_" + i].hitmc].flavour2;
_parent.update_cone_order(_root["orange_" + i].hitmc, "orange", cval);
break;
}
if ((_root.cone[_root["orange_" + i].hitmc].typ == 2) && (_root.cone[_root["orange_" + i].hitmc].flavour_cnt < 2)) {
cval = ++_root.cone[_root["orange_" + i].hitmc].flavour_cnt;
if (eval ("_root.cone_" + j).cval < 2) {
c = ++eval ("_root.cone_" + j).cval;
}
if (cval == 1) {
_root.cone[_root["orange_" + i].hitmc].flavour1 = "orange";
} else if (cval == 2) {
_root.cone[_root["orange_" + i].hitmc].flavour2 = "orange";
}
_parent.update_cone_order(_root["orange_" + i].hitmc, "orange", cval);
break;
}
}
}
j++;
}
}
Instance of Symbol 692 MovieClip in Frame 3
onClipEvent (load) {
}
on (release) {
if ((_root.tub_1._visible == false) && (_root.pause_pressed == false)) {
_root.tub_1._visible = true;
} else if ((_root.tub_2._visible == false) && (_root.pause_pressed == false)) {
_root.tub_2._visible = true;
} else if ((_root.tub_3._visible == false) && (_root.pause_pressed == false)) {
_root.tub_3._visible = true;
}
}
Instance of Symbol 734 MovieClip "cokecan" in Frame 3
onClipEvent (load) {
}
on (press) {
if (_root.pause_pressed == false) {
_parent.cokeca.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"].onLoad = function () {
this.nam = "cokecan";
};
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
}
i = 1;
while (i <= 20) {
if (eval ("_root.girlmc_" + i).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + i).flag == false)) {
trace("dropped to customer" + eval ("_root.girlmc_" + i));
tot = Number(eval (("_root.girlmc_" + i) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + i) + ".no_of_orders_delivered"));
trace("tot_obj_val:" + tot);
trace("delvr_obj_val:" + delvr);
a = eval (("_root.girlmc_" + i) + ".attached_order");
trace("a:" + a);
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root[this._name + "_m"].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
eval ((a + ".") + objec)._visible = false;
eval ("_root.delay" + i).gotoAndPlay(2);
eval ("_root.girlmc_" + i).no_of_orders_delivered++;
eval ("_root.girlmc_" + i).moneygiven = eval ("_root.girlmc_" + i).moneygiven + 5;
break;
}
}
}
delvr = Number(eval (("_root.girlmc_" + i) + ".no_of_orders_delivered"));
trace("delvrrrrrrrrr:" + delvr);
trace("tottttttttttt:" + tot);
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
}
eval (a).unloadMovie();
movieclip = eval (("_root.girlmc_" + i) + ".mny");
monyval = eval (("_root.girlmc_" + i) + ".moneygiven");
trace("eval(_root.girlmc_run:)" + eval (("_root.girlmc_" + i) + ".run"));
if (eval (("_root.girlmc_" + i) + ".run")) {
eval ("_root.girlmc_" + i).xmov = 3;
} else {
_parent.show_money(movieclip, monyval);
}
eval (("_root.girlmc_" + i) + ".face").gotoAndStop(1);
eval ("_root.delay" + i).flag = false;
eval ("_root.delay" + i).gotoAndStop(1);
eval ("_root.girlmc_" + i)._x = eval ("_root.girlmc_" + i)._x + eval ("_root.girlmc_" + i).xmov;
eval ("_root.girlmc_" + i).flag = true;
eval ("_root.girlmc_" + i).swapDepths(-16150 - _root.run_count);
}
}
i++;
}
}
}
Instance of Symbol 750 MovieClip "cokebottle" in Frame 3
onClipEvent (load) {
}
on (press) {
if (_root.pause_pressed == false) {
_parent.cokebottl.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"].onLoad = function () {
this.nam = "cokebottle";
};
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
}
i = 1;
while (i <= 20) {
if (eval ("_root.girlmc_" + i).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + i).flag == false)) {
trace("dropped to customer" + eval ("_root.girlmc_" + i));
tot = Number(eval (("_root.girlmc_" + i) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + i) + ".no_of_orders_delivered"));
trace("tot_obj_val:" + tot);
trace("delvr_obj_val:" + delvr);
a = eval (("_root.girlmc_" + i) + ".attached_order");
trace("a:" + a);
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root[this._name + "_m"].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
eval ((a + ".") + objec)._visible = false;
eval ("_root.delay" + i).gotoAndPlay(2);
eval ("_root.girlmc_" + i).no_of_orders_delivered++;
eval ("_root.girlmc_" + i).moneygiven = eval ("_root.girlmc_" + i).moneygiven + 5;
break;
}
}
}
delvr = Number(eval (("_root.girlmc_" + i) + ".no_of_orders_delivered"));
trace("delvrrrrrrrrr:" + delvr);
trace("tottttttttttt:" + tot);
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
}
eval (a).unloadMovie();
movieclip = eval (("_root.girlmc_" + i) + ".mny");
monyval = eval (("_root.girlmc_" + i) + ".moneygiven");
trace("eval(_root.girlmc_run:)" + eval (("_root.girlmc_" + i) + ".run"));
if (eval (("_root.girlmc_" + i) + ".run")) {
eval ("_root.girlmc_" + i).xmov = 3;
} else {
_parent.show_money(movieclip, monyval);
}
eval (("_root.girlmc_" + i) + ".face").gotoAndStop(1);
eval ("_root.delay" + i).flag = false;
eval ("_root.delay" + i).gotoAndStop(1);
eval ("_root.girlmc_" + i)._x = eval ("_root.girlmc_" + i)._x + eval ("_root.girlmc_" + i).xmov;
eval ("_root.girlmc_" + i).flag = true;
eval ("_root.girlmc_" + i).swapDepths(-16150 - _root.run_count);
}
}
i++;
}
}
}
Instance of Symbol 109 MovieClip "cokeca" in Frame 3
on (press) {
this.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
on (release, releaseOutside) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
}
Instance of Symbol 78 MovieClip "cokebottl" in Frame 3
on (press) {
this.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
on (release, releaseOutside) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
}
Instance of Symbol 752 MovieClip in Frame 3
onClipEvent (load) {
}
Instance of Symbol 756 MovieClip "trash" in Frame 3
onClipEvent (enterFrame) {
if (_root.pause_pressed == false) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 1385 MovieClip "tub_1" in Frame 3
onClipEvent (load) {
var i = 0;
val = 0;
cflake._visible = false;
spd = 3;
}
on (rollOver) {
}
on (press) {
if (_root.pause_pressed == false) {
mcnam = _parent.mousedown.objname;
if (_root.tub[this._name].flavour_cnt != 0) {
_visible = false;
}
if (_root.tub[this._name].flavour_cnt < 3) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
val = ++_root.tub[this._name].flavour_cnt;
if (val == 1) {
_root.tub[this._name].flavour1 = mcnam;
_parent.update_tub_order(this._name, mcnam, val);
} else if (val == 2) {
_root.tub[this._name].flavour2 = mcnam;
_parent.update_tub_order(this._name, mcnam, val);
} else if (val == 3) {
_root.tub[this._name].flavour3 = mcnam;
_parent.update_tub_order(this._name, mcnam, val);
}
}
}
i++;
if (val == 1) {
this.duplicateMovieClip("tb1_" + i, 1000 + i);
one_flavr_mc = ((eval (this) + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc";
frm = eval (one_flavr_mc)._currentframe;
mc = _root["tb1_" + i].one_flav.one.attachMovie(_root.tub[this._name].flavour1, _root.tub[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc1 = mc;
if (_root.tub[this._name].toppings1 != "") {
top = _root["tb1_" + i].one_flav.one.attachMovie(_root.tub[this._name].toppings1, _root.tub[this._name].toppings1 + "_m", 4);
_root.tub[this._name].toppingsmc1 = top;
}
} else if (val == 2) {
this.duplicateMovieClip("tb1_" + i, 1000 + i);
one_flavr = _root.tub[this._name].flavour1;
one_flavr_mc = ((_root["tb1_" + i] + ".one_flav.one.") + one_flavr) + "_mc";
one_toppings = _root.tub[this._name].toppings1;
one_toppings_mc = ((_root["tb1_" + i] + ".one_flav.one.") + one_toppings) + "_m";
eval (one_flavr_mc).unloadMovie();
eval (one_toppings_mc).unloadMovie();
frm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
mc = _root["tb1_" + i].two_flav.one.attachMovie(_root.tub[this._name].flavour1, _root.tub[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc1 = mc;
if (_root.tub[this._name].toppings1 != "") {
top = _root["tb1_" + i].two_flav.one.attachMovie(_root.tub[this._name].toppings1, _root.tub[this._name].toppings1 + "_m", 4);
_root.tub[this._name].toppingsmc1 = top;
}
frm = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
mc = _root["tb1_" + i].two_flav.two.attachMovie(_root.tub[this._name].flavour2, _root.tub[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc2 = mc;
if (_root.tub[this._name].toppings2 != "") {
top = _root["tb1_" + i].two_flav.two.attachMovie(_root.tub[this._name].toppings2, _root.tub[this._name].toppings2 + "_m", 4);
_root.tub[this._name].toppingsmc2 = top;
}
} else if (val == 3) {
this.duplicateMovieClip("tb1_" + i, 1000 + i);
two_flavr_one = tub[this._name].flavour1;
two_flavr_one_mc = ((_root["tb1_" + i] + ".two_flav.one.") + two_flavr_one) + "_mc";
two_flavr_two = tub[this._name].flavour2;
two_flavr_two_mc = ((_root["tb1_" + i] + ".two_flav.two.") + two_flavr_two) + "_mc";
two_toppings_one = _root.tub[this._name].toppings1;
two_toppings_one_mc = ((_root["tb1_" + i] + ".one_flav.one.") + two_toppings_one) + "_m";
two_toppings_two = _root.tub[this._name].toppings2;
two_toppings_two_mc = ((_root["tb1_" + i] + ".one_flav.one.") + two_toppings_two) + "_m";
eval (two_toppings_one_mc).unloadMovie();
eval (two_toppings_two_mc).unloadMovie();
eval (two_flavr_one_mc).unloadMovie();
eval (two_flavr_two_mc).unloadMovie();
frm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
mc = _root["tb1_" + i].three_flav.one.attachMovie(_root.tub[this._name].flavour1, _root.tub[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc1 = mc;
if (_root.tub[this._name].toppings1 != "") {
top = _root["tb1_" + i].three_flav.one.attachMovie(_root.tub[this._name].toppings1, _root.tub[this._name].toppings1 + "_m", 4);
_root.tub[this._name].toppingsmc1 = top;
}
frm = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
mc = _root["tb1_" + i].three_flav.two.attachMovie(_root.tub[this._name].flavour2, _root.tub[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc2 = mc;
if (_root.tub[this._name].toppings2 != "") {
top = _root["tb1_" + i].three_flav.two.attachMovie(_root.tub[this._name].toppings2, _root.tub[this._name].toppings2 + "_m", 4);
_root.tub[this._name].toppingsmc2 = top;
}
frm = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
mc = _root["tb1_" + i].three_flav.three.attachMovie(_root.tub[this._name].flavour3, _root.tub[this._name].flavour3 + "_mc", 3);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc3 = mc;
if (_root.tub[this._name].toppings3 != "") {
top = _root["tb1_" + i].three_flav.three.attachMovie(_root.tub[this._name].toppings3, _root.tub[this._name].toppings3 + "_m", 4);
_root.tub[this._name].toppingsmc3 = top;
}
}
if (_root.tub[this._name].cflak == true) {
_root["tb1_" + i].onLoad = function () {
_root["tb1_" + i]._visible = true;
_root["tb1_" + i].cflake._visible = true;
};
}
_root["tb1_" + i]._visible = true;
_root["tb1_" + i].nam = "tub";
_root["tb1_" + i].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
if (_root.tub[this._name].flavour_cnt != 0) {
_parent.mousedown.objname = null;
_root["tb1_" + i].stopDrag();
_root["tb1_" + i].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_parent.reset_tub_object(this._name);
_visible = false;
}
if (_root.tub[this._name].flavour_cnt == 1) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["tb1_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr:" + _root.tub[this._name].flavour1);
trace("cooked topps:" + _root.tub[this._name].toppings1);
trace("cooked flake:" + _root.tub[this._name].cflak);
trace("cust flvr:" + conts[kk][2]);
trace("cust topps:" + conts[kk][1]);
trace("flake:" + conts[kk][3]);
if (_root.tub[this._name].flavour1 == conts[kk][2]) {
if (_root.tub[this._name].toppings1 == conts[kk][1]) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 16;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else if (_root.tub[this._name].toppings1 == "") {
trace("only flavour same but top empty");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 8;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 8;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 6;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
}
if (_root.tub[this._name].cflak && (conts[kk][3] == "chocoflake")) {
trace("ddddddd");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (_root.tub[this._name].flavour1 != conts[kk][2]) {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 8;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 6;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_tub_object(this._name);
}
}
k++;
}
}
if (_root.tub[this._name].flavour_cnt == 2) {
trace("tttttttt2");
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["tb1_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr1:" + _root.tub[this._name].flavour1);
trace("cooked topps1:" + _root.tub[this._name].toppings1);
trace("cooked flvr2:" + _root.tub[this._name].flavour2);
trace("cooked topps2:" + _root.tub[this._name].toppings2);
trace("cust flvr1:" + conts[kk][4]);
trace("cust topps1:" + conts[kk][3]);
trace("cust flvr2:" + conts[kk][2]);
trace("cust topps2:" + conts[kk][1]);
trace("flake:" + conts[kk][5]);
trace("ss:" + _root.tub[this._name].cflak);
if ((_root.tub[this._name].flavour1 == conts[kk][4]) && (_root.tub[this._name].flavour2 == conts[kk][2])) {
if ((_root.tub[this._name].toppings1 == conts[kk][3]) && (_root.tub[this._name].toppings2 == conts[kk][1])) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
} else if ((_root.tub[this._name].toppings1 != conts[kk][3]) && (_root.tub[this._name].toppings2 == conts[kk][1])) {
trace("both flavour same topping 1 wrong topping 2 right");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
} else if ((_root.tub[this._name].toppings1 == conts[kk][3]) && (_root.tub[this._name].toppings2 != conts[kk][1])) {
trace("both flavour same topping 1 right topping 2 wrong");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 18;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
}
if (_root.tub[this._name].cflak && (conts[kk][5] == "chocoflake")) {
trace("ddddddd");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
trace("nothing matches");
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
if (_root.tub[this._name].cflak && (conts[kk][5] == "chocoflake")) {
trace("ddddddd");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_tub_object(this._name);
}
}
k++;
}
}
if (_root.tub[this._name].flavour_cnt == 3) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["tb1_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr1:" + _root.tub[this._name].flavour1);
trace("cooked topps1:" + _root.tub[this._name].toppings1);
trace("cooked flvr2:" + _root.tub[this._name].flavour2);
trace("cooked topps2:" + _root.tub[this._name].toppings2);
trace("cooked flvr3:" + _root.tub[this._name].flavour3);
trace("cooked topps3:" + _root.tub[this._name].toppings3);
trace("cust flvr1:" + conts[kk][6]);
trace("cust topps1:" + conts[kk][5]);
trace("cust flvr2:" + conts[kk][4]);
trace("cust topps2:" + conts[kk][3]);
trace("cust flvr3:" + conts[kk][2]);
trace("cust topps3:" + conts[kk][1]);
trace("cflake:" + conts[kk][7]);
if (((_root.tub[this._name].flavour1 == conts[kk][6]) && (_root.tub[this._name].flavour2 == conts[kk][4])) && (_root.tub[this._name].flavour3 == conts[kk][2])) {
trace("top count:" + _root.tub[this._name].toppings_cnt);
if (((_root.tub[this._name].toppings1 == conts[kk][5]) && (_root.tub[this._name].toppings2 == conts[kk][3])) && (_root.tub[this._name].toppings3 == conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 34;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (((_root.tub[this._name].toppings1 != conts[kk][5]) && (_root.tub[this._name].toppings2 == conts[kk][3])) && (_root.tub[this._name].toppings3 == conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (((_root.tub[this._name].toppings1 == conts[kk][5]) && (_root.tub[this._name].toppings2 != conts[kk][3])) && (_root.tub[this._name].toppings3 == conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (((_root.tub[this._name].toppings1 == conts[kk][5]) && (_root.tub[this._name].toppings2 == conts[kk][3])) && (_root.tub[this._name].toppings3 != conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
}
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 18;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 16;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_tub_object(this._name);
}
}
k++;
}
}
}
}
}
Instance of Symbol 1385 MovieClip "tub_2" in Frame 3
onClipEvent (load) {
var i = 0;
val = 0;
cflake._visible = false;
spd = 3;
}
on (rollOver) {
}
on (press) {
if (_root.pause_pressed == false) {
mcnam = _parent.mousedown.objname;
if (_root.tub[this._name].flavour_cnt != 0) {
_visible = false;
}
if (_root.tub[this._name].flavour_cnt < 3) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
val = ++_root.tub[this._name].flavour_cnt;
if (val == 1) {
_root.tub[this._name].flavour1 = mcnam;
_parent.update_tub_order(this._name, mcnam, val);
} else if (val == 2) {
_root.tub[this._name].flavour2 = mcnam;
_parent.update_tub_order(this._name, mcnam, val);
} else if (val == 3) {
_root.tub[this._name].flavour3 = mcnam;
_parent.update_tub_order(this._name, mcnam, val);
}
}
}
i++;
if (val == 1) {
this.duplicateMovieClip("tb2_" + i, 1000 + i);
one_flavr_mc = ((eval (this) + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc";
frm = eval (one_flavr_mc)._currentframe;
mc = _root["tb2_" + i].one_flav.one.attachMovie(_root.tub[this._name].flavour1, _root.tub[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc1 = mc;
if (_root.tub[this._name].toppings1 != "") {
top = _root["tb2_" + i].one_flav.one.attachMovie(_root.tub[this._name].toppings1, _root.tub[this._name].toppings1 + "_m", 4);
_root.tub[this._name].toppingsmc1 = top;
}
} else if (val == 2) {
this.duplicateMovieClip("tb2_" + i, 1000 + i);
one_flavr = _root.tub[this._name].flavour1;
one_flavr_mc = ((_root["tb2_" + i] + ".one_flav.one.") + one_flavr) + "_mc";
one_toppings = _root.tub[this._name].toppings1;
one_toppings_mc = ((_root["tb2_" + i] + ".one_flav.one.") + one_toppings) + "_m";
eval (one_flavr_mc).unloadMovie();
eval (one_toppings_mc).unloadMovie();
frm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
mc = _root["tb2_" + i].two_flav.one.attachMovie(_root.tub[this._name].flavour1, _root.tub[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc1 = mc;
if (_root.tub[this._name].toppings1 != "") {
top = _root["tb2_" + i].two_flav.one.attachMovie(_root.tub[this._name].toppings1, _root.tub[this._name].toppings1 + "_m", 4);
_root.tub[this._name].toppingsmc1 = top;
}
frm = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
mc = _root["tb2_" + i].two_flav.two.attachMovie(_root.tub[this._name].flavour2, _root.tub[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc2 = mc;
if (_root.tub[this._name].toppings2 != "") {
top = _root["tb2_" + i].two_flav.two.attachMovie(_root.tub[this._name].toppings2, _root.tub[this._name].toppings2 + "_m", 4);
_root.tub[this._name].toppingsmc2 = top;
}
} else if (val == 3) {
this.duplicateMovieClip("tb2_" + i, 1000 + i);
two_flavr_one = tub[this._name].flavour1;
two_flavr_one_mc = ((_root["tb2_" + i] + ".two_flav.one.") + two_flavr_one) + "_mc";
two_flavr_two = tub[this._name].flavour2;
two_flavr_two_mc = ((_root["tb2_" + i] + ".two_flav.two.") + two_flavr_two) + "_mc";
two_toppings_one = _root.tub[this._name].toppings1;
two_toppings_one_mc = ((_root["tb2_" + i] + ".one_flav.one.") + two_toppings_one) + "_m";
two_toppings_two = _root.tub[this._name].toppings2;
two_toppings_two_mc = ((_root["tb2_" + i] + ".one_flav.one.") + two_toppings_two) + "_m";
eval (two_toppings_one_mc).unloadMovie();
eval (two_toppings_two_mc).unloadMovie();
eval (two_flavr_one_mc).unloadMovie();
eval (two_flavr_two_mc).unloadMovie();
frm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
mc = _root["tb2_" + i].three_flav.one.attachMovie(_root.tub[this._name].flavour1, _root.tub[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc1 = mc;
if (_root.tub[this._name].toppings1 != "") {
top = _root["tb2_" + i].three_flav.one.attachMovie(_root.tub[this._name].toppings1, _root.tub[this._name].toppings1 + "_m", 4);
_root.tub[this._name].toppingsmc1 = top;
}
frm = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
mc = _root["tb2_" + i].three_flav.two.attachMovie(_root.tub[this._name].flavour2, _root.tub[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc2 = mc;
if (_root.tub[this._name].toppings2 != "") {
top = _root["tb2_" + i].three_flav.two.attachMovie(_root.tub[this._name].toppings2, _root.tub[this._name].toppings2 + "_m", 4);
_root.tub[this._name].toppingsmc2 = top;
}
frm = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
mc = _root["tb2_" + i].three_flav.three.attachMovie(_root.tub[this._name].flavour3, _root.tub[this._name].flavour3 + "_mc", 3);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc3 = mc;
if (_root.tub[this._name].toppings3 != "") {
top = _root["tb2_" + i].three_flav.three.attachMovie(_root.tub[this._name].toppings3, _root.tub[this._name].toppings3 + "_m", 4);
_root.tub[this._name].toppingsmc3 = top;
}
}
if (_root.tub[this._name].cflak == true) {
_root["tb2_" + i].onLoad = function () {
_root["tb2_" + i]._visible = true;
_root["tb2_" + i].cflake._visible = true;
};
}
_root["tb2_" + i]._visible = true;
_root["tb2_" + i].nam = "tub";
_root["tb2_" + i].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
if (_root.tub[this._name].flavour_cnt != 0) {
_parent.mousedown.objname = null;
_root["tb2_" + i].stopDrag();
_root["tb2_" + i].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_parent.reset_tub_object(this._name);
_visible = false;
}
if (_root.tub[this._name].flavour_cnt == 1) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["tb2_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
eval ((a + ".") + objec)._visible = false;
break;
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr:" + _root.tub[this._name].flavour1);
trace("cooked topps:" + _root.tub[this._name].toppings1);
trace("cooked flake:" + _root.tub[this._name].cflak);
trace("cust flvr:" + conts[kk][2]);
trace("cust topps:" + conts[kk][1]);
trace("flake:" + conts[kk][3]);
if (_root.tub[this._name].flavour1 == conts[kk][2]) {
if (_root.tub[this._name].toppings1 == conts[kk][1]) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 16;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else if (_root.tub[this._name].toppings1 == "") {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 8;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 8;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 6;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
}
if (_root.tub[this._name].cflak && (conts[kk][3] == "chocoflake")) {
trace("ddddddd");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (_root.tub[this._name].flavour1 != conts[kk][2]) {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
trace("nothing matches");
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 8;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 6;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_tub_object(this._name);
}
}
k++;
}
}
if (_root.tub[this._name].flavour_cnt == 2) {
trace("tttttttt2");
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["tb2_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
eval ((a + ".") + objec)._visible = false;
break;
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr1:" + _root.tub[this._name].flavour1);
trace("cooked topps1:" + _root.tub[this._name].toppings1);
trace("cooked flvr2:" + _root.tub[this._name].flavour2);
trace("cooked topps2:" + _root.tub[this._name].toppings2);
trace("cust flvr1:" + conts[kk][4]);
trace("cust topps1:" + conts[kk][3]);
trace("cust flvr2:" + conts[kk][2]);
trace("cust topps2:" + conts[kk][1]);
trace("flake:" + conts[kk][5]);
trace("ss:" + _root.tub[this._name].cflak);
if ((_root.tub[this._name].flavour1 == conts[kk][4]) && (_root.tub[this._name].flavour2 == conts[kk][2])) {
if ((_root.tub[this._name].toppings1 == conts[kk][3]) && (_root.tub[this._name].toppings2 == conts[kk][1])) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
} else if ((_root.tub[this._name].toppings1 != conts[kk][3]) && (_root.tub[this._name].toppings2 == conts[kk][1])) {
trace("both flavour same topping 1 wrong topping 2 right");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
} else if ((_root.tub[this._name].toppings1 == conts[kk][3]) && (_root.tub[this._name].toppings2 != conts[kk][1])) {
trace("both flavour same topping 1 right topping 2 wrong");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 18;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
}
if (_root.tub[this._name].cflak && (conts[kk][5] == "chocoflake")) {
trace("ddddddd");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
trace("nothing matches");
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
if (_root.tub[this._name].cflak && (conts[kk][5] == "chocoflake")) {
trace("ddddddd");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_tub_object(this._name);
}
}
k++;
}
}
if (_root.tub[this._name].flavour_cnt == 3) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["tb2_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
eval ((a + ".") + objec)._visible = false;
break;
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr1:" + _root.tub[this._name].flavour1);
trace("cooked topps1:" + _root.tub[this._name].toppings1);
trace("cooked flvr2:" + _root.tub[this._name].flavour2);
trace("cooked topps2:" + _root.tub[this._name].toppings2);
trace("cooked flvr3:" + _root.tub[this._name].flavour3);
trace("cooked topps3:" + _root.tub[this._name].toppings3);
trace("cust flvr1:" + conts[kk][6]);
trace("cust topps1:" + conts[kk][5]);
trace("cust flvr2:" + conts[kk][4]);
trace("cust topps2:" + conts[kk][3]);
trace("cust flvr3:" + conts[kk][2]);
trace("cust topps3:" + conts[kk][1]);
trace("cflake:" + conts[kk][7]);
if (((_root.tub[this._name].flavour1 == conts[kk][6]) && (_root.tub[this._name].flavour2 == conts[kk][4])) && (_root.tub[this._name].flavour3 == conts[kk][2])) {
trace("top count:" + _root.tub[this._name].toppings_cnt);
if (((_root.tub[this._name].toppings1 == conts[kk][5]) && (_root.tub[this._name].toppings2 == conts[kk][3])) && (_root.tub[this._name].toppings3 == conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 34;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (((_root.tub[this._name].toppings1 != conts[kk][5]) && (_root.tub[this._name].toppings2 == conts[kk][3])) && (_root.tub[this._name].toppings3 == conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (((_root.tub[this._name].toppings1 == conts[kk][5]) && (_root.tub[this._name].toppings2 != conts[kk][3])) && (_root.tub[this._name].toppings3 == conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (((_root.tub[this._name].toppings1 == conts[kk][5]) && (_root.tub[this._name].toppings2 == conts[kk][3])) && (_root.tub[this._name].toppings3 != conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
}
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 18;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 16;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_tub_object(this._name);
}
}
k++;
}
}
}
}
}
Instance of Symbol 1385 MovieClip "tub_3" in Frame 3
onClipEvent (load) {
var i = 0;
val = 0;
cflake._visible = false;
spd = 3;
}
on (rollOver) {
}
on (press) {
if (_root.pause_pressed == false) {
mcnam = _parent.mousedown.objname;
if (_root.tub[this._name].flavour_cnt != 0) {
_visible = false;
}
if (_root.tub[this._name].flavour_cnt < 3) {
if (((((mcnam == "chocolate") || (mcnam == "vanilla")) || (mcnam == "strawberry")) || (mcnam == "butterscotch")) || (mcnam == "orange")) {
val = ++_root.tub[this._name].flavour_cnt;
if (val == 1) {
_root.tub[this._name].flavour1 = mcnam;
_parent.update_tub_order(this._name, mcnam, val);
} else if (val == 2) {
_root.tub[this._name].flavour2 = mcnam;
_parent.update_tub_order(this._name, mcnam, val);
} else if (val == 3) {
_root.tub[this._name].flavour3 = mcnam;
_parent.update_tub_order(this._name, mcnam, val);
}
}
}
i++;
if (val == 1) {
this.duplicateMovieClip("tb3_" + i, 1000 + i);
one_flavr_mc = ((eval (this) + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc";
frm = eval (one_flavr_mc)._currentframe;
mc = _root["tb3_" + i].one_flav.one.attachMovie(_root.tub[this._name].flavour1, _root.tub[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc1 = mc;
if (_root.tub[this._name].toppings1 != "") {
top = _root["tb3_" + i].one_flav.one.attachMovie(_root.tub[this._name].toppings1, _root.tub[this._name].toppings1 + "_m", 4);
_root.tub[this._name].toppingsmc1 = top;
}
} else if (val == 2) {
this.duplicateMovieClip("tb3_" + i, 1000 + i);
one_flavr = _root.tub[this._name].flavour1;
one_flavr_mc = ((_root["tb3_" + i] + ".one_flav.one.") + one_flavr) + "_mc";
one_toppings = _root.tub[this._name].toppings1;
one_toppings_mc = ((_root["tb3_" + i] + ".one_flav.one.") + one_toppings) + "_m";
eval (one_flavr_mc).unloadMovie();
eval (one_toppings_mc).unloadMovie();
frm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
mc = _root["tb3_" + i].two_flav.one.attachMovie(_root.tub[this._name].flavour1, _root.tub[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc1 = mc;
if (_root.tub[this._name].toppings1 != "") {
top = _root["tb3_" + i].two_flav.one.attachMovie(_root.tub[this._name].toppings1, _root.tub[this._name].toppings1 + "_m", 4);
_root.tub[this._name].toppingsmc1 = top;
}
frm = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
mc = _root["tb3_" + i].two_flav.two.attachMovie(_root.tub[this._name].flavour2, _root.tub[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc2 = mc;
if (_root.tub[this._name].toppings2 != "") {
top = _root["tb3_" + i].two_flav.two.attachMovie(_root.tub[this._name].toppings2, _root.tub[this._name].toppings2 + "_m", 4);
_root.tub[this._name].toppingsmc2 = top;
}
} else if (val == 3) {
this.duplicateMovieClip("tb3_" + i, 1000 + i);
two_flavr_one = tub[this._name].flavour1;
two_flavr_one_mc = ((_root["tb3_" + i] + ".two_flav.one.") + two_flavr_one) + "_mc";
two_flavr_two = tub[this._name].flavour2;
two_flavr_two_mc = ((_root["tb3_" + i] + ".two_flav.two.") + two_flavr_two) + "_mc";
two_toppings_one = _root.tub[this._name].toppings1;
two_toppings_one_mc = ((_root["tb3_" + i] + ".one_flav.one.") + two_toppings_one) + "_m";
two_toppings_two = _root.tub[this._name].toppings2;
two_toppings_two_mc = ((_root["tb3_" + i] + ".one_flav.one.") + two_toppings_two) + "_m";
eval (two_toppings_one_mc).unloadMovie();
eval (two_toppings_two_mc).unloadMovie();
eval (two_flavr_one_mc).unloadMovie();
eval (two_flavr_two_mc).unloadMovie();
frm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
mc = _root["tb3_" + i].three_flav.one.attachMovie(_root.tub[this._name].flavour1, _root.tub[this._name].flavour1 + "_mc", 1);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc1 = mc;
if (_root.tub[this._name].toppings1 != "") {
top = _root["tb3_" + i].three_flav.one.attachMovie(_root.tub[this._name].toppings1, _root.tub[this._name].toppings1 + "_m", 4);
_root.tub[this._name].toppingsmc1 = top;
}
frm = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
mc = _root["tb3_" + i].three_flav.two.attachMovie(_root.tub[this._name].flavour2, _root.tub[this._name].flavour2 + "_mc", 2);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc2 = mc;
if (_root.tub[this._name].toppings2 != "") {
top = _root["tb3_" + i].three_flav.two.attachMovie(_root.tub[this._name].toppings2, _root.tub[this._name].toppings2 + "_m", 4);
_root.tub[this._name].toppingsmc2 = top;
}
frm = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
mc = _root["tb3_" + i].three_flav.three.attachMovie(_root.tub[this._name].flavour3, _root.tub[this._name].flavour3 + "_mc", 3);
eval (mc).gotoAndStop(frm);
eval (mc).onEnterFrame = function () {
if (_root.pause_pressed == false) {
if (eval (mc)._currentframe != 275) {
eval (mc).play();
} else {
eval (mc).stop();
}
} else {
eval (mc).stop();
}
};
_root.tub[this._name].flavourmc3 = mc;
if (_root.tub[this._name].toppings3 != "") {
top = _root["tb3_" + i].three_flav.three.attachMovie(_root.tub[this._name].toppings3, _root.tub[this._name].toppings3 + "_m", 4);
_root.tub[this._name].toppingsmc3 = top;
}
}
if (_root.tub[this._name].cflak == true) {
_root["tb3_" + i].onLoad = function () {
_root["tb3_" + i]._visible = true;
_root["tb3_" + i].cflake._visible = true;
};
}
_root["tb3_" + i]._visible = true;
_root["tb3_" + i].nam = "tub";
_root["tb3_" + i].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
if (_root.tub[this._name].flavour_cnt != 0) {
_parent.mousedown.objname = null;
_root["tb3_" + i].stopDrag();
_root["tb3_" + i].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_parent.reset_tub_object(this._name);
_visible = false;
}
if (_root.tub[this._name].flavour_cnt == 1) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["tb3_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
eval ((a + ".") + objec)._visible = false;
break;
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr:" + _root.tub[this._name].flavour1);
trace("cooked topps:" + _root.tub[this._name].toppings1);
trace("cooked flake:" + _root.tub[this._name].cflak);
trace("cust flvr:" + conts[kk][2]);
trace("cust topps:" + conts[kk][1]);
trace("flake:" + conts[kk][3]);
if (_root.tub[this._name].flavour1 == conts[kk][2]) {
if (_root.tub[this._name].toppings1 == conts[kk][1]) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 16;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else if (_root.tub[this._name].toppings1 == "") {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 8;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 8;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 6;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
}
if (_root.tub[this._name].cflak && (conts[kk][3] == "chocoflake")) {
trace("ddddddd");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (_root.tub[this._name].flavour1 != conts[kk][2]) {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
trace("nothing matches");
kfrm = eval (((this + ".one_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
if (kfrm <= 150) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 8;
} else if ((kfrm > 150) && (kfrm <= 225)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 6;
} else if ((kfrm > 225) && (kfrm < 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
} else if (kfrm == 275) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
trace("kfrm:" + kfrm);
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_tub_object(this._name);
}
}
k++;
}
}
if (_root.tub[this._name].flavour_cnt == 2) {
trace("tttttttt2");
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["tb3_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
eval ((a + ".") + objec)._visible = false;
break;
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr1:" + _root.tub[this._name].flavour1);
trace("cooked topps1:" + _root.tub[this._name].toppings1);
trace("cooked flvr2:" + _root.tub[this._name].flavour2);
trace("cooked topps2:" + _root.tub[this._name].toppings2);
trace("cust flvr1:" + conts[kk][4]);
trace("cust topps1:" + conts[kk][3]);
trace("cust flvr2:" + conts[kk][2]);
trace("cust topps2:" + conts[kk][1]);
trace("flake:" + conts[kk][5]);
trace("ss:" + _root.tub[this._name].cflak);
if ((_root.tub[this._name].flavour1 == conts[kk][4]) && (_root.tub[this._name].flavour2 == conts[kk][2])) {
if ((_root.tub[this._name].toppings1 == conts[kk][3]) && (_root.tub[this._name].toppings2 == conts[kk][1])) {
trace("both flavour and toppings are same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
} else if ((_root.tub[this._name].toppings1 != conts[kk][3]) && (_root.tub[this._name].toppings2 == conts[kk][1])) {
trace("both flavour same topping 1 wrong topping 2 right");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
} else if ((_root.tub[this._name].toppings1 == conts[kk][3]) && (_root.tub[this._name].toppings2 != conts[kk][1])) {
trace("both flavour same topping 1 right topping 2 wrong");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
} else {
trace("only flavour same");
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 22;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 20;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 18;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
}
if (_root.tub[this._name].cflak && (conts[kk][5] == "chocoflake")) {
trace("ddddddd");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
trace("nothing matches");
kfrm = eval (((this + ".two_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".two_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
if ((kfrm <= 150) || (kfrm1 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if (((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 12;
} else if (((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 10;
} else if ((kfrm == 275) || (kfrm1 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
if (_root.tub[this._name].cflak && (conts[kk][5] == "chocoflake")) {
trace("ddddddd");
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_tub_object(this._name);
}
}
k++;
}
}
if (_root.tub[this._name].flavour_cnt == 3) {
k = 1;
while (k <= 20) {
if (eval ("_root.girlmc_" + k).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + k).flag == false)) {
tot = Number(eval (("_root.girlmc_" + k) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
a = eval (("_root.girlmc_" + k) + ".attached_order");
var conts = [];
var mytemp = false;
for (var objec in a) {
aa = String(objec);
if (String(_root["tb3_" + i].nam) == String(aa.slice(0, aa.length - 1))) {
if (eval ((a + ".") + objec)._visible) {
mytemp = true;
flvr_tops = [];
for (var inner_objec in eval ((a + ".") + objec)) {
flvr_tops.push(inner_objec);
}
flvr_tops.unshift(eval ((a + ".") + objec));
conts.push(flvr_tops);
eval ((a + ".") + objec)._visible = false;
break;
}
}
}
if (mytemp) {
mytemp = false;
var temp_counter = 0;
kk = 0;
while (kk < conts.length) {
trace("conts:" + conts[kk]);
trace("cooked flvr1:" + _root.tub[this._name].flavour1);
trace("cooked topps1:" + _root.tub[this._name].toppings1);
trace("cooked flvr2:" + _root.tub[this._name].flavour2);
trace("cooked topps2:" + _root.tub[this._name].toppings2);
trace("cooked flvr3:" + _root.tub[this._name].flavour3);
trace("cooked topps3:" + _root.tub[this._name].toppings3);
trace("cust flvr1:" + conts[kk][6]);
trace("cust topps1:" + conts[kk][5]);
trace("cust flvr2:" + conts[kk][4]);
trace("cust topps2:" + conts[kk][3]);
trace("cust flvr3:" + conts[kk][2]);
trace("cust topps3:" + conts[kk][1]);
trace("cflake:" + conts[kk][7]);
if (((_root.tub[this._name].flavour1 == conts[kk][6]) && (_root.tub[this._name].flavour2 == conts[kk][4])) && (_root.tub[this._name].flavour3 == conts[kk][2])) {
trace("top count:" + _root.tub[this._name].toppings_cnt);
if (((_root.tub[this._name].toppings1 == conts[kk][5]) && (_root.tub[this._name].toppings2 == conts[kk][3])) && (_root.tub[this._name].toppings3 == conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 34;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (((_root.tub[this._name].toppings1 != conts[kk][5]) && (_root.tub[this._name].toppings2 == conts[kk][3])) && (_root.tub[this._name].toppings3 == conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (((_root.tub[this._name].toppings1 == conts[kk][5]) && (_root.tub[this._name].toppings2 != conts[kk][3])) && (_root.tub[this._name].toppings3 == conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else if (((_root.tub[this._name].toppings1 == conts[kk][5]) && (_root.tub[this._name].toppings2 == conts[kk][3])) && (_root.tub[this._name].toppings3 != conts[kk][1])) {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 32;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 30;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
if (_root.tub[this._name].cflak && (conts[kk][7] == "chocoflake")) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 4;
}
} else {
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 28;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 26;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 24;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
}
} else {
temp_counter++;
if (temp_counter == conts.length) {
temp_counter = 0;
kfrm = eval (((this + ".three_flav.one.") + _root.tub[this._name].flavour1) + "_mc")._currentframe;
kfrm1 = eval (((this + ".three_flav.two.") + _root.tub[this._name].flavour2) + "_mc")._currentframe;
kfrm2 = eval (((this + ".three_flav.three.") + _root.tub[this._name].flavour3) + "_mc")._currentframe;
if (((kfrm <= 150) || (kfrm1 <= 150)) || (kfrm2 <= 150)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 18;
} else if ((((kfrm > 150) && (kfrm <= 225)) || ((kfrm1 > 150) && (kfrm1 <= 225))) || ((kfrm2 > 150) && (kfrm2 <= 225))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 16;
} else if ((((kfrm > 225) && (kfrm < 275)) || ((kfrm1 > 225) && (kfrm1 < 275))) || ((kfrm2 > 225) && (kfrm2 < 275))) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 14;
} else if (((kfrm == 275) || (kfrm1 == 275)) || (kfrm2 == 275)) {
eval ("_root.girlmc_" + k).moneygiven = eval ("_root.girlmc_" + k).moneygiven + 1;
}
eval (conts[kk][0])._visible = false;
eval ("_root.delay" + k).gotoAndPlay(2);
eval ("_root.girlmc_" + k).no_of_orders_delivered++;
}
}
kk++;
}
delvr = Number(eval (("_root.girlmc_" + k) + ".no_of_orders_delivered"));
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
eval ("_root.girlmc_" + k).run = true;
}
eval (a).unloadMovie();
movieclip = eval ("_root.girlmc_" + k).mny;
monyval = eval ("_root.girlmc_" + k).moneygiven;
eval (("_root.girlmc_" + k) + ".face").gotoAndStop(1);
eval ("_root.delay" + k).flag = false;
eval ("_root.delay" + k).gotoAndStop(1);
if (eval (("_root.girlmc_" + k) + ".run")) {
eval ("_root.girlmc_" + k).xmov = eval ("_root.girlmc_" + k).thiefmove;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + k)._x = eval ("_root.girlmc_" + k)._x + eval ("_root.girlmc_" + k).xmov;
eval ("_root.girlmc_" + k).flag = true;
eval ("_root.girlmc_" + k).swapDepths(-16150 - _root.run_count);
}
this._visible = false;
_parent.reset_tub_object(this._name);
}
}
k++;
}
}
}
}
}
Instance of Symbol 759 MovieClip "orange_slice" in Frame 3
on (press) {
if (_root.pause_pressed == false) {
_parent.orng_slice.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"].onLoad = function () {
this.nam = "orange_slice";
};
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
i = 1;
while (i <= 3) {
if (eval ("_root.orangejuice_" + i).hitTest(_root._xmouse, _root._ymouse, true)) {
if (eval ("_root.orangejuice_" + i)._currentframe == 1) {
eval ("_root.orangejuice_" + i).gotoAndStop(4);
} else if (eval ("_root.orangejuice_" + i)._currentframe == 2) {
eval ("_root.orangejuice_" + i).gotoAndStop(3);
}
}
i++;
}
}
}
Instance of Symbol 766 MovieClip in Frame 3
on (release) {
if ((_root.orangejuice_1._visible == false) && (_root.pause_pressed == false)) {
_root.orangejuice_1._visible = true;
_root.orangejuice_1.gotoAndStop(1);
_root.juice_reset++;
} else if ((_root.orangejuice_2._visible == false) && (_root.pause_pressed == false)) {
_root.orangejuice_2._visible = true;
_root.orangejuice_2.gotoAndStop(1);
_root.juice_reset++;
} else if ((_root.orangejuice_3._visible == false) && (_root.pause_pressed == false)) {
_root.orangejuice_3._visible = true;
_root.orangejuice_3.gotoAndStop(1);
_root.juice_reset++;
}
}
Instance of Symbol 849 MovieClip "orangejuice_3" in Frame 3
on (press) {
if (_root.pause_pressed == false) {
get_frm_num = this._currentframe;
if ((get_frm_num != 1) && (get_frm_num != 4)) {
_visible = false;
this.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"].onLoad = function () {
this.nam = "orangejuice";
this.gotoAndStop(get_frm_num);
};
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_visible = false;
}
i = 1;
while (i <= 20) {
if (eval ("_root.girlmc_" + i).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + i).flag == false)) {
trace("dropped to customer" + eval ("_root.girlmc_" + i));
tot = Number(eval (("_root.girlmc_" + i) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + i) + ".no_of_orders_delivered"));
trace("tot_obj_val:" + tot);
trace("delvr_obj_val:" + delvr);
a = eval (("_root.girlmc_" + i) + ".attached_order");
trace("a:" + a);
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root[this._name + "_m"].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
_visible = false;
eval ((a + ".") + objec)._visible = false;
eval ("_root.delay" + i).gotoAndPlay(2);
eval ("_root.girlmc_" + i).no_of_orders_delivered++;
trace("check for frame:" + _root[this._name + "_m"]._currentframe);
if (_root[this._name + "_m"]._currentframe == 2) {
eval ("_root.girlmc_" + i).moneygiven = eval ("_root.girlmc_" + i).moneygiven + 5;
} else if (_root[this._name + "_m"]._currentframe == 3) {
eval ("_root.girlmc_" + i).moneygiven = eval ("_root.girlmc_" + i).moneygiven + 8;
}
break;
}
}
}
delvr = Number(eval (("_root.girlmc_" + i) + ".no_of_orders_delivered"));
trace("delvrrrrrrrrr:" + delvr);
trace("tottttttttttt:" + tot);
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
}
eval (a).unloadMovie();
movieclip = eval (("_root.girlmc_" + i) + ".mny");
monyval = eval (("_root.girlmc_" + i) + ".moneygiven");
trace("eval(_root.girlmc_run:)" + eval (("_root.girlmc_" + i) + ".run"));
if (eval (("_root.girlmc_" + i) + ".run")) {
eval ("_root.girlmc_" + i).xmov = 3;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + i).swapDepths(-16150 - _root.run_count);
eval (("_root.girlmc_" + i) + ".face").gotoAndStop(1);
eval ("_root.delay" + i).flag = false;
eval ("_root.delay" + i).gotoAndStop(1);
eval ("_root.girlmc_" + i)._x = eval ("_root.girlmc_" + i)._x + eval ("_root.girlmc_" + i).xmov;
eval ("_root.girlmc_" + i).flag = true;
}
}
i++;
}
}
}
Instance of Symbol 849 MovieClip "orangejuice_2" in Frame 3
on (press) {
if (_root.pause_pressed == false) {
get_frm_num = this._currentframe;
if ((get_frm_num != 1) && (get_frm_num != 4)) {
_visible = false;
this.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"].onLoad = function () {
this.nam = "orangejuice";
this.gotoAndStop(get_frm_num);
};
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_visible = false;
}
i = 1;
while (i <= 20) {
if (eval ("_root.girlmc_" + i).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + i).flag == false)) {
trace("dropped to customer" + eval ("_root.girlmc_" + i));
tot = Number(eval (("_root.girlmc_" + i) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + i) + ".no_of_orders_delivered"));
trace("tot_obj_val:" + tot);
trace("delvr_obj_val:" + delvr);
a = eval (("_root.girlmc_" + i) + ".attached_order");
trace("a:" + a);
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root[this._name + "_m"].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
_visible = false;
eval ((a + ".") + objec)._visible = false;
eval ("_root.delay" + i).gotoAndPlay(2);
eval ("_root.girlmc_" + i).no_of_orders_delivered++;
trace("check for frame:" + _root[this._name + "_m"]._currentframe);
if (_root[this._name + "_m"]._currentframe == 2) {
eval ("_root.girlmc_" + i).moneygiven = eval ("_root.girlmc_" + i).moneygiven + 5;
} else if (_root[this._name + "_m"]._currentframe == 3) {
eval ("_root.girlmc_" + i).moneygiven = eval ("_root.girlmc_" + i).moneygiven + 8;
}
break;
}
}
}
delvr = Number(eval (("_root.girlmc_" + i) + ".no_of_orders_delivered"));
trace("delvrrrrrrrrr:" + delvr);
trace("tottttttttttt:" + tot);
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
}
eval (a).unloadMovie();
movieclip = eval (("_root.girlmc_" + i) + ".mny");
monyval = eval (("_root.girlmc_" + i) + ".moneygiven");
trace("eval(_root.girlmc_run:)" + eval (("_root.girlmc_" + i) + ".run"));
if (eval (("_root.girlmc_" + i) + ".run")) {
eval ("_root.girlmc_" + i).xmov = 3;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + i).swapDepths(-16150 - _root.run_count);
eval (("_root.girlmc_" + i) + ".face").gotoAndStop(1);
eval ("_root.delay" + i).flag = false;
eval ("_root.delay" + i).gotoAndStop(1);
eval ("_root.girlmc_" + i)._x = eval ("_root.girlmc_" + i)._x + eval ("_root.girlmc_" + i).xmov;
eval ("_root.girlmc_" + i).flag = true;
}
}
i++;
}
}
}
Instance of Symbol 849 MovieClip "orangejuice_1" in Frame 3
on (press) {
if (_root.pause_pressed == false) {
get_frm_num = this._currentframe;
if ((get_frm_num != 1) && (get_frm_num != 4)) {
_visible = false;
this.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"].onLoad = function () {
this.nam = "orangejuice";
this.gotoAndStop(get_frm_num);
};
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
_visible = true;
if (_root.trash.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trash_snd.play();
_parent.update_point_system(-1);
_visible = false;
}
i = 1;
while (i <= 20) {
if (eval ("_root.girlmc_" + i).hitTest(_root._xmouse, _root._ymouse, true) && (eval ("_root.girlmc_" + i).flag == false)) {
trace("dropped to customer" + eval ("_root.girlmc_" + i));
tot = Number(eval (("_root.girlmc_" + i) + ".no_of_orders"));
delvr = Number(eval (("_root.girlmc_" + i) + ".no_of_orders_delivered"));
trace("tot_obj_val:" + tot);
trace("delvr_obj_val:" + delvr);
a = eval (("_root.girlmc_" + i) + ".attached_order");
trace("a:" + a);
for (var objec in a) {
trace("objec:" + objec);
aa = String(objec);
if (String(_root[this._name + "_m"].nam) == String(aa.slice(0, aa.length - 1))) {
trace("ov:" + eval ((a + ".") + objec));
if (eval ((a + ".") + objec)._visible) {
_visible = false;
eval ((a + ".") + objec)._visible = false;
eval ("_root.delay" + i).gotoAndPlay(2);
eval ("_root.girlmc_" + i).no_of_orders_delivered++;
trace("check for frame:" + _root[this._name + "_m"]._currentframe);
if (_root[this._name + "_m"]._currentframe == 2) {
eval ("_root.girlmc_" + i).moneygiven = eval ("_root.girlmc_" + i).moneygiven + 5;
} else if (_root[this._name + "_m"]._currentframe == 3) {
eval ("_root.girlmc_" + i).moneygiven = eval ("_root.girlmc_" + i).moneygiven + 8;
}
break;
}
}
}
delvr = Number(eval (("_root.girlmc_" + i) + ".no_of_orders_delivered"));
trace("delvrrrrrrrrr:" + delvr);
trace("tottttttttttt:" + tot);
if (delvr == tot) {
_root.run_count++;
if ((_root.run_count % 5) == 0) {
}
eval (a).unloadMovie();
movieclip = eval (("_root.girlmc_" + i) + ".mny");
monyval = eval (("_root.girlmc_" + i) + ".moneygiven");
trace("eval(_root.girlmc_run:)" + eval (("_root.girlmc_" + i) + ".run"));
if (eval (("_root.girlmc_" + i) + ".run")) {
eval ("_root.girlmc_" + i).xmov = 3;
} else {
_parent.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + i).swapDepths(-16150 - _root.run_count);
eval (("_root.girlmc_" + i) + ".face").gotoAndStop(1);
eval ("_root.delay" + i).flag = false;
eval ("_root.delay" + i).gotoAndStop(1);
eval ("_root.girlmc_" + i)._x = eval ("_root.girlmc_" + i)._x + eval ("_root.girlmc_" + i).xmov;
eval ("_root.girlmc_" + i).flag = true;
}
}
i++;
}
}
}
Instance of Symbol 853 MovieClip "ora" in Frame 3
on (press) {
if (_root.pause_pressed == false) {
_parent.orang.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"].onLoad = function () {
this.nam = "orange";
};
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
if (_root.juice_machine.fruitholder.hitTest(_root._xmouse, _root._ymouse, true)) {
a = _root.juice_machine.fruitholder._currentframe;
trace("a:" + a);
if (Number(a) < 4) {
a++;
_root.juice_machine.fruitholder.gotoAndStop(a);
if (a == 4) {
_root.juice_machine.gotoAndStop(2);
}
}
}
}
}
Instance of Symbol 290 MovieClip "money1" in Frame 3
onClipEvent (load) {
var prev_visited_customer = "";
}
on (rollOver) {
trace("prev_visited_customer:" + prev_visited_customer);
strng = "_root." + prev_visited_customer;
trace("money val:" + eval (strng).moneygiven);
}
Instance of Symbol 290 MovieClip "money2" in Frame 3
onClipEvent (load) {
var prev_visited_customer = "";
}
on (rollOver) {
trace("prev_visited_customer:" + prev_visited_customer);
strng = "_root." + prev_visited_customer;
trace("money val:" + eval (strng).moneygiven);
}
Instance of Symbol 290 MovieClip "money3" in Frame 3
onClipEvent (load) {
var prev_visited_customer = "";
}
on (rollOver) {
trace("prev_visited_customer:" + prev_visited_customer);
strng = "_root." + prev_visited_customer;
trace("money val:" + eval (strng).moneygiven);
}
Instance of Symbol 290 MovieClip "money4" in Frame 3
onClipEvent (load) {
var prev_visited_customer = "";
}
on (rollOver) {
trace("prev_visited_customer:" + prev_visited_customer);
strng = "_root." + prev_visited_customer;
trace("money val:" + eval (strng).moneygiven);
}
Instance of Symbol 858 MovieClip in Frame 3
on (release) {
getURL ("javascript:closeme();");
}
Instance of Symbol 861 MovieClip "inst" in Frame 3
on (press) {
_parent.instut.gotoAndStop(1);
_root.pause_pressed = true;
_parent.instut._visible = true;
this.enabled = false;
_parent.pgn.enabled = false;
_parent.paus.enabled = false;
}
Instance of Symbol 864 MovieClip "pgn" in Frame 3
on (press) {
getURL ("http://www.santorographics.com/tutticuti/icecreamgame");
}
Instance of Symbol 869 MovieClip "paus" in Frame 3
on (press) {
if (this._currentframe == 1) {
_root.pause_pressed = true;
this.gotoAndStop(2);
} else {
_root.pause_pressed = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 1451 MovieClip "congrats" in Frame 3
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1457 MovieClip "instut" in Frame 3
onClipEvent (load) {
_visible = false;
}
Frame 6
trace("Frameeeeee 6");
_root.lvl_update._visible = true;
Frame 7
trace("Empty Frameeeeeeee 7");
_root.game_level++;
if (_root.game_level <= 14) {
_root.gotoAndStop(3);
} else {
trace("game ends");
congrats._visible = true;
}
Frame 8
function validate_input() {
if (_root.main.nam.text == "") {
err.text = "Please enter your name.";
_root.stats = false;
} else if (_root.main.countre.text == "") {
err.text = "Please enter country name.";
_root.stats = false;
}
}
function pushdata() {
trace("push called");
_root.main.loadVariables("http://www.santorographics.com/tutticuti/icecreamgame/submitscore.php", "POST");
err.text = "Youe score has been submited successfully!";
}
trace("Empty Frameeeeeeee 8");
stop();
trace("_root.total:" + _root.total);
_root.mailid = "";
main.nam.restrict = "A-Z a-z";
main.countre.restrict = "A-Z a-z";
Selection.setFocus("main.nam");
main.submit.onRelease = function () {
_root.stats = true;
_root.main.total = _root.total;
validate_input();
trace("stats:" + _root.stats);
if (_root.stats) {
trace("name:" + _root.main.name);
trace("country:" + _root.main.country);
trace("email:" + _root.main.email);
trace("total:" + _root.main.total);
_root.mailid = _root.main.emayl.text;
pushdata();
}
};
Instance of Symbol 1471 MovieClip "main" in Frame 8
onClipEvent (data) {
trace("llllllldddddd");
_root.gotoAndStop(9);
}
Instance of Symbol 534 MovieClip [NetServicesSymbol] in Frame 8
//component parameters
onClipEvent (construct) {
defaultGatewayUrl = "";
}
Frame 9
function retrievedata() {
myData = new LoadVars();
myData.load("http://www.santorographics.com/tutticuti/icecreamgame/hiscores.php");
myData.ref = this;
myData.onLoad = function (succes) {
if (succes) {
var _local3 = 0;
while (_local3 < this.tot) {
_root.contentMain.attachMovie("display_mc", "display_mc" + _local3, 7000 + _local3);
_root.contentMain["display_mc" + _local3]._y = _root.contentMain["display_mc" + _local3]._height * _local3;
_root.contentMain["display_mc" + _local3].rollnum.text = _local3 + 1;
_root.contentMain["display_mc" + _local3].name.text = this["name" + _local3];
_root.contentMain["display_mc" + _local3].country.text = this["country" + _local3];
_root.contentMain["display_mc" + _local3].score.text = this["score" + _local3];
if (String(_root.mailid) == this["email" + _local3]) {
trace("mail id matched");
trace("iiii:" + _local3);
rank.text = ("your rank is " + Number(_local3 + 1)) + ".";
}
_local3++;
}
} else {
trace("Error loading high scores");
}
scrolling();
};
}
trace("Empty Frameeeeeeee 9");
stop();
retrievedata();
scrolling = function () {
var _local5 = scrollTrack._height;
var _local2 = contentMain._height;
var _local4 = scrollFace._height;
var _local3 = maskedView._height;
var initPosition = ((scrollFace._y = scrollTrack._y));
var initContentPos = contentMain._y;
var finalContentPos = ((_local3 - _local2) + initContentPos);
var left = scrollTrack._x;
var top = scrollTrack._y;
var right = scrollTrack._x;
var bottom = ((scrollTrack._height - _local4) + scrollTrack._y);
var dy = 0;
var speed = 10;
var moveVal = ((_local2 - _local3) / (_local5 - _local4));
scrollFace.onPress = function () {
var _local2 = this._y;
startDrag (this, false, left, top, right, bottom);
this.onMouseMove = function () {
dy = Math.abs(initPosition - this._y);
contentMain._y = Math.round(((dy * -1) * moveVal) + initContentPos);
};
};
scrollFace.onMouseUp = function () {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function () {
this.onEnterFrame = function () {
if ((contentMain._y + speed) < maskedView._y) {
if (scrollFace._y <= top) {
scrollFace._y = top;
} else {
scrollFace._y = scrollFace._y - (speed / moveVal);
}
contentMain._y = contentMain._y + speed;
} else {
scrollFace._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function () {
delete this.onEnterFrame;
};
btnUp.onRelease = function () {
delete this.onEnterFrame;
};
btnDown.onPress = function () {
this.onEnterFrame = function () {
if ((contentMain._y - speed) > finalContentPos) {
if (scrollFace._y >= bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y = scrollFace._y + (speed / moveVal);
}
contentMain._y = contentMain._y - speed;
} else {
scrollFace._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function () {
delete this.onEnterFrame;
};
btnDown.onDragOut = function () {
delete this.onEnterFrame;
};
if (_local2 < _local3) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
Instance of Symbol 1476 MovieClip in Frame 9
on (release) {
getURL ("http://www.santorographics.com/tutticuti/icecreamgame", "_self");
}
Instance of Symbol 858 MovieClip in Frame 9
on (release) {
getURL ("http://www.santorographics.com/games");
}
Instance of Symbol 1479 MovieClip in Frame 9
on (release) {
_root.gotoAndStop(6);
}
Frame 10
trace("Empty Frameeeeeeee 10");
stop();
mail.sbmt.enabled = true;
Instance of Symbol 858 MovieClip in Frame 10
on (release) {
getURL ("http://www.santorographics.com/games");
}
Symbol 291 MovieClip [moving_money_new_snd] Frame 70
stop();
trace("restored:" + eval (this.girl).flag);
eval (this.girl).flag = true;
_root.update_point_system(_root.theft_val);
this.unloadMovie();
Symbol 293 MovieClip [moving_money_new] Frame 70
stop();
trace("restored:" + eval (this.girl).flag);
eval (this.girl).flag = true;
_root.update_point_system(_root.theft_val);
this.unloadMovie();
Symbol 295 MovieClip [moving_money_snd] Frame 97
stop();
_parent._visible = false;
this.unloadMovie();
Symbol 296 MovieClip [moving_money] Frame 97
stop();
_parent._visible = false;
this.unloadMovie();
Symbol 427 MovieClip [orange] Frame 1
stop();
Symbol 427 MovieClip [orange] Frame 275
stop();
delete this.onEnterFrame;
Symbol 432 MovieClip [butterscotch] Frame 1
stop();
Symbol 432 MovieClip [butterscotch] Frame 275
stop();
delete this.onEnterFrame;
Symbol 437 MovieClip [strawberry] Frame 1
stop();
Symbol 437 MovieClip [strawberry] Frame 275
stop();
delete this.onEnterFrame;
Symbol 442 MovieClip [vanilla] Frame 1
stop();
Symbol 442 MovieClip [vanilla] Frame 275
stop();
delete this.onEnterFrame;
Symbol 447 MovieClip [chocolate] Frame 1
stop();
Symbol 447 MovieClip [chocolate] Frame 275
stop();
delete this.onEnterFrame;
Symbol 452 MovieClip [RemotingDebugClasses] Frame 1
#initclip 75
Object.registerClass("RemotingDebugClasses", mx.remoting.DebugClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 502 MovieClip [RemotingConnector] Frame 1
#initclip 76
Object.registerClass("RemotingConnector", mx.data.components.RemotingConnector);
#endinitclip
preview._visible = false;
stop();
Symbol 527 MovieClip [RemotingClasses] Frame 1
#initclip 77
Object.registerClass("RemotingClasses", mx.remoting.ApiClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 534 MovieClip [NetServicesSymbol] Frame 1
#initclip 78
Object.registerClass("NetServicesSymbol", org.amfphp.remoting.NetServices);
#endinitclip
label_mc._visible = false;
Symbol 448 MovieClip [__Packages.mx.remoting.DebugClasses] Frame 0
class mx.remoting.DebugClasses extends MovieClip
{
function DebugClasses () {
super();
}
}
Symbol 453 MovieClip [__Packages.mx.services.Log] Frame 0
class mx.services.Log
{
var level, name;
function Log (logLevel, name) {
level = ((logLevel == undefined) ? (BRIEF) : (logLevel));
this.name = ((name == undefined) ? "" : (name));
}
function logInfo(msg, level) {
var _local1 = this;
var _local2 = level;
if (_local2 == undefined) {
_local2 = BRIEF;
}
if (_local2 <= _local1.level) {
if (_local2 == DEBUG) {
_local1.onLog((((_local1.getDateString() + " [DEBUG] ") + _local1.name) + ": ") + msg);
} else {
_local1.onLog((((_local1.getDateString() + " [INFO] ") + _local1.name) + ": ") + msg);
}
}
}
function logDebug(msg) {
logInfo(msg, DEBUG);
}
function getDateString() {
var _local1 = new Date();
return(((((((((_local1.getMonth() + 1) + "/") + _local1.getDate()) + " ") + _local1.getHours()) + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds());
}
function onLog(message) {
trace(message);
}
static var NONE = -1;
static var BRIEF = 0;
static var VERBOSE = 1;
static var DEBUG = 2;
}
Symbol 454 MovieClip [__Packages.mx.remoting.Connection] Frame 0
class mx.remoting.Connection extends NetConnection
{
var uri;
function Connection () {
super();
}
function getService(serviceName, client) {
var _local1 = new mx.remoting.NetServiceProxy(this, serviceName, client);
return(_local1);
}
function setCredentials(userId, password) {
addHeader("Credentials", false, {userid:userId, password:password});
}
function clone() {
var _local1 = new mx.remoting.Connection();
_local1.connect(uri);
return(_local1);
}
function getDebugId() {
return(null);
}
function getDebugConfig() {
return(null);
}
function setDebugId(id) {
}
function call() {
super.call.apply(super, arguments);
}
function close() {
super.close();
}
function connect(url) {
return(super.connect(url));
}
function addHeader(name, mustUnderstand, obj) {
super.addHeader(name, mustUnderstand, obj);
}
function trace(traceObj) {
}
function AppendToGatewayUrl(urlSuffix) {
var _local1 = this;
_local1.__urlSuffix = urlSuffix;
if (_local1.__originalUrl == null) {
_local1.__originalUrl = _local1.uri;
}
var _local2 = _local1.__originalUrl + urlSuffix;
_local1.connect(_local2);
}
function ReplaceGatewayUrl(newUrl) {
connect(newUrl);
}
function RequestPersistentHeader(info) {
var _local1 = info;
addHeader(_local1.name, _local1.mustUnderstand, _local1.data);
}
static var version = "1.2.0.124";
}
Symbol 455 MovieClip [__Packages.mx.remoting.NetServices] Frame 0
class mx.remoting.NetServices extends Object
{
static var defaultGatewayUrl, logger, traceNetServices;
function NetServices () {
super();
}
static function setDefaultGatewayUrl(url) {
defaultGatewayUrl = url;
}
static function setGatewayUrl(url) {
gatewayUrl = url;
}
static function createGatewayConnection(url, infoLogger) {
var _local1 = url;
logger = infoLogger;
if (_local1 == undefined) {
_local1 = gatewayUrl;
if (_local1 == undefined) {
_local1 = defaultGatewayUrl;
}
}
if (_local1 == undefined) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is undefined");
logger.logInfo(("NetServices: createGatewayConnection - gateway url <" + _local1) + "> is undefined", mx.services.Log.DEBUG);
return(null);
}
var _local2 = new mx.remoting.Connection();
_local2.connect(_local1);
__sharedConnections[_local1] = _local2;
return(_local2);
}
static function getConnection(uri) {
return(__sharedConnections[uri]);
}
static function getHostUrl() {
var _local2 = _root;
if (!isHttpUrl(_local2._url)) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
var _local1 = _local2._url.indexOf("/", 8);
if (_local1 < 0) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
return(_local2._url.substring(0, _local1));
}
static function isHttpUrl(url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
}
static function getHttpUrl(url) {
var _local1 = url;
if (!isHttpUrl(_local1)) {
_local1 = getHostUrl() + _local1;
}
return(_local1);
}
static function trace(who, severity, number, message) {
traceNetServices(who, severity, number, message);
}
static var version = "1.2.0.124";
static var gatewayUrl = _root.gatewayUrl;
static var __sharedConnections = new Array();
}
Symbol 456 MovieClip [__Packages.mx.data.DataRange] Frame 0
interface mx.data.DataRange{}
Symbol 457 MovieClip [__Packages.mx.data.PageableData] Frame 0
interface mx.data.PageableData{}
Symbol 458 MovieClip [__Packages.mx.data.PageableList] Frame 0
interface mx.data.PageableList{}
Symbol 459 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
var _local3 = queue;
if (_local3 != undefined) {
var l = _local3.length;
var _local1;
_local1 = 0;
while (_local1 < l) {
var _local2 = _local3[_local1];
if (_local2 == handler) {
_local3.splice(_local1, 1);
return;
}
_local1++;
}
}
}
static function initialize(object) {
var _local1 = object;
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
_local1.addEventListener = _fEventDispatcher.addEventListener;
_local1.removeEventListener = _fEventDispatcher.removeEventListener;
_local1.dispatchEvent = _fEventDispatcher.dispatchEvent;
_local1.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local2 = eventObj;
var queueName = ("__q_" + _local2.type);
var queue = queueObj[queueName];
if (queue != undefined) {
var i;
for (i in queue) {
var _local1 = queue[i];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(_local2);
}
if (_local1[_local2.type] != undefined) {
if (exceptions[_local2.type] == undefined) {
_local1[_local2.type](_local2);
}
}
} else {
_local1.apply(queueObj, [_local2]);
}
}
}
}
function dispatchEvent(eventObj) {
var _local1 = eventObj;
var _local2 = this;
if (_local1.target == undefined) {
_local1.target = _local2;
}
_local2[_local1.type + "Handler"](_local1);
_local2.dispatchQueue(_local2, _local1);
}
function addEventListener(event, handler) {
var _local2 = this;
var _local1 = "__q_" + event;
if (_local2[_local1] == undefined) {
_local2[_local1] = new Array();
}
_global.ASSetPropFlags(_local2, _local1, 1);
_removeEventListener(_local2[_local1], event, handler);
_local2[_local1].push(handler);
}
function removeEventListener(event, handler) {
var _local1 = "__q_" + event;
_removeEventListener(this[_local1], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = ["move", "draw"];
}
Symbol 460 MovieClip [__Packages.mx.remoting.NetServiceProxy] Frame 0
class mx.remoting.NetServiceProxy extends Object
{
var nc, client;
function NetServiceProxy (netC, servName, cli) {
var _local1 = this;
super();
if (netC != null) {
_local1.nc = netC;
_local1.serviceName = servName;
_local1.client = cli;
}
_local1._allowRes = true;
}
function _setParentService(service) {
nc = service.nc;
client = service.client;
}
function __resolve(methodName) {
var _local1 = this;
var _local2 = arguments;
if (_local1._allowRes) {
var _local3 = function () {
var _local1 = this;
var _local2 = arguments;
if (_local1.client != null) {
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
} else if (typeof(_local2[0].onResult) != "function") {
mx.remoting.NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, and no responder was given in call to " + methodName);
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
}
if (typeof(_local1.serviceName) == "function") {
_local1.serviceName = _local1.servicename;
}
_local2.unshift((_local1.serviceName + ".") + methodName);
return(_local1.nc.call.apply(_local1.nc, _local2));
};
return(_local3);
}
return(null);
}
static function registerNetServiceProxy() {
Object.registerClass("NetServiceProxy", mx.remoting.NetServiceProxy);
return(true);
}
static var init = registerNetServiceProxy();
var _allowRes = false;
}
Symbol 461 MovieClip [__Packages.mx.utils.Iterator] Frame 0
interface mx.utils.Iterator{}
Symbol 462 MovieClip [__Packages.mx.remoting.RecordSet] Frame 0
class mx.remoting.RecordSet extends Object
{
var mTitles, _items, mRecordSetID, dispatchEvent, gateway_conn, mDataFetcher;
function RecordSet (columnNames) {
var _local1 = this;
super();
mx.events.EventDispatcher.initialize(_local1);
_local1._items = new Array();
_local1.uniqueID = 0;
if (_local1.mTitles != null) {
} else {
if (_local1.serverInfo == null) {
if (_local1.serverinfo != null) {
_local1.serverInfo = _local1.serverinfo;
}
}
if (_local1.serverInfo == null) {
_local1.mTitles = columnNames;
} else if (_local1.serverInfo.version != 1) {
mx.remoting.NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
} else {
_local1.mTitles = _local1.serverInfo.columnNames;
_local1.mRecordsAvailable = 0;
_local1.setData(((_local1.serverInfo.cursor == null) ? 0 : (_local1.serverInfo.cursor - 1)), _local1.serverInfo.initialData);
if (_local1.serverInfo.initialData.length != _local1.serverInfo.totalCount) {
_local1.mRecordSetID = _local1.serverInfo.id;
if (_local1.mRecordSetID != null) {
_local1.serviceName = ((_local1.serverInfo.serviceName == null) ? "RecordSet" : (_local1.serverInfo.serviceName));
_local1.mTotalCount = _local1.serverInfo.totalCount;
_local1.mDeliveryMode = "ondemand";
_local1.mAllNotified = false;
_local1.mOutstandingRecordCount = 0;
} else {
mx.remoting.NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
}
}
_local1.serverInfo = null;
}
}
}
function addItem(item) {
addItemAt(length, item);
}
function addItemAt(index, item) {
var _local1 = index;
var _local2 = this;
var _local3 = true;
if ((_local1 < _local2.__get__length()) && (_local1 >= 0)) {
_local2.items.splice(_local1, 0, item);
} else if (_local1 == _local2.__get__length()) {
_local2.items[_local1] = item;
} else {
_local3 = false;
mx.remoting.NetServices.trace("Cannot add an item outside the bounds of the RecordSet");
return;
}
if (_local3) {
item.__ID__ = _local2.uniqueID++;
}
_local2.updateViews("addItems", _local1, _local1);
}
function addEventListener(event, listener) {
}
function clear() {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
var _local2 = _local1.items.length;
_local1.items.splice(0);
_local1.uniqueID = 0;
_local1.updateViews("removeItems", 0, _local2);
}
}
function contains(itmToCheck) {
var _local2 = itmToCheck;
if (isObjectEmpty(_local2)) {
return(false);
}
var itemAtIndex;
var _local3;
var _local1 = 0;
while (_local1 < items.length) {
itemAtIndex = items[_local1];
_local3 = true;
for (var t in _local2) {
if (_local2[t] != itemAtIndex[t]) {
_local3 = false;
break;
}
}
if (_local3) {
return(true);
}
_local1++;
}
return(false);
}
function getColumnNames() {
return(mTitles);
}
function get columnNames() {
return(getColumnNames());
}
function getLocalLength() {
return(items.length);
}
function getLength() {
var _local1 = this;
if (_local1.mRecordSetID != null) {
return(_local1.mTotalCount);
}
return(_local1.items.length);
}
function getIterator() {
var _local1 = new mx.remoting.RecordSetIterator(this);
return(_local1);
}
function get length() {
return(getLength());
}
function getItemAt(index) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.__get__length())) {
return(null);
}
if (_local2.mRecordSetID == null) {
return(_local2.items[_local1]);
}
_local2.requestRecord(_local1);
var _local3 = _local2.items[_local1];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
}
function getItemID(index) {
return(items[index].__ID__);
}
function get items() {
return(_items);
}
function initialize(info) {
}
function filter(filterFunction, context) {
if (checkLocal()) {
} else {
var _local3 = new mx.remoting.RecordSet(mTitles);
var rcount = length;
var _local2 = 0;
while (_local2 < rcount) {
var _local1 = getItemAt(_local2);
if (((_local1 != null) && (_local1 != 1)) && (filterFunction(_local1, context))) {
_local3.addItem(_local1);
}
_local2++;
}
return(_local3);
}
return(undefined);
}
function sortItems(compareFunc, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc, optionFlags);
_local1.updateViews("sort");
}
}
function sortItemsBy(fieldNames, order, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
if (typeof(order) == "string") {
_local1.items.sortOn(fieldNames);
if (order.toUpperCase() == "DESC") {
_local1.items.reverse();
}
} else {
_local1.items.sortOn(fieldNames, optionFlags);
}
_local1.updateViews("sort");
}
}
function sort(compareFunc) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
_local1.updateViews("sort");
}
}
function isEmpty() {
return(items.length == 0);
}
function isLocal() {
return(mRecordSetID == null);
}
function isFullyPopulated() {
return(isLocal());
}
function getRemoteLength() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.mRecordsAvailable);
}
return(_local1.mTotalCount);
}
function getNumberAvailable() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.getLength());
}
return(_local1.mRecordsAvailable);
}
function replaceItemAt(index, item) {
var _local1 = index;
var _local2 = this;
if ((_local1 >= 0) && (_local1 <= _local2.__get__length())) {
var _local3 = _local2.getItemID(_local1);
_local2.items[_local1] = item;
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function removeAll() {
clear();
}
function removeItemAt(index) {
var _local1 = index;
var _local2 = this;
var _local3 = _local2._items[_local1];
_local2._items.splice(_local1, 1);
var rItems = [_local2._items[_local1]];
var rIDs = [_local2.getItemID(_local1)];
_local2.dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local1, lastItem:_local1, removedItems:rItems, removedIDs:rIDs});
return(_local3);
}
function removeEventListener(event, listener) {
}
function requestRange(range) {
var _local1 = range.getStart();
var _local2 = range.getEnd();
return(internalRequestRange(_local1, _local2));
}
function setDeliveryMode(mode, pagesize, numPrefetchPages) {
var _local1 = this;
var _local2 = pagesize;
var _local3 = numPrefetchPages;
_local1.mDeliveryMode = mode.toLowerCase();
_local1.stopFetchAll();
if ((_local2 == null) || (_local2 <= 0)) {
_local2 = 25;
}
switch (_local1.mDeliveryMode) {
case "ondemand" :
return;
case "page" :
if (_local3 == null) {
_local3 = 0;
}
_local1.mPageSize = _local2;
_local1.mNumPrefetchPages = _local3;
return;
case "fetchall" :
_local1.stopFetchAll();
_local1.startFetchAll(_local2);
return;
default :
mx.remoting.NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
function editField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function getEditingData(index, fieldName) {
return(items[index][fieldName]);
}
function setField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function changeFieldValue(index, fieldName, value) {
var _local1 = index;
var _local2 = this;
if (_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
_local2.items[_local1][fieldName] = value;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function isObjectEmpty(objToCheck) {
var _local2 = objToCheck;
var _local1 = true;
for (var _local3 in _local2) {
_local1 = false;
return(_local1);
}
return(_local1);
}
function arrayToObject(anArray) {
if (mTitles == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var _local3 = new Object();
var alen = anArray.length;
var _local2;
var _local1 = 0;
while (_local1 < alen) {
_local2 = mTitles[_local1];
if (_local2 == null) {
_local2 = ("column" + _local1) + 1;
}
_local3[_local2] = anArray[_local1];
_local1++;
}
return(_local3);
}
function checkLocal() {
if (isLocal()) {
return(false);
}
mx.remoting.NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(true);
}
function getRecordSetService() {
var _local1 = this;
if (_local1.mRecordSetService == null) {
if (_local1.gateway_conn == null) {
_local1.gateway_conn = mx.remoting.NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
_local1.gateway_conn = _local1.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
_local1.gateway_conn.setupRecordSet();
_local1.gateway_conn.setDebugId("RecordSet " + _local1.mRecordSetID);
}
_local1.mRecordSetService = _local1.gateway_conn.getService(_local1.serviceName, _local1);
if (_local1.mRecordSetService == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
_local1.mRecordSetService = null;
}
}
return(_local1.mRecordSetService);
}
function internalRequestRange(index, lastIndex) {
var _local1 = index;
var _local2 = this;
var highestRequested = -1;
if (_local1 < 0) {
_local1 = 0;
}
if (lastIndex >= _local2.getRemoteLength()) {
lastIndex = _local2.getRemoteLength() - 1;
}
var _local3;
var last;
while (_local1 <= lastIndex) {
while ((_local1 <= lastIndex) && (_local2.items[_local1] != null)) {
_local1++;
}
_local3 = _local1;
while ((_local1 <= lastIndex) && (_local2.items[_local1] == null)) {
_local2.mOutstandingRecordCount++;
_local2.items[_local1] = 1;
_local1++;
}
last = _local1 - 1;
if (_local3 <= last) {
_local2.logger.logInfo((((" Fetching records from index [" + _local3) + "] to index [") + last) + "]");
_local2.getRecordSetService().getRecords(_local2.mRecordSetID, _local3 + 1, (last - _local3) + 1);
highestRequested = last;
_local2.updateViews("fetchRows", _local3, last);
}
}
return(highestRequested);
}
function removeItems(index, len) {
var _local3 = index;
var _local2 = new Array();
var _local1 = 0;
while (_local1 < len) {
_local2.push(getItemID(_local3 + _local1));
_local1++;
}
var oldItems = items.splice(_local3, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local3, lastItem:(_local3 + len) - 1, removedItems:oldItems, removedIDs:_local2});
}
function getRecords_Result(info) {
var _local1 = this;
var _local2 = info;
_local1.setData(_local2.Cursor - 1, _local2.Page);
_local1.mOutstandingRecordCount = _local1.mOutstandingRecordCount - _local2.Page.length;
_local1.updateViews("updateItems", _local2.Cursor - 1, ((_local2.Cursor - 1) + _local2.Page.length) - 1);
if ((_local1.mRecordsAvailable == _local1.mTotalCount) && (!_local1.mAllNotified)) {
_local1.updateViews("allRows");
_local1.mRecordSetService.release();
_local1.mAllNotified = true;
_local1.mRecordSetID = null;
_local1.mRecordSetService = null;
}
}
function release_Result() {
}
function requestOneRecord(index) {
var _local1 = this;
var _local2 = index;
if (_local1.items[_local2] == null) {
if (_local1.mDeliveryMode == "ondemand") {
_local1.logger.logInfo((" INFO: Fetching Record [" + _local2) + "]");
}
_local1.getRecordSetService().getRecords(_local1.mRecordSetID, _local2 + 1, 1);
_local1.mOutstandingRecordCount++;
_local1.items[_local2] = 1;
_local1.updateViews("fetchRows", _local2, _local2);
}
}
function requestRecord(index) {
var _local1 = this;
if (_local1.mDeliveryMode != "page") {
_local1.requestOneRecord(index);
} else {
var _local2 = int(index / _local1.mPageSize) * _local1.mPageSize;
var _local3 = (_local2 + (_local1.mPageSize * (_local1.mNumPrefetchPages + 1))) - 1;
_local1.internalRequestRange(_local2, _local3);
}
}
function _setParentService(service) {
gateway_conn = service.nc;
}
function setData(start, dataArray) {
var _local1 = this;
var datalen = dataArray.length;
var _local3;
var rec;
var _local2 = 0;
while (_local2 < datalen) {
_local3 = _local2 + start;
rec = _local1.items[_local3];
if ((rec != null) && (rec != 1)) {
mx.remoting.NetServices.trace("RecordSet", "warning", 106, "Already got record # " + _local3);
} else {
_local1.mRecordsAvailable = _local1.mRecordsAvailable + 1;
}
_local1.items[_local3] = _local1.arrayToObject(dataArray[_local2]);
_local1.items[_local3].__ID__ = _local1.uniqueID++;
_local2++;
}
}
function startFetchAll(pagesize) {
var _local1 = this;
if (_local1.mDataFetcher != null) {
_local1.mDataFetcher.disable();
}
_local1.mDataFetcher = new mx.remoting.RsDataFetcher(_local1, pagesize);
}
function stopFetchAll() {
mDataFetcher.disable();
mDataFetcher = null;
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static function registerRecordSet() {
Object.registerClass("RecordSet", mx.remoting.RecordSet);
return(true);
}
static var version = "1.2.0.124";
static var init = registerRecordSet();
}
Symbol 463 MovieClip [__Packages.mx.remoting.RecordSetIterator] Frame 0
class mx.remoting.RecordSetIterator
{
var _recordSet, _cursor;
function RecordSetIterator (rec) {
_recordSet = rec;
_cursor = 0;
}
function hasNext() {
return(_cursor < _recordSet.getLength());
}
function next() {
return(_recordSet.getItemAt(_cursor++));
}
static var version = "1.2.0.124";
}
Symbol 464 MovieClip [__Packages.mx.remoting.RsDataRange] Frame 0
class mx.remoting.RsDataRange extends Object
{
var _start, _end;
function RsDataRange (s, e) {
super();
_start = s;
_end = e;
}
function getStart() {
return(_start);
}
function getEnd() {
return(_end);
}
function setEnd(e) {
_end = e;
}
function setStart(s) {
_start = s;
}
}
Symbol 465 MovieClip [__Packages.mx.remoting.RsDataFetcher] Frame 0
class mx.remoting.RsDataFetcher extends Object
{
var mEnabled;
function RsDataFetcher (pgRS, increment) {
var _local1 = this;
super();
_local1.mRecordSet = pgRS;
_local1.mRecordSet.addEventListener("modelChanged", _local1);
_local1.mIncrement = increment;
_local1.mNextRecord = 0;
_local1.mEnabled = true;
_local1.doNext();
}
function disable() {
mEnabled = false;
}
function doNext() {
var _local1 = this;
if (_local1.mEnabled) {
do {
if (_local1.mNextRecord >= _local1.mRecordSet.getRemoteLength()) {
return;
}
var _local2 = new mx.remoting.RsDataRange(_local1.mNextRecord, (_local1.mNextRecord + _local1.mIncrement) - 1);
_local1.mHighestRequested = _local1.mRecordSet.requestRange(_local2);
_local1.mNextRecord = _local1.mNextRecord + _local1.mIncrement;
} while (_local1.mHighestRequested <= 0);
}
}
function modelChanged(eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (((_local2.eventName == "updateItems") && (_local2.firstItem <= _local1.mHighestRequested)) && (_local2.lastItem >= _local1.mHighestRequested)) {
_local1.doNext();
}
if (_local2.eventName == "allRows") {
_local1.disable();
}
}
}
Symbol 466 MovieClip [__Packages.mx.remoting.NetServiceProxyResponder] Frame 0
class mx.remoting.NetServiceProxyResponder extends Object
{
var service, methodName;
function NetServiceProxyResponder (serv, method) {
super();
service = serv;
methodName = method;
}
function onResult(result) {
var _local2 = result;
var _local1 = service.client;
if ((_local2 instanceof mx.remoting.NetServiceProxy) || (_local2 instanceof mx.remoting.RecordSet)) {
_local2._setParentService(service);
}
var _local3 = methodName + "_Result";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onResult) == "function") {
_local1.onResult(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 1, (_local3 + " was received from server: ") + _local2);
}
}
function onStatus(result) {
var _local2 = result;
var _local1 = service.client;
var _local3 = methodName + "_Status";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onStatus) == "function") {
_local1.onStatus(_local2);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(_local2);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 2, (((_local3 + " was received from server: <") + _local2.level) + "> ") + _local2.description);
}
}
}
Symbol 467 MovieClip [__Packages.mx.remoting.debug.NetDebugConfig] Frame 0
class mx.remoting.debug.NetDebugConfig extends Object
{
function NetDebugConfig () {
super();
Object.registerClass("NetDebugConfig", mx.remoting.debug.NetDebugConfig);
}
static function getNetDebugVersion() {
return(1);
}
static function attachNetDebugConfigFunctions(ndc) {
var _local1 = ndc;
_local1.setDebug = function (setval) {
this.m_debug = setval;
};
_local1.getDebug = function () {
return(this.m_debug);
};
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "object") {
attachNetDebugConfigFunctions(_local1[_local2]);
}
}
return(null);
}
static function getDefaultNetDebugConfig(isController) {
var _local1 = _global;
if (_local1.netDebugConfigSO == undefined) {
var _local2 = "TestMovie_Config_Info";
if (isController) {
_local2 = "Controller_Config_Info";
}
_local1.netDebugConfigSO = SharedObject.getLocal(_local2);
}
if (_local1.netDebugConfigSO.data.config == undefined) {
_local1.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_local1.netDebugConfigSO.flush();
return(_local1.netDebugConfigSO.data.config);
}
static function getRealDefaultNetDebugConfig() {
var _local1 = new mx.remoting.debug.NetDebugConfig();
_local1.m_debug = true;
_local1.client = new mx.remoting.debug.NetDebugConfig();
_local1.client.m_debug = true;
_local1.client.trace = true;
_local1.client.recordset = true;
_local1.client.http = true;
_local1.client.rtmp = true;
_local1.realtime_server = new mx.remoting.debug.NetDebugConfig();
_local1.realtime_server.m_debug = true;
_local1.realtime_server.trace = true;
_local1.app_server = new mx.remoting.debug.NetDebugConfig();
_local1.app_server.m_debug = true;
_local1.app_server.trace = true;
_local1.app_server.error = true;
_local1.app_server.recordset = true;
_local1.app_server.httpheaders = false;
_local1.app_server.amf = false;
_local1.app_server.amfheaders = false;
_local1.app_server.coldfusion = true;
return(_local1);
}
}
Symbol 468 MovieClip [__Packages.mx.utils.ObjectCopy] Frame 0
class mx.utils.ObjectCopy
{
function ObjectCopy () {
}
static function copy(refObj) {
var _local1 = new Function(refObj.__proto__.constructor)();
copyProperties(_local1, refObj);
return(_local1);
}
static function copyProperties(dstObj, srcObj) {
var _local2 = srcObj;
var to;
for (var i in _local2) {
to = typeof(_local2[i]);
if (to != "function") {
if (to == "object") {
if (_local2[i] instanceof Array) {
var p = new Array();
var _local3 = _local2[i];
var _local1 = 0;
while (_local1 < _local3.length) {
p[_local1] = _local3[_local1];
_local1++;
}
dstObj[i] = p;
} else if (_local2[i] instanceof String) {
dstObj[i] = new String(_local2[i]);
} else if (_local2[i] instanceof Number) {
dstObj[i] = new Number(_local2[i]);
} else if (_local2[i] instanceof Boolean) {
dstObj[i] = new Boolean(_local2[i]);
} else {
dstObj[i] = copy(_local2[i]);
}
} else {
dstObj[i] = _local2[i];
}
}
}
}
}
Symbol 469 MovieClip [__Packages.mx.remoting.debug.events.NetDebug] Frame 0
class mx.remoting.debug.events.NetDebug extends Object
{
var date, time;
function NetDebug () {
super();
init();
}
function init() {
var _local1 = this;
_local1.eventType = "DebugEvent";
_local1.source = "Client";
_local1.movieUrl = unescape(_root._url);
_local1.initDate();
}
function initDate() {
var _local1 = new Date();
date = _local1;
time = _local1.getTime();
}
}
Symbol 470 MovieClip [__Packages.mx.remoting.debug.events.NetDebugNetConnection] Frame 0
class mx.remoting.debug.events.NetDebugNetConnection extends mx.remoting.debug.events.NetDebug
{
function NetDebugNetConnection () {
super();
}
}
Symbol 471 MovieClip [__Packages.mx.remoting.debug.events.NetDebugConnect] Frame 0
class mx.remoting.debug.events.NetDebugConnect extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugConnect (args) {
var _local1 = args;
var _local2 = this;
super();
_local2.eventType = "Connect";
_local2.connectString = _local1[0];
if (_local1[1] != null) {
_local2.userName = _local1[1];
}
if (_local1[2] != null) {
_local2.password = _local1[2];
}
}
}
Symbol 472 MovieClip [__Packages.mx.remoting.debug.commands.Local] Frame 0
class mx.remoting.debug.commands.Local extends Object
{
var command, data;
function Local () {
super();
}
function init(commandname, dataobj) {
command = commandname;
data = dataobj;
}
}
Symbol 473 MovieClip [__Packages.mx.remoting.debug.commands.StartRTMPTrace] Frame 0
class mx.remoting.debug.commands.StartRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StartRTMPTrace (cs) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
init("startRealTimeTrace", _local1);
}
}
Symbol 474 MovieClip [__Packages.mx.remoting.debug.ConnectionMixin] Frame 0
class mx.remoting.debug.ConnectionMixin extends Object
{
var _protocol, _id, _config;
function ConnectionMixin () {
super();
}
static function initialize() {
var _local1 = mx.remoting.Connection.prototype;
var _local2 = mx.remoting.debug.ConnectionMixin.prototype;
if (!_local1.netDebugProxyFunctions) {
_local1.netDebugProxyFunctions = true;
_local1.realConnect = _local1.connect;
_local1.realCall = _local1.call;
_local1.realClose = _local1.close;
_local1.realAddHeader = _local1.addHeader;
_local1.connect = _local2.netDebugProxyConnect;
_local1.call = _local2.netDebugProxyCall;
_local1.close = _local2.netDebugProxyClose;
_local1.addHeader = _local2.netDebugProxyAddHeader;
_local1.attachDebug = _local2.attachDebug;
_local1.sendDebugEvent = _local2.sendDebugEvent;
_local1.sendServerEvent = _local2.sendServerEvent;
_local1.sendClientEvent = _local2.sendClientEvent;
_local1.addNetDebugHeader = _local2.addNetDebugHeader;
_local1.updateConfig = _local2.updateConfig;
_local1.getNetDebug = _local2.getNetDebug;
_local1.isRealTime = _local2.isRealTime;
_local1.setupRecordSet = _local2.setupRecordSet;
_local1.setDebugId = _local2.setDebugId;
_local1.getDebugId = _local2.getDebugId;
_local1.getDebugConfig = _local2.getDebugConfig;
_local1.trace = _local2.trace;
return(true);
}
return(false);
}
function attachDebug() {
var _local1 = this;
if (!_attached) {
_attached = true;
_local1._headerAdded = false;
_local1._configured = false;
_local1._config = new mx.remoting.debug.NetDebugConfig();
mx.utils.ObjectCopy.copyProperties(_local1._config, _local1.getNetDebug().getConfig());
_local1._protocol = "none";
_local1._id = String(_local1.getNetDebug().addNetConnection(_local1));
}
}
function sendDebugEvent(eventobj) {
var _local1 = this;
var _local2 = eventobj;
_local2.protocol = _local1._protocol;
_local2.debugId = _local1._id;
return(_local1.getNetDebug().onEvent(_local2));
}
function sendServerEvent(eventobj) {
eventobj.movieUrl = unescape(_root._url);
if (!sendDebugEvent(eventobj)) {
}
}
function sendClientEvent(eventobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
if ((_local1._config.client.http && (_local1._protocol == "http")) || (_local1._config.client.rtmp && (_local1._protocol.substr(0, 4) == "rtmp"))) {
if (!_local1.sendDebugEvent(eventobj)) {
}
}
}
}
function addNetDebugHeader() {
var _local1 = this;
if (!_local1._headerAdded) {
_local1._headerAdded = true;
if ((_local1._config.m_debug && (_local1._config.app_server.m_debug)) && (_local1._protocol == "http")) {
_local1.realAddHeader("amf_server_debug", true, _local1._config.app_server);
} else {
_local1.realAddHeader("amf_server_debug", true, undefined);
}
}
}
function updateConfig(config) {
var _local1 = this;
var _local2 = config;
_local1.attachDebug();
if ((_local2 == null) && (!_local1._configured)) {
_local1._configured = true;
_local2 = mx.remoting.debug.NetDebugConfig.getRealDefaultNetDebugConfig();
}
mx.utils.ObjectCopy.copyProperties(_local1._config, _local2);
_local1._headerAdded = false;
}
function isRealTime() {
return(_protocol.substr(0, 4) == "rtmp");
}
function setupRecordSet() {
var _local1 = this;
_local1.attachDebug();
_local1._config.client.http = _local1._config.client.recordset;
}
function netDebugProxyConnect() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
var _local3 = _local2[0].substr(0, 4);
if ((_local3 == "http") || (_local3.substr(0, 4) == "rtmp")) {
if (_local2[0].charAt(4) == ":") {
_local1._protocol = _local3;
} else {
_local1._protocol = _local2[0].substr(0, 5);
}
} else {
_local1._protocol = "http";
}
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugConnect(_local2));
if (_local1.isRealTime()) {
_local1._connectString = _local2[0];
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StartRTMPTrace(_local2[0]));
var ret = _local1.realConnect.apply(_local1, _local2);
_local1.realCall("@getClientID", new mx.remoting.RTMPClientIDResponse(_local2[0], _local1));
return(ret);
}
return(Boolean(_local1.realConnect.apply(_local1, _local2)));
}
function netDebugProxyCall() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugCall(_local2));
_local1.addNetDebugHeader();
if (_local1._config.app_server) {
_local2[1] = new mx.remoting.debug.NetDebugResponseProxy(_local1, _local2[1]);
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
function netDebugProxyClose() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugClose());
if (_local1.isRealTime()) {
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StopRTMPTrace(_local1._connectString, _local1._clientId));
}
var _local2 = _local1.realClose();
_local1.getNetDebug().removeNetConnection(_local1);
return(_local2);
}
function netDebugProxyAddHeader() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugAddHeader(arguments));
return(Boolean(_local1.realAddHeader.apply(_local1, arguments)));
}
function setDebugId(id) {
attachDebug();
_id = id;
}
function getDebugId() {
attachDebug();
return(_id);
}
function trace(traceobj) {
var _local1 = this;
_local1.attachDebug();
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj));
}
}
function getDebugConfig() {
attachDebug();
return(_config);
}
function getNetDebug() {
return(mx.remoting.debug.NetDebug.getNetDebug());
}
static var _attached = false;
}
Symbol 475 MovieClip [__Packages.mx.remoting.debug.events.NetDebugDuplicateNCDError] Frame 0
class mx.remoting.debug.events.NetDebugDuplicateNCDError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugDuplicateNCDError () {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.message = "NCD_ALREADY_RUNNING";
}
}
Symbol 476 MovieClip [__Packages.mx.remoting.debug.GlobalLocalConnection] Frame 0
class mx.remoting.debug.GlobalLocalConnection extends Object
{
var sendPrefix;
function GlobalLocalConnection (isController, receiver, domainName) {
var _local2 = this;
var _local3 = _global;
super();
_local2.maxConnections = 10;
var sToMovie = "_NetDebugLocalToDebugMovie";
var sToController = "_NetDebugLocalToController";
var connectname = null;
if (isController) {
connectname = sToController;
_local2.sendNames = new Array();
_local2.sendNames.push(sToMovie);
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
_local2.sendNames.push(sToMovie + _local1);
_local1++;
}
_local2.maxConnections = 0;
} else {
connectname = sToMovie;
_local2.sendNames = new Array();
_local2.sendNames.push(sToController);
}
_local2.setDomainName(domainName);
if (_local3.g_NetDebugLocalConnection == undefined) {
_local3.g_NetDebugLocalConnection = new LocalConnection();
_local3.g_NetDebugLocalConnection.allowDomain = function () {
return(true);
};
}
if (receiver != null) {
_local3.g_NetDebugLocalConnection.m_Receiver = receiver;
_local3.g_NetDebugLocalConnection.onData = function (dataobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
};
_local3.g_NetDebugLocalConnection.onCommand = function (commandobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
};
if (!_local3.g_NetDebugLocalConnection.connect(connectname)) {
var connected = false;
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
if (_local3.g_NetDebugLocalConnection.connect(connectname + _local1)) {
connected = true;
break;
}
_local1++;
}
if (!connected) {
if (isController) {
receiver.onReceiveError(new mx.remoting.debug.events.NetDebugDuplicateNCDError());
}
}
}
}
}
function setDomainName(domainName) {
var _local1 = domainName;
if ((_local1 != null) && (_local1 != "")) {
sendPrefix = _local1 + ":";
} else {
sendPrefix = "";
}
}
function send(dataobj) {
return(sendRaw("onData", dataobj));
}
function sendCommand(commandObj) {
return(sendRaw("onCommand", commandObj));
}
function sendRaw(functionName, obj) {
var _local3 = this;
var _local2 = true;
var snlen = _local3.sendNames.length;
var _local1 = 0;
while (_local1 < snlen) {
_local2 = Boolean(_local2 & _global.g_NetDebugLocalConnection.send(_local3.sendPrefix + _local3.sendNames[_local1], functionName, obj));
_local1++;
}
return(_local2);
}
}
Symbol 477 MovieClip [__Packages.mx.remoting.debug.commands.GetConfig] Frame 0
class mx.remoting.debug.commands.GetConfig extends mx.remoting.debug.commands.Local
{
var init;
function GetConfig () {
super();
}
function GetConfigCommand() {
super();
init("getConfig", null);
}
}
Symbol 478 MovieClip [__Packages.mx.remoting.debug.events.NetDebugFailedSendError] Frame 0
class mx.remoting.debug.events.NetDebugFailedSendError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugFailedSendError (ev) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.originalEvent = ev;
_local1.message = "NCD_FAILED_TO_SEND_EVENT";
}
}
Symbol 479 MovieClip [__Packages.mx.remoting.debug.events.NetDebugStatus] Frame 0
class mx.remoting.debug.events.NetDebugStatus extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, status;
function NetDebugStatus (statusobj) {
super();
eventType = "Status";
status = statusobj;
}
}
Symbol 480 MovieClip [__Packages.mx.remoting.debug.events.NetDebugError] Frame 0
class mx.remoting.debug.events.NetDebugError extends mx.remoting.debug.events.NetDebug
{
var eventType, error;
function NetDebugError (dataobj) {
super();
eventType = "NetDebugError";
error = dataobj;
}
}
Symbol 481 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTraceNetServices] Frame 0
class mx.remoting.debug.events.NetDebugTraceNetServices extends mx.remoting.debug.events.NetDebug
{
function NetDebugTraceNetServices (w, s, n, m) {
var _local1 = this;
super();
_local1.eventType = "NetServicesTrace";
_local1.trace = m;
_local1.who = w;
_local1.severity = s;
_local1.number = n;
}
}
Symbol 482 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTrace] Frame 0
class mx.remoting.debug.events.NetDebugTrace extends mx.remoting.debug.events.NetDebug
{
var eventType, trace;
function NetDebugTrace (traceobj) {
super();
eventType = "Trace";
trace = traceobj;
}
}
Symbol 483 MovieClip [__Packages.mx.remoting.debug.NetDebug] Frame 0
class mx.remoting.debug.NetDebug extends Object
{
static var ndSingleton;
var _ncs, _nextNewId, _glc, _config;
function NetDebug () {
var _local1 = this;
super();
_local1._ncs = new Array();
_local1._config = mx.remoting.debug.NetDebugConfig.getDefaultNetDebugConfig(false);
_local1._glc = new mx.remoting.debug.GlobalLocalConnection(false, _local1);
_local1._glc.sendCommand(new mx.remoting.debug.commands.GetConfig());
_local1._nextNewId = 0;
if (_global.System.onStatus == undefined) {
_global.System.onStatus = globalOnStatus;
}
mx.remoting.NetServices.traceNetServices = traceNetServices;
}
function addNetConnection(nc) {
_ncs.push(nc);
return(_nextNewId++);
}
function requestNewConfig() {
return(sendCommand(new mx.remoting.debug.commands.GetConfig()));
}
function removeNetConnection(nc) {
var _local2 = this;
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (nc == _local2._ncs[_local1]) {
_local2._ncs.splice(_local1, 1);
return;
}
_local1++;
}
}
function sendDebugEvent(eventobj) {
if (!_glc.send(eventobj)) {
_glc.send(new mx.remoting.debug.events.NetDebugFailedSendError(stripNCDEventToMinmal(eventobj)));
return(false);
}
return(true);
}
function sendCommand(commandobj) {
return(_glc.sendCommand(commandobj));
}
function updateConfig(config) {
var _local2 = this;
mx.utils.ObjectCopy.copyProperties(_local2._config, config);
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2._ncs[_local1] != null) {
_local2._ncs[_local1].updateConfig(config);
}
_local1++;
}
}
function sendStatus(statusobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
return(_local1._glc.send(new mx.remoting.debug.events.NetDebugStatus(statusobj)));
}
return(undefined);
}
function onEvent(eventObj) {
return(sendDebugEvent(eventObj));
}
function onEventError(errorObj) {
return(sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorObj)));
}
function onReceiveCommand(commandobj) {
this[commandobj.command](commandobj.data);
}
function onReceiveError(errorobj) {
sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorobj));
}
function getConfig() {
return(_config);
}
static function getNetDebug() {
return(ndSingleton);
}
static function trace(obj) {
getNetDebug()._trace(obj);
}
static function traceNetServices(who, severity, number, message) {
getNetDebug()._traceNetServices(who, severity, number, message);
}
static function globalOnStatus(statusobj) {
getNetDebug().sendStatus(statusobj);
}
static function initialize() {
if (ndSingleton == null) {
ndSingleton = new mx.remoting.debug.NetDebug();
mx.remoting.debug.ConnectionMixin.initialize();
}
return(true);
}
static function stripNCDEventToMinmal(ev) {
var _local1 = ev;
var _local2 = new Object();
if (_local1.eventType != null) {
_local2.eventType = _local1.eventType;
}
if (_local1.source != null) {
_local2.source = _local1.source;
}
if (_local1.movieUrl != null) {
_local2.movieUrl = _local1.movieUrl;
}
if (_local1.date != null) {
_local2.date = _local1.date;
}
if (_local1.time != null) {
_local2.time = _local1.time;
}
if (_local1.protocol != null) {
_local2.protocol = _local1.protocol;
}
if (_local1.debugId != null) {
_local2.debugId = _local1.debugId;
}
return(_local2);
}
function _traceNetServices(who, severity, number, message) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTraceNetServices(who, severity, number, message))) {
}
}
}
function _trace(traceobj) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj))) {
}
}
}
static var version = "1.2.0.124";
}
Symbol 484 MovieClip [__Packages.mx.remoting.debug.commands.AddRTMPClient] Frame 0
class mx.remoting.debug.commands.AddRTMPClient extends mx.remoting.debug.commands.Local
{
var init;
function AddRTMPClient (cs, cid) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("addRealTimeClient", _local1);
}
}
Symbol 485 MovieClip [__Packages.mx.remoting.RTMPClientIDResponse] Frame 0
class mx.remoting.RTMPClientIDResponse extends Object
{
var _connectString, _nc;
function RTMPClientIDResponse (cs, nc) {
super();
_connectString = cs;
_nc = nc;
}
function onResult(cid) {
_nc._clientId = cid;
mx.remoting.debug.NetDebug.getNetDebug().sendCommand(new mx.remoting.debug.commands.AddRTMPClient(_connectString, cid));
}
}
Symbol 486 MovieClip [__Packages.mx.remoting.debug.events.NetDebugCall] Frame 0
class mx.remoting.debug.events.NetDebugCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugCall (args) {
var _local2 = this;
var _local3 = args;
super();
_local2.eventType = "Call";
_local2.methodName = _local3[0];
_local2.parameters = new Array();
var alen = _local3.length;
var _local1 = 2;
while (_local1 < alen) {
_local2.parameters[_local1 - 2] = _local3[_local1];
_local1++;
}
}
}
Symbol 487 MovieClip [__Packages.mx.remoting.debug.events.NetDebugResult] Frame 0
class mx.remoting.debug.events.NetDebugResult extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, result;
function NetDebugResult (resultobj) {
super();
eventType = "Result";
result = resultobj;
}
}
Symbol 488 MovieClip [__Packages.mx.remoting.debug.events.NetDebugReceiveCall] Frame 0
class mx.remoting.debug.events.NetDebugReceiveCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugReceiveCall (mName, args) {
var _local1 = this;
super();
_local1.eventType = "ReceivedCall";
_local1.methodName = mName;
_local1.parameters = args;
}
}
Symbol 489 MovieClip [__Packages.mx.remoting.debug.NetDebugResponseProxy] Frame 0
class mx.remoting.debug.NetDebugResponseProxy extends Object
{
var _sourceNC, _originalNR;
function NetDebugResponseProxy (source, original) {
super();
_sourceNC = source;
_originalNR = original;
}
function onDebugEvents(debugevents) {
var _local3 = debugevents;
var _local2 = _local3.length;
var _local1 = 0;
while (_local1 < _local2) {
_sourceNC.sendServerEvent(_local3[_local1]);
_local1++;
}
}
function onResult(resultobj) {
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugResult(resultobj));
_originalNR.onResult(resultobj);
}
function onStatus(statusobj) {
var _local1 = this;
var _local2 = statusobj;
_local1._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugStatus(_local2));
if (_local1._originalNR.onStatus != undefined) {
_local1._originalNR.onStatus(_local2);
} else {
_global.System.onStatus(_local2);
}
}
function __resolve(name) {
var _local1 = name;
trace("NetDebugResponseProxy.__resolve name: " + _local1);
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugReceiveCall(_local1, arguments));
_originalNR[_local1].apply(arguments);
return(null);
}
}
Symbol 490 MovieClip [__Packages.mx.remoting.debug.events.NetDebugClose] Frame 0
class mx.remoting.debug.events.NetDebugClose extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType;
function NetDebugClose () {
super();
eventType = "Close";
}
}
Symbol 491 MovieClip [__Packages.mx.remoting.debug.commands.StopRTMPTrace] Frame 0
class mx.remoting.debug.commands.StopRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StopRTMPTrace () {
super();
}
function StopRTMPTraceCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("stopRealTimeTrace", _local1);
}
}
Symbol 492 MovieClip [__Packages.mx.remoting.debug.events.NetDebugAddHeader] Frame 0
class mx.remoting.debug.events.NetDebugAddHeader extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugAddHeader (args) {
var _local1 = this;
var _local2 = args;
super();
_local1.eventType = "AddHeader";
_local1.headerName = _local2[0];
_local1.mustUnderstand = _local2[1];
if (_local2[2] != null) {
_local1.headerObject = _local2[2];
}
}
}
Symbol 493 MovieClip [__Packages.mx.remoting.debug.events.NetDebugInfoError] Frame 0
class mx.remoting.debug.events.NetDebugInfoError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugInfoError (infoobj, mes) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.info = infoobj;
if (mes != null) {
_local1.message = mes;
}
}
}
Symbol 494 MovieClip [__Packages.mx.remoting.debug.events.NetDebugRtmpLog] Frame 0
class mx.remoting.debug.events.NetDebugRtmpLog extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugRtmpLog (infoobj) {
var _local1 = this;
super();
_local1.eventType = "Trace";
_local1.source = "Flash Communication Server";
_local1.info = infoobj;
_local1.trace = infoobj.description;
}
}
Symbol 495 MovieClip [__Packages.mx.remoting.debug.commands.UpdateNetDebugConfig] Frame 0
class mx.remoting.debug.commands.UpdateNetDebugConfig extends mx.remoting.debug.commands.Local
{
var init;
function UpdateNetDebugConfig () {
super();
}
function UpdateNetDebugCommand(dataobj) {
super();
init("updateConfig", dataobj);
}
}
Symbol 496 MovieClip [__Packages.mx.data.components.connclasses.RPCCall] Frame 0
class mx.data.components.connclasses.RPCCall extends MovieClip
{
var dispatchEvent, results, _visible;
function RPCCall () {
var _local1 = this;
super();
mx.events.EventDispatcher.initialize(_local1);
mx.data.binding.ComponentMixins.initComponent(_local1);
_local1._visible = false;
}
function bumpCallsInProgress(amount) {
var _local1 = this;
_local1.callsInProgress = _local1.callsInProgress + amount;
_local1.notifyStatus("StatusChange", {callsInProgress:_local1.callsInProgress});
}
function notifyStatus(code, data) {
var _local1 = new Object();
_local1.type = "status";
_local1.code = code;
_local1.data = data;
dispatchEvent(_local1);
}
function setResult(r) {
results = r;
dispatchEvent({type:"result"});
}
function triggerSetup(needsParams) {
var _local1 = this;
if ((!_local1.multipleSimultaneousAllowed) && (_local1.callsInProgress > 0)) {
_local1.notifyStatus("CallAlreadyInProgress", _local1.callsInProgress);
return(false);
}
_local1.dispatchEvent({type:"send"});
if ((needsParams && (!_local1.refreshAndValidate("params"))) && (_local1.suppressInvalidCalls)) {
_local1.notifyStatus("InvalidParams");
return(false);
}
return(true);
}
function onUpdate() {
_visible = true;
}
var callsInProgress = 0;
}
Symbol 497 MovieClip [__Packages.mx.rpc.Responder] Frame 0
interface mx.rpc.Responder{}
Symbol 498 MovieClip [__Packages.mx.data.components.RemotingConnector] Frame 0
class mx.data.components.RemotingConnector extends mx.data.components.connclasses.RPCCall
{
var __params, __result, notifyStatus;
function RemotingConnector () {
super();
}
function get params() {
return(__params);
}
function set params(newValue) {
__params = newValue;
//return(params);
}
function get results() {
return(__result);
}
function trigger() {
var _local1 = this;
_global.__dataLogger.logData(_local1, "RemotingConnector Triggered, <URL>, <methodName>", {URL:_local1.gatewayUrl, methodName:_local1.methodName});
_global.__dataLogger.nestLevel++;
if (_local1.gatewayUrl.length == 0) {
_local1.gatewayUrl = _root.gatewayUrl;
}
if (_local1.gatewayUrl.length == 0) {
_local1.notifyStatus("RemotingFault", {faultcode:"No.RemoteService.Defined", faultstring:"The RemotingConnector had no GatewayUrl or ServiceName defined"});
_global.__dataLogger.nestLevel--;
} else {
_local1.triggerSetup(false);
if ((!_local1.refreshAndValidate("params")) && (_local1.suppressInvalidCalls)) {
if (_local1.__get__params() != undefined) {
_local1.notifyStatus("InvalidParams");
_global.__dataLogger.nestLevel--;
return;
}
} else {
var _local2 = new Array();
if (_local1.__get__params() instanceof Array) {
var i = 0;
while (i < _local1.params.length) {
_local2.push(_local1.params[i]);
i++;
}
_global.__dataLogger.logData(_local1, "Parameters to <method> will be sent in the order you've provided", {method:_local1.methodName});
} else {
var paramSchema = mx.data.binding.FieldAccessor.findElementType(Object(_local1).__schema, "params");
if (paramSchema != null) {
var i = 0;
while (i < paramSchema.elements.length) {
var _local3 = paramSchema.elements[i].name;
_local2.push(_local1.params[_local3]);
i++;
}
_global.__dataLogger.logData(_local1, "Parameters to <method> will be sent in the order defined in the schema", {method:_local1.methodName});
} else {
for (var i in _local1.__get__params()) {
_local2.push(_local1.params[i]);
}
_global.__dataLogger.logData(_local1, "No schema information available - parameters to <method> will be sent in a unknown order", {method:_local1.methodName});
}
}
_global.__dataLogger.logData(_local1, "Invoking <method>(<params>)", {method:_local1.methodName, params:_local2});
var conn = null;
var remoteService = null;
var tempGatewayUrl = _local1.gatewayUrl;
if (!_local1.shareConnections) {
conn = new mx.remoting.Connection();
conn.connect(tempGatewayUrl);
tempGatewayUrl = null;
}
remoteService = new mx.remoting.Service(tempGatewayUrl, _global.__dataLogger, _local1.serviceName, conn);
if ((_local1.userId.length > 0) && (_local1.password.length > 0)) {
remoteService.connection.setCredentials(_local1.userId, _local1.password);
}
var callBack = remoteService[_local1.methodName].apply(remoteService, _local2);
callBack.__set__responder(_local1);
_local1.bumpCallsInProgress(1);
_global.__dataLogger.nestLevel--;
}
}
}
function onResult(result) {
var _local1 = this;
_local1.__result = result.result;
_local1.setResult(result.__get__result());
_local1.bumpCallsInProgress(-1);
}
function onFault(fault) {
notifyStatus("fault", fault.__get__fault());
bumpCallsInProgress(-1);
}
function bumpCallsInProgress(amount) {
callsInProgress = callsInProgress + amount;
}
var callsInProgress = 0;
}
Symbol 503 MovieClip [__Packages.mx.data.binding.ComponentMixins] Frame 0
class mx.data.binding.ComponentMixins
{
var __schema;
function ComponentMixins () {
}
function refreshFromSources() {
var _local1 = this;
var _local2 = _global;
if (_local1.__refreshing != null) {
} else {
_local1.__refreshing = true;
_local2.__dataLogger.logData(_local1, "Refreshing from sources");
_local2.__dataLogger.nestLevel++;
mx.data.binding.Binding.refreshFromSources(_local1, null, _local1.__bindings);
_local2.__dataLogger.nestLevel--;
_local1.__refreshing = null;
}
}
function refreshDestinations() {
var _local1 = _global;
var _local2 = this;
_local1.__dataLogger.logData(_local2, "Refreshing Destinations");
_local1.__dataLogger.nestLevel++;
mx.data.binding.Binding.refreshDestinations(_local2, _local2.__bindings);
_local1.__dataLogger.nestLevel--;
}
function validateProperty(property, initialMessages) {
var _local2 = null;
var _local1 = getField(property);
if (_local1 != null) {
_local2 = _local1.validateAndNotify(null, null, initialMessages);
} else {
_global.__dataLogger.logData(this, "Can't validate property '<property>' because it doesn't exist", {property:property});
}
return(_local2);
}
function addBinding(binding) {
var _local1 = binding;
var _local2 = this;
if (_local2.__bindings == undefined) {
_local2.__bindings = new Array();
}
_local2.__bindings.push(_local1);
var _local3 = false;
if (_local1.source.component == _local2) {
_local2.getField(_local1.source.property, _local1.source.location);
_local3 = true;
}
if (_local1.dest.component == _local2) {
_local2.getField(_local1.dest.property, _local1.dest.location);
_local3 = _local3 | Object(_local1).is2way;
}
if (_local3) {
var schema = _local1.dest.component.findSchema(_local1.dest.property, _local1.dest.location);
if (schema.readonly) {
_local1.source.component.__setReadOnly(true);
}
}
}
static function initComponent(component) {
var _local1 = component;
var _local2 = mx.data.binding.ComponentMixins.prototype;
if (_local1.refreshFromSources == undefined) {
_local1.refreshFromSources = _local2.refreshFromSources;
}
if (_local1.refreshDestinations == undefined) {
_local1.refreshDestinations = _local2.refreshDestinations;
}
if (_local1.validateProperty == undefined) {
_local1.validateProperty = _local2.validateProperty;
}
if (_local1.createFieldAccessor == undefined) {
_local1.createFieldAccessor = _local2.createFieldAccessor;
}
if (_local1.createField == undefined) {
_local1.createField = _local2.createField;
}
if (_local1.addBinding == undefined) {
_local1.addBinding = _local2.addBinding;
}
if (_local1.findSchema == undefined) {
_local1.findSchema = _local2.findSchema;
}
if (_local1.getField == undefined) {
_local1.getField = _local2.getField;
}
if (_local1.refreshAndValidate == undefined) {
_local1.refreshAndValidate = _local2.refreshAndValidate;
}
if (_local1.getFieldFromCache == undefined) {
_local1.getFieldFromCache = _local2.getFieldFromCache;
}
if (_local1.getBindingMetaData == undefined) {
_local1.getBindingMetaData = _local2.getBindingMetaData;
}
if (_local1.__setReadOnly == undefined) {
_local1.__setReadOnly = _local2.__setReadOnly;
}
if (_local1.__addHighPrioEventListener == undefined) {
_local1.__addHighPrioEventListener = _local2.__addHighPrioEventListener;
}
}
function createFieldAccessor(property, location, mustExist) {
return(mx.data.binding.FieldAccessor.createFieldAccessor(this, property, location, mx.data.binding.FieldAccessor.findElementType(__schema, property), mustExist));
}
function findSchema(property, location) {
var _local2 = location;
if (typeof(_local2) == "string") {
if (mx.data.binding.FieldAccessor.isActionScriptPath(String(_local2))) {
_local2 = _local2.split(".");
} else {
return(null);
}
}
var type = mx.data.binding.FieldAccessor.findElementType(__schema, property);
if (_local2 != null) {
if (_local2.path != null) {
_local2 = _local2.path;
}
if (!(_local2 instanceof Array)) {
return(null);
}
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = _local2[_local1];
type = mx.data.binding.FieldAccessor.findElementType(type, _local3);
_local1++;
}
}
return(type);
}
function createField(property, location) {
var _local2 = findSchema(property, location);
var _local1;
if (_local2.validation != null) {
_local1 = mx.data.binding.Binding.getRuntimeObject(_local2.validation);
} else {
_local1 = new mx.data.binding.DataType();
}
_local1.setupDataAccessor(this, property, location);
return(_local1);
}
static function deepEqual(a, b) {
var _local1 = a;
var _local2 = b;
if (_local1 == _local2) {
return(true);
}
if (typeof(_local1) != typeof(_local2)) {
return(false);
}
if (typeof(_local1) != "object") {
return(false);
}
var _local3 = new Object();
for (var i in _local1) {
if (!deepEqual(_local1[i], _local2[i])) {
return(false);
}
_local3[i] = 1;
}
for (var i in _local2) {
if (_local3[i] != 1) {
return(false);
}
}
return(true);
}
function getFieldFromCache(property, location) {
var _local2 = this;
var _local3 = location;
for (var i in _local2.__fieldCache) {
var _local1 = _local2.__fieldCache[i];
if ((_local1.property == property) && (deepEqual(_local1.location, _local3))) {
return(_local1);
}
}
return(null);
}
function getField(property, location) {
var _local2 = this;
var _local1 = _local2.getFieldFromCache(property, location);
if (_local1 != null) {
return(_local1);
}
_local1 = _local2.createField(property, location);
if (_local2.__fieldCache == null) {
_local2.__fieldCache = new Array();
}
_local2.__fieldCache.push(_local1);
return(_local1);
}
function refreshAndValidate(property) {
var _local2 = this;
var _local3 = _global;
_local3.__dataLogger.logData(_local2, "Refreshing and validating " + property);
_local3.__dataLogger.nestLevel++;
var _local1 = mx.data.binding.Binding.refreshFromSources(_local2, property, _local2.__bindings);
_local1 = _local2.validateProperty(property, _local1);
_local3.__dataLogger.nestLevel--;
return(_local1 == null);
}
function getBindingMetaData(name) {
return(this["__" + name]);
}
function __setReadOnly(setting) {
if (Object(this).editable != undefined) {
Object(this).editable = !setting;
}
}
function __addHighPrioEventListener(event, handler) {
var _local2 = this;
var _local1 = ((_local2._eventDispatcher != undefined) ? (_local2._eventDispatcher) : (_local2));
if (_local1.__highPrioEvents == undefined) {
_local1.__highPrioEvents = new Object();
}
var _local3 = "__q_" + event;
if (_local1.__highPrioEvents[_local3] == undefined) {
_local1.__highPrioEvents[_local3] = new Array();
}
_global.ASSetPropFlags(_local1.__highPrioEvents, _local3, 1);
mx.events.EventDispatcher._removeEventListener(_local1.__highPrioEvents[_local3], event, handler);
_local1.__highPrioEvents[_local3].push(handler);
if (_local1._databinding_original_dispatchEvent == undefined) {
_local1._databinding_original_dispatchEvent = _local1.dispatchEvent;
_local1.dispatchEvent = function (eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (_local2.target == undefined) {
_local2.target = _local1;
}
_local1.dispatchQueue(_local1.__highPrioEvents, _local2);
_local1._databinding_original_dispatchEvent(_local2);
};
}
}
}
Symbol 504 MovieClip [__Packages.mx.data.binding.EndPoint] Frame 0
class mx.data.binding.EndPoint
{
function EndPoint () {
}
}
Symbol 505 MovieClip [__Packages.mx.data.binding.ObjectDumper] Frame 0
class mx.data.binding.ObjectDumper
{
var inProgress;
function ObjectDumper () {
inProgress = new Array();
}
static function toString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = indent;
var _local2 = maxLineLength;
var _local3 = new mx.data.binding.ObjectDumper();
if (_local2 == undefined) {
_local2 = 100;
}
if (_local1 == undefined) {
_local1 = 0;
}
return(_local3.realToString(obj, showFunctions, showUndefined, showXMLstructures, _local2, _local1));
}
function realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = obj;
var x = 0;
while (x < inProgress.length) {
if (inProgress[x] == _local1) {
return("***");
}
x++;
}
inProgress.push(_local1);
indent++;
var t = typeof(_local1);
var result;
if ((_local1 instanceof XMLNode) && (showXMLstructures != true)) {
result = _local1.toString();
} else if (_local1 instanceof Date) {
result = _local1.toString();
} else if (t == "object") {
var _local3 = new Array();
if (_local1 instanceof Array) {
result = "[";
var i = 0;
while (i < _local1.length) {
_local3.push(i);
i++;
}
} else {
result = "{";
for (var i in _local1) {
_local3.push(i);
}
_local3.sort();
}
var sep = "";
var _local2 = 0;
while (_local2 < _local3.length) {
var val = _local1[_local3[_local2]];
var show = true;
if (typeof(val) == "function") {
show = showFunctions == true;
}
if (typeof(val) == "undefined") {
show = showUndefined == true;
}
if (show) {
result = result + sep;
if (!(_local1 instanceof Array)) {
result = result + (_local3[_local2] + ": ");
}
result = result + realToString(val, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent);
sep = ", `";
}
_local2++;
}
if (_local1 instanceof Array) {
result = result + "]";
} else {
result = result + "}";
}
} else if (t == "function") {
result = "function";
} else if (t == "string") {
result = ("\"" + _local1) + "\"";
} else {
result = String(_local1);
}
if (result == "undefined") {
result = "-";
}
inProgress.pop();
return(replaceAll(result, "`", ((result.length < maxLineLength) ? "" : (newline + doIndent(indent)))));
}
static function replaceAll(str, from, to) {
var _local3 = str.split(from);
var result = "";
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3.length) {
result = result + (_local2 + _local3[_local1]);
_local2 = to;
_local1++;
}
return(result);
}
function doIndent(indent) {
var _local3 = indent;
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
}
Symbol 506 MovieClip [__Packages.mx.data.binding.TypedValue] Frame 0
class mx.data.binding.TypedValue
{
function TypedValue (value, typeName, type) {
var _local1 = this;
_local1.value = value;
_local1.typeName = typeName;
_local1.type = type;
}
}
Symbol 507 MovieClip [__Packages.mx.xpath.NodePathInfo] Frame 0
class mx.xpath.NodePathInfo
{
function NodePathInfo (nodeName, filter) {
__nodeName = nodeName;
__filter = filter;
}
function get nodeName() {
return(__nodeName);
}
function get filter() {
return(__filter);
}
var __nodeName = null;
var __filter = null;
}
Symbol 508 MovieClip [__Packages.mx.utils.StringTokenParser] Frame 0
class mx.utils.StringTokenParser
{
var _source, _skipChars;
function StringTokenParser (source, skipChars) {
_source = source;
_skipChars = ((skipChars == undefined) ? null : (skipChars));
}
function get token() {
return(_token);
}
function getPos() {
return(_index);
}
function nextToken() {
var _local2 = this;
var i;
var _local1;
var _local3 = _local2._source.length;
_local2.skipBlanks();
if (_local2._index >= _local3) {
return(tkEOF);
}
_local1 = _local2._source.charCodeAt(_local2._index);
if (((((_local1 >= 65) && (_local1 <= 90)) || ((_local1 >= 97) && (_local1 <= 122))) || ((_local1 >= 192) && (_local1 <= Number.POSITIVE_INFINITY))) || (_local1 == 95)) {
i = _local2._index;
_local2._index++;
_local1 = _local2._source.charCodeAt(_local2._index);
while (((((((_local1 >= 65) && (_local1 <= 90)) || ((_local1 >= 97) && (_local1 <= 122))) || ((_local1 >= 48) && (_local1 <= 57))) || ((_local1 >= 192) && (_local1 <= Number.POSITIVE_INFINITY))) || (_local1 == 95)) && (_local2._index < _local3)) {
_local2._index++;
_local1 = _local2._source.charCodeAt(_local2._index);
}
_local2._token = _local2._source.substring(i, _local2._index);
return(tkSymbol);
}
if ((_local1 == 34) || (_local1 == 39)) {
_local2._index++;
i = _local2._index;
_local1 = _local2._source.charCodeAt(i);
while (((_local1 != 34) && (_local1 != 39)) && (_local2._index < _local3)) {
_local2._index++;
_local1 = _local2._source.charCodeAt(_local2._index);
}
_local2._token = _local2._source.substring(i, _local2._index);
_local2._index++;
return(tkString);
}
if ((_local1 == 45) || ((_local1 >= 48) && (_local1 <= 57))) {
var kind = tkInteger;
i = _local2._index;
_local2._index++;
_local1 = _local2._source.charCodeAt(_local2._index);
while (((_local1 >= 48) && (_local1 <= 57)) && (_local2._index < _local3)) {
_local2._index++;
_local1 = _local2._source.charCodeAt(_local2._index);
}
if (_local2._index < _local3) {
if (((((((_local1 >= 48) && (_local1 <= 57)) || (_local1 == 46)) || (_local1 == 43)) || (_local1 == 45)) || (_local1 == 101)) || (_local1 == 69)) {
kind = tkFloat;
}
while ((((((((_local1 >= 48) && (_local1 <= 57)) || (_local1 == 46)) || (_local1 == 43)) || (_local1 == 45)) || (_local1 == 101)) || (_local1 == 69)) && (_local2._index < _local3)) {
_local2._index++;
_local1 = _local2._source.charCodeAt(_local2._index);
}
}
_local2._token = _local2._source.substring(i, _local2._index);
return(kind);
}
_local2._token = _local2._source.charAt(_local2._index);
_local2._index++;
return(tkSymbol);
}
function skipBlanks() {
var _local1 = this;
if (_local1._index < _local1._source.length) {
var _local2 = _local1._source.charAt(_local1._index);
while ((_local2 == " ") || ((_local1._skipChars != null) && (_local1.skipChar(_local2)))) {
_local1._index++;
_local2 = _local1._source.charAt(_local1._index);
}
}
}
function skipChar(ch) {
var _local2 = this;
var _local3 = ch;
var _local1 = 0;
while (_local1 < _local2._skipChars.length) {
if (_local3 == _local2._skipChars[_local1]) {
return(true);
}
_local1++;
}
return(false);
}
static var tkEOF = -1;
static var tkSymbol = 0;
static var tkString = 1;
static var tkInteger = 2;
static var tkFloat = 3;
var _index = 0;
var _token = "";
}
Symbol 509 MovieClip [__Packages.mx.xpath.FilterExpr] Frame 0
class mx.xpath.FilterExpr
{
function FilterExpr (attrInit, nameInit, valueInit) {
var _local1 = this;
_local1.__attr = attrInit;
_local1.__name = nameInit;
_local1.__value = valueInit;
}
function get attr() {
return(__attr);
}
function set attr(newVal) {
__attr = newVal;
//return(attr);
}
function get name() {
return(__name);
}
function set name(newVal) {
__name = newVal;
//return(name);
}
function get value() {
return(__value);
}
function set value(newVal) {
__value = newVal;
//return(value);
}
var __attr = false;
var __value = null;
var __name = null;
}
Symbol 510 MovieClip [__Packages.mx.xpath.FilterStack] Frame 0
class mx.xpath.FilterStack
{
var __expr, __ops;
function FilterStack (filterVal) {
__expr = new Array();
__ops = new Array();
var _local1 = new mx.utils.StringTokenParser(filterVal);
var kind = _local1.nextToken();
var _local3;
var _local2 = _local1.__get__token();
while (kind != mx.utils.StringTokenParser.tkEOF) {
if (_local2 == "@") {
kind = _local1.nextToken();
_local2 = _local1.token;
_local3 = new mx.xpath.FilterExpr(true, _local2, null);
__expr.splice(0, 0, _local3);
if (_local1.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local1.__get__token() == "=") {
kind = _local1.nextToken();
_local3.__set__value(_local1.token);
}
}
} else if ((_local2 == "and") || (_local2 == "or")) {
__ops.splice(0, 0, _local2);
} else if ((_local2 != ")") && (_local2 != "(")) {
_local3 = new mx.xpath.FilterExpr(false, _local2, null);
__expr.splice(0, 0, _local3);
if (_local1.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local1.__get__token() == "=") {
kind = _local1.nextToken();
_local3.__set__value(_local1.token);
}
}
}
kind = _local1.nextToken();
_local2 = _local1.token;
}
}
function get exprs() {
return(__expr);
}
function get ops() {
return(__ops);
}
}
Symbol 511 MovieClip [__Packages.mx.xpath.XPathAPI] Frame 0
class mx.xpath.XPathAPI
{
function XPathAPI () {
}
static function getEvalString(node, path) {
var result = "";
var chldNode = null;
var pathSet = getPathSet(path);
var _local3 = pathSet[0].nodeName;
var attrIndx;
var _local2 = node;
var found = false;
if ((_local3 != undefined) && ((_local3 == "*") || (node.nodeName == _local3))) {
var i = 1;
while (i < pathSet.length) {
_local3 = pathSet[i].nodeName;
attrIndx = _local3.indexOf("@");
if (attrIndx >= 0) {
_local3 = _local3.substring(attrIndx + 1);
found = _local2.attributes[_local3] != undefined;
result = result + (".attributes." + _local3);
} else {
found = false;
var _local1 = 0;
while (_local1 < _local2.childNodes.length) {
chldNode = _local2.childNodes[_local1];
if (chldNode.nodeName == _local3) {
result = result + (".childNodes." + _local1);
_local1 = _local2.childNodes.length;
_local2 = chldNode;
found = true;
}
_local1++;
}
}
if (!found) {
return("");
}
i++;
}
if (!found) {
result = "";
} else if (attrIndx == -1) {
result = result + ".firstChild.nodeValue";
}
} else {
result = "";
}
return(result);
}
static function selectNodeList(node, path) {
var _local2 = new Array(node);
var pathSet = getPathSet(path);
var pathInfo = pathSet[0];
var nodeName = pathInfo.__get__nodeName();
var _local1 = null;
if ((nodeName != undefined) && ((nodeName == "*") || (node.nodeName == nodeName))) {
if (pathInfo.filter.length > 0) {
_local1 = new mx.xpath.FilterStack(pathInfo.__get__filter());
_local2 = filterNodes(_local2, _local1);
}
if (_local2.length > 0) {
var _local3 = 1;
while (_local3 < pathSet.length) {
pathInfo = pathSet[_local3];
_local2 = getAllChildNodesByName(_local2, pathInfo.__get__nodeName());
if (pathInfo.filter.length > 0) {
_local1 = new mx.xpath.FilterStack(pathInfo.__get__filter());
} else {
_local1 = null;
}
if ((_local1 != null) && (_local1.exprs.length > 0)) {
_local2 = filterNodes(_local2, _local1);
}
_local3++;
}
}
} else {
_local2 = new Array();
}
return(_local2);
}
static function selectSingleNode(node, path) {
var _local1 = selectNodeList(node, path);
if (_local1.length > 0) {
return(_local1[0]);
}
return(null);
}
static function setNodeValue(node, path, newValue) {
var _local1 = new Array(node);
var pathSet = getPathSet(path);
var attrName = pathSet[pathSet.length - 1].nodeName;
if (attrName.charAt(0) == "@") {
attrName = attrName.substring(1, attrName.length);
pathSet.pop();
} else {
attrName = null;
}
var pathInfo = pathSet[0];
var nodeName = pathInfo.__get__nodeName();
var _local3 = null;
if ((nodeName != undefined) && ((nodeName == "*") || (node.nodeName == nodeName))) {
if (pathInfo.filter.length > 0) {
_local3 = new mx.xpath.FilterStack(pathInfo.__get__filter());
_local1 = filterNodes(_local1, _local3);
}
if (_local1.length > 0) {
var _local2 = 1;
while (_local2 < pathSet.length) {
pathInfo = pathSet[_local2];
_local1 = getAllChildNodesByName(_local1, pathInfo.__get__nodeName());
if (pathInfo.filter.length > 0) {
_local3 = new mx.xpath.FilterStack(pathInfo.__get__filter());
} else {
_local3 = null;
}
if ((_local3 != null) && (_local3.exprs.length > 0)) {
_local1 = filterNodes(_local1, _local3);
}
_local2++;
}
}
} else {
_local1 = new Array();
}
var currNode = null;
var textNode = null;
var doc = new XML();
var _local2 = 0;
while (_local2 < _local1.length) {
if (attrName != null) {
_local1[_local2].attributes[attrName] = newValue;
} else {
currNode = _local1[_local2];
if ((currNode.firstChild == null) || (currNode.firstChild.nodeType != 3)) {
textNode = doc.createTextNode(newValue);
currNode.appendChild(textNode);
} else {
textNode = currNode.firstChild;
textNode.nodeValue = newValue;
}
}
_local2++;
}
return(_local1.length);
}
static function copyStack(toStk, fromStk) {
var _local2 = fromStk;
var _local3 = toStk;
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.splice(_local1, 0, _local2[_local1]);
_local1++;
}
}
static function evalExpr(expr, node) {
var _local1 = expr;
var _local2 = true;
if (_local1.__get__attr()) {
_local2 = ((_local1.__get__value() != null) ? (node.attributes[_local1.name] == _local1.__get__value()) : (node.attributes[_local1.name] != null));
} else {
var _local3 = getChildNodeByName(node, _local1.__get__name());
if (_local3 != null) {
_local2 = ((_local1.__get__value() != null) ? (_local3.firstChild.nodeValue == _local1.__get__value()) : true);
} else {
_local2 = false;
}
}
return(_local2);
}
static function filterNodes(nodeList, stack) {
var result = new Array();
var _local2;
var _local3;
var filterExpr1;
var filterExpr2;
var filterBool;
var _local1 = true;
var node;
var cont;
var i = 0;
while (i < nodeList.length) {
cont = true;
_local2 = new Array();
_local3 = new Array();
copyStack(_local2, stack.__get__exprs());
copyStack(_local3, stack.__get__ops());
node = nodeList[i];
while ((_local2.length > 0) && (cont)) {
if (typeof(_local2[_local2.length - 1]) == "object") {
filterExpr1 = _local2.pop();
_local1 = evalExpr(filterExpr1, node);
} else {
filterBool = Boolean(_local2.pop());
_local1 = filterBool;
}
if (_local3.length > 0) {
var temp = _local2.pop();
filterExpr2 = temp;
switch (_local3[_local3.length - 1]) {
case "and" :
_local1 = _local1 && (evalExpr(filterExpr2, node));
cont = _local1;
break;
case "or" :
_local1 = _local1 || (evalExpr(filterExpr2, node));
cont = !_local1;
}
_local3.pop();
_local2.push(_local1);
}
}
if (_local1) {
result.push(node);
}
i++;
}
return(result);
}
static function getAllChildNodesByName(nodeList, name) {
var result = new Array();
var _local2;
var _local3 = 0;
while (_local3 < nodeList.length) {
_local2 = nodeList[_local3].childNodes;
if (_local2 != null) {
var _local1 = 0;
while (_local1 < _local2.length) {
if ((name == "*") || (_local2[_local1].nodeName == name)) {
result.push(_local2[_local1]);
}
_local1++;
}
}
_local3++;
}
return(result);
}
static function getChildNodeByName(node, nodeName) {
var _local2;
var _local3 = node.childNodes;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local3[_local1];
if (_local2.nodeName == nodeName) {
return(_local2);
}
_local1++;
}
return(null);
}
static function getKeyValues(node, keySpec) {
var result = "";
var _local3 = new mx.utils.StringTokenParser(keySpec);
var _local2 = _local3.nextToken();
var _local1;
var childNode;
while (_local2 != mx.utils.StringTokenParser.tkEOF) {
_local1 = _local3.token;
result = result + (" " + _local1);
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
if (_local1 == "@") {
_local2 = _local3.nextToken();
_local1 = _local3.token;
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
result = result + (((_local1 + "='") + node.attributes[_local1]) + "'");
}
} else if (_local1 == "/") {
_local2 = _local3.nextToken();
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
_local1 = _local3.token;
node = getChildNodeByName(node, _local1);
if (node != null) {
result = result + _local1;
}
}
} else if ((((_local1 != "and") && (_local1 != "or")) && (_local1 != "[")) && (_local1 != "]")) {
childNode = getChildNodeByName(node, _local1);
if (childNode != null) {
result = result + (("='" + childNode.firstChild.nodeValue) + "'");
}
}
}
if (node == null) {
trace(("Invalid keySpec specified. '" + keySpec) + "' Error.");
return("ERR");
}
_local2 = _local3.nextToken();
}
return(result.slice(1));
}
static function getPath(node, keySpecs) {
var _local3 = node;
var _local2 = "";
var keySpec = keySpecs[_local3.nodeName];
if (keySpec == undefined) {
var attrs = "";
var currAttr;
for (var currAttr in _local3.attributes) {
attrs = attrs + (((("@" + currAttr) + "='") + _local3.attributes[currAttr]) + "' and ");
}
var nodeValues = "";
var _local1;
var value;
var i = 0;
while (i < _local3.childNodes.length) {
_local1 = _local3.childNodes[i];
value = _local1.firstChild.nodeValue;
if (value != undefined) {
nodeValues = nodeValues + (((_local1.nodeName + "='") + value) + "' and ");
}
i++;
}
if (attrs.length > 0) {
if (nodeValues.length > 0) {
_local2 = (((("/" + _local3.nodeName) + "[") + attrs) + nodeValues.substring(0, nodeValues.length - 4)) + "]";
} else {
_local2 = ((("/" + _local3.nodeName) + "[") + attrs.substring(0, attrs.length - 4)) + "]";
}
} else {
_local2 = ((("/" + _local3.nodeName) + "[") + nodeValues.substring(0, nodeValues.length - 4)) + "]";
}
} else {
_local2 = _local2 + (("/" + _local3.nodeName) + getKeyValues(_local3, keySpec));
}
var _local1 = _local3.parentNode;
while (_local1.parentNode != null) {
keySpec = keySpecs[_local1.nodeName];
if (keySpec != undefined) {
_local2 = (("/" + _local1.nodeName) + getKeyValues(_local1, keySpec)) + _local2;
} else {
_local2 = ("/" + _local1.nodeName) + _local2;
}
_local1 = _local1.parentNode;
}
return(_local2);
}
static function getPathSet(path) {
var _local3 = path;
var result = new Array();
var index;
var _local1;
var _local2;
var fltr;
while (_local3.length > 0) {
index = _local3.lastIndexOf("/");
_local1 = _local3.substring(index + 1);
_local2 = _local1.indexOf("[", 0);
fltr = ((_local2 >= 0) ? (_local1.substring(_local2 + 1, _local1.length - 1)) : "");
_local1 = ((_local2 >= 0) ? (_local1.substring(0, _local2)) : (_local1));
result.splice(0, 0, new mx.xpath.NodePathInfo(_local1, fltr));
_local3 = _local3.substring(0, index);
}
return(result);
}
}
Symbol 512 MovieClip [__Packages.mx.data.binding.DataAccessor] Frame 0
class mx.data.binding.DataAccessor
{
var dataAccessor;
function DataAccessor () {
}
function getAnyTypedValue(suggestedTypes) {
var _local3 = suggestedTypes;
var _local2 = 0;
while (_local2 < _local3.length) {
var result = getTypedValue(_local3[_local2]);
if (result != null) {
return(result);
}
_local2++;
}
var result = getTypedValue();
_local2 = 0;
while (_local2 < _local3.length) {
var _local1 = _local3[_local2];
if (_local1 == "String") {
return(new mx.data.binding.TypedValue(String(result.value), _local1));
}
if (_local1 == "Number") {
return(new mx.data.binding.TypedValue(Number(result.value), _local1));
}
if (_local1 == "Boolean") {
return(new mx.data.binding.TypedValue(Boolean(result.value), _local1));
}
_local2++;
}
return(result);
}
function setAnyTypedValue(newValue) {
var _local3 = newValue;
var settableTypes = getSettableTypes();
if ((settableTypes == null) || (-1 != findString(_local3.typeName, settableTypes))) {
return(setTypedValue(_local3));
}
var _local2 = 0;
while (_local2 < settableTypes.length) {
var _local1 = settableTypes[_local2];
if (_local1 == "String") {
return(setTypedValue(new mx.data.binding.TypedValue(String(_local3.value), _local1)));
}
if (_local1 == "Number") {
var convertedValue = Number(_local3.value);
var result = setTypedValue(new mx.data.binding.TypedValue(convertedValue, _local1));
if (convertedValue.toString() == "NaN") {
return([("Failed to convert '" + _local3.value) + "' to a number"]);
}
return(result);
}
if (_local1 == "Boolean") {
return(setTypedValue(new mx.data.binding.TypedValue(Boolean(_local3.value), _local1)));
}
_local2++;
}
return(dataAccessor.setTypedValue(_local3));
}
function getTypedValue(requestedType) {
var _local1 = dataAccessor.getTypedValue(requestedType);
return(_local1);
}
function getGettableTypes() {
return(null);
}
function setTypedValue(newValue) {
return(dataAccessor.setTypedValue(newValue));
}
function getSettableTypes() {
return(null);
}
function findLastAccessor() {
var _local1 = this;
if (_local1.dataAccessor != null) {
return(_local1.dataAccessor.findLastAccessor());
}
return(_local1);
}
function setupDataAccessor(component, property, location) {
var _local1 = this;
_local1.component = component;
_local1.property = property;
_local1.location = location;
_local1.type = component.findSchema(property, location);
}
static function findString(str, arr) {
var _local2 = arr;
var _local3 = str.toLowerCase();
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].toLowerCase() == _local3) {
return(_local1);
}
_local1++;
}
return(-1);
}
static function conversionFailed(newValue, target) {
return(((("Failed to convert to " + target) + ": '") + newValue.value) + "'");
}
}
Symbol 513 MovieClip [__Packages.mx.data.binding.FieldAccessor] Frame 0
class mx.data.binding.FieldAccessor
{
var component, type;
function FieldAccessor (component, property, parentObj, fieldName, type, index, parentField) {
var _local1 = this;
var _local2 = fieldName;
_local1.component = component;
_local1.property = property;
_local1.parentObj = parentObj;
_local1.fieldName = _local2;
if (component == parentObj) {
_local1.m_location = undefined;
} else if (parentField.m_location == undefined) {
_local1.m_location = _local2;
} else {
_local1.m_location = (parentField.m_location + ".") + _local2;
}
_local1.type = type;
_local1.index = index;
}
function getValue() {
var _local2 = this;
var _local1 = _local2.getFieldData();
if ((_local1 == null) && (_local2.type.value != undefined)) {
var _local3 = new mx.data.binding.TypedValue(_local2.type.value, "String");
_local3.getDefault = true;
_local2.component.getField(_local2.fieldName).setAnyTypedValue(_local3);
_local1 = _local3.value;
}
if ((_local2.isXML(_local1) && (_local1.childNodes.length == 1)) && (_local1.firstChild.nodeType == 3)) {
return(_local1.firstChild.nodeValue);
}
return(_local1);
}
function setValue(newValue, newTypedValue) {
var _local1 = this;
var _local2 = newValue;
var _local3 = newTypedValue;
if (_local3.getDefault) {
_local3.value = _local2;
} else {
if (_local1.xpath != null) {
var obj = _local1.getFieldData();
if (obj != null) {
setXMLData(obj, _local2);
} else {
_global.__dataLogger.logData(_local1.component, "Can't assign to '<property>:<xpath>' because there is no element at the given path", _local1);
}
} else if (_local1.isXML(_local1.parentObj)) {
if (_local1.type.category == "attribute") {
_local1.parentObj.attributes[_local1.fieldName] = _local2;
} else if (_local1.type.category == "array") {
} else {
var obj = _local1.getOrCreateFieldData();
setXMLData(obj, _local2);
}
} else {
if (_local1.parentObj == null) {
_global.__dataLogger.logData(_local1.component, "Can't set field '<property>/<location>' because the field doesn't exist", _local1);
}
_local1.parentObj[_local1.fieldName] = _local2;
}
_local1.component.propertyModified(_local1.property, (_local1.xpath == null) && (_local1.parentObj == _local1.component), _local3.type);
}
}
static function isActionScriptPath(str) {
var _local2 = str.toLowerCase();
var _local3 = "0123456789abcdefghijklmnopqrstuvwxyz_.";
var _local1 = 0;
while (_local1 < _local2.length) {
if (-1 == _local3.indexOf(_local2.charAt(_local1))) {
return(false);
}
_local1++;
}
return(true);
}
static function createFieldAccessor(component, property, location, type, mustExist) {
if (mustExist && (component[property] == null)) {
_global.__dataLogger.logData(component, "Warning: property '<property>' does not exist", {property:property});
return(null);
}
var field = (new mx.data.binding.FieldAccessor(component, property, component, property, type, null, null));
if (location == null) {
return(field);
}
var indices = null;
if (location.indices != null) {
indices = location.indices;
location = location.path;
}
if (typeof(location) == "string") {
if (indices != null) {
_global.__dataLogger.logData(component, "Warning: ignoring index values for property '<property>', path '<location>'", {property:property, location:location});
}
if (isActionScriptPath(String(location))) {
location = location.split(".");
} else {
field.xpath = location;
return(field);
}
}
if (location instanceof Array) {
var _local2;
var indexNum = 0;
_local2 = 0;
while (_local2 < location.length) {
var _local1 = null;
var _local3 = location[_local2];
if (_local3 == "[n]") {
if (indices == null) {
_global.__dataLogger.logData(component, "Error: indices for <property>:<location> are null, but [n] appears in the location.", {property:property, location:location});
return(null);
}
_local1 = indices[indexNum++];
if (_local1 == null) {
_global.__dataLogger.logData(component, "Error: not enough index values for <property>:<location>", {property:property, location:location});
return(null);
}
}
field = field.getChild(_local3, _local1, mustExist);
_local2++;
}
if (mustExist && (field.getValue() == null)) {
_global.__dataLogger.logData(component, "Warning: field <property>:<m_location> does not exist, or is null", field);
}
return(field);
}
trace("unrecognized location: " + mx.data.binding.ObjectDumper.toString(location));
return(null);
}
function getFieldAccessor() {
return(this);
}
function getChild(childName, index, mustExist) {
var _local1 = this;
var _local3 = childName;
if (_local3 == ".") {
return(_local1);
}
var _local2 = _local1.getOrCreateFieldData(mustExist);
if (_local2 == null) {
return(null);
}
var childType = findElementType(_local1.type, _local3);
return(new mx.data.binding.FieldAccessor(_local1.component, _local1.property, _local2, _local3, childType, index, _local1));
}
function getOrCreateFieldData(mustExist) {
var _local2 = this;
var _local1 = _local2.getFieldData();
if (_local1 == null) {
if (mustExist) {
_global.__dataLogger.logData(_local2.component, "Warning: field <property>:<m_location> does not exist", _local2);
} else {
_local2.setupComplexField();
_local1 = _local2.getFieldData();
}
}
return(_local1);
}
function evaluateSubPath(obj, type) {
var path = type.path;
if (isActionScriptPath(path)) {
var tokens = path.split(".");
var i = 0;
while (i < tokens.length) {
var token = tokens[i];
if (isXML(obj)) {
obj = obj.firstChild;
while (obj != null) {
if (toLocalName(obj.nodeName) == token) {
break;
}
obj = obj.nextSibling;
}
} else {
obj = obj[token];
}
if (obj == null) {
_global.__dataLogger.logData(component, "Warning: path '<path>' evaluates to null, at '<token>' in <t.property>:<t.m_location>", {path:path, token:token, t:this});
break;
}
i++;
}
} else if (isXML(obj)) {
if (path.charAt(0) != "/") {
path = "/" + path;
}
if (obj.nodeName == null) {
obj = obj.firstChild;
} else {
path = toLocalName(obj.nodeName) + path;
}
var category = ((type.category != null) ? (type.category) : (((type.elements.length > 0) ? "complex" : "simple")));
if ((category == "simple") || (category == "attribute")) {
obj = eval ("obj" + mx.xpath.XPathAPI.getEvalString(obj, path));
} else if (category == "complex") {
obj = mx.xpath.XPathAPI.selectSingleNode(obj, path);
} else if (category == "array") {
obj = mx.xpath.XPathAPI.selectNodeList(obj, path);
}
} else {
_global.__dataLogger.logData(component, "Error: path '<path>' is an XPath. It cannot be applied to non-XML data <t.property>:<t.m_location>", {path:path, t:this});
}
return(obj);
}
function getFieldData() {
var _local2 = this;
if (_local2.xpath != null) {
var _local3 = _local2.parentObj[_local2.fieldName].firstChild;
while ((_local3 != null) && (_local3.nodeType != 1)) {
_local3 = _local3.nextSibling;
}
var xpathResult = mx.xpath.XPathAPI.selectSingleNode(_local3, _local2.xpath);
return(xpathResult);
}
if (_local2.isXML(_local2.parentObj)) {
if (_local2.type.path != null) {
return(_local2.evaluateSubPath(_local2.parentObj, _local2.type));
}
if (_local2.type.category == "attribute") {
var attrs = _local2.parentObj.attributes;
for (var i in attrs) {
if (toLocalName(i) == _local2.fieldName) {
return(attrs[i]);
}
}
return(undefined);
}
var _local1 = _local2.parentObj.firstChild;
if (_local2.type.category == "array") {
var arrayValue = new Array();
while (_local1 != null) {
if (toLocalName(_local1.nodeName) == _local2.fieldName) {
arrayValue.push(_local1);
}
_local1 = _local1.nextSibling;
}
return(arrayValue);
}
while (_local1 != null) {
if (toLocalName(_local1.nodeName) == _local2.fieldName) {
return(_local1);
}
_local1 = _local1.nextSibling;
}
return(null);
}
if (_local2.fieldName == "[n]") {
var rawIndex;
if (_local2.index.component != null) {
var indexAccessor = _local2.index.component.getField(_local2.index.property, _local2.index.location);
rawIndex = indexAccessor.getAnyTypedValue(["Number"]);
rawIndex = rawIndex.value;
} else {
rawIndex = _local2.index.constant;
}
var index = Number(rawIndex);
if (typeof(rawIndex) == "undefined") {
_global.__dataLogger.logData(_local2.component, "Error: index specification '<index>' was not supplied, or incorrect, for <t.property>:<t.m_location>", {index:index, t:_local2});
return(null);
}
if (index.toString() == "NaN") {
_global.__dataLogger.logData(_local2.component, "Error: index value '<index>' for <t.property>:<t.m_location> is not a number", {index:index, t:_local2});
return(null);
}
if (!(_local2.parentObj instanceof Array)) {
_global.__dataLogger.logData(_local2.component, "Error: indexed field <property>:<m_location> is not an array", _local2);
return(null);
}
if ((index < 0) || (index >= _local2.parentObj.length)) {
_global.__dataLogger.logData(_local2.component, "Error: index '<index>' for <t.property>:<t.m_location> is out of bounds", {index:index, t:_local2});
return(null);
}
_global.__dataLogger.logData(_local2.component, "Accessing item [<index>] of <t.property>:<t.m_location>", {index:index, t:_local2});
return(_local2.parentObj[index]);
}
if (_local2.type.path != null) {
return(_local2.evaluateSubPath(_local2.parentObj, _local2.type));
}
return(_local2.parentObj[_local2.fieldName]);
}
static function setXMLData(obj, newValue) {
var _local1 = obj;
while (_local1.hasChildNodes()) {
_local1.firstChild.removeNode();
}
var _local2 = xmlNodeFactory.createTextNode(newValue);
_local1.appendChild(_local2);
}
function setupComplexField() {
var _local1 = this;
var _local2;
if (_local1.isXML(_local1.parentObj)) {
_local2 = xmlNodeFactory.createElement(_local1.fieldName);
_local1.parentObj.appendChild(_local2);
} else if (_local1.dataIsXML()) {
_local1.parentObj[_local1.fieldName] = new XML();
} else {
_local1.parentObj[_local1.fieldName] = new Object();
}
}
static function findElementType(type, name) {
var _local2 = type;
var _local3 = name;
var _local1 = 0;
while (_local1 < _local2.elements.length) {
if (_local2.elements[_local1].name == _local3) {
return(_local2.elements[_local1].type);
}
_local1++;
}
return(null);
}
function isXML(obj) {
return(obj instanceof XMLNode);
}
function dataIsXML() {
return(type.name == "XML");
}
static function accessField(component, fieldName, desiredTypes) {
var _local3 = desiredTypes;
var _local1;
_local1 = _local3[fieldName];
if (_local1 == null) {
_local1 = _local3.dflt;
}
if (_local1 == null) {
_local1 = _local3;
}
var field = component.createField("data", [fieldName]);
var _local2 = field.getAnyTypedValue([_local1]);
return(_local2.value);
}
static function ExpandRecord(obj, objectType, desiredTypes) {
var _local3 = new Object();
mx.data.binding.ComponentMixins.initComponent(_local3);
_local3.data = obj;
_local3.__schema = {elements:[{name:"data", type:objectType}]};
var _local1 = new Object();
if (objectType.elements.length > 0) {
var _local2 = 0;
while (_local2 < objectType.elements.length) {
var fieldName = objectType.elements[_local2].name;
_local1[fieldName] = accessField(_local3, fieldName, desiredTypes);
_local2++;
}
} else if ((obj instanceof XML) || (obj instanceof XMLNode)) {
if ((obj.childNodes.length == 1) && (obj.firstChild.nodeType == 3)) {
return(obj.firstChild.nodeValue);
}
var field = obj.lastChild;
while (field != null) {
var fieldName = toLocalName(field.nodeName);
if ((fieldName != null) && (_local1[fieldName] == null)) {
_local1[fieldName] = accessField(_local3, fieldName, desiredTypes);
}
field = field.previousSibling;
}
for (var fieldName in obj.attributes) {
if (_local1[fieldName] != null) {
_global.__dataLogger.logData(null, "Warning: attribute '<name>' has same name as an element, in XML object <obj>", {name:fieldName, obj:obj});
}
_local1[fieldName] = accessField(_local3, fieldName, desiredTypes);
}
} else {
if (typeof(obj) != "object") {
return(obj);
}
for (var fieldName in obj) {
_local1[fieldName] = accessField(_local3, fieldName, desiredTypes);
}
}
return(_local1);
}
static function wrapArray(theArray, itemType, desiredTypes) {
//var _local3 = this;
var dp = {getItemAt:function (index) {
var _local3 = index;
if ((_local3 < 0) || (_local3 >= this.data.length)) {
return(undefined);
}
var _local1 = this.data[_local3];
if (_local1 == undefined) {
return(undefined);
}
var _local2 = mx.data.binding.FieldAccessor.ExpandRecord(_local1, this.type, desiredTypes);
return(_local2);
}, getItemID:function (index) {
return(index);
}, data:theArray, type:itemType, length:theArray.length};
return(dp);
}
static function toLocalName(nodeName) {
var _local1 = nodeName.split(":");
var _local2 = _local1[_local1.length - 1];
return(_local2);
}
static var xmlNodeFactory = new XML();
}
Symbol 514 MovieClip [__Packages.mx.data.binding.Log] Frame 0
class mx.data.binding.Log
{
function Log (logLevel, logName) {
var _local1 = this;
_local1.level = ((logLevel == undefined) ? (BRIEF) : (logLevel));
_local1.name = ((_local1.name == undefined) ? "" : (_local1.name));
}
function logInfo(msg, level) {
var _local1 = this;
if (level == undefined) {
level = BRIEF;
}
_local1.onLog((((_local1.getDateString() + " ") + _local1.name) + ": ") + mx.data.binding.ObjectDumper.toString(msg));
}
function logData(target, message, info, level) {
var _local3 = this;
if (level == undefined) {
level = VERBOSE;
}
var namestr = ((_local3.name.length > 0) ? ((" " + _local3.name) + ": ") : " ");
var targetstr = ((target == null) ? "" : (target + ": "));
if (targetstr.indexOf("_level0.") == 0) {
targetstr = targetstr.substr(8);
}
var _local2 = ((_local3.getDateString() + namestr) + targetstr) + substituteIntoString(message, info, 50);
if (_local3.showDetails && (info != null)) {
_local2 = _local2 + ("\n " + mx.data.binding.ObjectDumper.toString(info));
} else {
var _local1 = 0;
while (_local1 < _local3.nestLevel) {
_local2 = " " + _local2;
_local1++;
}
}
_local3.onLog(_local2);
}
function onLog(message) {
trace(message);
}
function getDateString() {
var _local1 = new Date();
return(((((((((_local1.getMonth() + 1) + "/") + _local1.getDate()) + " ") + _local1.getHours()) + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds());
}
static function substituteIntoString(message, info, maxlen, rawDataType) {
var result = "";
if (info == null) {
return(message);
}
var tokens = message.split("<");
if (tokens == null) {
return(message);
}
result = result + tokens[0];
var i = 1;
while (i < tokens.length) {
var items = tokens[i].split(">");
var location = items[0].split(".");
var _local1 = info;
var type = rawDataType;
var _local3 = 0;
while (_local3 < location.length) {
var _local2 = location[_local3];
if (_local2 != "") {
type = mx.data.binding.FieldAccessor.findElementType(type, _local2);
var fa = (new mx.data.binding.FieldAccessor(null, null, _local1, _local2, type, null, null));
_local1 = fa.getValue();
}
_local3++;
}
if (typeof(_local1) != "string") {
_local1 = mx.data.binding.ObjectDumper.toString(_local1);
}
if (_local1.indexOf("_level0.") == 0) {
_local1 = _local1.substr(8);
}
if ((maxlen != null) && (_local1.length > maxlen)) {
_local1 = _local1.substr(0, maxlen) + "...";
}
result = result + _local1;
result = result + items[1];
i++;
}
var temp = result.split(">");
result = temp.join(">");
temp = result.split("<");
result = temp.join("<");
return(result);
}
static var NONE = -1;
static var BRIEF = 0;
static var VERBOSE = 1;
static var DEBUG = 2;
static var INFO = 2;
static var WARNING = 1;
static var ERROR = 0;
var showDetails = false;
var nestLevel = 0;
}
Symbol 515 MovieClip [__Packages.mx.data.binding.Binding] Frame 0
class mx.data.binding.Binding
{
var source;
function Binding (source, dest, format, is2way) {
var _local1 = this;
var _local2 = source;
var _local3 = dest;
mx.events.EventDispatcher.initialize(_local1);
var temp = _local1;
temp.source = _local2;
temp.dest = _local3;
temp.format = format;
temp.is2way = is2way;
registerBinding(_local1);
_local1.calcShortLoc(_local2);
_local1.calcShortLoc(_local3);
_global.__dataLogger.logData(null, ("Creating binding " + _local1.summaryString()) + (is2way ? ", 2-way" : ""), {binding:_local1});
_global.__dataLogger.nestLevel++;
mx.data.binding.ComponentMixins.initComponent(_local3.component);
if (_local2.component != undefined) {
mx.data.binding.ComponentMixins.initComponent(_local2.component);
}
_local3.component.addBinding(_local1);
if (_local2.component != undefined) {
_local2.component.addBinding(_local1);
_local1.setUpListener(_local2, false);
if (_local1.is2way) {
_local1.setUpListener(_local3, true);
_local1.setUpIndexListeners(_local2, false);
_local1.setUpIndexListeners(_local3, true);
} else {
_local1.setUpIndexListeners(_local2, false);
_local1.setUpIndexListeners(_local3, false);
}
} else {
_local1.execute();
}
_global.__dataLogger.nestLevel--;
}
function execute(reverse) {
var _local2 = this;
var _local1;
var _local3;
if (reverse) {
if (!_local2.is2way) {
_global.__dataLogger.logData(null, ("Warning: Can't execute binding " + _local2.summaryString(false)) + " in reverse, because it's not a 2 way binding", {binding:_local2}, mx.data.binding.Log.BRIEF);
return(["error"]);
}
_local1 = _local2.dest;
_local3 = _local2.source;
} else {
_local1 = _local2.source;
_local3 = _local2.dest;
}
_global.__dataLogger.logData(null, "Executing binding " + _local2.summaryString(reverse), {binding:_local2});
_global.__dataLogger.nestLevel++;
var sourceField;
if (_local1.constant != undefined) {
sourceField = {value:new mx.data.binding.TypedValue(_local1.constant, "String"), getAnyTypedValue:function () {
return(this.value);
}, getTypedValue:function () {
return(this.value);
}, getGettableTypes:function () {
return(["String"]);
}};
} else {
sourceField = _local1.component.getField(_local1.property, _local1.location, true);
}
var unformattedValue;
var formatterFrom;
var formatInfo = "";
var destField = _local3.component.getField(_local3.property, _local3.location);
if (_local2.format != null) {
var formatter = getRuntimeObject(_local2.format);
if (formatter != null) {
if (reverse) {
formatter.setupDataAccessor(_local3.component, _local3.property, _local3.location);
formatter.dataAccessor = destField;
destField = formatter;
} else {
formatter.setupDataAccessor(_local1.component, _local1.property, _local1.location);
formatter.dataAccessor = sourceField;
sourceField = formatter;
}
}
}
var okTypes = ((_local2.format == null) ? (destField.getSettableTypes()) : null);
var value = sourceField.getAnyTypedValue(okTypes);
var returnData = new Object();
if (destField.type.readonly == true) {
_global.__dataLogger.logData(null, "Not executing binding because the destination is read-only", null, mx.data.binding.Log.BRIEF);
var ev = new Object();
ev.type = "invalid";
ev.property = _local3.property;
ev.location = _local3.location;
ev.messages = [{message:"Cannot assign to a read-only data field."}];
_local3.component.dispatchEvent(ev);
returnData.event = ev;
} else {
_global.__dataLogger.logData(null, "Assigning new value '<value>' (<typeName>) " + formatInfo, {value:value.value, typeName:value.typeName, unformattedValue:unformattedValue, formatterFrom:formatterFrom});
var messages = destField.setAnyTypedValue(value);
destField.validateAndNotify(returnData, false, messages);
_local3.component.dispatchEvent({type:"bindingExecuted", binding:_local2});
}
if (returnData.event != null) {
if (_local1.component != null) {
var otherevent = new Object();
otherevent.type = returnData.event.type;
otherevent.property = _local1.property;
otherevent.location = _local1.location;
otherevent.messages = returnData.event.messages;
otherevent.to = _local3.component;
_local1.component.dispatchEvent(otherevent);
}
}
_global.__dataLogger.nestLevel--;
return(returnData.event.messages);
}
function queueForExecute(reverse) {
var _local1 = this;
var _local2 = _global;
var _local3 = _root;
if (!_local1.queued) {
if (_local2.__databind_executeQueue == null) {
_local2.__databind_executeQueue = new Array();
}
if (_local3.__databind_dispatch == undefined) {
_local3.createEmptyMovieClip("__databind_dispatch", -8888);
}
_local2.__databind_executeQueue.push(_local1);
_local1.queued = true;
_local1.reverse = reverse;
_local3.__databind_dispatch.onEnterFrame = dispatchEnterFrame;
}
}
static function dispatchEnterFrame() {
_root.__databind_dispatch.onEnterFrame = null;
var _local2 = 0;
while (_local2 < _global.__databind_executeQueue.length) {
var _local1 = _global.__databind_executeQueue[_local2];
_local1.execute(_local1.reverse);
_local2++;
}
var _local3;
while (_local3 = _global.__databind_executeQueue.pop() , _local3 != null) {
_local3.queued = false;
_local3.reverse = false;
}
}
function calcShortLoc(endpoint) {
var _local1 = endpoint.location;
if (_local1.path != null) {
_local1 = _local1.path;
}
endpoint.loc = ((_local1 instanceof Array) ? (_local1.join(".")) : (_local1));
}
function summaryString(reverse) {
var _local1 = "<binding.dest.component>:<binding.dest.property>:<binding.dest.loc>";
var _local2 = "<binding.source.component>:<binding.source.property>:<binding.source.loc>";
if (source.constant == null) {
if (reverse == true) {
return((("from " + _local1) + " to ") + _local2);
}
return((("from " + _local2) + " to ") + _local1);
}
return("from constant '<binding.source.constant>' to " + _local1);
}
static function getRuntimeObject(info, constructorParameter) {
var _local1 = info;
if (_local1.cls == undefined) {
_local1.cls = mx.utils.ClassFinder.findClass(_local1.className);
}
var _local2 = new _local1.cls(constructorParameter);
if (_local2 == null) {
_global.__dataLogger.logData(null, "Could not construct a formatter or validator - new <info.className>(<params>)", {info:_local1, params:constructorParameter}, mx.data.binding.Log.BRIEF);
}
for (var _local3 in _local1.settings) {
_local2[_local3] = _local1.settings[_local3];
}
return(_local2);
}
static function refreshFromSources(component, property, bindings) {
var result = null;
var _local3;
_local3 = 0;
while (_local3 < bindings.length) {
var _local1 = bindings[_local3];
var _local2 = null;
if ((_local1.dest.component == component) && ((property == null) || (property == _local1.dest.property))) {
_local2 = _local1.execute();
} else if ((_local1.is2way && (_local1.source.component == component)) && ((property == null) || (property == _local1.source.property))) {
_local2 = _local1.execute(true);
}
if (_local2 != null) {
result = ((result == null) ? (_local2) : (result.concat(_local2)));
}
_local3++;
}
return(result);
}
static function refreshDestinations(component, bindings) {
var _local1;
_local1 = 0;
while (_local1 < bindings.length) {
var _local2 = bindings[_local1];
if (_local2.source.component == component) {
_local2.execute();
} else if (_local2.is2way && (_local2.dest.component == component)) {
_local2.execute(true);
}
_local1++;
}
_local1 = 0;
while (_local1 < component.__indexBindings.length) {
var _local3 = component.__indexBindings[_local1];
_local3.binding.execute(_local3.reverse);
_local1++;
}
}
static function okToCallGetterFromSetter() {
function setter(val) {
this.value2 = this.value;
}
function getter() {
return(5);
}
var _local1 = new Object();
_local1.addProperty("value", getter, setter);
_local1.value = 0;
var _local2 = _local1.value2 == _local1.value;
return(_local2);
}
function setUpListener(endpoint, reverse) {
var _local1 = endpoint;
var _local3 = this;
var _local2 = new Object();
_local2.binding = _local3;
_local2.property = _local1.property;
_local2.reverse = reverse;
_local2.immediate = okToCallGetterFromSetter();
_local2.handleEvent = function (event) {
var _local1 = this;
_global.__dataLogger.logData(event.target, "Data of property '<property>' has changed. <immediate>.", _local1);
if (_local1.immediate) {
if (_local1.binding.executing != true) {
_local1.binding.executing = true;
_local1.binding.execute(_local1.reverse);
_local1.binding.executing = false;
}
} else {
_local1.binding.queueForExecute(_local1.reverse);
}
};
if (_local1.event instanceof Array) {
for (var i in _local1.event) {
_local1.component.__addHighPrioEventListener(_local1.event[i], _local2);
}
} else {
_local1.component.__addHighPrioEventListener(_local1.event, _local2);
}
mx.data.binding.ComponentMixins.initComponent(_local1.component);
}
function setUpIndexListeners(endpoint, reverse) {
var _local3 = endpoint;
if (_local3.location.indices != undefined) {
var _local2 = 0;
while (_local2 < _local3.location.indices.length) {
var _local1 = _local3.location.indices[_local2];
if (_local1.component != undefined) {
setUpListener(_local1, reverse);
if (_local1.component.__indexBindings == undefined) {
_local1.component.__indexBindings = new Array();
}
_local1.component.__indexBindings.push({binding:this, reverse:reverse});
}
_local2++;
}
}
}
static function copyBinding(b) {
var _local2 = b;
var _local1 = new Object();
_local1.source = copyEndPoint(_local2.source);
_local1.dest = copyEndPoint(_local2.dest);
_local1.format = _local2.format;
_local1.is2way = _local2.is2way;
return(_local1);
}
static function copyEndPoint(e) {
var _local2 = e;
var _local1 = new Object();
_local1.constant = _local2.constant;
_local1.component = String(_local2.component);
_local1.event = _local2.event;
_local1.location = _local2.location;
_local1.property = _local2.property;
return(_local1);
}
static function registerScreen(screen, id) {
var symbol = screenRegistry[id];
if (symbol == null) {
screenRegistry[id] = {symbolPath:String(screen), bindings:[], id:id};
return(undefined);
}
if (symbol.symbolPath == String(screen)) {
return(undefined);
}
var instancePath = String(screen);
var i = 0;
while (i < bindingRegistry.length) {
var b = bindingRegistry[i];
var src = copyEndPoint(b.source);
var dst = copyEndPoint(b.dest);
var prefix = (symbol.symbolPath + ".");
var symbolContainsSource = (prefix == b.source.component.substr(0, prefix.length));
var symbolContainsDest = (prefix == b.dest.component.substr(0, prefix.length));
if (symbolContainsSource) {
if (symbolContainsDest) {
src.component = eval (instancePath + src.component.substr(symbol.symbolPath.length));
dst.component = eval (instancePath + dst.component.substr(symbol.symbolPath.length));
new mx.data.binding.Binding(src, dst, b.format, b.is2way);
} else {
src.component = eval (instancePath + src.component.substr(symbol.symbolPath.length));
dst.component = eval (dst.component);
new mx.data.binding.Binding(src, dst, b.format, b.is2way);
}
} else if (symbolContainsDest) {
src.component = eval (src.component);
dst.component = eval (instancePath + dst.component.substr(symbol.symbolPath.length));
new mx.data.binding.Binding(src, dst, b.format, b.is2way);
}
i++;
}
}
static function registerBinding(binding) {
var _local1 = copyBinding(binding);
bindingRegistry.push(_local1);
}
static function getLocalRoot(clip) {
var _local1 = clip;
var _local2;
var _local3 = _local1._url;
while (_local1 != null) {
if (_local1._url != _local3) {
break;
}
_local2 = _local1;
_local1 = _local1._parent;
}
return(_local2);
}
var queued = false;
var reverse = false;
static var counter = 0;
static var screenRegistry = new Object();
static var bindingRegistry = new Array();
}
Symbol 516 MovieClip [__Packages.mx.data.kinds.Data] Frame 0
class mx.data.kinds.Data extends mx.data.binding.DataAccessor
{
function Data () {
super();
}
function getTypedValue(requestedType) {
var result;
var _local1 = getFieldAccessor().getValue();
var _local2 = null;
if (_local1 != null) {
if (_local1 instanceof Array) {
_local2 = "Array";
} else if ((_local1 instanceof XMLNode) || (_local1 instanceof XMLNode)) {
_local2 = "XML";
} else {
var _local3 = typeof(_local1);
_local2 = _local3.charAt(0).toUpperCase() + _local3.slice(1);
}
} else {
_local1 = null;
}
result = new mx.data.binding.TypedValue(_local1, _local2, null);
return(result);
}
function getGettableTypes() {
return(null);
}
function setTypedValue(newValue) {
getFieldAccessor().setValue(newValue.value, newValue);
return(null);
}
function getSettableTypes() {
return(null);
}
function getFieldAccessor() {
var _local1 = this;
return(_local1.component.createFieldAccessor(_local1.property, _local1.location, false));
}
}
Symbol 517 MovieClip [__Packages.mx.data.binding.Formatter] Frame 0
class mx.data.binding.Formatter extends mx.data.binding.DataAccessor
{
function Formatter () {
super();
}
}
Symbol 518 MovieClip [__Packages.mx.data.binding.DataType] Frame 0
class mx.data.binding.DataType extends mx.data.binding.DataAccessor
{
var errorArray, getAnyTypedValue, setAnyTypedValue, dataAccessor;
function DataType () {
super();
errorArray = null;
}
function setupDataAccessor(component, property, location) {
var _local1 = this;
var _local2 = location;
var _local3 = property;
super.setupDataAccessor(component, _local3, _local2);
_local1.type = component.findSchema(_local3, _local2);
if (_local1.type.kind != undefined) {
_local1.kind = mx.data.binding.Binding.getRuntimeObject(_local1.type.kind);
} else {
_local1.kind = new mx.data.kinds.Data();
}
_local1.kind.setupDataAccessor(component, _local3, _local2);
_local1.dataAccessor = _local1.kind;
if (_local1.type.encoder != undefined) {
_local1.encoder = mx.data.binding.Binding.getRuntimeObject(_local1.type.encoder);
_local1.encoder.setupDataAccessor(component, _local3, _local2);
_local1.encoder.dataAccessor = _local1.dataAccessor;
_local1.dataAccessor = _local1.encoder;
}
if (_local1.type.formatter != undefined) {
_local1.formatter = mx.data.binding.Binding.getRuntimeObject(_local1.type.formatter);
_local1.formatter.setupDataAccessor(component, _local3, _local2);
_local1.formatter.dataAccessor = _local1.dataAccessor;
}
}
function getAsBoolean() {
var _local1 = getAnyTypedValue(["Boolean"]);
return(_local1.value);
}
function getAsNumber() {
var _local1 = getAnyTypedValue(["Number"]);
return(_local1.value);
}
function getAsString() {
var _local1 = getAnyTypedValue(["String"]);
return(_local1.value);
}
function setAsBoolean(newValue) {
setAnyTypedValue(new mx.data.binding.TypedValue(newValue, "Boolean"));
}
function setAsNumber(newValue) {
setAnyTypedValue(new mx.data.binding.TypedValue(newValue, "Number"));
}
function setAsString(newValue) {
setAnyTypedValue(new mx.data.binding.TypedValue(newValue, "String"));
}
function validationError(errorMessage) {
var _local1 = this;
if (_local1.errorArray == null) {
_local1.errorArray = new Array();
}
_local1.errorArray.push(errorMessage);
}
function validate(value) {
}
function getTypedValue(requestedType) {
var _local2 = requestedType;
var _local3 = this;
var _local1;
if ((_local2 == "String") && (_local3.formatter != null)) {
_local1 = _local3.formatter.getTypedValue(_local2);
} else {
_local1 = _local3.dataAccessor.getTypedValue(_local2);
if (_local1.type == null) {
_local1.type = _local3.type;
}
if (_local1.typeName == null) {
_local1.typeName = _local3.type.name;
}
}
if ((_local1.typeName != _local2) && (_local2 != null)) {
_local1 = null;
}
return(_local1);
}
function getGettableTypes() {
var _local2 = this;
var _local1 = new Array();
var _local3 = _local2.gettableTypes();
if (_local3 != null) {
_local1 = _local1.concat(_local3);
}
if (_local2.type.name != null) {
_local1 = _local1.concat(_local2.type.name);
}
if (_local2.formatter != null) {
_local1 = _local1.concat(_local2.formatter.getGettableTypes());
}
if (_local1.length == 0) {
return(null);
}
return(_local1);
}
function setTypedValue(newValue) {
var _local1 = newValue;
var _local2 = this;
if ((_local1.typeName == "String") && (_local2.formatter != null)) {
return(_local2.formatter.setTypedValue(_local1));
}
var _local3 = _local2.dataAccessor.getSettableTypes();
if ((_local3 == null) || (-1 != mx.data.binding.DataAccessor.findString(_local1.typeName, _local3))) {
return(_local2.dataAccessor.setTypedValue(_local1));
}
return(["Can't set a value of type " + _local1.typeName]);
}
function getSettableTypes() {
var _local2 = this;
var _local1 = new Array();
var _local3 = _local2.settableTypes();
if (_local3 != null) {
_local1 = _local1.concat(_local3);
}
if (_local2.type.name != null) {
_local1 = _local1.concat(_local2.type.name);
}
if (_local2.formatter != null) {
_local1 = _local1.concat(_local2.formatter.getSettableTypes());
}
if (_local1.length == 0) {
return(null);
}
return(_local1);
}
function gettableTypes() {
return(dataAccessor.getGettableTypes());
}
function settableTypes() {
return(dataAccessor.getSettableTypes());
}
function validateAndNotify(returnData, noEvent, initialMessages) {
var _local1 = this;
var _local2 = initialMessages;
var _local3 = false;
_local1.errorArray = null;
for (var i in _local2) {
_local1.validationError(_local2[i]);
_local3 = true;
}
var val = _local1.getTypedValue();
if ((val.value == null) || (val.value == "")) {
if (_local1.type.required == false) {
_global.__dataLogger.logData(_local1.component, "Validation of null value succeeded because field '<property>/<m_location>' is not required", _local1);
} else {
var loc = ((_local1.location == null) ? "" : (":" + String(_local1.location)));
_local1.validationError((("Required item '" + _local1.property) + loc) + "' is missing");
_local3 = true;
}
} else {
_local1.validate(val.value);
_local3 = true;
}
if (_local3 && (noEvent != true)) {
var event = new Object();
event.type = ((_local1.errorArray == null) ? "valid" : "invalid");
event.property = _local1.property;
event.location = _local1.location;
event.messages = _local1.errorArray;
_local1.component.dispatchEvent(event);
returnData.event = event;
}
return(_local1.errorArray);
}
}
Symbol 519 MovieClip [__Packages.mx.utils.ClassFinder] Frame 0
class mx.utils.ClassFinder
{
function ClassFinder () {
}
static function findClass(fullClassName) {
if (fullClassName == null) {
return(null);
}
var _local2 = _global;
var _local3 = fullClassName.split(".");
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local2[_local3[_local1]];
_local1++;
}
if (_local2 == null) {
_global.__dataLogger.logData(null, "Could not find class '<classname>'", {classname:fullClassName}, mx.data.binding.Log.BRIEF);
}
return(_local2);
}
}
Symbol 520 MovieClip [__Packages.mx.rpc.ResultEvent] Frame 0
class mx.rpc.ResultEvent extends Object
{
var __result;
function ResultEvent (res) {
super();
__result = res;
}
function get result() {
return(__result);
}
}
Symbol 521 MovieClip [__Packages.mx.rpc.Fault] Frame 0
class mx.rpc.Fault extends Object
{
var __faultcode, __faultstring, __detail, __type;
function Fault (code, msg, detail, type) {
var _local1 = this;
super();
_local1.__faultcode = code;
_local1.__faultstring = msg;
_local1.__detail = detail;
_local1.__type = type;
}
function get faultcode() {
return(__faultcode);
}
function get faultstring() {
return(__faultstring);
}
function get detail() {
return(__detail);
}
function get description() {
var _local2 = this;
if (_local2.__description == null) {
if (_local2.__faultstring.indexOf(":") > -1) {
_local2.__description = _local2.__faultstring.substring(_local2.__faultstring.indexOf(":") + 1);
var _local1 = 0;
while (_local2.__description.indexOf(" ", _local1) == _local1) {
_local1++;
}
if (_local1 > 0) {
_local2.__description = _local2.__description.substring(_local1);
}
} else {
_local2.__description = _local2.__faultstring;
}
}
return(_local2.__description);
}
function get type() {
return(__type);
}
}
Symbol 522 MovieClip [__Packages.mx.rpc.FaultEvent] Frame 0
class mx.rpc.FaultEvent extends Object
{
var __fault;
function FaultEvent (f) {
super();
__fault = f;
}
function get fault() {
return(__fault);
}
}
Symbol 523 MovieClip [__Packages.mx.remoting.Service] Frame 0
class mx.remoting.Service extends Object
{
var __conn, __serviceName, __responder;
function Service (gatewayURI, logger, serviceName, conn, resp) {
var _local1 = this;
var _local2 = conn;
var _local3 = gatewayURI;
super();
_local1.log = logger;
_local1.log.logInfo("Creating Service for " + serviceName, mx.services.Log.VERBOSE);
if ((_local3 == "") && (_local2 == null)) {
_local3 = mx.remoting.NetServices.gatewayUrl;
}
_local3 = mx.remoting.NetServices.getHttpUrl(_local3);
if (_local2 == null) {
_local2 = mx.remoting.NetServices.getConnection(_local3);
if (_local2 == null) {
_local1.log.logInfo("Creating gateway connection for " + _local3, mx.services.Log.VERBOSE);
_local2 = mx.remoting.NetServices.createGatewayConnection(_local3, logger);
}
}
_local1.__conn = _local2;
_local2.updateConfig();
_local1._allowRes = true;
_local1.__serviceName = serviceName;
_local1.__responder = resp;
_local1.log.logInfo("Successfully created Service", mx.services.Log.VERBOSE);
}
function get connection() {
return(__conn);
}
function __resolve(methodName) {
var _local2 = this;
if (_local2._allowRes) {
var _local1 = _local2.__makeOpFunc(methodName);
_local2[methodName] = _local1;
return(_local1);
}
return(null);
}
function __makeOpFunc(name) {
var op = (new mx.remoting.Operation(name, this));
var _local1 = function () {
op.invoke(arguments);
return(op.send());
};
_local1.send = function () {
return(op.createThenSend());
};
_local1.setResponder = function (resp) {
op.responder = resp;
};
_local1.getRequest = function () {
return(op.request);
};
_local1.setRequest = function (val) {
op.request = val;
};
_local1.addProperty("request", _local1.getRequest, _local1.setRequest);
_local1.operation = op;
return(_local1);
}
function get name() {
return(__serviceName);
}
function get responder() {
return(__responder);
}
static var version = "1.2.0.124";
var _allowRes = false;
}
Symbol 524 MovieClip [__Packages.mx.remoting.PendingCall] Frame 0
class mx.remoting.PendingCall extends Object
{
var __service, __methodName, __responder;
function PendingCall (srv, methodName) {
super();
__service = srv;
__methodName = methodName;
}
function get responder() {
return(__responder);
}
function set responder(res) {
__responder = res;
//return(responder);
}
function onResult(result) {
var _local1 = result;
var _local2 = this;
_local1.serviceName = ((typeof(_local1.serviceName) == "function") ? (_local1.servicename) : (_local1.serviceName));
if (_local1 != null) {
if (_local1 instanceof mx.remoting.NetServiceProxy) {
var serv = (new mx.remoting.Service(null, null, _local1.serviceName, _local2.__service.__get__connection(), _local2.__service.__get__responder()));
_local1 = serv;
} else if (_local1 instanceof mx.remoting.RecordSet) {
var _local3 = new mx.remoting.NetServiceProxy(_local2.__service.__get__connection());
_local1._setParentService(_local3);
_local1.logger = _local2.__service.log;
}
}
if (_local2.__responder != null) {
_local2.__responder.onResult(new mx.rpc.ResultEvent(_local1));
}
if (_local2.__service.log != null) {
_local2.__service.log.logInfo((((_local2.__service.__get__name() + ".") + _local2.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local1));
}
}
function onStatus(status) {
var _local1 = this;
var _local2 = status;
if (_local1.__responder != null) {
_local1.__responder.onFault(new mx.rpc.FaultEvent(new mx.rpc.Fault(_local2.code, _local2.description, _local2.details, _local2.type)));
}
if (_local1.__service.log != null) {
_local1.__service.log.logDebug("Service invocation failed.");
_local1.__service.log.logDebug((((_local1.__service.__get__name() + ".") + _local1.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local2));
}
}
function get methodName() {
return(__methodName);
}
static var inited = mx.remoting.NetServiceProxy.registerNetServiceProxy();
}
Symbol 525 MovieClip [__Packages.mx.remoting.Operation] Frame 0
class mx.remoting.Operation
{
var __arguments, __responder, __request, __methodName;
function Operation (methodName, parent) {
var _local1 = this;
_local1.__service = parent;
_local1.__responder = parent.responder;
_local1.__methodName = methodName;
_local1.__invokationName = (_local1.__service.__get__name() + ".") + methodName;
_local1.__request = new Object();
_local1.__arguments = new Array();
}
function createThenSend(Void) {
createArguments();
return(send());
}
function send(Void) {
var _local1 = this;
_local1.__service.log.logInfo((("Invoking " + _local1.__methodName) + " on ") + _local1.__service.__get__name());
var _local3 = new mx.remoting.PendingCall(_local1.__service, _local1.__methodName);
_local3.__set__responder(_local1.__responder);
var _local2 = null;
if (_local1.__arguments == null) {
_local2 = new Array();
} else {
_local2 = _local1.__arguments.concat();
}
_local1.__invokationName = (_local1.__service.__get__name() + ".") + _local1.__methodName;
_local2.unshift(_local1.__invokationName, _local3);
_local1.__service.connection.call.apply(_local1.__service.__get__connection(), _local2);
return(_local3);
}
function invoke(a) {
__arguments = a;
}
function get responder() {
return(__responder);
}
function set responder(r) {
__responder = r;
//return(responder);
}
function get request() {
return(__request);
}
function set request(r) {
__request = r;
//return(request);
}
function get name() {
return(__methodName);
}
function createArguments() {
var _local1 = this;
if (_local1.__request != null) {
_local1.__arguments = new Array();
for (var _local2 in _local1.__request) {
if (_local2 != "arguments") {
_local1.__arguments.unshift(_local1.__request[_local2]);
}
}
}
}
}
Symbol 526 MovieClip [__Packages.mx.remoting.ApiClasses] Frame 0
class mx.remoting.ApiClasses extends MovieClip
{
function ApiClasses () {
super();
}
}
Symbol 528 MovieClip [__Packages.mx.remoting.DataGlue] Frame 0
class mx.remoting.DataGlue extends Object
{
var __dataProv, __labelStr, __dataStr, formatFunction;
function DataGlue (dp) {
super();
__dataProv = dp;
}
function get dataProvider() {
return(__dataProv);
}
function get labelString() {
return(__labelStr);
}
function set labelString(val) {
__labelStr = val;
//return(labelString);
}
function get dataString() {
return(__dataStr);
}
function set dataString(val) {
__dataStr = val;
//return(dataString);
}
static function bindFormatStrings(dataConsumer, dp, labelStr, dataStr) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.__set__labelString(labelStr);
_local1.__set__dataString(dataStr);
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatString;
dataConsumer.dataProvider = _local1;
}
static function bindFormatFunction(dataConsumer, dp, formatFunc) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.formatFunction = formatFunc;
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local1);
}
function addEventListener(eventName, listener) {
dataProvider.addEventListener(eventName, listener);
}
function get length() {
return(getLength());
}
function getLength() {
return(dataProvider.length);
}
function format(formatString, item) {
var _local3 = formatString.split("#");
var result = "";
var tlen = _local3.length;
var _local2;
var _local1 = 0;
while (_local1 < tlen) {
result = result + _local3[_local1];
_local2 = _local3[_local1 + 1];
if (_local2 != undefined) {
result = result + item[_local2];
}
_local1 = _local1 + 2;
}
return(result);
}
function getItemAt_FormatString(index) {
var _local2 = this;
var _local1 = _local2.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return({label:_local2.format(_local2.__get__labelString(), _local1), data:((_local2.__get__dataString() == null) ? (_local1) : (_local2.format(_local2.__get__dataString(), _local1)))});
}
function getItemAt_FormatFunction(index) {
var _local1 = dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return(formatFunction(_local1));
}
function getItemID(index) {
return(dataProvider.getItemID(index));
}
function addItemAt(index, value) {
dataProvider.addItemAt(index, value);
}
function addItem(value) {
dataProvider.addItem(value);
}
function removeItemAt(index) {
dataProvider.removeItemAt(index);
}
function removeAll() {
dataProvider.removeAll();
}
function replaceItemAt(index, itemObj) {
dataProvider.replaceItemAt(index, itemObj);
}
function sortItemsBy(fieldNames, optionFlags) {
dataProvider.sortItemsBy(fieldNames, optionFlags);
}
function sortItems(compareFunc, optionFlags) {
dataProvider.sortItems(compareFunc, optionFlags);
}
static var version = "1.2.0.124";
}
Symbol 529 MovieClip [__Packages.mx.rpc.RelayResponder] Frame 0
class mx.rpc.RelayResponder extends Object
{
var __onFault, __obj, __onResult;
function RelayResponder (resp, resultFunc, faultFunc) {
var _local1 = this;
super();
_local1.__obj = resp;
_local1.__onFault = faultFunc;
_local1.__onResult = resultFunc;
}
function onFault(fault) {
__obj[__onFault](fault);
}
function onResult(result) {
__obj[__onResult](result);
}
}
Symbol 530 MovieClip [__Packages.mx.rpc.DefaultResponder] Frame 0
class mx.rpc.DefaultResponder
{
var __target;
function DefaultResponder (t) {
target = (t);
}
function get target() {
return(__target);
}
function set target(t) {
__target = t;
//return(target);
}
function onResult(event) {
trace("RPC Result: " + event.__get__result());
}
function onFault(event) {
trace("RPC Fault: " + event.fault.faultstring);
}
}
Symbol 590 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 2
play();
Symbol 590 MovieClip Frame 98
stop();
_root.start_timer = true;
Symbol 590 MovieClip Frame 192
_root.lvl_update._visible = true;
_root.gotoAndStop(6);
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 2
stop();
Symbol 756 MovieClip Frame 1
stop();
Symbol 756 MovieClip Frame 2
stop();
Symbol 756 MovieClip Frame 20
stop();
Symbol 756 MovieClip Frame 38
gotoAndStop (1);
Symbol 795 MovieClip Frame 1
stop();
Symbol 818 MovieClip Frame 1
play();
Symbol 818 MovieClip Frame 20
trace("aaaaaaaaaaaaaaaaaaaaaaa");
Symbol 818 MovieClip Frame 79
stop();
delete this.onEnterFrame;
_parent.nextFrame();
Symbol 819 MovieClip Frame 1
stop();
Symbol 826 MovieClip Frame 62
stop();
_root.fill_juice();
Symbol 839 MovieClip Frame 64
trace("Srinath");
Symbol 839 MovieClip Frame 67
stop();
Symbol 840 MovieClip Frame 1
stop();
Symbol 841 MovieClip Frame 1
stop();
Symbol 841 MovieClip Frame 2
stop();
mach.gotoAndPlay(2);
Instance of Symbol 818 MovieClip "mach" in Symbol 841 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (80);
}
onClipEvent (enterFrame) {
if (_root.pause_pressed == false) {
this.play();
} else {
this.stop();
}
}
Symbol 841 MovieClip Frame 3
stop();
Symbol 849 MovieClip Frame 1
stop();
Instance of Symbol 852 MovieClip "orange" in Symbol 853 MovieClip Frame 1
on (press) {
if (_root.pause_pressed == false) {
_parent.orang.duplicateMovieClip(this._name + "_m", 100);
_root[this._name + "_m"].onLoad = function () {
this.nam = "orange";
};
_root[this._name + "_m"]._x = _root._xmouse;
_root[this._name + "_m"]._y = _root._ymouse;
_root[this._name + "_m"].startDrag();
}
}
on (release, releaseOutside) {
if (_root.pause_pressed == false) {
_root[this._name + "_m"].stopDrag();
_root[this._name + "_m"].unloadMovie();
if (_root.juice_machine.fruitholder.hitTest(_root._xmouse, _root._ymouse, true)) {
a = _root.juice_machine.fruitholder._currentframe;
trace("a:" + a);
if (Number(a) < 4) {
a++;
_root.juice_machine.fruitholder.gotoAndStop(a);
if (a == 4) {
_root.juice_machine.gotoAndStop(2);
}
}
}
}
}
Symbol 869 MovieClip Frame 1
stop();
Symbol 871 MovieClip Frame 1
Symbol 871 MovieClip Frame 20
Symbol 887 MovieClip Frame 1
stop();
Symbol 887 MovieClip Frame 2
stop();
Symbol 905 MovieClip Frame 1
stop();
Instance of Symbol 893 MovieClip in Symbol 905 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Instance of Symbol 897 MovieClip in Symbol 905 MovieClip Frame 2
on (release) {
_parent.prevFrame();
}
Instance of Symbol 904 MovieClip in Symbol 905 MovieClip Frame 4
on (release) {
_parent._visible = false;
_root.gotoAndStop(3);
}
Symbol 941 MovieClip Frame 1
stop();
Symbol 966 MovieClip Frame 1
stop();
Symbol 984 MovieClip Frame 1
stop();
Symbol 1007 MovieClip Frame 1
stop();
Symbol 1024 MovieClip Frame 1
stop();
Symbol 1044 MovieClip Frame 1
stop();
Symbol 1053 MovieClip Frame 1
stop();
Symbol 1075 MovieClip Frame 1
stop();
Symbol 1093 MovieClip Frame 1
stop();
Symbol 1128 MovieClip Frame 1
stop();
Symbol 1151 MovieClip Frame 1
stop();
Symbol 1182 MovieClip Frame 1
stop();
Symbol 1216 MovieClip Frame 1
stop();
Symbol 1241 MovieClip Frame 1
stop();
Symbol 1261 MovieClip Frame 1
stop();
Symbol 1285 MovieClip Frame 1
stop();
Symbol 1306 MovieClip Frame 1
stop();
Symbol 1324 MovieClip Frame 1
stop();
Symbol 1350 MovieClip Frame 1
stop();
Symbol 1366 MovieClip Frame 1
stop();
Symbol 1385 MovieClip Frame 1
stop();
Symbol 1394 MovieClip Frame 51
stop();
_parent.cl();
Symbol 1395 MovieClip Frame 1
stop();
Symbol 1395 MovieClip Frame 2
val = this._name.split("delay")[1];
eval (("_root.girlmc_" + val) + ".face").gotoAndStop(1);
Symbol 1395 MovieClip Frame 25
trace("played");
Symbol 1395 MovieClip Frame 250
val = this._name.split("delay")[1];
eval (("_root.girlmc_" + val) + ".face").gotoAndStop(2);
Symbol 1395 MovieClip Frame 375
val = this._name.split("delay")[1];
eval (("_root.girlmc_" + val) + ".face").gotoAndStop(3);
Symbol 1395 MovieClip Frame 500
this.flag = false;
val = this._name.split("delay")[1];
trace("val:" + val);
eval ("_root.girlmc_" + val)._x = eval ("_root.girlmc_" + val)._x + eval (("_root.girlmc_" + val) + ".xmov");
trace("delay over");
trace("unload attached order:" + eval (("_root.girlmc_" + val) + ".attached_order"));
eval (("_root.girlmc_" + val) + ".attached_order").unloadMovie();
movieclip = eval ("_root.girlmc_" + val).mny;
monyval = eval ("_root.girlmc_" + val).moneygiven;
if (monyval == 0) {
} else {
_root.show_money(movieclip, monyval);
}
eval ("_root.girlmc_" + val).flag = true;
gotoAndStop (1);
Symbol 1396 MovieClip Frame 1
Symbol 1396 MovieClip Frame 391
gotoAndPlay (1);
Symbol 1397 MovieClip Frame 1
Symbol 1398 MovieClip Frame 1
stop();
Symbol 1399 MovieClip Frame 1
stop();
Symbol 1401 MovieClip Frame 1
stop();
Symbol 1401 MovieClip Frame 2
trace("squirt called");
Symbol 1401 MovieClip Frame 13
trace("squirt played");
Symbol 1406 MovieClip Frame 1
stop();
Symbol 1406 MovieClip Frame 2
play();
Instance of Symbol 1420 MovieClip "newday" in Symbol 1439 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
on (release) {
this._visible = false;
_root.gotoAndStop(7);
}
Instance of Symbol 1422 MovieClip "ply_agn" in Symbol 1439 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
on (release) {
this._visible = false;
_root.gotoAndStop(3);
}
Instance of Symbol 1431 MovieClip in Symbol 1439 MovieClip Frame 1
on (release) {
_parent._visible = false;
_root.gotoAndStop(8);
}
Instance of Symbol 1433 MovieClip in Symbol 1439 MovieClip Frame 1
on (release) {
getURL ("http://www.santorographics.com/games");
}
Instance of Symbol 1438 MovieClip in Symbol 1439 MovieClip Frame 1
on (release) {
_parent._visible = false;
_root.gotoAndStop(10);
}
Symbol 1445 Button
on (release) {
getURL ("javascript:closeme();");
}
Symbol 1448 Button
on (release) {
_root.gotoAndStop(8);
}
Symbol 1450 Button
on (press) {
_root.gotoAndStop(2);
}
Instance of Symbol 1431 MovieClip in Symbol 1451 MovieClip Frame 1
on (release) {
_root.gotoAndStop(8);
}
Instance of Symbol 1433 MovieClip in Symbol 1451 MovieClip Frame 1
on (release) {
getURL ("http://www.santorographics.com/games");
}
Symbol 1457 MovieClip Frame 1
stop();
Instance of Symbol 893 MovieClip in Symbol 1457 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Instance of Symbol 897 MovieClip in Symbol 1457 MovieClip Frame 2
on (release) {
_parent.prevFrame();
}
Instance of Symbol 904 MovieClip in Symbol 1457 MovieClip Frame 4
on (release) {
_parent._visible = false;
_root.inst.enabled = true;
_root.pgn.enabled = true;
_root.paus.enabled = true;
_root.pause_pressed = false;
}
Instance of Symbol 1468 MovieClip in Symbol 1471 MovieClip Frame 1
on (release) {
_root.gotoAndStop(6);
}
Symbol 1509 MovieClip Frame 1
function validate_form() {
form_valid = true;
if (from_name.text == "") {
err.text = "Please enter your name.";
form_valid = false;
} else if (emailid.text == "") {
err.text = "Please enter your email address";
form_valid = false;
} else if (fname.text == "") {
err.text = "Please enter your friends name";
form_valid = false;
} else if (emailid1.text == "") {
err.text = "Please enter your friend's email address";
form_valid = false;
} else if ((emailid1.text.indexOf("@") < 2) || (emailid.text.indexOf("@") < 2)) {
err.text = "Please enter a valid email address";
form_valid = false;
} else if ((emailid1.text.length < 8) || (emailid.text.length < 8)) {
err.text = "E-mail address is not long enough!";
form_valid = false;
} else if (comm.text == "") {
err.text = "Please enter your comments";
form_valid = false;
}
}
function reset() {
emailid.text = "";
emailid1.text = "";
comm.text = "";
from_name.text = "";
fname.text = "";
}
var form_valid;
Instance of Symbol 1466 MovieClip "sbmt" in Symbol 1509 MovieClip Frame 1
on (release) {
_parent.validate_form();
trace("_parent.form_valid:" + _parent.form_valid);
if (_parent.form_valid) {
this.enabled = false;
_root.meil.from_name = _parent.from_name.text;
_root.meil.from_email = _parent.emailid.text;
_root.meil.to_name = _parent.fname.text;
_root.meil.to_email = _parent.emailid1.text;
_root.meil.comments = _parent.comm.text;
_parent.err.text = "Email has been sent successfully!";
_root.meil.loadVariables("http://www.santorographics.com/tutticuti/icecreamgame/sendtofriend.php", "POST");
_parent.reset();
trace("called");
}
}
Instance of Symbol 1501 MovieClip in Symbol 1509 MovieClip Frame 1
on (release) {
_parent.reset();
}