Frame 7
var percents = 0;
Frame 8
if (getBytesLoaded() == getBytesTotal()) {
percents = percents + 4;
if (percents > 100) {
percents = 100;
}
} else {
percents = Math.floor((getBytesLoaded() / getBytesTotal()) * 100);
}
txt_load.text = percents + "% loaded";
Frame 9
if (percents < 100) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay ("start");
}
Frame 22
stop();
Frame 24
gotoAndStop(_currentframe - 1);
Frame 66
gotoAndPlay ("game");
Frame 71
function LockScroll() {
scrollSliderX = null;
ScrollLocked = true;
}
function UnLockScroll() {
ScrollLocked = false;
}
function SetScrollTarget(in_x, in_ticks, in_autoUnlock) {
if ((in_autoUnlock == null) || (in_autoUnlock == undefined)) {
in_autoUnlock = false;
}
isAutoUnlock = in_autoUnlock;
LockScroll();
scrollSliderX = new SliderEase(mc_whole._x, in_x, in_ticks);
}
function Handler_Scroll() {
if (!EOG) {
if (!ScrollLocked) {
if (_root._control_right.hitTest(_root._xmouse, _root._ymouse, false)) {
if ((mc_whole._x + ScreenMaxX) > ScreenX) {
mc_whole._x = mc_whole._x - ((_control_right._width - _control_right._xmouse) / 10);
}
}
if (_root._control_left.hitTest(_root._xmouse, _root._ymouse, false)) {
if (mc_whole._x < 0) {
mc_whole._x = mc_whole._x + ((_control_left._width - _control_left._xmouse) / 10);
}
}
if ((mc_whole._x + ScreenMaxX) < ScreenX) {
mc_whole._x = ScreenX - ScreenMaxX;
}
if (mc_whole._x > 0) {
mc_whole._x = 0;
}
} else if (scrollSliderX != null) {
mc_whole._x = scrollSliderX.GetNextValue();
if (scrollSliderX.COMPLETE && (isAutoUnlock)) {
UnLockScroll();
}
}
}
}
var ScreenX = 750;
var ScreenY = 450;
var ScreenMaxX = 1000;
var StepX = 0.5;
var EOG = false;
var isAutoUnlock = true;
var ScrollLocked = false;
var scrollSliderX = null;
onEnterFrame = function () {
Handler_Scroll();
};
onMouseDown = function () {
};
Frame 72
mc_whole._x = -250;
SetScrollTarget(0, 90, true);
Frame 89
stop();
Frame 91
gotoAndStop(_currentframe - 1);
Frame 119
_root.Destroy();
Frame 137
gotoAndPlay(_root.EndScene);
Frame 160
stop();
Frame 162
gotoAndStop(_currentframe - 1);
Frame 191
stop();
Frame 193
gotoAndStop(_currentframe - 1);
Frame 223
stop();
Frame 225
gotoAndStop(_currentframe - 1);
Symbol 12 MovieClip Frame 1
btn_gf.onRelease = function () {
getURL ((("http://gentleflash.net/portfolio.php?id=" + _root.AppName) + "&type=") + _root.AppType, "_blank");
};
Symbol 20 MovieClip Frame 1
btn_g2g.onRelease = function () {
getURL ("http://games2girls.com", "_blank");
};
Symbol 290 MovieClip [__Packages.CountdownTimer] Frame 0
class CountdownTimer
{
var mc_Renderer, i_milisec, i_tm, obj_Add;
function CountdownTimer (in_mc_Renderer, in_Miliseconds) {
in_Miliseconds = ((in_Miliseconds == null) ? 0 : (in_Miliseconds));
if (in_mc_Renderer != null) {
mc_Renderer = in_mc_Renderer;
}
DefineAdder(null, null, null);
Reset(in_Miliseconds);
}
function Destroy() {
DefineAdder(null, null, null);
Reset(null);
onReset = null;
onFinish = null;
onStart = null;
onStop = null;
onPause = null;
isWork = false;
}
function Reset(in_ms) {
in_ms = ((in_ms == null) ? 0 : (in_ms));
StopTimer();
i_milisec = in_ms;
if (i_milisec > 0) {
Start();
}
if (onReset != null) {
onReset();
}
}
function Start() {
StopTimer();
i_tm = setInterval(OnInterval, i_delay, this);
isWork = true;
if (onStart != null) {
onStart();
}
}
function Stop() {
StopTimer();
}
function StopTimer() {
clearInterval(i_tm);
isWork = false;
if (onStop != null) {
onStop();
}
}
function Pause() {
if (isWork) {
StopTimer();
} else {
Start();
}
if (onPause != null) {
onPause();
}
}
function getTime() {
return(i_milisec);
}
function AddMiliseconds(in_ms, in_delay, in_sub_ms, inThis) {
in_ms = ((in_ms == null) ? 0 : (in_ms));
in_delay = ((in_delay == null) ? 0 : (in_delay));
in_sub_ms = ((in_sub_ms == null) ? 10 : (in_sub_ms));
if (inThis == null) {
if (in_delay > 0) {
DefineAdder(in_ms, in_delay, in_sub_ms);
} else {
i_milisec = i_milisec + in_ms;
if (i_milisec <= 0) {
StopTimer();
if (onFinish != null) {
onFinish();
}
}
ComputeAdder(in_ms);
OnTimeCompute();
}
} else if (in_delay > 0) {
inThis.DefineAdder(in_ms, in_delay, in_sub_ms);
} else {
inThis.i_milisec = inThis.i_milisec + in_ms;
if (inThis.i_milisec <= 0) {
inThis.StopTimer();
if (inThis.onFinish != null) {
inThis.onFinish();
}
}
inThis.ComputeAdder(in_ms);
inThis.OnTimeCompute();
}
}
function DefineAdder(in_ms, in_delay, in_sub_ms) {
in_ms = ((in_ms == null) ? 0 : (in_ms));
in_delay = ((in_delay == null) ? 10 : (in_delay));
in_sub_ms = ((in_sub_ms == null) ? 10 : (in_sub_ms));
if (obj_Add != null) {
clearInterval(obj_Add.tm);
}
obj_Add = new Object();
obj_Add.tm = -1;
obj_Add.timeToAdd = 0;
obj_Add.multiplier = 1;
if (in_ms != 0) {
obj_Add.timeToAdd = Math.abs(in_ms);
obj_Add.multiplier = in_ms / obj_Add.timeToAdd;
obj_Add.tm = setInterval(AddMiliseconds, in_delay, in_sub_ms * obj_Add.multiplier, null, null, this);
}
}
function ComputeAdder(in_ms) {
in_ms = ((in_ms == null) ? 0 : (in_ms));
obj_Add.timeToAdd = obj_Add.timeToAdd - Math.abs(in_ms);
if (obj_Add.timeToAdd <= 0) {
clearInterval(obj_Add.tm);
}
}
function OnTimeCompute() {
var _local3 = int(i_milisec / 10);
var _local2 = int(_local3 / 100);
var _local4 = int(_local2 / 60);
_local2 = _local2 - (_local4 * 60);
_local3 = _local3 - ((_local4 * 6000) + (_local2 * 100));
if (mc_Renderer != null) {
mc_Renderer.SET_TIME(_local4, _local2, _local3);
}
}
function OnInterval(i_this) {
i_this.AddMiliseconds(-i_this.i_delay, null, null, i_this);
}
var onReset = null;
var onFinish = null;
var onStart = null;
var onStop = null;
var onPause = null;
var isWork = false;
var i_delay = 250;
}
Symbol 291 MovieClip [__Packages.Score] Frame 0
class Score
{
var i_score, mc_Renderer, obj_Add;
function Score (in_mc_Renderer, in_Score) {
in_Score = ((in_Score == null) ? 0 : (in_Score));
i_score = in_Score;
if (in_mc_Renderer != null) {
mc_Renderer = in_mc_Renderer;
}
DefineAdder(null, null, null);
}
function Destroy() {
DefineAdder(null, null, null);
onFinish = null;
}
function getScore() {
return(i_score);
}
function AddScore_Handler(in_score, in_delay, in_sub_score, iThis) {
iThis.AddScore(in_score, in_delay, in_sub_score);
}
function AddScore(in_score, in_delay, in_sub_score) {
in_score = ((in_score == null) ? 0 : (in_score));
in_delay = ((in_delay == null) ? 0 : (in_delay));
in_sub_score = ((in_sub_score == null) ? 10 : (in_sub_score));
if (in_delay > 0) {
DefineAdder(in_score, in_delay, in_sub_score);
} else {
i_score = i_score + in_score;
ComputeAdder(in_score);
OnTimeCompute();
}
}
function DefineAdder(in_score, in_delay, in_sub_score) {
in_score = ((in_score == null) ? 0 : (in_score));
in_delay = ((in_delay == null) ? 10 : (in_delay));
in_sub_score = ((in_sub_score == null) ? 10 : (in_sub_score));
var _local5 = 0;
if (obj_Add != null) {
clearInterval(obj_Add.tm);
_local5 = obj_Add.scoreToAdd;
}
obj_Add = new Object();
obj_Add.tm = -1;
obj_Add.scoreToAdd = _local5;
obj_Add.multiplier = 1;
if (in_score != 0) {
obj_Add.scoreToAdd = obj_Add.scoreToAdd + in_score;
obj_Add.multiplier = Math.abs(obj_Add.scoreToAdd) / obj_Add.scoreToAdd;
obj_Add.tm = setInterval(AddScore_Handler, in_delay, in_sub_score * obj_Add.multiplier, null, null, this);
}
}
function ComputeAdder(in_score) {
in_score = ((in_score == null) ? 0 : (in_score));
obj_Add.scoreToAdd = obj_Add.scoreToAdd - in_score;
if ((obj_Add.scoreToAdd * obj_Add.multiplier) <= 0) {
clearInterval(obj_Add.tm);
onFinish();
}
}
function OnTimeCompute() {
if (mc_Renderer != null) {
mc_Renderer.SET_SCORE(i_score);
}
}
var onFinish = null;
var i_delay = 250;
}
Symbol 292 MovieClip [__Packages.SliderEase] Frame 0
class SliderEase
{
var COMPLETE, TICKS, DELAY, POS;
function SliderEase (i_start, i_end, f_Ticks, f_Delay, i_method) {
if ((f_Ticks == undefined) || (f_Ticks == null)) {
f_Ticks = 100;
}
if ((f_Delay == undefined) || (f_Delay == null)) {
f_Delay = 0;
}
if ((i_method == undefined) || (i_method == null)) {
i_method = 3;
}
COMPLETE = false;
TICKS = int(f_Ticks);
DELAY = int(f_Delay);
POS = new Object();
POS.a = i_start;
POS.b = i_end;
POS.c = POS.s;
POS.d = POS.b - POS.a;
POS.p = 0;
POS.u = 0;
POS.m = 100 / TICKS;
POS.n = 0;
POS.t = i_method;
}
function GetNextValue() {
if ((++POS.u) > DELAY) {
POS.p = POS.p + (0.01 * POS.m);
POS.p = ((POS.p > 1) ? 1 : (POS.p));
if (POS.p == 1) {
COMPLETE = true;
}
if (POS.t == METHOD.LINEAR) {
POS.n = POS.p;
} else if (POS.t == METHOD.EASE_IN) {
POS.n = Math.pow(POS.p, ITERATOR);
} else if (POS.t == METHOD.EASE_OUT) {
POS.n = 1 - Math.pow(1 - POS.p, ITERATOR);
} else if (POS.t == METHOD.EASE_IN_OUT) {
if (POS.p < 0.5) {
POS.n = 0.5 * Math.pow(2 * POS.p, ITERATOR);
} else {
POS.n = 0.5 + (0.5 * (1 - Math.pow(2 * (1 - POS.p), ITERATOR)));
}
}
}
POS.c = POS.a + (POS.d * POS.n);
POS.c = Math.round(POS.c * 1000000000000) / 1000000000000;
return(Number(POS.c));
}
static var METHOD = {LINEAR:0, EASE_IN:1, EASE_OUT:2, EASE_IN_OUT:3};
var ITERATOR = 1.5;
}
Symbol 293 MovieClip [__Packages.SliderFluent] Frame 0
class SliderFluent
{
static var int_TOTAL;
var b_INIT_OK, f_SPEED_NOW, f_SPEED_MAX, f_ACCEL, f_VAL_MIN, f_VAL_MAX, f_VAL_NOW, f_VAL_NEW, f_VAL_OLD, int_MULT, b_AUTOUPDATE, str_ID, b_REGENERATE;
function SliderFluent (inc_min, inc_max, inc_val, inc_speedMax, inc_accel, inc_b_autoupdate) {
INIT();
if ((((((inc_min != undefined) && (inc_max != undefined)) && (inc_val != undefined)) && (inc_speedMax != undefined)) && (inc_accel != undefined)) && (inc_b_autoupdate != undefined)) {
b_INIT_OK = true;
f_SPEED_NOW = 0;
f_SPEED_MAX = inc_speedMax;
f_ACCEL = inc_accel;
f_VAL_MIN = inc_min;
f_VAL_MAX = inc_max;
f_VAL_NOW = inc_val;
f_VAL_NEW = undefined;
f_VAL_OLD = inc_val;
int_MULT = 1;
b_AUTOUPDATE = inc_b_autoupdate;
COMPUTE();
} else {
b_INIT_OK = false;
}
}
function INIT() {
if (int_TOTAL == undefined) {
int_TOTAL = 1;
} else {
int_TOTAL++;
}
str_ID = "";
if (int_TOTAL < 100) {
str_ID = str_ID + "0";
}
if (int_TOTAL < 10) {
str_ID = str_ID + "0";
}
str_ID = str_ID + int_TOTAL;
}
function COMPUTE() {
b_REGENERATE = false;
if (f_VAL_NEW == undefined) {
b_REGENERATE = true;
} else if (((f_VAL_NOW >= f_VAL_NEW) && (f_VAL_OLD <= f_VAL_NEW)) || ((f_VAL_NOW <= f_VAL_NEW) && (f_VAL_OLD >= f_VAL_NEW))) {
b_REGENERATE = true;
}
f_VAL_OLD = f_VAL_NOW;
if (b_REGENERATE) {
f_VAL_NEW = f_VAL_MIN + (random(1000 * (f_VAL_MAX - f_VAL_MIN)) / 1000);
if ((int_MULT * f_VAL_OLD) > (int_MULT * f_VAL_NEW)) {
int_MULT = int_MULT * -1;
}
} else {
f_SPEED_NOW = f_SPEED_NOW + (int_MULT * f_ACCEL);
if (Math.abs(f_SPEED_NOW) > f_SPEED_MAX) {
f_SPEED_NOW = (f_SPEED_MAX * Math.abs(f_SPEED_NOW)) / f_SPEED_NOW;
}
f_VAL_NOW = f_VAL_NOW + f_SPEED_NOW;
}
}
function GET_VALUE() {
if (b_AUTOUPDATE) {
COMPUTE();
return(f_VAL_OLD);
}
return(f_VAL_NOW);
}
}
Symbol 23 Button
on (release) {
getURL ("http://games2girls.com", "_blank");
}
Symbol 27 Button
on (release) {
_parent.gotoAndPlay(_parent._currentframe + 4);
}
Symbol 29 MovieClip Frame 1
function SHOW() {
this.onEnterFrame = function () {
_visible = true;
if (this._alpha < 100) {
_alpha = (_alpha + 5);
} else {
this.onEnterFrame = null;
}
};
}
function HIDE() {
this.onEnterFrame = function () {
if (this._alpha > 0) {
_alpha = (_alpha - 10);
} else {
_visible = false;
this.onEnterFrame = null;
}
};
}
_alpha = 0;
SHOW();
Symbol 38 MovieClip Frame 1
function Lock() {
enabled = false;
}
function UnLock() {
enabled = true;
}
var stX = -57;
var stY = 190;
var stS = 100;
var endX = 1025;
var endY = 182;
var endS = 46;
var ticks = 5000;
var iterator = 1.2;
var isFirstTime = true;
var generateAgain = true;
var sliderX;
var sliderY;
var sliderS;
_root.AddToCollection(this);
onRelease = function () {
_root.mc_Sounds.PLAY_SOUND("bell");
};
onEnterFrame = function () {
if (generateAgain) {
generateAgain = false;
sliderX = new SliderEase(stX, endX, ticks, null, SliderEase.METHOD.EASE_OUT);
sliderX.ITERATOR = iterator;
sliderY = new SliderEase(stY, endY, ticks, null, SliderEase.METHOD.EASE_OUT);
sliderY.ITERATOR = iterator;
sliderS = new SliderEase(stS, endS, ticks, null, SliderEase.METHOD.EASE_OUT);
sliderS.ITERATOR = iterator;
}
if (isFirstTime) {
isFirstTime = false;
i = 0;
while (i < 1024) {
sliderX.GetNextValue();
sliderY.GetNextValue();
sliderS.GetNextValue();
i++;
}
}
generateAgain = sliderX.COMPLETE;
_x = sliderX.GetNextValue();
_y = sliderY.GetNextValue();
_xscale = sliderS.GetNextValue();
_yscale = _xscale;
};
Symbol 53 MovieClip Frame 1
mc_main.gotoAndPlay(int(22 * Math.random()));
var rnd = (0.25 + (0.25 * Math.random()));
_xscale = (100 * rnd);
_yscale = _xscale;
_xscale = (_xscale * (((0.5 - Math.random()) > 0) ? 1 : -1));
var stX = 0;
var stY = 0;
var stR = 0;
var sld_x = new SliderFluent(100, 900, _x, 1 * rnd, 0.09 * rnd, true);
var sld_y = new SliderFluent(20, 160, _y, 1 * rnd, 0.09 * rnd, true);
var sld_r = new SliderFluent(-10, 10, _rotation, 0.5 * rnd, 0.02 * rnd, true);
onEnterFrame = function () {
_x = (stX + sld_x.GET_VALUE());
_y = (stY + sld_y.GET_VALUE());
_rotation = (stR + sld_r.GET_VALUE());
};
Symbol 57 MovieClip Frame 1
function STOP_SOUND() {
snd_this.stop();
}
var snd_this = new Sound(this);
Symbol 60 MovieClip Frame 1
function STOP_SOUND() {
snd_this.stop();
}
var snd_this = new Sound(this);
Symbol 93 MovieClip Frame 1
_alpha = 0;
Symbol 112 MovieClip Frame 1
function Init() {
var _local1;
var _local2;
startPOSes = {};
startPOSes.kiwies = [];
startPOSes.cherries = [];
startPOSes.strawberries = [];
_local1 = -1;
_local2 = kiwies.length;
while (_local1++ , _local1 < _local2) {
startPOSes.kiwies[_local1] = {x:kiwies[_local1]._x, y:kiwies[_local1]._y};
}
_local1 = -1;
_local2 = cherries.length;
while (_local1++ , _local1 < _local2) {
startPOSes.cherries[_local1] = {x:cherries[_local1]._x, y:cherries[_local1]._y};
}
_local1 = -1;
_local2 = strawberries.length;
while (_local1++ , _local1 < _local2) {
startPOSes.strawberries[_local1] = {x:strawberries[_local1]._x, y:strawberries[_local1]._y};
}
Reset();
}
function Reset() {
var _local1;
var _local2;
mc_mask_strawberry._yscale = 0;
mc_mask_chocolate._yscale = 0;
mc_mask_apricot._yscale = 0;
if (_name != "mc_icecreame_big") {
mc_top._yscale = 75;
mc_bottom._yscale = mc_top._yscale;
}
_local1 = -1;
_local2 = kiwies.length;
while (_local1++ , _local1 < _local2) {
kiwies[_local1].Reset();
kiwies[_local1]._x = startPOSes.kiwies[_local1].x;
kiwies[_local1]._y = startPOSes.kiwies[_local1].y;
}
_local1 = -1;
_local2 = cherries.length;
while (_local1++ , _local1 < _local2) {
cherries[_local1].Reset();
cherries[_local1]._x = startPOSes.cherries[_local1].x;
cherries[_local1]._y = startPOSes.cherries[_local1].y;
}
_local1 = -1;
_local2 = strawberries.length;
while (_local1++ , _local1 < _local2) {
strawberries[_local1].Reset();
strawberries[_local1]._x = startPOSes.strawberries[_local1].x;
strawberries[_local1]._y = startPOSes.strawberries[_local1].y;
}
HideFruits();
}
function HideFruits(in_type, in_UnTouched) {
var _local1;
var _local2;
if ((in_type == undefined) || (in_type == null)) {
in_type = "none";
}
CurrentType = in_type;
_local1 = -1;
_local2 = kiwies.length;
while (_local1++ , _local1 < _local2) {
kiwies[_local1]._visible = true;
}
_local1 = -1;
_local2 = cherries.length;
while (_local1++ , _local1 < _local2) {
cherries[_local1]._visible = true;
}
_local1 = -1;
_local2 = strawberries.length;
while (_local1++ , _local1 < _local2) {
strawberries[_local1]._visible = true;
}
if (in_type != "kiwi") {
_local1 = -1;
_local2 = kiwies.length;
while (_local1++ , _local1 < _local2) {
kiwies[_local1]._visible = false;
}
}
if (in_type != "cherry") {
_local1 = -1;
_local2 = cherries.length;
while (_local1++ , _local1 < _local2) {
cherries[_local1]._visible = false;
}
}
if (in_type != "strawberry") {
_local1 = -1;
_local2 = strawberries.length;
while (_local1++ , _local1 < _local2) {
strawberries[_local1]._visible = false;
}
}
if (in_UnTouched) {
var _local4 = SearchDifferentPositions(kiwies, startPOSes.kiwies);
var _local3 = SearchDifferentPositions(cherries, startPOSes.cherries);
var _local5 = SearchDifferentPositions(strawberries, startPOSes.strawberries);
_local1 = -1;
_local2 = _local4.length;
while (_local1++ , _local1 < _local2) {
kiwies[_local4[_local1].index]._visible = true;
}
_local1 = -1;
_local2 = _local3.length;
while (_local1++ , _local1 < _local2) {
cherries[_local3[_local1].index]._visible = true;
}
_local1 = -1;
_local2 = _local5.length;
while (_local1++ , _local1 < _local2) {
strawberries[_local5[_local1].index]._visible = true;
}
}
}
function CreateRandomed() {
var _local7;
var _local4;
var _local11;
var _local2;
var _local3;
var _local10;
_local4 = jamTypes[int(Math.random() * (jamTypes.length - 1))];
_local7 = (70 * Math.random()) + 30;
_local10 = [0, _local7, 0, _local7, 0, _local7, 0, _local7, 0, _local7, 0];
_local7 = _local10[int(Math.random() * (_local10.length - 1))];
SetJamvalue(_local4, _local7);
var _local6 = [];
var _local5 = [];
var _local9 = -1;
var _local8 = int((2 * POSes.length) * Math.random());
while (_local9++ , _local9 < _local8) {
_local3 = MakeRandomChooseAndCheck(POSes, _local6);
_local6.push(_local3);
if (_local3 != null) {
_local4 = fruitTypes[int(Math.random() * (fruitTypes.length - 1))];
if (_local4 == "strawberry") {
_local2 = MakeRandomChooseAndCheck(strawberries, _local5);
}
if (_local4 == "cherry") {
_local2 = MakeRandomChooseAndCheck(cherries, _local5);
}
if (_local4 == "kiwi") {
_local2 = MakeRandomChooseAndCheck(kiwies, _local5);
}
if (_local2 != null) {
_local5.push(_local2);
_local2._x = _local3.x;
_local2._y = _local3.y;
_local2._visible = true;
}
}
}
}
function MakeRandomChooseAndCheck(in_arrSOURCE, in_arrFILLED) {
var _local2 = null;
var _local5 = 0;
var _local3 = -1;
var _local6 = in_arrSOURCE.length;
while (_local3++ , _local3 < _local6) {
if (FindInArray(in_arrSOURCE[_local3], in_arrFILLED) > -1) {
_local5++;
}
}
if (_local5 >= in_arrSOURCE.length) {
} else {
_local2 = in_arrSOURCE[((int(Math.random() * in_arrSOURCE.length) == in_arrSOURCE.length) ? (in_arrSOURCE.length - 1) : (int(Math.random() * in_arrSOURCE.length)))];
if (FindInArray(_local2, in_arrFILLED) > -1) {
while (FindInArray(_local2, in_arrFILLED) > -1) {
_local2 = in_arrSOURCE[((int(Math.random() * in_arrSOURCE.length) == in_arrSOURCE.length) ? (in_arrSOURCE.length - 1) : (int(Math.random() * in_arrSOURCE.length)))];
}
}
}
return(_local2);
}
function FindInArray(in_item, in_arr) {
var _local1 = -1;
var _local2 = in_arr.length;
while (_local1++ , _local1 < _local2) {
if (in_item == in_arr[_local1]) {
return(_local1);
}
}
return(-1);
}
function SetJamvalue(in_Type, in_value) {
if (in_Type == "strawberry") {
mc_mask_strawberry._yscale = in_value;
mc_mask_chocolate._yscale = 0;
mc_mask_apricot._yscale = 0;
}
if (in_Type == "chocolate") {
mc_mask_strawberry._yscale = 0;
mc_mask_chocolate._yscale = in_value;
mc_mask_apricot._yscale = 0;
}
if (in_Type == "apricot") {
mc_mask_strawberry._yscale = 0;
mc_mask_chocolate._yscale = 0;
mc_mask_apricot._yscale = in_value;
}
}
function GetData() {
var _local2;
var _local3;
DATA = new Object();
DATA.maskValue_strawberry = mc_mask_strawberry._yscale;
DATA.maskValue_chocolate = mc_mask_chocolate._yscale;
DATA.maskValue_apricot = mc_mask_apricot._yscale;
DATA.maskType = "none";
DATA.maskValue = 0;
if (DATA.maskValue_strawberry > 0) {
DATA.maskType = "strawberry";
DATA.maskValue = DATA.maskValue_strawberry;
} else if (DATA.maskValue_chocolate > 0) {
DATA.maskType = "chocolate";
DATA.maskValue = DATA.maskValue_chocolate;
} else if (DATA.maskValue_apricot > 0) {
DATA.maskType = "apricot";
DATA.maskValue = DATA.maskValue_apricot;
}
DATA.kiwies = SearchDifferentPositions(kiwies, startPOSes.kiwies);
DATA.cherries = SearchDifferentPositions(cherries, startPOSes.cherries);
DATA.strawberries = SearchDifferentPositions(strawberries, startPOSes.strawberries);
DATA.Poses = [];
_local2 = -1;
_local3 = DATA.kiwies.length;
while (_local2++ , _local2 < _local3) {
DATA.Poses.push(DATA.kiwies[_local2]);
}
_local2 = -1;
_local3 = DATA.cherries.length;
while (_local2++ , _local2 < _local3) {
DATA.Poses.push(DATA.cherries[_local2]);
}
_local2 = -1;
_local3 = DATA.strawberries.length;
while (_local2++ , _local2 < _local3) {
DATA.Poses.push(DATA.strawberries[_local2]);
}
DATA.totalFruits = DATA.Poses.length;
return(DATA);
}
function SetData(in_DATA) {
var _local2;
var _local4;
mc_mask_strawberry._yscale = in_DATA.maskValue_strawberry;
mc_mask_chocolate._yscale = in_DATA.maskValue_chocolate;
mc_mask_apricot._yscale = in_DATA.maskValue_apricot;
_local2 = -1;
_local4 = in_DATA.kiwies.length;
while (_local2++ , _local2 < _local4) {
kiwies[in_DATA.kiwies[_local2].index]._x = in_DATA.kiwies[_local2].x;
kiwies[in_DATA.kiwies[_local2].index]._y = in_DATA.kiwies[_local2].y;
kiwies[in_DATA.kiwies[_local2].index]._visible = true;
}
_local2 = -1;
_local4 = in_DATA.cherries.length;
while (_local2++ , _local2 < _local4) {
cherries[in_DATA.cherries[_local2].index]._x = in_DATA.cherries[_local2].x;
cherries[in_DATA.cherries[_local2].index]._y = in_DATA.cherries[_local2].y;
cherries[in_DATA.cherries[_local2].index]._visible = true;
}
_local2 = -1;
_local4 = in_DATA.strawberries.length;
while (_local2++ , _local2 < _local4) {
strawberries[in_DATA.strawberries[_local2].index]._x = in_DATA.strawberries[_local2].x;
strawberries[in_DATA.strawberries[_local2].index]._y = in_DATA.strawberries[_local2].y;
strawberries[in_DATA.strawberries[_local2].index]._visible = true;
}
}
function EqualDatas(data_1, data_2) {
var _local13 = 0;
var _local14 = 0;
var _local9 = 0;
var _local10 = 0;
var _local11 = 0;
var _local12 = 0;
var _local16 = [];
var _local5 = 0;
var _local15 = 0;
if ((data_1.maskType == "none") && (data_2.maskType == "none")) {
_local13 = 1;
} else {
_local13 = Math.min(data_1.maskValue, data_2.maskValue) / Math.max(data_1.maskValue, data_2.maskValue);
if (data_1.maskType != data_2.maskType) {
_local13 = _local13 * 0.5;
}
}
if ((v.totalFruits == data_2.totalFruits) && (data_1.totalFruits == 0)) {
_local14 = 1;
_local5 = 1;
} else {
_local9 = 2 * (((0.5 * (data_1.totalFruits + data_2.totalFruits)) / Math.max(data_1.totalFruits, data_2.totalFruits)) - 0.5);
_local9 = (isNaN(_local9) ? 1 : (_local9));
_local10 = 2 * (((0.5 * (data_1.kiwies.length + data_2.kiwies.length)) / Math.max(data_1.kiwies.length, data_2.kiwies.length)) - 0.5);
_local10 = (isNaN(_local10) ? 1 : (_local10));
_local11 = 2 * (((0.5 * (data_1.cherries.length + data_2.cherries.length)) / Math.max(data_1.cherries.length, data_2.cherries.length)) - 0.5);
_local11 = (isNaN(_local11) ? 1 : (_local11));
_local12 = 2 * (((0.5 * (data_1.strawberries.length + data_2.strawberries.length)) / Math.max(data_1.strawberries.length, data_2.strawberries.length)) - 0.5);
_local12 = (isNaN(_local12) ? 1 : (_local12));
_local14 = (((_local9 + _local10) + _local11) + _local12) / 4;
var _local7 = AllocatePairs(data_1.Poses, data_2.Poses);
var _local8 = 200;
var _local2 = -1;
var _local6 = _local7.length;
while (_local2++ , _local2 < _local6) {
var _local1 = 1 - (_local7[_local2].D / _local8);
_local1 = ((_local1 > 1) ? 1 : (_local1));
_local1 = ((_local1 < 0) ? 0 : (_local1));
_local5 = _local5 + _local1;
}
_local5 = _local5 / _local6;
_local5 = (isNaN(_local5) ? 1 : (_local5));
}
_local15 = ((_local13 + _local14) + _local5) / 3;
return(_local15);
}
function SearchDifferentPositions(in_arr, in_posArr) {
var _local7 = [];
var _local1 = -1;
var _local8 = in_arr.length;
while (_local1++ , _local1 < _local8) {
if (mc_hitter.hitTest(in_arr[_local1]) && ((in_arr[_local1]._x != in_posArr[_local1].x) || (in_arr[_local1]._y != in_posArr[_local1].y))) {
_local7.push({x:in_arr[_local1]._x, y:in_arr[_local1]._y, index:_local1});
}
}
return(_local7);
}
function GetDistance(inP0, inP1) {
return(Math.sqrt(((inP1.x - inP0.x) * (inP1.x - inP0.x)) + ((inP1.y - inP0.y) * (inP1.y - inP0.y))));
}
function AllocatePairs(inPoints0, inPoints1) {
var _local2;
var _local1;
var _local19;
var _local14;
var _local11;
var _local3;
var _local20;
var _local7;
var _local6;
var _local5 = true;
var _local9 = new Array();
var _local18 = new Array();
var _local4 = [[], []];
_local2 = -1;
_local19 = inPoints0.length;
while (_local2++ , _local2 < _local19) {
_local1 = -1;
_local14 = inPoints1.length;
while (_local1++ , _local1 < _local14) {
_local9.push({ind0:_local2, ind1:_local1, d:GetDistance(inPoints0[_local2], inPoints1[_local1])});
}
}
_local9.sortOn("d", Array.NUMERIC);
_local11 = -1;
_local20 = _local9.length;
while (_local11++ , _local11 < _local20) {
_local2 = _local9[_local11].ind0;
_local1 = _local9[_local11].ind1;
_local6 = _local9[_local11].d;
_local5 = true;
_local3 = -1;
_local7 = _local4[0].length;
while (_local3++ , _local3 < _local7) {
if (_local2 == _local4[0][_local3]) {
_local5 = false;
break;
}
}
if (_local5) {
_local3 = -1;
_local7 = _local4[1].length;
while (_local3++ , _local3 < _local7) {
if (_local1 == _local4[1][_local3]) {
_local5 = false;
break;
}
}
if (_local5) {
_local18.push({P0:inPoints0[_local2], P1:inPoints1[_local1], D:_local6});
_local4[0].push(_local2);
_local4[1].push(_local1);
}
}
}
return(_local18);
}
function GetSimilarity(inVal0, inVal1, inLimit0, inLimit1) {
var _local1 = (inVal0 - inLimit0) / (inLimit1 - inLimit0);
var _local2 = (inVal1 - inLimit0) / (inLimit1 - inLimit0);
var _local3;
if ((_local1 > 1) || (_local2 > 1)) {
_local3 = Math.min(_local1, _local2) / Math.max(_local1, _local2);
} else {
_local3 = 1 - (Math.max(_local1, _local2) - Math.min(_local1, _local2));
}
return(_local3);
}
var jamTypes = ["strawberry", "chocolate", "apricot", "strawberry", "chocolate", "apricot"];
var fruitTypes = ["strawberry", "cherry", "kiwi", "strawberry", "cherry", "kiwi"];
var kiwies = [mc_kiwi_1, mc_kiwi_2, mc_kiwi_3, mc_kiwi_4, mc_kiwi_5];
var cherries = [mc_cherry_1, mc_cherry_2, mc_cherry_3, mc_cherry_4, mc_cherry_5, mc_cherry_6, mc_cherry_7, mc_cherry_8];
var strawberries = [mc_strawberry_1, mc_strawberry_2, mc_strawberry_3, mc_strawberry_4, mc_strawberry_5];
var POSes = [{x:300, y:125}, {x:60, y:120}, {x:195, y:30}, {x:130, y:150}, {x:230, y:150}];
var startPOSes;
var CurrentType = "none";
var DATA;
var tmpData;
Init();
if (_name != "mc_icecreame_big") {
CreateRandomed();
}
function SHOW() {
status = "show";
this.onEnterFrame = function () {
_visible = true;
if (this._alpha < 100) {
_alpha = (_alpha + 7);
} else {
this.onEnterFrame = null;
}
};
}
function HIDE() {
status = "hide";
this.onEnterFrame = function () {
if (this._alpha > 0) {
_alpha = (_alpha - 7);
} else {
_visible = false;
this.onEnterFrame = null;
}
};
}
var status;
SHOW();
Instance of Symbol 96 MovieClip "mc_cherry_2" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 99 MovieClip "mc_cherry_1" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 99 MovieClip "mc_cherry_3" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 102 MovieClip "mc_cherry_6" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 96 MovieClip "mc_cherry_4" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 99 MovieClip "mc_cherry_5" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 102 MovieClip "mc_cherry_8" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 99 MovieClip "mc_cherry_7" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 105 MovieClip "mc_kiwi_3" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 105 MovieClip "mc_kiwi_4" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 105 MovieClip "mc_kiwi_5" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 105 MovieClip "mc_kiwi_1" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 105 MovieClip "mc_kiwi_2" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 108 MovieClip "mc_strawberry_5" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 108 MovieClip "mc_strawberry_2" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 111 MovieClip "mc_strawberry_3" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 111 MovieClip "mc_strawberry_4" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Instance of Symbol 111 MovieClip "mc_strawberry_1" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
if ((_parent._name == "mc_icecreame_big") && (!this.isLoaded)) {
this.startX = _x;
this.startY = _y;
this.startDepth = getDepth();
this.isLoaded = true;
this.isDrag = false;
this.isDragStoped = false;
this.isReturning = false;
this.sliderX;
this.sliderY;
var in0 = (this._name.indexOf("_") + 1);
var in1 = this._name.indexOf("_", in0);
this.Type = this._name.substring(in0, in1);
this.onPressF = function () {
if (this._visible && (this._alpha > 0)) {
if ((!this.isDrag) && (!this.isReturning)) {
this.isDrag = true;
this.isDragStoped = false;
startDrag (this);
this.swapDepths(_parent.getNextHighestDepth());
}
}
};
this.onReleaseF = function () {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
if (!_parent.mc_hitter.hitTest(this)) {
this.isReturning = true;
this.sliderX = new SliderEase(_x, this.startX, 20);
this.sliderY = new SliderEase(_y, this.startY, 20);
this.swapDepths(this.startDepth);
if (_parent.CurrentType != this.Type) {
_visible = false;
}
}
}
};
this.onEnterFrameF = function () {
if ((!this._visible) || (this._alpha <= 0)) {
if (this.isDrag) {
this.isDrag = false;
this.isDragStoped = true;
stopDrag();
}
}
if (this.isDragStoped) {
this.isDragStoped = false;
}
if (this.isReturning) {
_x = this.sliderX.GetNextValue();
_y = this.sliderY.GetNextValue();
if ((this.sliderX.POS.p >= 1) && (this.sliderY.POS.p >= 1)) {
this.isReturning = false;
}
}
};
this.Reset = function () {
_x = this.startX;
_y = this.startY;
swapDepths(this.startDepth);
};
this.onPress = this.onPressF;
this.onRelease = this.onReleaseF;
this.onReleaseOutside = this.onReleaseF;
this.onEnterFrame = this.onEnterFrameF;
}
}
Symbol 113 MovieClip Frame 1
function HIDE() {
onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha - 8);
} else {
onEnterFrame = null;
}
};
}
function SHOW() {
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 3);
} else {
onEnterFrame = null;
}
};
}
_alpha = 0;
HIDE();
Symbol 115 Button
on (release) {
SetAsPrimary();
}
Symbol 121 MovieClip Frame 1
var sld_a = new SliderFluent(70, 100, _alpha, 10, 10.9, true);
onEnterFrame = function () {
_alpha = sld_a.GET_VALUE();
_xscale = (75 + (_alpha / 4));
_yscale = _xscale;
};
Symbol 123 MovieClip Frame 2
_visible = _parent._parent.isBest;
if (_visible) {
gotoAndPlay (5);
} else {
stop();
}
Symbol 123 MovieClip Frame 180
stop();
Symbol 125 MovieClip Frame 1
var stX = _x;
var stY = _y;
var stR = _rotation;
var sld_x = new SliderFluent(0, 10, 1, 0.4, 0.04, true);
var sld_y = new SliderFluent(0, 10, 1, 0.4, 0.04, true);
onEnterFrame = function () {
_x = (stX + sld_x.GET_VALUE());
_y = (stY + sld_y.GET_VALUE());
};
Symbol 129 MovieClip Frame 1
_xscale = (15 + (50 * Math.random()));
_yscale = _xscale;
Symbol 129 MovieClip Frame 3
if ((_parent._alpha > 0) && (_parent._visible)) {
gotoAndPlay(int(3 + (37 * Math.random())));
} else {
stop();
}
Symbol 129 MovieClip Frame 89
Symbol 132 MovieClip Frame 1
function SetTimeout(in_time, in_Frame, in_Func, in_Param) {
startTime = getTimer();
endTime = in_time;
timerParam = in_Frame;
timerParamF = in_Func;
timerParamFP = in_Param;
b_TimerOn = true;
b_TimerOnPaused = false;
}
function OnTimeout() {
b_TimerOn = false;
if (timerParam != null) {
gotoAndPlay(timerParam);
} else if (timerParamFP != null) {
timerParamF(timerParamFP);
} else {
timerParamF();
}
}
function Handler_TimeOut() {
if (b_TimerOn) {
if (_root.isPaused) {
if (!b_TimerOnPaused) {
b_TimerOnPaused = true;
}
} else {
if (b_TimerOnPaused) {
b_TimerOnPaused = false;
startTime = startTime + (getTimer() - _root.startPauseTime);
}
if (getTimer() >= (endTime + startTime)) {
OnTimeout();
}
}
}
}
function Arrival() {
var _local4 = 2 * (3000 - _root.SCORE);
_local4 = ((_local4 < 0) ? 0 : (_local4));
time = int(_local4 + (1000 * Math.random()));
SetTimeout(time, "ready");
_parent.mc_book.HIDE();
}
function ReadyForOrder() {
_root.mc_Sounds.PLAY_SOUND("idea");
var _local4 = 3000 * (15 - _root.SCORE_counter);
_local4 = ((_local4 > 20000) ? 20000 : (_local4));
_local4 = ((_local4 < 5000) ? 5000 : (_local4));
time = int(_local4 + (15000 * Math.random()));
SetTimeout(time, null, OnBad, 0);
_parent.mc_book.SHOW();
}
function SetAsPrimary() {
b_TimerOn = false;
btn_shape.visible = false;
btn_shape._xscale = 0.01;
btn_shape._yscale = 0.01;
btn_shape.onRelease = null;
mc_arrow.HIDE();
mc_idea.mc_icecreame.SetData(mc_idea.mc_icecreame.GetData());
_root.RunOrderExecute(this, mc_idea.mc_icecreame.GetData());
}
function onGoodPause() {
time = int(6000 + (6000 * Math.random()));
SetTimeout(time, "disapear");
}
function OnServeUp(inSatisfaction) {
if (inSatisfaction < 0.75) {
OnBad(inSatisfaction);
} else if (inSatisfaction < 0.97) {
OnGood(inSatisfaction);
} else {
OnBest(inSatisfaction);
}
}
function OnBad(inSatisfaction) {
_root.AddScore(inSatisfaction);
_root.mc_Sounds.PLAY_SOUND("bad");
gotoAndPlay ("bad");
}
function OnGood(inSatisfaction) {
_root.AddScore(inSatisfaction);
_root.mc_Sounds.PLAY_SOUND("good");
gotoAndPlay ("good");
this.swapDepths(32);
}
function OnBest(inSatisfaction) {
_root.AddScore(inSatisfaction);
_root.mc_Sounds.PLAY_SOUND("best");
isBest = true;
gotoAndPlay ("good");
this.swapDepths(32);
}
function Lock() {
btn_shape.enabled = false;
}
function UnLock() {
btn_shape.enabled = true;
}
var tm_0;
var satisfaction = 0;
var isBest = false;
var b_TimerOn = false;
var b_TimerOnPaused = false;
var startTime;
var startTimePaused;
var endTime;
var timerParam;
var timerParamF;
var timerParamFP;
if (_name.indexOf("instance") > -1) {
gotoAndStop ("instance");
} else {
_root.AddToCollection(this);
_parent.AddActivePerson(this);
}
onEnterFrame = function () {
Handler_TimeOut();
btn_shape.enabled = (!_root.GetLocked()) && (!_root.isPaused);
};
Symbol 132 MovieClip Frame 27
stop();
Arrival();
Symbol 132 MovieClip Frame 29
mc_idea.SHOW();
Symbol 132 MovieClip Frame 36
stop();
ReadyForOrder();
Symbol 132 MovieClip Frame 37
mc_idea.HIDE();
mc_arrow.HIDE();
Symbol 132 MovieClip Frame 62
gotoAndPlay ("disapear");
Symbol 132 MovieClip Frame 63
mc_idea.HIDE();
mc_arrow.HIDE();
Symbol 132 MovieClip Frame 73
stop();
onGoodPause();
mc_hearts._visible = isBest;
Symbol 132 MovieClip Frame 74
mc_hearts._visible = isBest;
clearInterval(tm_0);
_root.RemoveFromCollection(this);
_parent.RemoveActivePerson(this);
Symbol 132 MovieClip Frame 93
stop();
_root.RemoveFromCollection(this);
_parent.RemoveActivePerson(this);
removeMovieClip(this);
Symbol 132 MovieClip Frame 106
stop();
Symbol 140 MovieClip Frame 1
var stX = _x;
var stY = _y;
var stR = _rotation;
var sld_x = new SliderFluent(0, 10, 1, 0.4, 0.04, true);
var sld_y = new SliderFluent(0, 10, 1, 0.4, 0.04, true);
onEnterFrame = function () {
_x = (stX + sld_x.GET_VALUE());
_y = (stY + sld_y.GET_VALUE());
};
Symbol 142 MovieClip Frame 1
function SetTimeout(in_time, in_Frame, in_Func, in_Param) {
startTime = getTimer();
endTime = in_time;
timerParam = in_Frame;
timerParamF = in_Func;
timerParamFP = in_Param;
b_TimerOn = true;
b_TimerOnPaused = false;
}
function OnTimeout() {
b_TimerOn = false;
if (timerParam != null) {
gotoAndPlay(timerParam);
} else if (timerParamFP != null) {
timerParamF(timerParamFP);
} else {
timerParamF();
}
}
function Handler_TimeOut() {
if (b_TimerOn) {
if (_root.isPaused) {
if (!b_TimerOnPaused) {
b_TimerOnPaused = true;
}
} else {
if (b_TimerOnPaused) {
b_TimerOnPaused = false;
startTime = startTime + (getTimer() - _root.startPauseTime);
}
if (getTimer() >= (endTime + startTime)) {
OnTimeout();
}
}
}
}
function Arrival() {
var _local4 = 2 * (3000 - _root.SCORE);
_local4 = ((_local4 < 0) ? 0 : (_local4));
time = int(_local4 + (1000 * Math.random()));
SetTimeout(time, "ready");
_parent.mc_book.HIDE();
}
function ReadyForOrder() {
_root.mc_Sounds.PLAY_SOUND("idea");
var _local4 = 3000 * (15 - _root.SCORE_counter);
_local4 = ((_local4 > 20000) ? 20000 : (_local4));
_local4 = ((_local4 < 5000) ? 5000 : (_local4));
time = int(_local4 + (15000 * Math.random()));
SetTimeout(time, null, OnBad, 0);
_parent.mc_book.SHOW();
}
function SetAsPrimary() {
b_TimerOn = false;
btn_shape.visible = false;
btn_shape._xscale = 0.01;
btn_shape._yscale = 0.01;
btn_shape.onRelease = null;
mc_arrow.HIDE();
mc_idea.mc_icecreame.SetData(mc_idea.mc_icecreame.GetData());
_root.RunOrderExecute(this, mc_idea.mc_icecreame.GetData());
}
function onGoodPause() {
time = int(6000 + (6000 * Math.random()));
SetTimeout(time, "disapear");
}
function OnServeUp(inSatisfaction) {
if (inSatisfaction < 0.75) {
OnBad(inSatisfaction);
} else if (inSatisfaction < 0.97) {
OnGood(inSatisfaction);
} else {
OnBest(inSatisfaction);
}
}
function OnBad(inSatisfaction) {
_root.AddScore(inSatisfaction);
_root.mc_Sounds.PLAY_SOUND("bad");
gotoAndPlay ("bad");
}
function OnGood(inSatisfaction) {
_root.AddScore(inSatisfaction);
_root.mc_Sounds.PLAY_SOUND("good");
gotoAndPlay ("good");
this.swapDepths(32);
}
function OnBest(inSatisfaction) {
_root.AddScore(inSatisfaction);
_root.mc_Sounds.PLAY_SOUND("best");
isBest = true;
gotoAndPlay ("good");
this.swapDepths(32);
}
function Lock() {
btn_shape.enabled = false;
}
function UnLock() {
btn_shape.enabled = true;
}
var tm_0;
var satisfaction = 0;
var isBest = false;
var b_TimerOn = false;
var b_TimerOnPaused = false;
var startTime;
var startTimePaused;
var endTime;
var timerParam;
var timerParamF;
var timerParamFP;
if (_name.indexOf("instance") > -1) {
gotoAndStop ("instance");
} else {
_root.AddToCollection(this);
_parent.AddActivePerson(this);
}
onEnterFrame = function () {
Handler_TimeOut();
btn_shape.enabled = (!_root.GetLocked()) && (!_root.isPaused);
};
Symbol 142 MovieClip Frame 26
stop();
Arrival();
Symbol 142 MovieClip Frame 28
mc_idea.SHOW();
Symbol 142 MovieClip Frame 35
stop();
ReadyForOrder();
Symbol 142 MovieClip Frame 36
mc_idea.HIDE();
mc_arrow.HIDE();
Symbol 142 MovieClip Frame 62
gotoAndPlay ("disapear");
Symbol 142 MovieClip Frame 63
mc_idea.HIDE();
mc_arrow.HIDE();
Symbol 142 MovieClip Frame 73
stop();
onGoodPause();
mc_hearts._visible = isBest;
Symbol 142 MovieClip Frame 74
mc_hearts._visible = isBest;
_root.RemoveFromCollection(this);
_parent.RemoveActivePerson(this);
Symbol 142 MovieClip Frame 91
stop();
_root.RemoveFromCollection(this);
_parent.RemoveActivePerson(this);
removeMovieClip(this);
Symbol 142 MovieClip Frame 104
stop();
Symbol 147 MovieClip Frame 1
function SHOW() {
this.onEnterFrame = function () {
_visible = true;
if (this._alpha < 100) {
_alpha = (_alpha + 7);
} else {
this.onEnterFrame = null;
}
};
}
function HIDE() {
this.onEnterFrame = function () {
if (this._alpha > 0) {
_alpha = (_alpha - 7);
} else {
_visible = false;
this.onEnterFrame = null;
}
};
}
_alpha = 0;
SHOW();
Symbol 148 MovieClip Frame 1
function AddActivePerson(in_mc) {
Collection.push(in_mc);
}
function RemoveActivePerson(in_mc) {
var _local1 = -1;
var _local2 = Collection.length;
while (_local1++ , _local1 < _local2) {
if (Collection[_local1] == in_mc) {
Collection.splice(_local1, 1);
break;
}
}
}
function GetActive() {
if (Collection.length == 1) {
}
return(((Collection.length > 0) ? true : false));
}
var Collection = new Array();
Symbol 155 MovieClip Frame 1
function SHOW() {
this.onEnterFrame = function () {
_visible = true;
if (this._alpha < 100) {
_alpha = (_alpha + 7);
} else {
this.onEnterFrame = null;
}
};
}
function HIDE() {
this.onEnterFrame = function () {
if (this._alpha > 0) {
_alpha = (_alpha - 7);
} else {
_visible = false;
this.onEnterFrame = null;
}
};
}
_alpha = 0;
SHOW();
Symbol 156 MovieClip Frame 1
function AddActivePerson(in_mc) {
Collection.push(in_mc);
}
function RemoveActivePerson(in_mc) {
var _local1 = -1;
var _local2 = Collection.length;
while (_local1++ , _local1 < _local2) {
if (Collection[_local1] == in_mc) {
Collection.splice(_local1, 1);
break;
}
}
}
function GetActive() {
if (Collection.length == 1) {
}
return(((Collection.length > 0) ? true : false));
}
var Collection = new Array();
Symbol 163 MovieClip Frame 1
function SHOW() {
this.onEnterFrame = function () {
_visible = true;
if (this._alpha < 100) {
_alpha = (_alpha + 7);
} else {
this.onEnterFrame = null;
}
};
}
function HIDE() {
this.onEnterFrame = function () {
if (this._alpha > 0) {
_alpha = (_alpha - 7);
} else {
_visible = false;
this.onEnterFrame = null;
}
};
}
_alpha = 0;
SHOW();
Symbol 164 MovieClip Frame 1
function AddActivePerson(in_mc) {
Collection.push(in_mc);
}
function RemoveActivePerson(in_mc) {
var _local1 = -1;
var _local2 = Collection.length;
while (_local1++ , _local1 < _local2) {
if (Collection[_local1] == in_mc) {
Collection.splice(_local1, 1);
break;
}
}
}
function GetActive() {
if (Collection.length == 1) {
}
return(((Collection.length > 0) ? true : false));
}
var Collection = new Array();
Symbol 173 MovieClip Frame 1
function SHOW() {
status = "show";
this.onEnterFrame = function () {
_visible = true;
if (this._alpha < 100) {
_alpha = (_alpha + 7);
} else {
this.onEnterFrame = null;
}
};
}
function HIDE() {
status = "hide";
this.onEnterFrame = function () {
if (this._alpha > 0) {
_alpha = (_alpha - 7);
} else {
_visible = false;
this.onEnterFrame = null;
}
};
}
var status;
_alpha = 0;
HIDE();
Symbol 176 MovieClip Frame 1
function SHOW() {
status = "show";
this.onEnterFrame = function () {
_visible = true;
if (this._alpha < 100) {
_alpha = (_alpha + 7);
} else {
this.onEnterFrame = null;
}
};
}
function HIDE() {
status = "hide";
this.onEnterFrame = function () {
if (this._alpha > 0) {
_alpha = (_alpha - 7);
} else {
_visible = false;
this.onEnterFrame = null;
}
};
}
var status;
_alpha = 0;
HIDE();
Symbol 179 MovieClip Frame 1
function SHOW() {
status = "show";
this.onEnterFrame = function () {
_visible = true;
if (this._alpha < 100) {
_alpha = (_alpha + 7);
} else {
this.onEnterFrame = null;
}
};
}
function HIDE() {
status = "hide";
this.onEnterFrame = function () {
if (this._alpha > 0) {
_alpha = (_alpha - 7);
} else {
_visible = false;
this.onEnterFrame = null;
}
};
}
var status;
_alpha = 0;
HIDE();
Symbol 181 MovieClip Frame 1
function SHOW() {
status = "show";
btn_add.enabled = true;
this.onEnterFrame = function () {
_visible = true;
if (this._alpha < 100) {
_alpha = (_alpha + 12);
} else {
this.onEnterFrame = null;
}
};
}
function HIDE() {
status = "hide";
btn_add.enabled = false;
this.onEnterFrame = function () {
if (this._alpha > 0) {
_alpha = (_alpha - 12);
} else {
_visible = false;
this.onEnterFrame = null;
}
};
}
var status;
_alpha = 0;
HIDE();
Symbol 184 MovieClip Frame 1
function SHOW() {
status = "show";
this.onEnterFrame = function () {
_visible = true;
if (this._alpha < 100) {
_alpha = (_alpha + 12);
} else {
this.onEnterFrame = null;
}
};
}
function HIDE() {
status = "hide";
this.onEnterFrame = function () {
if (this._alpha > 0) {
_alpha = (_alpha - 12);
} else {
_visible = false;
this.onEnterFrame = null;
}
};
}
var status;
_alpha = 0;
HIDE();
Symbol 187 MovieClip Frame 1
stop();
Symbol 189 Button
on (release) {
mc_icecreame_big.HideFruits("kiwi", true);
mc_bg_fruits.SHOW();
mc_bg_jams.HIDE();
mc_arrowContainer.HIDE();
}
Symbol 190 Button
on (release) {
mc_icecreame_big.HideFruits("cherry", true);
mc_bg_fruits.SHOW();
mc_bg_jams.HIDE();
mc_arrowContainer.HIDE();
}
Symbol 191 Button
on (release) {
mc_icecreame_big.HideFruits("strawberry", true);
mc_bg_fruits.SHOW();
mc_bg_jams.HIDE();
mc_arrowContainer.HIDE();
}
Symbol 193 Button
on (release) {
jamType = "chocolate";
mc_icecreame_big.HideFruits("none", true);
mc_bg_fruits.HIDE();
mc_bg_jams.SHOW();
mc_bg_jams.mc_choco.SHOW();
mc_bg_jams.mc_apricot.HIDE();
mc_bg_jams.mc_strawberry.HIDE();
mc_arrowContainer.HIDE();
mc_icecreame_big.SetJamvalue(jamType, jamValue);
}
Symbol 194 Button
on (release) {
jamType = "strawberry";
mc_icecreame_big.HideFruits("none", true);
mc_bg_fruits.HIDE();
mc_bg_jams.SHOW();
mc_bg_jams.mc_choco.HIDE();
mc_bg_jams.mc_apricot.HIDE();
mc_bg_jams.mc_strawberry.SHOW();
mc_arrowContainer.HIDE();
mc_icecreame_big.SetJamvalue(jamType, jamValue);
}
Symbol 195 Button
on (release) {
jamType = "apricot";
mc_icecreame_big.HideFruits("none", true);
mc_bg_fruits.HIDE();
mc_bg_jams.SHOW();
mc_bg_jams.mc_choco.HIDE();
mc_bg_jams.mc_apricot.SHOW();
mc_bg_jams.mc_strawberry.HIDE();
mc_arrowContainer.HIDE();
mc_icecreame_big.SetJamvalue(jamType, jamValue);
}
Symbol 201 MovieClip Frame 1
function Run() {
SHOW();
mc_icecreame_big._alpha = 0;
mc_icecreame_big.HIDE();
mc_icecreame_big.Reset();
mc_idea.mc_icecreame.Reset();
mc_idea.mc_icecreame.SetData(_parent.ActiveOrder);
tmp_mc.onEnterFrame = OEF;
status = "start";
isJamLocked = false;
jamType = "none";
jamValue = 0;
}
function OEF() {
if (_root.isPaused) {
btn_serveUp.enabled = false;
mc_bg_jams.btn_add.enabled = false;
btn_fruit_kiwi.enabled = false;
btn_fruit_cherry.enabled = false;
btn_fruit_strawberry.enabled = false;
btn_jam_choco.enabled = false;
btn_jam_apricot.enabled = false;
btn_jam_strawberry.enabled = false;
} else if ((status != "done") && (status != "hide")) {
btn_serveUp._visible = false;
btn_serveUp.enabled = false;
mc_bg_jams.btn_add.enabled = false;
btn_fruit_kiwi.enabled = false;
btn_fruit_cherry.enabled = false;
btn_fruit_strawberry.enabled = false;
btn_jam_choco.enabled = false;
btn_jam_apricot.enabled = false;
btn_jam_strawberry.enabled = false;
if (status == "start") {
if (_alpha >= 100) {
status = "ani_moveToRight";
waitFrames = 8;
waitCounter = 0;
}
} else if ((++waitCounter) > waitFrames) {
if (status == "ani_moveToRight") {
_root.SetScrollTarget(-250, 15);
status = "ani_holod";
waitFrames = 15;
waitCounter = 0;
} else if (status == "ani_holod") {
mc_holod.gotoAndPlay(2);
status = "ani_moveToLeft";
waitFrames = 30;
waitCounter = 0;
} else if (status == "ani_moveToLeft") {
_root.SetScrollTarget(0, 15);
status = "ani_icecreameApear";
waitFrames = 15;
waitCounter = 0;
} else if (status == "ani_icecreameApear") {
mc_idea.SHOW();
mc_icecreame_big.SHOW();
if ((++timesRun) <= 3) {
mc_arrowContainer.SHOW();
}
status = "done";
}
}
} else {
btn_serveUp._visible = true;
btn_serveUp.enabled = true;
btn_fruit_kiwi.enabled = true;
btn_fruit_cherry.enabled = true;
btn_fruit_strawberry.enabled = true;
btn_jam_choco.enabled = true;
btn_jam_apricot.enabled = true;
btn_jam_strawberry.enabled = true;
}
}
var status = "done";
var waitFrames = 0;
var waitCounter = 0;
var isJamLocked;
var jamType;
var jamValue;
var timesRun = 0;
var tmp_mc = createEmptyMovieClip("tmp_mc", getNextHighestDepth());
mc_bg_jams.btn_add.onRelease = function () {
jamValue = jamValue + 5;
jamValue = ((jamValue > 100) ? 100 : (jamValue));
jamValue = ((jamValue < 30) ? 30 : (jamValue));
mc_icecreame_big.SetJamvalue(jamType, jamValue);
};
btn_serveUp.onRelease = function () {
btn_serveUp.enabled = false;
_parent.ActivePerson.OnServeUp(mc_icecreame_big.EqualDatas(mc_icecreame_big.GetData(), mc_idea.mc_icecreame.GetData()));
HIDE();
};
function SHOW() {
status = "show";
_root.LockAllPersons();
mc_arrowContainer._alpha = 0;
mc_arrowContainer.HIDE();
this.onEnterFrame = function () {
_visible = true;
if (this._alpha < 100) {
_alpha = (_alpha + 7);
} else {
this.onEnterFrame = null;
_root.LockAllPersons();
mc_table_1._visible = false;
mc_table_2._visible = false;
mc_table_3._visible = false;
mc_birds._visible = false;
}
};
}
function HIDE() {
status = "hide";
_root.UnLockAllPersons();
mc_table_1._visible = true;
mc_table_2._visible = true;
mc_table_3._visible = true;
mc_birds._visible = true;
mc_bg_fruits.HIDE();
mc_bg_jams.HIDE();
mc_idea.HIDE();
mc_arrowContainer.HIDE();
btn_serveUp.enabled = false;
this.onEnterFrame = function () {
if (this._alpha > 0) {
_alpha = (_alpha - 14);
} else {
_visible = false;
this.onEnterFrame = null;
_root.UnLockAllPersons();
_root.UnLockScroll();
}
};
}
var status;
_alpha = 0;
HIDE();
Symbol 203 MovieClip Frame 1
var seaSounds = ["sea_1", "sea_2", "sea_3"];
seaSounds = seaSounds.concat(seaSounds, seaSounds, seaSounds);
var isTimeToGenerate = true;
var lastTimeGeneration;
var nextTimeGeneration;
var soundName;
onEnterFrame = function () {
if (isTimeToGenerate) {
isTimeToGenerate = false;
lastTimeGeneration = getTimer();
nextTimeGeneration = (lastTimeGeneration + 1000) + (6000 * Math.random());
soundName = seaSounds[int((seaSounds.length - 1) * Math.random())];
_root.mc_Sounds.PLAY_SOUND(soundName);
} else if ((nextTimeGeneration - getTimer()) < 0) {
isTimeToGenerate = true;
}
};
Symbol 205 Button
on (release) {
_root.mc_Sounds.PLAY_SOUND("haha");
}
Symbol 208 Button
on (release) {
_root.AddScore(1000);
}
Symbol 210 Button
on (release) {
_root.AddTime(-60000);
}
Symbol 211 MovieClip Frame 1
function GenerateNewPerson() {
var _local5 = ((!mc_table_1.GetActive()) || (!mc_table_2.GetActive())) || (!mc_table_3.GetActive());
if (_local5) {
var _local2 = [mc_table_1, mc_table_2, mc_table_3, mc_table_1, mc_table_2, mc_table_3];
var _local3 = int((_local2.length - 1) * Math.random());
while (_local2[_local3].GetActive()) {
_local3 = int((_local2.length - 1) * Math.random());
}
var _local4;
var _local7;
var _local6 = int(100 * Math.random()) % 2;
if (_local6 == 0) {
_local4 = _local2[_local3].mc_person_1_instance;
} else {
_local4 = _local2[_local3].mc_person_2_instance;
}
_local7 = _local4.duplicateMovieClip("mc_person_copy_" + random(12345678), _local2[_local3].mc_person_1_instance.getDepth() + 2);
lastTimeGeneration = getTimer() + ((10000 - _root.SCORE) * Math.random());
}
}
function Handler_GenerateNewPerson() {
if (_root.isPaused) {
if (!b_TimerOnPaused) {
b_TimerOnPaused = true;
}
} else {
if (b_TimerOnPaused) {
b_TimerOnPaused = false;
lastTimeGeneration = lastTimeGeneration + (getTimer() - _root.startPauseTime);
}
var _local3 = 2500;
_local3 = ((_local3 < 0) ? 0 : (_local3));
var _local2 = 6000 * (4 - _root.SCORE_counter);
_local2 = ((_local2 < 0) ? 0 : (_local2));
if ((getTimer() - lastTimeGeneration) > (_local3 + _local2)) {
GenerateNewPerson();
}
}
}
_root.Checking = function () {
_parent.mc_score.SET_SCORE(_root.SCORE);
if (!isCheked) {
if (!_root.mainTimer.isWork) {
isEndOfGame = true;
}
if (isEndOfGame) {
isCheked = true;
_root.isPaused = true;
if (_root.SCORE >= 85) {
_root.EndScene = "win";
} else if (_root.SCORE >= 50) {
_root.EndScene = "neutral";
} else {
_root.EndScene = "loose";
}
_root.gotoAndPlay(_root._currentframe + 5);
}
}
};
_root.EndScene = "loose";
_root.SCORE = 0;
_root.SCORE_total = 0;
_root.SCORE_counter = 0;
_root.mainTimer = new CountdownTimer(_parent.mc_time, 92999);
_root.mainTimer.onFinish = _root.Checking;
_root.mainScore = new Score(_parent.mc_score, _root.SCORE);
_root.mainScore.onFinish = _root.Checking;
var Collection = new Array();
var ActivePerson;
var ActiveOrder;
var b_TimerOnPaused = false;
var isEndOfGame = false;
var isCheked = false;
_root.Destroy = function () {
_root.mainTimer.Destroy();
_root.mainScore.Destroy();
mc_SoundsBirds.STOP_SOUND();
mc_Soundtrack.STOP_SOUND();
};
_root.AddScore = function (inScore) {
if (isNaN(inScore)) {
inScore = 0;
}
inScore = inScore - 0.75;
inScore = ((inScore < 0) ? 0 : (inScore));
inScore = ((inScore >= 0.22) ? 1 : (inScore * 4));
var _local4 = _root.SCORE;
_root.SCORE_total = _root.SCORE_total + inScore;
_root.SCORE_counter = _root.SCORE_counter + 1;
_root.SCORE = Math.round((100 * _root.SCORE_total) / _root.SCORE_counter);
_local4 = _local4 - _root.SCORE;
_local4 = _local4 * -1;
_root.mainScore.AddScore(_local4, 40, 1);
var _local3 = 3000 * (7 - _root.SCORE_counter);
_local3 = ((_local3 < 0) ? 0 : (_local3));
_root.AddTime((3000 * inScore) + _local3);
};
_root.AddTime = function (inTime) {
if (_root.mainTimer.isWork) {
_root.mainTimer.AddMiliseconds(inTime, 20, 1000);
} else {
_root.Checking();
}
};
_root.RunOrderExecute = function (in_ActivePerson, in_ActiveOrder) {
ActivePerson = in_ActivePerson;
ActiveOrder = in_ActiveOrder;
mc_making.Run();
};
_root.AddToCollection = function (in_mc) {
Collection.push(in_mc);
};
_root.RemoveFromCollection = function (in_mc) {
var _local1 = -1;
var _local2 = Collection.length;
while (_local1++ , _local1 < _local2) {
if (Collection[_local1] == in_mc) {
Collection.splice(_local1, 1);
break;
}
}
};
_root.GetLocked = function () {
if (mc_making.status != "hide") {
return(true);
}
return(false);
};
_root.LockAllPersons = function () {
var _local1 = -1;
var _local2 = Collection.length;
while (_local1++ , _local1 < _local2) {
Collection[_local1].Lock();
}
};
_root.UnLockAllPersons = function () {
var _local1 = -1;
var _local2 = Collection.length;
while (_local1++ , _local1 < _local2) {
Collection[_local1].UnLock();
}
};
var lastTimeGeneration = (getTimer() - 25000);
onEnterFrame = function () {
Handler_GenerateNewPerson();
};
function FADE_OUT() {
mc_soundOEF.onEnterFrame = function () {
snd_this.setVolume(snd_this.getVolume() - 4);
if (snd_this.getVolume() <= 0) {
mc_soundOEF.onEnterFrame = null;
}
};
}
function FADE_IN() {
if (sound_enable) {
mc_soundOEF.onEnterFrame = function () {
snd_this.setVolume(snd_this.getVolume() + 5);
if (snd_this.getVolume() >= 100) {
mc_soundOEF.onEnterFrame = null;
}
};
}
}
function SoundOff() {
sound_enable = false;
FADE_OUT();
}
function SoundOn() {
sound_enable = true;
FADE_IN();
}
var sound_enable = true;
var snd_this = new Sound(this);
var mc_soundOEF = createEmptyMovieClip("mc_soundOEF", getNextHighestDepth());
Symbol 213 MovieClip Frame 1
function FADE() {
this.onEnterFrame = function () {
snd_this.setVolume(snd_this.getVolume() - 1);
if (snd_this.getVolume() <= 0) {
snd_this.setVolume(0);
snd_this.stop();
this.onEnterFrame = null;
clearInterval(tm_id);
}
};
}
function FADE_OUT() {
this.onEnterFrame = function () {
snd_this.setVolume(snd_this.getVolume() - 4);
if (snd_this.getVolume() <= 0) {
snd_this.setVolume(0);
this.onEnterFrame = null;
}
};
}
function FADE_IN() {
if (sound_enable) {
this.onEnterFrame = function () {
snd_this.setVolume(snd_this.getVolume() + 5);
if (snd_this.getVolume() >= 100) {
snd_this.setVolume(100);
this.onEnterFrame = null;
}
};
}
}
function SoundOff() {
sound_enable = false;
FADE_OUT();
}
function SoundOn() {
sound_enable = true;
FADE_IN();
}
var sound_enable = true;
var snd_this = new Sound(this);
function onChangeMusic() {
if (sound_enable) {
onEnterFrame = function () {
snd_this.setVolume(snd_this.getVolume() - 5);
if (snd_this.getVolume() <= 0) {
snd_this.stop();
var _local1 = oldTheme;
while (_local1 == oldTheme) {
_local1 = random(3) + 1;
}
oldTheme = _local1;
gotoAndStop (2);
gotoAndStop("mus_" + _local1);
FADE_IN();
}
};
}
}
onChangeMusic();
var tm_id = setInterval(onChangeMusic, 25000);
var oldTheme = 1;
Symbol 213 MovieClip Frame 3
stop();
Symbol 228 MovieClip Frame 1
function PLAY_SOUND(in_name) {
gotoAndStop (2);
gotoAndPlay(in_name);
gotoAndStop (2);
}
function FADE_OUT() {
this.onEnterFrame = function () {
snd_this.setVolume(snd_this.getVolume() - 4);
if (snd_this.getVolume() <= 0) {
snd_this.setVolume(0);
this.onEnterFrame = null;
}
};
}
function FADE_IN() {
if (sound_enable) {
this.onEnterFrame = function () {
snd_this.setVolume(snd_this.getVolume() + 5);
if (snd_this.getVolume() >= 100) {
snd_this.setVolume(100);
this.onEnterFrame = null;
}
};
}
}
function SoundOff() {
sound_enable = false;
FADE_OUT();
}
function SoundOn() {
sound_enable = true;
FADE_IN();
}
stop();
var sound_enable = true;
var snd_this = new Sound(this);
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 15
stop();
Symbol 236 MovieClip Frame 1
var stAlpha = mc_sound_icon._alpha;
btn.onRelease = function () {
if (_root.SoundEnabled == undefined) {
_root.SoundEnabled = true;
}
if (_root.SoundEnabled) {
_root.SoundEnabled = false;
_root.mc_music.SoundOff();
_root.mc_whole.SoundOff();
_root.mc_Sounds.SoundOff();
mc_sound_icon.gotoAndPlay("fade_out");
} else {
_root.SoundEnabled = true;
_root.mc_music.SoundOn();
_root.mc_whole.SoundOn();
_root.mc_Sounds.SoundOn();
mc_sound_icon.gotoAndPlay("fade_in");
}
};
btn.onRollOver = function () {
mc_sound_icon._alpha = 100;
};
btn.onRollOut = function () {
mc_sound_icon._alpha = stAlpha;
};
Symbol 238 MovieClip Frame 1
function SET_TIME(inc_min, inc_sec, inc_msec) {
if (inc_sec < 0) {
inc_sec = 0;
}
if (inc_min < 10) {
inc_min = "0" + inc_min;
}
if (inc_sec < 10) {
inc_sec = "0" + inc_sec;
}
if (inc_msec < 10) {
inc_msec = "0" + inc_msec;
}
inc_min = inc_min + "";
inc_sec = inc_sec + "";
inc_msec = inc_msec + "";
var _local4 = (inc_min + ":") + inc_sec;
_alpha = startAlpha;
if ((inc_min == "00") && (int(inc_sec) < 10)) {
_alpha = (10 + (90 * Math.random()));
if (txt_time.text != _local4) {
_root.mc_Sounds.PLAY_SOUND("second_alarm");
}
} else if (txt_time.text != _local4) {
_root.mc_Sounds.PLAY_SOUND("second");
}
txt_time.text = _local4;
}
var startAlpha = _alpha;
Symbol 240 MovieClip Frame 1
function SET_SCORE(in_score) {
var _local3 = in_score / Math.abs(in_score);
in_score = Math.abs(in_score);
if (_local3 < 0) {
in_score = "-" + in_score;
}
if (!isNaN(in_score)) {
if (txt_sec.text != in_score) {
_root.mc_Sounds.PLAY_SOUND("score");
}
txt_score.text = in_score;
}
}
Symbol 243 MovieClip Frame 10
stop();
Symbol 243 MovieClip Frame 20
gotoAndPlay ("play");
Symbol 245 MovieClip Frame 1
_root.isPaused = false;
_root.startPauseTime = getTimer();
var stAlpha = mc_label._alpha;
btn_Pause.onRelease = function () {
_root.isPaused = !_root.isPaused;
_root.mainTimer.Pause();
if (_root.isPaused) {
_root.startPauseTime = getTimer();
_root.LockAllPersons();
mc_label.gotoAndPlay("play");
} else {
_root.UnLockAllPersons();
mc_label.gotoAndStop("pause");
}
};
btn_Pause.onRollOver = function () {
mc_label._alpha = 100;
};
btn_Pause.onRollOut = function () {
mc_label._alpha = stAlpha;
};
Symbol 248 MovieClip Frame 1
var stAlpha = mc_label._alpha;
btn.onRelease = function () {
_root.Destroy();
_root.gotoAndPlay("start");
};
btn.onRollOver = function () {
mc_label._alpha = 100;
};
btn.onRollOut = function () {
mc_label._alpha = stAlpha;
};
Symbol 249 MovieClip Frame 1
_alpha = 0;
Symbol 266 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 267 Button
on (release) {
getURL ("http://games2girls.com", "_blank");
}
Symbol 268 MovieClip Frame 89
function Checking() {
mc_score.SET_SCORE(_root.SCORE);
_root.mc_Sounds.PLAY_SOUND("money");
}
var mainScore = new Score(mc_score, 0);
mainScore.onFinish = Checking;
mainScore.AddScore(_root.SCORE, 40, 1);
Symbol 268 MovieClip Frame 119
stop();
Symbol 282 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 283 Button
on (release) {
getURL ("http://games2girls.com", "_blank");
}
Symbol 284 MovieClip Frame 100
function Checking() {
mc_score.SET_SCORE(_root.SCORE);
_root.mc_Sounds.PLAY_SOUND("money");
}
var mainScore = new Score(mc_score, 0);
mainScore.onFinish = Checking;
mainScore.AddScore(_root.SCORE, 160, 1);
Symbol 284 MovieClip Frame 162
stop();
Symbol 289 MovieClip Frame 96
function Checking() {
mc_score.SET_SCORE(_root.SCORE);
_root.mc_Sounds.PLAY_SOUND("money");
}
var mainScore = new Score(mc_score, 0);
mainScore.onFinish = Checking;
mainScore.AddScore(_root.SCORE, 80, 1);
Symbol 289 MovieClip Frame 162
stop();