Frame 1
this_ref = this;
menu_path = this._parent;
play();
_INIT_ = true;
_GAME_OVER_ = false;
_ROUND_OVER_ = false;
game_name = "cafe";
Frame 17
stop();
loader_mc.gotoAndStop(percent);
total_bytes = this.getBytesTotal();
bytes_loaded = 0;
done_loading = false;
load_cnt = 0;
disp = 0;
this.onEnterFrame = function () {
bytes_loaded = this.getBytesLoaded();
percent = int((bytes_loaded / total_bytes) * 100);
if (load_cnt < percent) {
load_cnt = load_cnt + 2;
}
loader_mc.gotoAndStop(load_cnt);
if ((total_bytes > 10000) && (load_cnt >= 100)) {
delete this.onEnterFrame;
gotoAndPlay ("done_loading");
}
};
Frame 18
function getRandom(min_num, max_num) {
return(min_num + Math.floor(Math.random() * ((max_num + 1) - min_num)));
}
function handCursor() {
Mouse.hide();
cursor_mc.swapDepths(11000);
cursor_mc.startDrag(true);
cursor_mc._alpha = 0;
cursor_mc._visible = true;
cursor_mc.alphaTo(100, 0.3, "linear", 0);
cursor_tracker_mc.onEnterFrame = function () {
if (_ymouse < 447) {
Mouse.hide();
cursor_mc.startDrag(true);
} else {
Mouse.show();
cursor_mc.stopDrag();
}
};
}
function regCursor() {
delete cursor_tracker_mc.onEnterFrame;
Mouse.show();
cursor_mc._visible = false;
cursor_mc.stopDrag();
}
_global.$createTweenController = function () {
var _local3 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local3.$_tweenPropList = new Array();
_local3.$_tTime = getTimer();
_local3.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, "$createTweenController", 1, 0);
_global.$removeTweenController = function () {
delete _root.__tweenController__.$_tweenPropList;
delete _root.__tweenController__.$_tTime;
delete _root.__tweenController__.onEnterFrame;
_root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, "$removeTweenController", 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) {
if (timeSeconds == undefined) {
timeSeconds = 0;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local7 = [prop];
var _local11 = [mtarget[prop]];
var _local9 = [propDest];
} else {
var _local7 = [];
var _local11 = [];
var _local9 = [];
for (var _local32 in prop) {
_local11.push(mtarget[prop[_local32]]);
}
for (var _local32 in prop) {
_local7.push(prop[_local32]);
}
for (var _local32 in propDest) {
_local9.push(propDest[_local32]);
}
}
var _local12 = false;
if (_root.__tweenController__ == undefined) {
_global.$createTweenController();
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local8 = _root.__tweenController__.$_tTime;
for (var _local32 in _local11) {
if ((_local9[_local32] != undefined) && (!mtarget.$_isTweenLocked)) {
if (mtarget.$_tweenCount > 0) {
var _local3 = 0;
while (_local3 < _local4.length) {
if ((_local4[_local3]._targ == mtarget) && (_local4[_local3]._prop == _local7[_local32])) {
if ((_local8 + (delay * 1000)) < _local4[_local3]._timeDest) {
_local4.splice(_local3, 1);
_local3--;
mtarget.$_tweenCount--;
}
}
_local3++;
}
}
_local4.push({_prop:_local7[_local32], _targ:mtarget, _propStart:undefined, _propDest:_local9[_local32], _timeStart:_local8, _timeDest:_local8 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _extras:extras, _delay:delay, _isPaused:false, _timePaused:0, _callback:(_local12 ? undefined : (callback))});
mtarget.$_tweenCount = ((mtarget.$_tweenCount > 0) ? (mtarget.$_tweenCount + 1) : 1);
_local12 = true;
}
}
ASSetPropFlags(mtarget, "$_tweenCount", 1, 0);
};
ASSetPropFlags(_global, "$addTween", 1, 0);
_global.$updateTweens = function () {
var _local8 = (this.$_tTime = getTimer());
var _local6 = 0;
while (_local6 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local6];
if (_local3._targ.toString() == undefined) {
this.$_tweenPropList.splice(_local6, 1);
_local6--;
} else if (((_local3._timeStart + (_local3._delay * 1000)) <= _local8) && (!_local3._isPaused)) {
if (_local3._propStart == undefined) {
if (_local3._prop.substr(0, 10) == "__special_") {
if (_local3._prop == "__special_mc_frame__") {
_local3._propStart = _local3._targ._currentframe;
} else if (_local3._prop == "__special_mc_ra__") {
_local3._propStart = new Color(_local3._targ).getTransform().ra;
} else if (_local3._prop == "__special_mc_rb__") {
_local3._propStart = new Color(_local3._targ).getTransform().rb;
} else if (_local3._prop == "__special_mc_ga__") {
_local3._propStart = new Color(_local3._targ).getTransform().ga;
} else if (_local3._prop == "__special_mc_gb__") {
_local3._propStart = new Color(_local3._targ).getTransform().gb;
} else if (_local3._prop == "__special_mc_ba__") {
_local3._propStart = new Color(_local3._targ).getTransform().ba;
} else if (_local3._prop == "__special_mc_bb__") {
_local3._propStart = new Color(_local3._targ).getTransform().bb;
} else if (_local3._prop == "__special_mc_aa__") {
_local3._propStart = new Color(_local3._targ).getTransform().aa;
} else if (_local3._prop == "__special_mc_ab__") {
_local3._propStart = new Color(_local3._targ).getTransform().ab;
} else if (_local3._prop == "__special_text_r__") {
_local3._propStart = _local3._targ.textColor >> 16;
} else if (_local3._prop == "__special_text_g__") {
_local3._propStart = (_local3._targ.textColor & 65280) >> 8;
} else if (_local3._prop == "__special_text_b__") {
_local3._propStart = _local3._targ.textColor & 255;
} else if (_local3._prop == "__special_sound_volume__") {
_local3._propStart = _local3._targ.getVolume();
} else if (_local3._prop == "__special_sound_pan__") {
_local3._propStart = _local3._targ.getPan();
} else if (_local3._prop == "__special_bst_t__") {
_local3._propStart = 0;
_local3._extras.__special_bst_ix__ = _local3._targ._x;
_local3._extras.__special_bst_iy__ = _local3._targ._y;
} else if (_local3._prop == "__special_blur_x__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_blur_y__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_color__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].color;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_glow_alpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].alpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_glow_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_distance__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].distance;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_angle__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].angle;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 45;
}
} else if (_local3._prop == "__special_bevel_highlightColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_bevel_highlightAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_shadowColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_shadowAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
}
var _local10 = _local3._timeDest + (_local3._delay * 1000);
if (_local10 <= _local8) {
var _local4 = _local3._propDest;
} else {
var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local8 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
}
_local3._targ[_local3._prop] = (_local3._extras.mustRound ? (Math.round(_local4)) : (_local4));
if (_local3._prop == "__special_mc_frame__") {
_local3._targ.gotoAndStop(Math.round(_local4));
} else if (_local3._prop == "__special_mc_ra__") {
new Color(_local3._targ).setTransform({ra:_local4});
} else if (_local3._prop == "__special_mc_rb__") {
new Color(_local3._targ).setTransform({rb:_local4});
} else if (_local3._prop == "__special_mc_ga__") {
new Color(_local3._targ).setTransform({ga:_local4});
} else if (_local3._prop == "__special_mc_gb__") {
new Color(_local3._targ).setTransform({gb:_local4});
} else if (_local3._prop == "__special_mc_ba__") {
new Color(_local3._targ).setTransform({ba:_local4});
} else if (_local3._prop == "__special_mc_bb__") {
new Color(_local3._targ).setTransform({bb:_local4});
} else if (_local3._prop == "__special_mc_aa__") {
new Color(_local3._targ).setTransform({aa:_local4});
} else if (_local3._prop == "__special_mc_ab__") {
new Color(_local3._targ).setTransform({ab:_local4});
}
if (_local3._prop == "__special_bst_t__") {
var _local7 = _local3._extras;
var _local9 = _global.findPointOnCurve(_local7.__special_bst_ix__, _local7.__special_bst_iy__, _local7.__special_bst_cx__, _local7.__special_bst_cy__, _local7.__special_bst_dx__, _local7.__special_bst_dy__, _local4);
if (_local3._extras.mustRound) {
_local3._targ._x = Math.round(_local9.x);
_local3._targ._y = Math.round(_local9.y);
} else {
_local3._targ._x = _local9.x;
_local3._targ._y = _local9.y;
}
}
if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_b__")) {
_local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__;
}
if (_local3._prop == "__special_sound_volume__") {
_local3._targ.setVolume(_local4);
}
if (_local3._prop == "__special_sound_pan__") {
_local3._targ.setPan(_local4);
}
if (_local3._prop == "__special_blur_x__") {
_global.$setFilterProperty(_local3._targ, "blur_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_blur_y__") {
_global.$setFilterProperty(_local3._targ, "blur_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_color__") {
_global.$setFilterProperty(_local3._targ, "glow_color", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_glow_alpha__") {
_global.$setFilterProperty(_local3._targ, "glow_alpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurX__") {
_global.$setFilterProperty(_local3._targ, "glow_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurY__") {
_global.$setFilterProperty(_local3._targ, "glow_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_strength__") {
_global.$setFilterProperty(_local3._targ, "glow_strength", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_distance__") {
_global.$setFilterProperty(_local3._targ, "bevel_distance", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_angle__") {
_global.$setFilterProperty(_local3._targ, "bevel_angle", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurX__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurY__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_strength__") {
_global.$setFilterProperty(_local3._targ, "bevel_strength", _local4, _local3._extras);
}
if (_local3._targ.onTweenUpdate != undefined) {
_local3._targ.onTweenUpdate(_local3._prop);
}
if (_local10 <= _local8) {
if (_local3._targ.onTweenComplete != undefined) {
_local3._targ.onTweenComplete(_local3._prop);
}
_global.$stopTween(_local3._targ, [_local3._prop], false);
_local6--;
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local11 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local11, null);
_local11.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
}
}
_local6++;
}
if (this.$_tweenPropList.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$updateTween", 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture) {
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local7;
for (var _local9 in _local4) {
_local7 = _local4[_local9]._prop;
var _local5 = 0;
while ((_local5 < props.length) || ((_local5 < 1) && (props == undefined))) {
if (((_local4[_local9]._targ == mtarget) && ((_local7 == props[_local5]) || (props == undefined))) && (wipeFuture || ((_local4[_local9]._timeDest + (_local4[_local9]._delay * 1000)) <= getTimer()))) {
switch (_local7) {
case "__special_mc_frame__" :
case "__special_mc_ra__" :
case "__special_mc_rb__" :
case "__special_mc_ga__" :
case "__special_mc_gb__" :
case "__special_mc_ba__" :
case "__special_mc_bb__" :
case "__special_mc_aa__" :
case "__special_mc_ab__" :
case "__special_sound_volume__" :
case "__special_bst_t__" :
delete mtarget[_local7];
break;
case "__special_text_b__" :
delete mtarget.__special_text_r__;
delete mtarget.__special_text_g__;
delete mtarget.__special_text_b__;
}
_local4.splice(_local9, 1);
}
_local5++;
}
}
if (props == undefined) {
delete mtarget.$_tweenCount;
} else {
mtarget.$_tweenCount = 0;
for (var _local9 in _local4) {
if (_local4[_local9]._targ == mtarget) {
mtarget.$_tweenCount++;
}
}
if (mtarget.$_tweenCount == 0) {
delete mtarget.$_tweenCount;
}
}
if (_local4.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$stopTween", 1, 0);
_global.$setFilterProperty = function (mtarget, propName, propValue, extras) {
var _local1;
var _local7 = false;
var _local3 = [];
_local1 = 0;
while (_local1 < mtarget.filters.length) {
_local3.push(mtarget.filters[_local1]);
_local1++;
}
if (propName.substr(0, 5) == "blur_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BlurFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_blur_quality__ != undefined) {
_local3[_local1].quality = extras.__special_blur_quality__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local9;
var _local8 = ((extras.__special_blur_quality__ == undefined) ? 2 : (extras.__special_blur_quality__));
if (propName == "blur_blurX") {
_local9 = new flash.filters.BlurFilter(propValue, 0, _local8);
}
if (propName == "blur_blurY") {
_local9 = new flash.filters.BlurFilter(0, propValue, _local8);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 5) == "glow_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.GlowFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_glow_quality__ != undefined) {
_local3[_local1].quality = extras.__special_glow_quality__;
}
if (extras.__special_glow_inner__ != undefined) {
_local3[_local1].inner = extras.__special_glow_inner__;
}
if (extras.__special_glow_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_glow_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_glow_quality__ == undefined) ? 2 : (extras.__special_glow_quality__));
var _local12 = ((extras.__special_glow_inner__ == undefined) ? false : (extras.__special_glow_inner__));
var _local10 = ((extras.__special_glow_knockout__ == undefined) ? false : (extras.__special_glow_knockout__));
if (propName == "glow_color") {
var _local9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_alpha") {
var _local9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurX") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurY") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _local8, _local12, _local10);
}
if (propName == "glow_strength") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _local8, _local12, _local10);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 6) == "bevel_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BevelFilter) {
_local3[_local1][propName.substr(6)] = propValue;
if (extras.__special_bevel_quality__ != undefined) {
_local3[_local1].quality = extras.__special_bevel_quality__;
}
if (extras.__special_bevel_type__ != undefined) {
_local3[_local1].inner = extras.__special_bevel_type__;
}
if (extras.__special_bevel_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_bevel_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_bevel_quality__ == undefined) ? 2 : (extras.__special_bevel_quality__));
var _local11 = ((extras.__special_bevel_type__ == undefined) ? "inner" : (extras.__special_bevel_type__));
var _local10 = ((extras.__special_bevel_knockout__ == undefined) ? false : (extras.__special_bevel_knockout__));
if (propName == "bevel_distance") {
var _local9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_angle") {
var _local9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurX") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurY") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _local8, _local11, _local10);
}
if (propName == "bevel_strength") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _local8, _local11, _local10);
}
_local3.push(_local9);
}
} else {
return(undefined);
}
mtarget.filters = _local3;
};
MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
}));
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.roundedTween = (TextField.prototype.roundedTween = (Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
}));
ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0);
ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
if (props != undefined) {
var _local4 = 1;
while (_local4 < arguments.length) {
props.push(arguments[_local4]);
_local4++;
}
}
_global.$stopTween(this, props, true);
}));
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.pauseTween = (TextField.prototype.pauseTween = (Sound.prototype.pauseTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local6 = 1;
while (_local6 < Arguments.length) {
props.push(Arguments[_local6]);
_local6++;
}
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local5;
for (var _local7 in _local4) {
if ((_local4[_local7]._targ == this) && (!_local4[_local7]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local6 in props) {
if (props[_local6] == _local4[_local7]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local4[_local7]._isPaused = true;
_local4[_local7]._timePaused = _root.__tweenController__.$_tTime;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0);
ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0);
ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0);
MovieClip.prototype.resumeTween = (TextField.prototype.resumeTween = (Sound.prototype.resumeTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local7 = 1;
while (_local7 < Arguments.length) {
props.push(Arguments[_local7]);
_local7++;
}
}
var _local3 = _root.__tweenController__.$_tweenPropList;
var _local5;
var _local6;
for (var _local8 in _local3) {
if ((_local3[_local8]._targ == this) && (_local3[_local8]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local7 in props) {
if (props[_local7] == _local3[_local8]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local3[_local8]._isPaused = false;
_local6 = _root.__tweenController__.$_tTime - _local3[_local8]._timePaused;
_local3[_local8]._timeStart = _local3[_local8]._timeStart + _local6;
_local3[_local8]._timeDest = _local3[_local8]._timeDest + _local6;
_local3[_local8]._timePaused = 0;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0);
ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0);
ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sound.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
}));
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () {
return(this.$_tweenCount);
}));
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
}));
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0);
MovieClip.prototype.resizeTo = (TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_width", "_height"], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "resizeTo", 1, 0);
ASSetPropFlags(TextField.prototype, "resizeTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
MovieClip.prototype.xScaleTo = (TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0);
MovieClip.prototype.yScaleTo = (TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
MovieClip.prototype.roundedSlideTo = (TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0);
MovieClip.prototype.xSlideTo = (TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0);
MovieClip.prototype.roundedXSlideTo = (TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0);
MovieClip.prototype.ySlideTo = (TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0);
MovieClip.prototype.roundedYSlideTo = (TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0);
MovieClip.prototype.bezierSlideTo = (TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0);
MovieClip.prototype.roundedBezierSlideTo = (TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_local3.mustRound = true;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
if (propDest_color == null) {
this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
var _local3 = propDest_color >> 16;
var _local5 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
this.colorTransformTo(0, _local3, 0, _local5, 0, _local4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = propDest_color >> 16;
var _local6 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
_global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local3, _local6, _local4], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
} else {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
MovieClip.prototype.blurTo = (TextField.prototype.blurTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__:arguments[0].quality});
} else {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__:arguments[1]});
}
});
ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "blurTo", 1, 0);
MovieClip.prototype.xyBlurTo = (TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0);
MovieClip.prototype.xBlurTo = (TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0);
MovieClip.prototype.yBlurTo = (TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0);
MovieClip.prototype.glowTo = (TextField.prototype.glowTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__:arguments[0].quality, __special_glow_inner__:arguments[0].inner, __special_glow_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__:arguments[4], __special_glow_inner__:arguments[5], __special_glow_knockout__:arguments[6]});
}
});
ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "glowTo", 1, 0);
MovieClip.prototype.xyGlowTo = (TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0);
MovieClip.prototype.xGlowTo = (TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0);
MovieClip.prototype.yGlowTo = (TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0);
MovieClip.prototype.bevelTo = (TextField.prototype.bevelTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__:arguments[0].quality, __special_bevel_type__:arguments[0].type, __special_bevel_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__:arguments[8], __special_bevel_type__:arguments[9], __special_bevel_knockout__:arguments[10]});
}
});
ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0);
MovieClip.prototype.xyBevelTo = (TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__:quality, __special_bevel_type__:type, __special_bevel_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
return({x:p1x + (t * (((2 * (1 - t)) * (cx - p1x)) + (t * (p2x - p1x)))), y:p1y + (t * (((2 * (1 - t)) * (cy - p1y)) + (t * (p2y - p1y))))});
};
ASSetPropFlags(_global, "findPointOnCurve", 1, 0);
_global.findTweenColor = function (objProp, tTime) {
var _local8 = objProp._propStart >> 16;
var _local4 = objProp._propDest >> 16;
var _local5 = (objProp._propStart >> 8) & 255;
var _local6 = (objProp._propDest >> 8) & 255;
var _local9 = objProp._propStart & 255;
var _local7 = objProp._propDest & 255;
var _local12 = Math.round(_global.findTweenValue(_local8, _local4, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local10 = Math.round(_global.findTweenValue(_local5, _local6, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local3 = Math.round(_global.findTweenValue(_local9, _local7, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
return(((_local12 << 16) + (_local10 << 8)) + _local3);
};
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local4 = _propStart;
var _local2 = _propDest - _propStart;
var _local3 = _timeDest - _timeStart;
var _local6 = _extra1;
var _local7 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local3) + _local4);
case "easeinquad" :
_local1 = _local1 / _local3;
return(((_local2 * _local1) * _local1) + _local4);
case "easeoutquad" :
_local1 = _local1 / _local3;
return((((-_local2) * _local1) * (_local1 - 2)) + _local4);
case "easeinoutquad" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local4);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local4);
case "easeoutinquad" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuad") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuad") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeincubic" :
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * _local1) + _local4);
case "easeoutcubic" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local4);
case "easeinoutcubic" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local4);
case "easeoutincubic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCubic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCubic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquart" :
_local1 = _local1 / _local3;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquart" :
_local1 = (_local1 / _local3) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local4);
case "easeinoutquart" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local4);
case "easeoutinquart" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuart") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuart") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquint" :
_local1 = _local1 / _local3;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquint" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local4);
case "easeinoutquint" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local4);
case "easeoutinquint" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuint") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuint") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local3) * (Math.PI/2))) + _local2) + _local4);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local3) * (Math.PI/2))) + _local4);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local3) - 1)) + _local4);
case "easeoutinsine" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutSine") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInSine") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinexpo" :
return(((_local1 == 0) ? (_local4) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local3) - 1))) + _local4)));
case "easeoutexpo" :
return(((_local1 == _local3) ? (_local4 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local3)) + 1)) + _local4)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local4);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local4);
case "easeoutinexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * ((-Math.pow(2, (-10 * _local1) / 1)) + 1)) + _local4);
}
return(((_local2 / 2) * (Math.pow(2, (10 * (_local1 - 2)) / 1) + 1)) + _local4);
case "easeincirc" :
_local1 = _local1 / _local3;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
case "easeoutcirc" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local4);
case "easeinoutcirc" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local4);
case "easeoutincirc" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCirc") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCirc") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
_local1 = _local1 - 1;
return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local4);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 == 2) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.45;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
}
_local1 = _local1 - 1;
return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local4);
case "easeoutinelastic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutElastic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInElastic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local4);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local4);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local4);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local4);
case "easeoutinback" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBack") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBack") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local3 - _local1, _local3, "easeOutBounce")) + _local4);
case "easeoutbounce" :
_local1 = _local1 / _local3;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local4);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local4);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local4);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local4);
case "easeinoutbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeInBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeoutinbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBounce") * 0.5) + (_local2 * 0.5)) + _local4);
}
trace(("MC TWEEN ### Error on transition: there's no \"" + _animType) + "\" animation type.");
return(0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
Array.prototype.distinctShuffle = function () {
this.sort(function (a, b) {
i = Math.round((Math.random() * 100) - 50);
return(i);
});
return(this);
};
this.createEmptyMovieClip("cursor_tracker_mc", 777000);
ref1_mc.stop();
ref2_mc.stop();
ref3_mc.stop();
load1_mc._visible = false;
load2_mc._visible = false;
load3_mc._visible = false;
Frame 22
function setMusicVolume(p_sound, p_vol) {
p_sound.volumeTo(p_vol, 0.6, "linear", 0);
}
function playSound(p_sound) {
p_sound.start(0, 0);
}
this.createEmptyMovieClip("song1_mc", 99000);
music1_sound = new Sound(song1_mc);
music1_sound.attachSound("song1");
music1_sound.setVolume(0);
music1_sound.start(0, 1000);
setMusicVolume(music1_sound, 40);
this.createEmptyMovieClip("song2_mc", 99001);
music2_sound = new Sound(song2_mc);
music2_sound.attachSound("song2");
music2_sound.setVolume(0);
music2_sound.start(0, 1000);
this.createEmptyMovieClip("good_sound_mc", 99002);
good_sound = new Sound(good_sound_mc);
good_sound.attachSound("pop6c-130186cd-5.wav");
this.createEmptyMovieClip("bad_sound_mc", 99003);
bad_sound = new Sound(bad_sound_mc);
bad_sound.attachSound("se_lib-pop.wav");
this.createEmptyMovieClip("rollover_sound_mc", 99004);
rollover_sound = new Sound(rollover_sound_mc);
rollover_sound.attachSound("organic_nav_15.wav");
Frame 27
stop();
Frame 28
speed = 3;
last_speed = 3;
Frame 65
bg_mc.cacheAsBitmap = true;
belt_mc.cacheAsBitmap = true;
logo_mc.cacheAsBitmap = true;
display_mc.swapDepths(9000);
Frame 71
round_mc.gotoAndPlay("in");
misses_mc.gotoAndPlay("in");
Frame 72
function getRandomFood() {
num1 = getRandom(1, 3);
switch (num1) {
case 1 :
num2 = getRandom(1, ref1_mc._totalframes);
break;
case 2 :
num2 = getRandom(1, ref2_mc._totalframes);
break;
case 3 :
num2 = getRandom(1, ref3_mc._totalframes);
}
return(new Array(num1, num2, false));
}
function addToUpcoming() {
i_array = getRandomFood();
while ((i_array[0] == last_group_num) && (i_array[1] == last_num_num)) {
trace("duplicate random food generated");
i_array = getRandomFood();
}
last_group_num = i_array[0];
last_num_num = i_array[1];
upcoming_array.push(i_array);
remove_sidebyside();
}
function spitFood() {
var i;
group = upcoming_array[0][0];
num = upcoming_array[0][1];
food_machine_mc.attachMovie(("food" + group) + "_mc", ("food" + food_cnt) + "_mc", lvl_belt + 2000);
f_mc = eval (("food_machine_mc.food" + food_cnt) + "_mc");
f_mc.cacheAsBitmap = true;
food_cnt++;
lvl_belt = lvl_belt + 3;
item_array.push(f_mc);
f_mc.tray_mc.gotoAndStop(num);
f_mc.conveyor_mc.gotoAndStop(num);
f_mc._x = -100;
f_mc._y = 326;
f_mc.my_group = group;
f_mc.my_num = num;
end_pos = 800;
f_mc.onEnterFrame = function () {
this._x = this._x + (speed * 0.86);
if (this._x >= 800) {
item_array.shift();
this.removeMovieClip();
}
};
makeFoodActive(f_mc);
upcoming_array.shift();
addToUpcoming();
bustupArray(demanded_array);
}
function makeFoodActive(food_mc) {
food_mc.onPress = function () {
this.stopTween();
this.conveyor_mc.alphaTo(0, 0.2, "easeOutQuad", 0);
this.tray_mc._visible = true;
delete this.onTweenComplete;
delete this.onEnterFrame;
tracker_mc.keep_x = this._x;
tracker_mc.onEnterFrame = function () {
tracker_mc.keep_x = tracker_mc.keep_x + (speed * 0.86);
};
cursor_mc.gotoAndStop("closed");
this.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse - 10;
if (this.hitTest(chars_mc.hit1_mc)) {
chars_mc.trayOver(chars_mc.tray1_mc);
} else {
chars_mc.trayOut(chars_mc.tray1_mc);
}
if (this.hitTest(chars_mc.hit2_mc)) {
chars_mc.trayOver(chars_mc.tray2_mc);
} else {
chars_mc.trayOut(chars_mc.tray2_mc);
}
if (this.hitTest(chars_mc.hit3_mc)) {
chars_mc.trayOver(chars_mc.tray3_mc);
} else {
chars_mc.trayOut(chars_mc.tray3_mc);
}
if (this.hitTest(chars_mc.hit4_mc)) {
chars_mc.trayOver(chars_mc.tray4_mc);
} else {
chars_mc.trayOut(chars_mc.tray4_mc);
}
};
delete this.onPress;
this.swapDepths(lvl_hand);
in_hand_mc = this;
this.scaleTo(120, 0.4, "easeOutBack", 0);
var mouseListener = new Object();
mouseListener.onMouseUp = function () {
delete tracker_mc.onEnterFrame;
cursor_mc.gotoAndStop("open");
delete in_hand_mc.onEnterFrame;
Mouse.removeListener(this);
delivered = false;
if (in_hand_mc.hitTest(chars_mc.hit1_mc)) {
place = 1;
bubble_mc = bubble1_mc;
delivered = true;
}
if (in_hand_mc.hitTest(chars_mc.hit2_mc)) {
place = 2;
bubble_mc = bubble2_mc;
delivered = true;
}
if (in_hand_mc.hitTest(chars_mc.hit3_mc)) {
place = 3;
bubble_mc = bubble3_mc;
delivered = true;
}
if (in_hand_mc.hitTest(chars_mc.hit4_mc)) {
place = 4;
bubble_mc = bubble4_mc;
delivered = true;
}
if (delivered == true) {
served_array.push(in_hand_mc);
in_hand_mc.swapDepths(lvl_tray);
in_hand_mc.scaleTo(90, 0.2, "easeOutQuad", 0);
if (in_hand_mc.my_group == 2) {
in_hand_mc.swapDepths(in_hand_mc.getDepth() + 1);
}
if (in_hand_mc.my_group == 3) {
in_hand_mc.swapDepths(in_hand_mc.getDepth() + 2);
}
place_mc = eval ((("chars_mc.p" + place) + in_hand_mc.my_group) + "_mc");
in_hand_mc.slideTo(chars_mc._x + place_mc._x, chars_mc._y + place_mc._y, 0.2, "easeOutQuad", 0);
lvl_tray++;
chars_mc.trayOut(chars_mc.tray1_mc);
chars_mc.trayOut(chars_mc.tray2_mc);
chars_mc.trayOut(chars_mc.tray3_mc);
chars_mc.trayOut(chars_mc.tray4_mc);
checkItem();
} else if (in_hand_mc._y < 300) {
playSound(bad_sound);
w_mc = this_ref.attachMovie("wrong_air_mc", ("wrong" + this_ref.wrong_cnt) + "_mc", this_ref.wrong_cnt + 6600);
w_mc._x = in_hand_mc._x;
w_mc._y = in_hand_mc._y + 14;
w_mc._xscale = (w_mc._yscale = 30);
w_mc._alpha = 0;
w_mc.alphaTo(100, 0.4, "easeOutQuad", 0);
w_mc.scaleTo(120, 0.4, "easeOutBack", 0);
w_mc.scaleTo(30, 0.4, "easeOutQuad", 0.5);
w_mc.alphaTo(0, 0.4, "easeOutQuad", 0.5);
w_tmr = setTimeout(this_ref.removeWrong, 900);
in_hand_mc.alphaTo(0, 0.4, "easeOutQuad", 0);
losePoint();
} else {
in_hand_mc.stopTween();
in_hand_mc.slideTo(tracker_mc.keep_x + 5, 326, 0.12, "easeOutQuad", 0);
in_hand_mc._xscale = (in_hand_mc._yscale = 100);
delete tracker_mc.onEnterFrame;
in_hand_mc.onEnterFrame = function () {
this._x = this._x + (speed * 0.86);
};
in_hand_mc.conveyor_mc.stopTween();
in_hand_mc.tray_mc.stopTween();
in_hand_mc.conveyor_mc._alpha = 100;
in_hand_mc.tray_mc._visible = false;
makeFoodActive(in_hand_mc);
}
in_hand_mc = null;
};
Mouse.addListener(mouseListener);
};
}
function removeWrong() {
w_mc = eval (("wrong" + wrong_cnt) + "_mc");
w_mc.removeMovieClip();
wrong_cnt++;
}
food_cnt = 0;
wrong_cnt = 0;
lvl_end = 46000;
lvl_hand = 45000;
lvl_belt = 100;
lvl_tray = 0;
group = 0;
place = 0;
upcoming_array = new Array();
item_array = new Array();
served_array = new Array();
in_hand_mc = null;
bubble_mc = null;
last_group_num = 0;
last_num_num = 0;
this.createEmptyMovieClip("food_machine_mc", 200);
end_screen_mc.swapDepths(lvl_end);
food_machine_mc.createEmptyMovieClip("x_tracker_mc", 21000);
tracker_mc = food_machine_mc.x_tracker_mc;
i = 0;
while (i < 7) {
addToUpcoming();
i++;
}
Frame 73
function spitLine() {
food_machine_mc.attachMovie("belt_line_mc", ("line" + line_cnt) + "_mc", lvl_line);
line_mc = eval (("food_machine_mc.line" + line_cnt) + "_mc");
line_array.push(line_mc);
line_mc._x = 0;
line_mc._y = 315;
line_mc.stop();
line_cnt++;
lvl_line++;
}
function setLineSpeedAndGo() {
delete food_machine_mc.onEnterFrame;
food_machine_mc.onEnterFrame = function () {
i = 0;
while (i < line_array.length) {
lll_mc = line_array[i];
new_frame_num = (lll_mc._currentframe = lll_mc._currentframe + speed);
if (new_frame_num >= 1000) {
line_array.shift();
lll_mc.removeMovieClip();
} else {
lll_mc.gotoAndStop(new_frame_num);
}
i++;
}
};
}
speed = 3;
line_cnt = 0;
lvl_line = 100;
line_array = new Array();
Frame 74
function getMeals() {
bubble1_mc.my_meal = (((getRandom(1, food1_array.length) + "") + getRandom(1, food2_array.length)) + "") + getRandom(1, food3_array.length);
bubble2_mc.my_meal = (((getRandom(1, food1_array.length) + "") + getRandom(1, food2_array.length)) + "") + getRandom(1, food3_array.length);
bubble3_mc.my_meal = (((getRandom(1, food1_array.length) + "") + getRandom(1, food2_array.length)) + "") + getRandom(1, food3_array.length);
bubble4_mc.my_meal = (((getRandom(1, food1_array.length) + "") + getRandom(1, food2_array.length)) + "") + getRandom(1, food3_array.length);
}
food1_array = new Array("Grilled Cheese", "Pizza Slice", "Wrap", "Bagel with Cream Cheese", "Mac 'N' Cheese", "Tofu");
food2_array = new Array("Cheddar Cheese", "Frozen Yogurt", "Ice Cream", "Potato with Cheese", "Ricotta Cheese", "Yogurt", "Yogurt Parfait");
food3_array = new Array("Milk", "Soy Drink", "Orange Juice");
Frame 75
function bubbleDemand(p_mc) {
group_num = p_mc.f_cnt + 1;
num_num = Number(p_mc.my_meal.charAt(p_mc.f_cnt));
demanded_array[p_mc.my_num] = new Array(group_num, num_num);
bustupArray(demanded_array);
rand = getRandom(0, upcoming_array.length - 1);
while (upcoming_array[rand][2] == true) {
rand = getRandom(0, upcoming_array.length - 1);
}
upcoming_array[rand][0] = group_num;
upcoming_array[rand][1] = num_num;
upcoming_array[rand][2] = true;
food_mc = eval (((p_mc._name + ".food") + group_num) + "_mc");
food_array = eval (("food" + (p_mc.f_cnt + 1)) + "_array");
food_mc.gotoAndStop(num_num);
food_mc._visible = true;
p_mc.requested_group = group_num;
p_mc.requested_num = num_num;
p_mc.back_mc.gotoAndStop(getRandom(1, p_mc.back_mc._totalframes));
p_mc._visible = true;
p_mc._alpha = 0;
p_mc._xscale = (p_mc._yscale = 40);
p_mc.alphaTo(100, 0.4, "easeOutQuad", 0);
p_mc.scaleTo(100, 0.4, "easeOutBack", 0);
p_mc.timer_tmr = setTimeout(p_mc.startTimer, timer_delay);
p_mc.my_hit_mc._y = p_mc.my_hit_mc.orig_y;
p_mc.my_char_mc.wave();
}
function startDemands() {
demand1_tmr = setTimeout(bubbleDemand, demand_delay, bubble_array[0]);
demand2_tmr = setTimeout(bubbleDemand, demand_delay + 5000, bubble_array[1]);
demand3_tmr = setTimeout(bubbleDemand, demand_delay + 10000, bubble_array[2]);
demand4_tmr = setTimeout(bubbleDemand, demand_delay + 15000, bubble_array[3]);
}
function startNewDemand(bubble_mc) {
bubble_mc.demand_tmr = setTimeout(bubbleDemand, getRandom(d_time_low, d_time_high), bubble_mc);
trace("startNewDemand: " + bubble_mc);
}
function scrambleBubbles() {
bubble_array.distinctShuffle();
}
bubble_array = new Array(bubble1_mc, bubble2_mc, bubble3_mc, bubble4_mc);
demanded_array = new Array();
demanded_array[0] = new Array(9, 9);
i = 1;
while (i < 5) {
b_mc = eval (("bubble" + i) + "_mc");
b_mc._visible = false;
b_mc.f_cnt = 0;
hit_mc = eval (("chars_mc.hit" + i) + "_mc");
b_mc.my_hit_mc = hit_mc;
c_mc = eval (("chars_mc.char" + i) + "_mc");
b_mc.my_char_mc = c_mc;
t_mc = eval (("chars_mc.tray" + i) + "_mc");
b_mc.my_tray_mc = t_mc;
b_mc.my_tray_mc.panic = false;
b_mc.my_num = i;
demanded_array[i] = new Array(0, 0);
i++;
}
demand_delay = new Number();
timer_delay = new Number();
rand = new Number();
Frame 76
function bustupArray(d_array) {
var _local5;
var _local1;
var _local3;
var _local4;
_local5 = 0;
while (_local5 < upcoming_array.length) {
_local3 = upcoming_array[_local5];
_local1 = 1;
while (_local1 <= d_array.length) {
_local4 = d_array[_local1];
if (food_compare(_local3, _local4) && (_local3[2] == false)) {
getPseudoRandomFood(d_array);
}
_local1++;
}
_local5++;
}
}
function getPseudoRandomFood(exclude_arr) {
var _local1;
var _local4;
var _local2 = false;
while (_local2 == false) {
_local4 = getRandomFood();
_local2 = true;
_local1 = 0;
while (_local1 < exclude_arr.length) {
if (food_compare(_local4, exclude_arr[_local1])) {
_local2 = false;
}
_local1++;
}
}
return(_local4);
}
function food_compare(food_a, food_b) {
if ((food_a[0] == food_b[0]) && (food_a[1] == food_b[1])) {
return(true);
}
return(false);
}
Frame 77
function checkItem() {
u_wrong = false;
bubble_mc.my_tray_mc.panic = false;
chars_mc.trayOut(bubble_mc.my_tray_mc);
bubble_mc.f_cnt++;
if ((bubble_mc.requested_group == in_hand_mc.my_group) && (bubble_mc.requested_num == in_hand_mc.my_num)) {
bubble_mc.thanks();
score++;
playSound(good_sound);
} else {
bubble_mc.wrong();
losePoint();
playSound(bad_sound);
u_wrong = true;
}
demanded_array[bubble_mc.my_num] = new Array(0, 0);
if (bubble_mc.f_cnt >= 3) {
trace(bubble_mc + ": has all food");
clearTimeout(bubble_mc.demand_tmr);
addAndCheckRoundTotal();
} else {
if (u_wrong == true) {
bubble_mc.demand_tmr = setTimeout(bubbleDemand, getRandom(d_time_low, 5000), bubble_mc);
} else {
bubble_mc.demand_tmr = setTimeout(bubbleDemand, getRandom(d_time_low, d_time_high), bubble_mc);
}
if (round_total_cnt == 3) {
trace("i'm last! :x");
clearTimeout(bubble_mc.demand_tmr);
bubble_mc.demand_tmr = setTimeout(bubbleDemand, 1500, bubble_mc);
}
}
}
function addAndCheckRoundTotal() {
round_total_cnt++;
if (round_total_cnt == 4) {
roundEnd("passed");
}
}
Frame 78
function losePoint() {
strikes++;
misses_mc.gotoAndPlay("m" + strikes);
if (strikes == 3) {
game_tmr = setTimeout(roundEnd, 600, "game_over");
}
}
function roundEnd(p_stat) {
regCursor();
i = 0;
while (i < upcoming_array.length) {
upcoming_array[i][2] = false;
i++;
}
bubble1_mc.closeMe();
bubble2_mc.closeMe();
bubble3_mc.closeMe();
bubble4_mc.closeMe();
clearTimeout(bubble1_mc.demand_tmr);
clearTimeout(bubble2_mc.demand_tmr);
clearTimeout(bubble3_mc.demand_tmr);
clearTimeout(bubble4_mc.demand_tmr);
clearTimeout(demand1_tmr);
clearTimeout(demand2_tmr);
clearTimeout(demand3_tmr);
clearTimeout(demand4_tmr);
clearTimeout(bubble1_mc.timer_tmr);
clearTimeout(bubble2_mc.timer_tmr);
clearTimeout(bubble3_mc.timer_tmr);
clearTimeout(bubble4_mc.timer_tmr);
bubble1_mc.f_cnt = 0;
bubble2_mc.f_cnt = 0;
bubble3_mc.f_cnt = 0;
bubble4_mc.f_cnt = 0;
clearInterval(spit_tmr);
i = 0;
while (i < item_array.length) {
item_mc = item_array[i];
item_mc.removeMovieClip();
i++;
}
chars_mc.hit1_mc._y = -2000;
chars_mc.hit2_mc._y = -2000;
chars_mc.hit3_mc._y = -2000;
chars_mc.hit4_mc._y = -2000;
i = 0;
while (i < served_array.length) {
item_mc = served_array[i];
item_mc.removeMovieClip();
i++;
}
switch (p_stat) {
case "game_over" :
trace("Game Over");
_GAME_OVER_ = true;
break;
case "passed" :
trace(("Round " + round_num) + " passed");
if (round_num == 5) {
trace("Game Won");
_GAME_OVER_ = true;
}
new_num = menu_path.updateNumUnlocked("cafe", round_num);
break;
default :
trace("end round switch broken: frame 78");
}
display_mc.displayReport();
}
Frame 79
function startRound() {
round_num++;
handCursor();
round_total_cnt = 0;
round_mc.gotoAndPlay("round" + round_num);
switch (round_num) {
case 1 :
speed = 3;
line_gap_time = 1400;
demand_delay = 4000;
timer_delay = 12000;
break;
case 2 :
speed = 3;
line_gap_time = 1400;
demand_delay = 3900;
timer_delay = 11800;
break;
case 3 :
speed = 4;
line_gap_time = 920;
demand_delay = 3800;
timer_delay = 11600;
d_time_low = 3000;
d_time_high = 5000;
break;
case 4 :
setMusicVolume(music1_sound, 0);
setMusicVolume(music2_sound, 40);
speed = 5;
line_gap_time = 910;
demand_delay = 3800;
timer_delay = 11600;
d_time_low = 2000;
d_time_high = 4000;
break;
case 5 :
speed = 5;
line_gap_time = 910;
demand_delay = 3800;
timer_delay = 11600;
d_time_low = 2000;
d_time_high = 4000;
}
round_total_cnt = 0;
bubble1_mc.f_cnt = 0;
bubble2_mc.f_cnt = 0;
bubble3_mc.f_cnt = 0;
bubble4_mc.f_cnt = 0;
scrambleBubbles();
getMeals();
go_time = true;
startDemands();
spit_tmr = setInterval(spitFood, line_gap_time);
if (first_time == true) {
spitLine();
first_time = false;
}
setLineSpeedAndGo();
}
first_time = true;
score = 0;
strikes = 0;
round_num = 0;
round_total_cnt = 0;
start_me = false;
go_time = false;
line_gap_time = 0;
d_time_low = 4000;
d_time_high = 6000;
Frame 80
function resetVars() {
_INIT_ = true;
_GAME_OVER_ = false;
_ROUND_OVER_ = false;
score = 0;
strikes = 0;
round_num = 0;
start_me = false;
go_time = false;
line_gap_time = 0;
round_total_cnt = 0;
bubble1_mc.f_cnt = 0;
bubble2_mc.f_cnt = 0;
bubble3_mc.f_cnt = 0;
bubble4_mc.f_cnt = 0;
group = 0;
place = 0;
in_hand_mc = null;
bubble_mc = null;
speed = 3;
line_gap_time = 1400;
demand_delay = 4000;
timer_delay = 12000;
misses_mc.gotoAndStop("reset");
round_mc.gotoAndStop("reset");
setMusicVolume(music2_sound, 0);
setMusicVolume(music1_sound, 40);
}
stop();
start_tmr = setTimeout(startRound, 10);
line_tmr = setInterval(spitLine, 1400);
Symbol 13 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 100
stop();
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 17
stop();
Symbol 22 MovieClip Frame 25
stop();
Symbol 22 MovieClip Frame 33
stop();
Symbol 22 MovieClip Frame 41
stop();
Symbol 22 MovieClip Frame 49
stop();
Symbol 22 MovieClip Frame 57
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 15
stop();
Symbol 29 MovieClip Frame 16
play();
Symbol 29 MovieClip Frame 24
stop();
Symbol 29 MovieClip Frame 25
play();
Symbol 29 MovieClip Frame 33
stop();
Symbol 29 MovieClip Frame 34
play();
Symbol 29 MovieClip Frame 42
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 1
if ((this._parent._parent._parent._GAME_OVER_ == true) && (this._parent._parent._parent.strikes == 3)) {
this.gotoAndStop(6);
} else {
this.gotoAndStop(this._parent._parent._parent.round_num);
}
Symbol 53 MovieClip Frame 1
this.gotoAndStop(this._parent._parent._parent._parent._parent.round_num + 1);
Symbol 54 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._parent.over == true) {
if (this.freeze != true) {
this.freeze = true;
}
} else if (this.freeze != false) {
this.freeze = false;
this.gotoAndPlay("loopAnim");
}
};
Symbol 58 MovieClip Frame 2
play();
Symbol 58 MovieClip Frame 14
if (this.freeze == true) {
stop();
} else {
this.gotoAndPlay("loopAnim");
}
Symbol 61 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 1
stop();
this.over = false;
if ((_parent._parent._parent.round_num >= 5) || (_parent._parent._parent._GAME_OVER_ == true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 1
if ((_parent._parent._parent._GAME_OVER_ == true) && (_parent._parent._parent.round_num != 5)) {
this._visible = false;
} else {
this._visible = true;
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
if ((_parent._parent._parent._GAME_OVER_ == true) && (_parent._parent._parent.round_num != 5)) {
this._visible = false;
} else {
this._visible = true;
round_mc.gotoAndStop(_parent._parent._parent.round_num);
}
Symbol 85 MovieClip Frame 1
if ((_parent._parent._parent._GAME_OVER_ == true) && (_parent._parent._parent.round_num != 5)) {
this._visible = false;
} else {
this._visible = true;
var thisText = this._parent._parent._parent.menu_path.getCode(this._parent._parent._parent.game_name, this._parent._parent._parent.round_num - 1);
code_txt.text = thisText;
trace((("Code: " + this._parent._parent._parent.game_name) + ": ") + (this._parent._parent._parent.round_num - 1));
}
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
play();
Symbol 95 MovieClip Frame 31
stop();
ease_dur = 0.3;
if ((_parent._parent._INIT_ == true) || (_parent._parent._INIT_ == undefined)) {
_parent._parent._INIT_ = false;
}
play_btn.onRollOver = function () {
this.over = true;
this.scaleTo(106, ease_dur, "easeOutQuad", 0);
_parent._parent.playSound(_parent._parent.rollover_sound);
};
play_btn.onRollOut = function () {
this.over = false;
this.scaleTo(100, ease_dur, "easeOutQuad", 0);
};
play_btn.onPress = function () {
if (_parent._parent._GAME_OVER_ == true) {
_parent._parent.resetVars();
_parent.hideReport();
} else {
_parent.hideReport();
}
};
Symbol 95 MovieClip Frame 32
play();
Symbol 95 MovieClip Frame 50
stop();
ease_dur = 0.3;
if ((_parent._parent._INIT_ == true) || (_parent._parent._INIT_ == undefined)) {
_parent._parent._INIT_ = false;
}
play_btn.onRollOver = function () {
this.over = true;
this.scaleTo(106, ease_dur, "easeOutQuad", 0);
_parent._parent.playSound(_parent._parent.rollover_sound);
};
play_btn.onRollOut = function () {
this.over = false;
this.scaleTo(100, ease_dur, "easeOutQuad", 0);
};
play_btn.onPress = function () {
if (_parent._parent._GAME_OVER_ == true) {
_parent._parent.resetVars();
_parent.hideReport();
} else {
_parent.hideReport();
}
};
Symbol 96 MovieClip Frame 1
function displayReport() {
gotoAndPlay ("animIn");
}
function hideReport() {
gotoAndPlay ("animOut");
}
stop();
Symbol 96 MovieClip Frame 2
play();
cover_mc.useHandCursor = false;
cover_mc.onPress = function () {
};
Symbol 96 MovieClip Frame 17
stop();
if ((_parent._GAME_OVER_ == true) && (_parent.strikes >= 3)) {
display_mc.gotoAndPlay("gameOver");
} else {
display_mc.gotoAndPlay(2);
}
Symbol 96 MovieClip Frame 18
play();
Symbol 96 MovieClip Frame 25
stop();
setTimeout(_parent.startRound, 1200);
delete cover_mc.onPress;
Symbol 149 MovieClip [food1_mc] Frame 1
tray_mc._visible = false;
if (this._x > 810) {
this.removeMovieClip();
}
Symbol 153 MovieClip [food2_mc] Frame 1
tray_mc._visible = false;
Symbol 157 MovieClip [food3_mc] Frame 1
tray_mc._visible = false;
Symbol 159 MovieClip [belt_line_mc] Frame 1000
stop();
Symbol 223 MovieClip Frame 49
function playOut() {
this.scaleTo(96, 0.3, "easeOutQuad", 0);
this.alphaTo(0, 0.3, "easeOutQuad", 0, doneOut);
play_mc.enabled = false;
}
function doneOut() {
_parent.gotoAndPlay("game_in");
}
stop();
instructions_btn.onRelease = function () {
gotoAndPlay ("instructions");
};
play_mc.onRollOver = function () {
play_mc.scaleTo(106, 0.4, "easeOutQuad", 0);
_parent.playSound(_parent.rollover_sound);
};
play_mc.onRollOut = function () {
play_mc.scaleTo(100, 0.4, "easeOutQuad", 0);
};
play_mc.onRelease = function () {
playOut();
};
Symbol 223 MovieClip Frame 80
stop();
Symbol 230 MovieClip Frame 1
frame_num = 4;
i = 1;
while (i < 10) {
line_mc = eval (("line" + i) + "_mc");
line_mc.gotoAndStop(frame_num);
frame_num = frame_num + 132;
line_mc.onEnterFrame = function () {
this.gotoAndStop((this._currentframe = this._currentframe + this._parent._parent._parent.speed));
if (this._currentframe >= this._totalframes) {
delete this.onEnterFrame;
this._visible = false;
}
};
i++;
}
Symbol 241 MovieClip Frame 1
function wave() {
gotoAndPlay (2);
}
stop();
Symbol 241 MovieClip Frame 10
function out() {
play();
}
stop();
out_tmr = setTimeout(out, 1000);
Symbol 241 MovieClip Frame 16
stop();
Symbol 251 MovieClip Frame 1
function wave() {
gotoAndPlay (2);
}
stop();
Symbol 251 MovieClip Frame 10
function out() {
play();
}
stop();
out_tmr = setTimeout(out, 1000);
Symbol 251 MovieClip Frame 16
stop();
Symbol 261 MovieClip Frame 1
function wave() {
gotoAndPlay (2);
}
stop();
Symbol 261 MovieClip Frame 10
function out() {
play();
}
stop();
out_tmr = setTimeout(out, 1000);
Symbol 261 MovieClip Frame 16
stop();
Symbol 272 MovieClip Frame 1
function wave() {
gotoAndPlay (2);
}
stop();
Symbol 272 MovieClip Frame 10
function out() {
play();
}
stop();
out_tmr = setTimeout(out, 1000);
Symbol 281 MovieClip Frame 1
function trayOver(p_tray_mc) {
if (_parent.in_hand_mc != null) {
p_tray_mc.colorTransformTo(100, -31, 100, -87, 100, 255, 100, 100, 0.3, "easeOutQuad", 0);
}
}
function trayOut(p_tray_mc) {
if (p_tray_mc.panic != true) {
p_tray_mc.colorTransformTo(100, 0, 100, 0, 100, 0, 100, 0, 0.3, "easeOutQuad", 0);
} else {
startPanic(p_tray_mc);
}
}
function startPanic(p_tray_mc) {
p_tray_mc.colorTransformTo(100, 255, 100, -108, 100, 61, 100, 100, 0.3, "easeOutQuad", 0);
p_tray_mc.panic = true;
}
function stopPanic(p_tray_mc) {
p_tray_mc.panic = false;
trayOut(p_tray_mc);
}
hit1_mc.orig_y = hit1_mc._y;
hit2_mc.orig_y = hit2_mc._y;
hit3_mc.orig_y = hit3_mc._y;
hit4_mc.orig_y = hit4_mc._y;
hit1_mc._y = -2000;
hit2_mc._y = -2000;
hit3_mc._y = -2000;
hit4_mc._y = -2000;
Symbol 296 MovieClip Frame 70
stop();
_parent._parent._parent._parent.playSound(_parent._parent._parent._parent.bad_sound);
_parent._parent._parent.wrong();
_parent._parent._parent.f_cnt++;
trace((_parent._parent._parent + ": ") + _parent._parent._parent.f_cnt);
if (_parent._parent._parent.f_cnt < 3) {
_parent._parent._parent._parent.startNewDemand(_parent._parent._parent);
} else {
_parent._parent._parent._parent.addAndCheckRoundTotal();
}
_parent._parent._parent._parent.losePoint();
Symbol 297 MovieClip Frame 20
stop();
Symbol 298 MovieClip Frame 1
count_mc.stop();
Symbol 299 MovieClip Frame 1
function init() {
timer_mc._alpha = 0;
timer_mc._xscale = (timer_mc._yscale = 50);
timer_mc._visible = false;
thanks_mc._visible = false;
wrong_mc._visible = false;
food1_mc.stop();
food1_mc._visible = false;
food2_mc.stop();
food2_mc._visible = false;
food3_mc.stop();
food3_mc._visible = false;
}
function thanks() {
food1_mc._visible = false;
food2_mc._visible = false;
food3_mc._visible = false;
clearTimeout(timer_tmr);
stopTimer();
thanks_mc._visible = true;
thanks_mc._alpha = 0;
thanks_mc._xscale = (thanks_mc._yscale = 20);
thanks_mc.alphaTo(100, 0.3, "linear", 0);
thanks_mc.scaleTo(100, 0.3, "easeOutBack", 0);
this_ref.my_hit_mc._y = -2000;
close_tmr = setTimeout(closeMe, 800);
}
function wrong() {
food1_mc._visible = false;
food2_mc._visible = false;
food3_mc._visible = false;
clearTimeout(timer_tmr);
stopTimer();
wrong_mc._visible = true;
wrong_mc._alpha = 0;
wrong_mc._xscale = (wrong_mc._yscale = 20);
wrong_mc.alphaTo(100, 0.3, "linear", 0);
wrong_mc.scaleTo(100, 0.3, "easeOutBack", 0);
this_ref.my_hit_mc._y = -2000;
close_tmr = setTimeout(closeMe, 800);
}
function closeMe() {
clearTimeout(timer_tmr);
stopTimer();
this_ref.scaleTo(40, 0.3, "easeInBack", 0);
this_ref.alphaTo(0, 0.3, "easeOutQuad", 0, doneClosing);
my_tray_mc.panic = false;
_parent.chars_mc.trayOut(my_tray_mc);
}
function doneClosing() {
this._visible = false;
init();
}
function startTimer() {
timer_mc._visible = true;
timer_mc.color_mc._visible = true;
timer_mc.scaleTo(100, 0.2, "easeOutQuad", 0);
timer_mc.alphaTo(100, 0.2, "easeOutQuad", 0, doneIn);
timer_mc.count_mc.gotoAndStop(1);
_parent.chars_mc.startPanic(my_tray_mc);
}
function doneIn() {
timer_mc.count_mc.gotoAndPlay(2);
}
function stopTimer() {
clearTimeout(timer_tmr);
timer_mc.color_mc._visible = false;
timer_mc.count_mc.stop();
timer_mc.count_mc.timer_mask_mc.gotoAndStop(1);
timer_mc.alphaTo(0, 0.2, "easeOutQuad", 0, doneOut);
timer_mc.scaleTo(50, 0.2, "easeOutQuad", 0);
}
function doneOut() {
timer_mc._visible = false;
}
this_ref = this;
init();