Frame 1
function updateProgress() {
var _local2 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
loadbar_mc.bar_mc._x = (1.65 * _local2) - 255;
loadbar_mc.perc_txt.text = _local2;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
loadbar_mc._alpha = loadbar_mc._alpha - 5;
if (loadbar_mc._alpha <= 0) {
clearInterval(intervalId);
delete intervalId;
delete thisMC;
gotoAndStop ("menu");
}
} else if (loadbar_mc._alpha < 100) {
loadbar_mc._alpha = loadbar_mc._alpha + 10;
}
}
var intervalId = setInterval(updateProgress, 20);
loadbar_mc._alpha = 0;
stop();
var firstRun = true;
var level = 1;
stop();
highScores1 = new Array(["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000]);
highScores2 = new Array(["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000]);
highScores3 = new Array(["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000], ["Presence", 180000]);
Frame 10
function time_to_string(time_to_convert) {
elapsed_hours = Math.floor(time_to_convert / 3600000);
remaining = time_to_convert - (elapsed_hours * 3600000);
elapsed_minutes = Math.floor(remaining / 60000);
remaining = remaining - (elapsed_minutes * 60000);
elapsed_seconds = Math.floor(remaining / 1000);
remaining = remaining - (elapsed_seconds * 1000);
elapsed_fs = Math.floor(remaining / 10);
if (elapsed_hours < 10) {
hours = "0" + elapsed_hours.toString();
} else {
hours = elapsed_hours.toString();
}
if (elapsed_minutes < 10) {
minutes = "0" + elapsed_minutes.toString();
} else {
minutes = elapsed_minutes.toString();
}
if (elapsed_seconds < 10) {
seconds = "0" + elapsed_seconds.toString();
} else {
seconds = elapsed_seconds.toString();
}
if (elapsed_fs < 10) {
hundredths = "0" + elapsed_fs.toString();
} else {
hundredths = elapsed_fs.toString();
}
return((((minutes + ":") + seconds) + ":") + hundredths);
}
if (_global.$tweenManager == undefined) {
_global.$tweenManager = new zigo.tweenManager();
} else {
_global.$tweenManager.playing = false;
}
com.robertpenner.easing.Back;
com.robertpenner.easing.Bounce;
com.robertpenner.easing.Circ;
com.robertpenner.easing.Cubic;
com.robertpenner.easing.Elastic;
com.robertpenner.easing.Expo;
com.robertpenner.easing.Linear;
com.robertpenner.easing.Quad;
com.robertpenner.easing.Quart;
com.robertpenner.easing.Quint;
com.robertpenner.easing.Sine;
var Mp = MovieClip.prototype;
Mp.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.addListener.apply(this, arguments);
};
ASSetPropFlags(Mp, "addListener", 1, 0);
Mp.tween = function (props, pEnd, seconds, animType, delay, callback, extra1, extra2) {
if (_global.$tweenManager.isTweenLocked(this)) {
trace("tween not added, this movieclip is locked");
return(undefined);
}
if (arguments.length < 2) {
trace("tween not added, props & pEnd must be defined");
return(undefined);
}
if (typeof(props) == "string") {
props = [props];
}
if (pEnd.length == undefined) {
pEnd = [pEnd];
}
if (seconds == undefined) {
seconds = 2;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || (delay == undefined)) {
delay = 0;
}
switch (typeof(animType)) {
case "string" :
animType = animType.toLowerCase();
if (animType == "linear") {
var eqf = com.robertpenner.easing.Linear.easeNone;
} else if (animType.indexOf("easeoutin") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeOutIn;
} else if (animType.indexOf("easeinout") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeInOut;
} else if (animType.indexOf("easein") == 0) {
var t = animType.substr(6);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeIn;
} else if (animType.indexOf("easeout") == 0) {
var t = animType.substr(7);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeOut;
}
if (eqf == undefined) {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
case "function" :
var eqf = animType;
break;
case "object" :
if ((animType.ease != undefined) && (animType.pts != undefined)) {
var eqf = animType.ease;
extra1 = animType.pts;
} else {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
default :
var eqf = com.robertpenner.easing.Expo.easeOut;
}
switch (typeof(callback)) {
case "function" :
callback = {func:callback, scope:this._parent};
break;
case "string" :
var ilp;
var funcp;
var scope;
var args;
var a;
ilp = callback.indexOf("(");
funcp = callback.slice(0, ilp);
scope = eval (funcp.slice(0, funcp.lastIndexOf(".")));
func = eval (funcp);
args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
var i = 0;
while (i < args.length) {
a = eval (args[i]);
if (a != undefined) {
args[i] = a;
}
i++;
}
callback = {func:func, scope:scope, args:args};
}
if (_global.$tweenManager.autoStop) {
_global.$tweenManager.removeTween(this, props);
}
if (delay > 0) {
_global.$tweenManager.addTweenWithDelay(delay, this, props, pEnd, seconds, eqf, callback, extra1, extra2);
} else {
_global.$tweenManager.addTween(this, props, pEnd, seconds, eqf, callback, extra1, extra2);
}
};
ASSetPropFlags(Mp, "tween", 1, 0);
Mp.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
_global.$tweenManager.removeTween(this, props);
};
ASSetPropFlags(Mp, "stopTween", 1, 0);
Mp.isTweening = function () {
return(_global.$tweenManager.isTweening(this));
};
ASSetPropFlags(Mp, "isTweening", 1, 0);
Mp.getTweens = function () {
return(_global.$tweenManager.getTweens(this));
};
ASSetPropFlags(Mp, "getTweens", 1, 0);
Mp.lockTween = function () {
_global.$tweenManager.lockTween(this, true);
};
ASSetPropFlags(Mp, "lockTween", 1, 0);
Mp.unlockTween = function () {
_global.$tweenManager.lockTween(this, false);
};
ASSetPropFlags(Mp, "unlockTween", 1, 0);
Mp.isTweenLocked = function () {
return(_global.$tweenManager.isTweenLocked(this));
};
ASSetPropFlags(Mp, "isTweenLocked", 1, 0);
Mp.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "alphaTo", 1, 0);
Mp.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2) {
var _local3 = 100 - Math.abs(bright);
var _local2 = 0;
if (bright > 0) {
_local2 = 256 * (bright / 100);
}
var _local5 = {ra:_local3, rb:_local2, ga:_local3, gb:_local2, ba:_local3, bb:_local2};
this.tween(["_ct_"], [_local5], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightnessTo", 1, 0);
Mp.colorTo = function (destColor, seconds, animType, delay, callback, extra1, extra2) {
var _local3;
if ((destColor == undefined) || (destColor == null)) {
_local3 = {rb:0, ra:100, gb:0, ga:100, bb:0, ba:100};
} else {
_local3 = {rb:destColor >> 16, ra:0, gb:(destColor & 65280) >> 8, ga:0, bb:destColor & 255, ba:0};
}
this.tween(["_ct_"], [_local3], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTo", 1, 0);
Mp.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) {
var _local2 = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab};
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTransformTo", 1, 0);
Mp.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "scaleTo", 1, 0);
Mp.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "slideTo", 1, 0);
Mp.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "rotateTo", 1, 0);
Mp.getFrame = function () {
return(this._currentframe);
};
ASSetPropFlags(Mp, "getFrame", 1, 0);
Mp.setFrame = function (fr) {
this.gotoAndStop(Math.round(fr));
};
ASSetPropFlags(Mp, "setFrame", 1, 0);
Mp.addProperty("_frame", Mp.getFrame, Mp.setFrame);
ASSetPropFlags(Mp, "_frame", 1, 0);
Mp.frameTo = function (endframe, duration, animType, delay, callback, extra1, extra2) {
if (endframe == undefined) {
endframe = this._totalframes;
}
this.tween("_frame", endframe, duration, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "frameTo", 1, 0);
Mp.brightOffsetTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
var _local2 = 256 * (percent / 100);
var _local3 = {ra:100, rb:_local2, ga:100, gb:_local2, ba:100, bb:_local2};
this.tween(["_ct_"], [_local3], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightOffsetTo", 1, 0);
Mp.contrastTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
var _local2 = {};
_local2.ra = (_local2.ga = (_local2.ba = percent));
_local2.rb = (_local2.gb = (_local2.bb = 128 - (1.28 * percent)));
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "contrastTo", 1, 0);
delete Mp;
mrtiny_snd.stop();
if (firstRun) {
bg._alpha = 0;
}
bg.alphaTo(100, 1, "linear", 0);
logo_mc._y = -500;
logo_mc.slideTo(logo_mc._x, 30, 0.5, "easeOutExpo", 0);
menu_mc._y = 600;
menu_mc.slideTo(menu_mc._x, 408, 0.5, "easeOutExpo", 0);
stop();
menu_mc.start_btn.onRelease = function () {
function jump() {
gotoAndStop ("levelselect");
}
logo_mc.slideTo(logo_mc._x, -500, 0.5, "easeInExpo", 0, jump);
menu_mc.slideTo(menu_mc._x, 600, 0.5, "easeInExpo", 0);
menu_mc.start_btn.onRelease = null;
};
menu_mc.scores_btn.onRelease = function () {
function jump() {
gotoAndStop ("highscores");
}
logo_mc.slideTo(logo_mc._x, -500, 0.5, "easeInExpo", 0, jump);
menu_mc.slideTo(menu_mc._x, 600, 0.5, "easeInExpo", 0);
menu_mc.scores_btn.onRelease = null;
};
menu_mc.credits_btn.onRelease = function () {
function jump() {
gotoAndStop ("credits");
}
logo_mc.slideTo(logo_mc._x, -500, 0.5, "easeInExpo", 0, jump);
menu_mc.slideTo(menu_mc._x, 600, 0.5, "easeInExpo", 0);
menu_mc.credits_btn.onRelease = null;
};
menu_mc.instructions_btn.onRelease = function () {
function jump() {
gotoAndStop ("instructions");
}
logo_mc.slideTo(logo_mc._x, -500, 0.5, "easeInExpo", 0, jump);
menu_mc.slideTo(menu_mc._x, 600, 0.5, "easeInExpo", 0);
menu_mc.instructions_btn.onRelease = null;
};
firstRun = false;
Frame 19
function menu() {
gotoAndStop ("setup");
}
levelsel_mc._y = -350;
levelsel_mc.slideTo(levelsel_mc._x, 120, 0.75, "easeOutExpo", 0.5);
levelsel_mc.ok_btn.onRelease = function () {
bg.alphaTo(0, 1, "linear", 0, menu);
levelsel_mc.slideTo(levelsel_mc._x, -350, 0.5, "easeInExpo");
levelsel_mc.ok_btn.onRelease = null;
};
Frame 29
function backToMenu() {
gotoAndStop ("menu");
}
bg._alpha = 0;
bg.alphaTo(100, 1, "linear", 0);
Mouse.show();
gameover_box._y = -300;
gameover_box.slideTo(gameover_box._x, 120, 0.75, "easeOutExpo", 0.5);
gameover_box.ok_btn.onRelease = function () {
gameover_box.slideTo(gameover_box._x, -300, 0.5, "easeInExpo", 0, backToMenu);
gameover_box.ok_btn.onRelease = null;
};
Frame 40
function enterScore() {
gotoAndStop ("enterscore");
}
bg._alpha = 0;
bg.alphaTo(100, 1, "linear", 0);
Mouse.show();
welldone._y = -350;
welldone.slideTo(welldone._x, 120, 0.75, "easeOutExpo", 0.5);
welldone.ok_btn.onRelease = function () {
welldone.slideTo(welldone._x, -350, 0.5, "easeInExpo", 0, enterScore);
welldone.ok_btn.onRelease = null;
};
welldone.count_down.text = time_to_string(elapsed_time);
Frame 52
function menu() {
gotoAndStop ("menu");
}
credits._y = -550;
credits.slideTo(credits._x, 25, 0.75, "easeOutExpo", 0.5);
credits.ok_btn.onRelease = function () {
credits.slideTo(credits._x, -550, 0.5, "easeInExpo", 0, menu);
credits.ok_btn.onRelease = null;
};
Frame 65
function menu() {
gotoAndStop ("menu");
}
credits._y = -370;
credits.slideTo(credits._x, 120, 0.75, "easeOutExpo", 0.5);
credits.ok_btn.onRelease = function () {
credits.slideTo(credits._x, -370, 0.5, "easeInExpo", 0, menu);
credits.ok_btn.onRelease = null;
};
Frame 77
highscores.score = elapsed_time;
stop();
Frame 89
highscores.score = undefined;
stop();
Frame 110
function executeCallback(param) {
elapsed_time = getTimer() - start_time;
if (elapsed_time >= (endTime * 1000)) {
timerOn = false;
elapsed_time = endTime * 1000;
game_mc.showFader("gameover");
}
count_down.text = time_to_string(elapsed_time);
if (!timerOn) {
clearInterval(intervalId);
}
}
function beginInterval() {
if (intervalId != null) {
trace("clear interval");
clearInterval(intervalId);
}
intervalId = setInterval(this, "executeCallback", duration);
}
function startTimer() {
timerOn = true;
start_time = getTimer();
beginInterval();
}
function stopTimer() {
timerOn = false;
}
switch (level) {
case 1 :
spiderTotal = 3;
fishheadTotal = 0;
frogsBreathTotal = 1;
catTotal = 1;
newtTotal = 1;
fishboneTotal = 0;
wormsTotal = 1;
stirNow = false;
break;
case 2 :
spiderTotal = 5;
fishheadTotal = 2;
frogsBreathTotal = 2;
catTotal = 1;
newtTotal = 4;
fishboneTotal = 0;
wormsTotal = 1;
stirNow = false;
break;
case 3 :
spiderTotal = 8;
fishheadTotal = 2;
frogsBreathTotal = 2;
catTotal = 2;
newtTotal = 6;
fishboneTotal = 2;
wormsTotal = 2;
stirNow = false;
}
reset_btn.onRelease = startTimer;
stop_btn.onRelease = stopTimer;
var intervalId;
var duration = 20;
var timerOn = false;
var endTime = 180;
var soundArray = new Array("bubble", "catmeow", "burp", "mrtiny", "jarshake", "spider", "cauldron", "magic");
var i = 0;
while (i < soundArray.length) {
sound_mc = this.createEmptyMovieClip(("sound" + i) + "_mc", this.getNextHighestDepth());
ob = soundArray[i] + "_snd";
this[ob] = new Sound(sound_mc);
this[ob].attachSound(soundArray[i]);
this[ob].setVolume(100);
ob = null;
delete ob;
i++;
}
gotoAndStop ("main");
Symbol 5 MovieClip Frame 9
gotoAndPlay (1);
Symbol 315 MovieClip [__Packages.com.robertpenner.easing.Quad] Frame 0
class com.robertpenner.easing.Quad
{
function Quad () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((t * t) - 1)) + b);
}
t--;
return(((c / 2) * ((t * t) + 1)) + b);
}
}
Symbol 316 MovieClip [__Packages.com.robertpenner.easing.Circ] Frame 0
class com.robertpenner.easing.Circ
{
function Circ () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
}
Symbol 317 MovieClip [__Packages.com.robertpenner.easing.Quart] Frame 0
class com.robertpenner.easing.Quart
{
function Quart () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
}
Symbol 318 MovieClip [__Packages.com.robertpenner.easing.Sine] Frame 0
class com.robertpenner.easing.Sine
{
function Sine () {
}
static function easeIn(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOut(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOut(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
}
Symbol 319 MovieClip [__Packages.com.robertpenner.easing.Back] Frame 0
class com.robertpenner.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
}
Symbol 320 MovieClip [__Packages.com.robertpenner.easing.Quint] Frame 0
class com.robertpenner.easing.Quint
{
function Quint () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
}
Symbol 321 MovieClip [__Packages.com.robertpenner.easing.Linear] Frame 0
class com.robertpenner.easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOutIn(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 322 MovieClip [__Packages.com.robertpenner.easing.Expo] Frame 0
class com.robertpenner.easing.Expo
{
function Expo () {
}
static function easeIn(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOut(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOut(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
}
Symbol 323 MovieClip [__Packages.com.robertpenner.easing.Elastic] Frame 0
class com.robertpenner.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)))) + b);
}
}
Symbol 324 MovieClip [__Packages.com.robertpenner.easing.Bounce] Frame 0
class com.robertpenner.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutIn(t, b, c, d) {
if (t < (d / 2)) {
return((easeOut(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeIn((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}
Symbol 325 MovieClip [__Packages.zigo.tweenManager] Frame 0
class zigo.tweenManager
{
var playing, isPaused, autoStop, broadcastEvents, autoOverwrite, ints, lockedTweens, tweenList, updateTime, updateIntId, tweenHolder, now, pausedTime;
function tweenManager () {
playing = false;
isPaused = false;
autoStop = false;
broadcastEvents = false;
autoOverwrite = true;
ints = new Array();
lockedTweens = new Object();
tweenList = new Array();
}
function set updateInterval(time) {
if (playing) {
deinit();
updateTime = time;
init();
} else {
updateTime = time;
}
//return(updateInterval);
}
function get updateInterval() {
return(updateTime);
}
function init() {
if (updateTime > 0) {
updateIntId = setInterval(this, "update", updateTime);
} else {
if (tweenHolder._name == undefined) {
tweenHolder = _root.createEmptyMovieClip("_th_", 6789);
}
var tm = this;
tweenHolder.onEnterFrame = function () {
tm.update.call(tm);
};
}
playing = true;
now = getTimer();
}
function deinit() {
playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
}
function update() {
var _local2;
var _local7;
var _local3;
_local7 = tweenList.length;
if (broadcastEvents) {
var _local4;
var _local6;
_local4 = {};
_local6 = {};
}
while (_local7--) {
_local2 = tweenList[_local7];
if ((_local2.ts + _local2.d) > now) {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ef(now - _local2.ts, _local2.ps, _local2.ch, _local2.d, _local2.e1, _local2.e2);
} else {
var _local5 = {};
for (_local3 in _local2.ctm) {
_local5[_local3] = _local2.ef(now - _local2.ts, _local2.stm[_local3], _local2.ctm[_local3], _local2.d, _local2.e1, _local2.e2);
}
_local2.c.setTransform(_local5);
}
if (broadcastEvents) {
if (_local4[targetPath(_local2.mc)] == undefined) {
_local4[targetPath(_local2.mc)] = _local2.mc;
}
}
if (_local2.cb.updfunc != undefined) {
_local2.cb.updfunc.apply(_local2.cb.updscope, _local2.cb.updargs);
}
} else {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ps + _local2.ch;
} else {
var _local5 = {};
for (_local3 in _local2.ctm) {
_local5[_local3] = _local2.stm[_local3] + _local2.ctm[_local3];
}
_local2.c.setTransform(_local5);
}
if (broadcastEvents) {
if (_local4[targetPath(_local2.mc)] == undefined) {
_local4[targetPath(_local2.mc)] = _local2.mc;
}
if (_local6[targetPath(_local2.mc)] == undefined) {
_local6[targetPath(_local2.mc)] = _local2.mc;
}
}
if (_local2.cb.updfunc != undefined) {
_local2.cb.updfunc.apply(_local2.cb.updscope, _local2.cb.updargs);
}
if (endt == undefined) {
var endt = new Array();
}
endt.push(_local7);
}
}
for (_local3 in _local4) {
_local4[_local3].broadcastMessage("onTweenUpdate");
}
if (endt != undefined) {
endTweens(endt);
}
for (_local3 in _local6) {
_local6[_local3].broadcastMessage("onTweenEnd");
}
now = getTimer();
if (updateTime > 0) {
updateAfterEvent();
}
}
function endTweens(tid_arr) {
var _local2;
var _local8;
var _local3;
var _local4;
var _local7;
_local2 = [];
_local8 = tid_arr.length;
_local3 = 0;
while (_local3 < _local8) {
_local4 = tweenList[tid_arr[_local3]].cb;
if (_local4 != undefined) {
var _local5 = true;
for (_local7 in _local2) {
if (_local2[_local7] == _local4) {
_local5 = false;
break;
}
}
if (_local5) {
_local2.push(_local4);
}
}
tweenList.splice(tid_arr[_local3], 1);
_local3++;
}
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3].func.apply(_local2[_local3].scope, _local2[_local3].args);
_local3++;
}
if (tweenList.length == 0) {
deinit();
}
}
function addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var _local4;
var _local12;
var _local6;
var _local3;
var _local2;
if (!playing) {
init();
}
for (_local4 in props) {
_local12 = props[_local4];
_local6 = true;
if (_local12.substr(0, 4) != "_ct_") {
if (autoOverwrite) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.mc == mc) && (_local2.pp == _local12)) {
_local2.ps = mc[_local12];
_local2.ch = pEnd[_local4] - mc[_local12];
_local2.ts = now;
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local6 = false;
break;
}
}
}
if (_local6) {
tweenList.unshift({mc:mc, pp:_local12, ps:mc[_local12], ch:pEnd[_local4] - mc[_local12], ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
} else {
var _local16 = new Color(mc);
var _local20 = _local16.getTransform();
var _local19 = {};
for (_local3 in pEnd[_local4]) {
if ((pEnd[_local4][_local3] != _local20[_local3]) && (pEnd[_local4][_local3] != undefined)) {
_local19[_local3] = pEnd[_local4][_local3] - _local20[_local3];
}
}
if (autoOverwrite) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.mc == mc) && (_local2.ctm != undefined)) {
_local2.c = _local16;
_local2.stm = _local20;
(_local2.ctm = _local19);
(_local2.ts = now);
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local6 = false;
break;
}
}
}
if (_local6) {
tweenList.unshift({mc:mc, c:_local16, stm:_local20, ctm:_local19, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
}
}
if (broadcastEvents) {
mc.broadcastMessage("onTweenStart", props[_local4]);
}
if (callback.startfunc != undefined) {
callback.startfunc.apply(callback.startscope, callback.startargs);
}
}
function addTweenWithDelay(delay, mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var il;
var _local5;
il = ints.length;
_local5 = setInterval(function (obj) {
var _local3;
var _local2;
obj.addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2);
clearInterval(obj.ints[il].intid);
obj.ints[il] = undefined;
_local3 = true;
for (_local2 in obj.ints) {
if (obj.ints[_local2] != undefined) {
_local3 = false;
break;
}
}
if (_local3) {
obj.ints = [];
}
}, delay * 1000, this);
ints[il] = {mc:mc, props:props, pend:pEnd, intid:_local5, st:now, delay:delay * 1000, args:arguments.slice(1)};
}
function removeTween(mc, props) {
var _local7;
var _local2;
var _local3;
_local7 = false;
if (props == undefined) {
_local7 = true;
}
_local2 = tweenList.length;
while (_local2--) {
if (tweenList[_local2].mc == mc) {
if (_local7) {
tweenList.splice(_local2, 1);
} else {
for (_local3 in props) {
if (tweenList[_local2].pp == props[_local3]) {
tweenList.splice(_local2, 1);
} else if (((props[_local3] == "_ct_") && (tweenList[_local2].ctm != undefined)) && (tweenList[_local2].mc == mc)) {
tweenList.splice(_local2, 1);
}
}
}
}
}
_local2 = ints.length;
while (_local2--) {
if (ints[_local2].mc == mc) {
if (_local7) {
clearInterval(ints[_local2].intid);
ints[_local2] = undefined;
} else {
for (_local3 in props) {
for (var _local6 in ints[_local2].props) {
if (ints[_local2].props[_local6] == props[_local3]) {
ints[_local2].props.splice(_local6, 1);
ints[_local2].pend.splice(_local6, 1);
}
}
if (ints[_local2].props.length == 0) {
clearInterval(ints[_local2].intid);
}
}
}
}
}
if (tweenList.length == 0) {
deinit();
}
}
function isTweening(mc) {
for (var _local3 in tweenList) {
if (tweenList[_local3].mc == mc) {
return(true);
}
}
return(false);
}
function getTweens(mc) {
var _local2 = 0;
for (var _local4 in tweenList) {
if (tweenList[_local4].mc == mc) {
_local2++;
}
}
return(_local2);
}
function lockTween(mc, bool) {
lockedTweens[targetPath(mc)] = bool;
}
function isTweenLocked(mc) {
if (lockedTweens[targetPath(mc)] == undefined) {
return(false);
}
return(lockedTweens[targetPath(mc)]);
}
function pauseAll() {
if (isPaused) {
return(undefined);
}
isPaused = true;
pausedTime = now;
for (var _local2 in ints) {
clearInterval(ints[_local2].intid);
}
deinit();
}
function unpauseAll() {
if (!isPaused) {
return(undefined);
}
var _local2;
var _local4;
isPaused = false;
init();
for (_local2 in tweenList) {
_local4 = tweenList[_local2];
_local4.ts = now - (pausedTime - _local4.ts);
}
for (_local2 in ints) {
if (ints[_local2] == undefined) {
continue;
}
var _local3 = ints[_local2].delay - (pausedTime - ints[_local2].st);
var _local5 = setInterval(function (obj, id) {
obj.addTween.apply(obj, obj.ints[id].args);
clearInterval(obj.ints[id].intid);
obj.ints[id] = undefined;
}, _local3, this, _local2);
ints[_local2].intid = _local5;
ints[_local2].st = now;
ints[_local2].delay = _local3;
}
}
function stopAll() {
for (var _local2 in ints) {
clearInterval(ints[_local2].intid);
}
tweenList = new Array();
deinit();
}
function toString() {
return("[AS2 tweenManager 1.1.8]");
}
}
Symbol 326 MovieClip [__Packages.com.robertpenner.easing.Cubic] Frame 0
class com.robertpenner.easing.Cubic
{
function Cubic () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
}
Symbol 327 MovieClip [__Packages.de.popforge.event.EnterFrameListener] Frame 0
interface de.popforge.event.EnterFrameListener
{
}
Symbol 328 MovieClip [__Packages.de.popforge.wm2006.effect.Flag] Frame 0
class de.popforge.wm2006.effect.Flag implements de.popforge.event.EnterFrameListener
{
var source, output, bounds, perlinNoiseOffset, perlinNoiseBitmapData, perlinNoiseSeed, flag, displacement, flagOffset, width, height;
function Flag (source, output) {
this.source = source;
this.output = output;
assemble();
}
function enterFrame() {
output.fillRect(bounds, 0);
perlinNoiseOffset[0].x = perlinNoiseOffset[0].x - (0.01 * source.width);
perlinNoiseOffset[1].x = perlinNoiseOffset[1].x - (0.04 * source.height);
perlinNoiseBitmapData.perlinNoise(0.6 * source.width, 0.3 * source.height, 2, perlinNoiseSeed, false, true, 6, false, perlinNoiseOffset);
output.applyFilter(flag, bounds, ORIGIN, displacement);
}
function update() {
flag.copyPixels(source, source.rectangle, flagOffset);
}
function getFlagBitmapData() {
return(flag);
}
function assemble() {
width = output.width;
height = output.height;
bounds = output.rectangle;
flag = new flash.display.BitmapData(width, height, true, 0);
flagOffset = new flash.geom.Point((width - source.width) / 2, (height - source.height) / 2);
flag.copyPixels(source, source.rectangle, flagOffset);
perlinNoiseBitmapData = new flash.display.BitmapData(width, height, false, 0);
perlinNoiseOffset = [new flash.geom.Point(), new flash.geom.Point()];
perlinNoiseSeed = Math.floor(Math.random() * 256);
displacement = new flash.filters.DisplacementMapFilter(perlinNoiseBitmapData, ORIGIN, 2, 4, 0.125 * source.width, 0.2 * source.height, "ignore");
}
static var ORIGIN = new flash.geom.Point();
static var IDENTITY = new flash.geom.Matrix();
}
Symbol 24 MovieClip Frame 1
stop();
Instance of Symbol 32 MovieClip in Symbol 33 MovieClip [Number] Frame 1
onClipEvent (load) {
speed = random(20) - 10;
size = random(50) + 80;
this._xscale = (this._yscale = size);
this.gotoAndPlay(random(59) + 1);
}
onClipEvent (enterFrame) {
}
Symbol 34 MovieClip Frame 1
function mover() {
this._y = this._y - this.speed;
this._xscale = (this._yscale = this._y * 2);
if (this._y < 0) {
this._y = maxHeight;
this.speed = random(5) + 1;
}
}
function snow(a, n) {
i = 0;
while (i < n) {
var _local3 = this.createEmptyMovieClip("star" + i, i);
_local3._x = Math.random() * maxWidth;
_local3._rotation = ((Math.random() * 2) * a) - a;
_local3._y = 0;
var _local2 = _local3.createEmptyMovieClip("dot", 0);
_local2.attachMovie("number", "number_mc", this.getNextHighestDepth());
_local2.onEnterFrame = mover;
_local2.speed = random(3) + 1;
_local2._y = random(maxHeight);
i++;
}
}
maxHeight = 200;
maxWidth = 10;
snow(10, 8);
Symbol 43 Button
on (release) {
getURL ("http://www.presencemultimedia.co.uk", "_blank");
}
Symbol 71 MovieClip Frame 1
var lib = flash.display.BitmapData.loadBitmap("flag");
var outputClip = holder;
var output = (new flash.display.BitmapData(611, 300, true, 0));
outputClip.attachBitmap(output, 0);
outputClip._x = 0;
outputClip._y = 0;
var flag = (new de.popforge.wm2006.effect.Flag(lib, output));
onEnterFrame = function () {
flag.enterFrame();
};
Symbol 80 Button
on (press) {
gotoAndStop ("easy");
}
Symbol 81 Button
on (press) {
gotoAndStop ("medium");
}
Symbol 82 Button
on (press) {
gotoAndStop ("hard");
}
Symbol 85 MovieClip Frame 1
if (_root.level == 1) {
gotoAndStop ("easy");
}
if (_root.level == 2) {
gotoAndStop ("medium");
}
if (_root.level == 3) {
gotoAndStop ("hard");
}
Symbol 85 MovieClip Frame 6
_root.level = 1;
Symbol 85 MovieClip Frame 12
_root.level = 2;
Symbol 85 MovieClip Frame 18
_root.level = 3;
Symbol 97 Button
on (press) {
_parent.getReady.slideTo(_parent.getready._x, -300, 0.5, "easeInExpo", 0, _parent.hideFader);
}
Symbol 115 Button
on (release) {
getURL ("http://www.presencemultimedia.co.uk", "_blank");
}
Symbol 160 MovieClip Frame 1
Symbol 160 MovieClip Frame 2
gotoAndPlay ("checkScore");
Symbol 160 MovieClip Frame 11
if (score == undefined) {
gotoAndStop ("hi_display");
} else {
switch (_root.level) {
case 1 :
newEntryPos = undefined;
if ((_root.highScores1.length == 0) || (_root.highScores1.length == undefined)) {
newEntryPos = 0;
} else {
var i = 0;
while (i < _root.highScores1.length) {
if (score < _root.highScores1[i][1]) {
break;
}
i++;
}
newEntryPos = i;
}
trace("newEntryPos " + newEntryPos);
break;
case 2 :
newEntryPos = undefined;
if ((_root.highScores2.length == 0) || (_root.highScores2.length == undefined)) {
newEntryPos = 0;
} else {
var i = 0;
while (i < _root.highScores2.length) {
if (score < _root.highScores2[i][1]) {
break;
}
i++;
}
newEntryPos = i;
}
trace("newEntryPos " + newEntryPos);
break;
case 3 :
newEntryPos = undefined;
if ((_root.highScores3.length == 0) || (_root.highScores3.length == undefined)) {
newEntryPos = 0;
} else {
var i = 0;
while (i < _root.highScores3.length) {
if (score < _root.highScores3[i][1]) {
break;
}
i++;
}
newEntryPos = i;
}
trace("newEntryPos " + newEntryPos);
}
}
Symbol 160 MovieClip Frame 20
function hi_update() {
gotoAndStop ("hi_update");
}
stop();
box._y = -490;
box.slideTo(box._x, 35, 0.75, "easeOutExpo", 0.5);
box.score_txt.text = "score " + _parent.time_to_string(score);
box.Selection.setFocus("newname_txt");
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.getCode() == 13) {
myname = box.newname_txt.text;
myscore = score;
myemail = box.email_txt.text;
_root["highScores" + _root.level].splice(newEntryPos, 0, [box.newname_txt.text, score, box.email_txt.text]);
box.slideTo(box._x, -490, 0.5, "easeInExpo", 0, hi_update);
Key.removeListener(keyListener);
keyListener.onKeyDown = null;
}
};
box.newname_txt.onSetFocus = function () {
Key.addListener(keyListener);
};
box.email_txt.onSetFocus = function () {
Key.addListener(keyListener);
};
box.ok_btn.onSetFocus = function () {
Key.removeListener(keyListener);
};
box.ok_btn.onPress = function () {
myname = box.newname_txt.text;
myscore = score;
myemail = box.email_txt.text;
_root["highScores" + _root.level].splice(newEntryPos, 0, [box.newname_txt.text, score, box.email_txt.text]);
box.slideTo(box._x, -490, 0.5, "easeInExpo", 0, hi_update);
trace("\n\n");
trace(_root["highScores" + _root.level]);
box.ok_btn.onPress = null;
};
stop();
Symbol 160 MovieClip Frame 30
scoretable._y = -520;
scoretable.slideTo(scoretable._x, 35, 0.75, "easeOutExpo", 0.5);
switch (_root.level) {
case 1 :
scoretable.tableTitle_txt.text = "Easy Table";
break;
case 2 :
scoretable.tableTitle_txt.text = "Medium Table";
break;
case 3 :
scoretable.tableTitle_txt.text = "Hard Table";
}
i = 0;
while (i < _root["highScores" + _root.level].length) {
scoretable["scname" + i].text = _root["highScores" + _root.level][i][0];
scoretable["sc" + i].text = _parent.time_to_string(_root["highScores" + _root.level][i][1]);
i++;
}
scoretable.ok_btn.onRelease = function () {
function mainmenu() {
_parent.gotoAndStop("menu");
}
_parent.score = undefined;
score = undefined;
scoretable.slideTo(scoretable._x, -520, 0.75, "easeInExpo", 0.5, mainmenu);
scoretable.ok_btn.onRelease = null;
};
stop();
Symbol 160 MovieClip Frame 39
scoretable.tableTitle_txt.text = "Easy Table";
scoretable._y = -520;
scoretable.slideTo(scoretable._x, 35, 0.75, "easeOutExpo", 0.5);
i = 0;
while (i < _root.highScores1.length) {
scoretable["scname" + i].text = _root.highScores1[i][0];
scoretable["sc" + i].text = _parent.time_to_string(_root.highScores1[i][1]);
i++;
}
scoretable.ok_btn.onRelease = function () {
function mainmenu() {
gotoAndStop ("medium");
}
_parent.score = undefined;
score = undefined;
scoretable.slideTo(scoretable._x, -520, 0.75, "easeInExpo", 0.5, mainmenu);
scoretable.ok_btn.onRelease = null;
};
stop();
Symbol 160 MovieClip Frame 56
scoretable.tableTitle_txt.text = "Medium Table";
scoretable._y = -520;
scoretable.slideTo(scoretable._x, 35, 0.75, "easeOutExpo", 0.5);
i = 0;
while (i < _root.highScores2.length) {
scoretable["scname" + i].text = _root.highScores2[i][0];
scoretable["sc" + i].text = _parent.time_to_string(_root.highScores2[i][1]);
i++;
}
scoretable.ok_btn.onRelease = function () {
function mainmenu() {
gotoAndStop ("hard");
}
_parent.score = undefined;
score = undefined;
scoretable.slideTo(scoretable._x, -520, 0.75, "easeInExpo", 0.5, mainmenu);
scoretable.ok_btn.onRelease = null;
};
stop();
Symbol 160 MovieClip Frame 65
scoretable.tableTitle_txt.text = "Hard Table";
scoretable._y = -520;
scoretable.slideTo(scoretable._x, 35, 0.75, "easeOutExpo", 0.5);
i = 0;
while (i < _root.highScores3.length) {
scoretable["scname" + i].text = _root.highScores3[i][0];
scoretable["sc" + i].text = _parent.time_to_string(_root.highScores3[i][1]);
i++;
}
scoretable.ok_btn.onRelease = function () {
function mainmenu() {
_parent.gotoAndStop("menu");
}
_parent.score = undefined;
score = undefined;
scoretable.slideTo(scoretable._x, -520, 0.75, "easeInExpo", 0.5, mainmenu);
scoretable.ok_btn.onRelease = null;
};
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 179 Button
on (press) {
gotoAndPlay ("in");
}
Symbol 185 Button
on (press) {
gotoAndPlay ("fishin");
}
Symbol 191 Button
on (press) {
gotoAndPlay ("frogin");
}
Symbol 192 MovieClip Frame 1
stop();
_parent.guilotineEmpty = true;
Symbol 192 MovieClip Frame 35
gotoAndStop ("off");
Symbol 192 MovieClip Frame 37
stop();
_parent.guilotineEmpty = false;
Symbol 192 MovieClip Frame 47
_parent.fishhead_mc._x = _parent.fishhead.x;
_parent.fishhead_mc._y = _parent.fishhead.y;
Symbol 192 MovieClip Frame 48
_parent.fishhead_mc._visible = true;
Symbol 192 MovieClip Frame 85
gotoAndStop ("off");
Symbol 192 MovieClip Frame 87
stop();
_parent.guilotineEmpty = false;
Symbol 192 MovieClip Frame 135
_parent.resetObj("frog");
Symbol 198 MovieClip Frame 41
gotoAndPlay (1);
Symbol 198 MovieClip Frame 42
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 1
stop();
this._visible = false;
Symbol 219 MovieClip Frame 2
this._visible = true;
Symbol 219 MovieClip Frame 20
this._visible = false;
Symbol 219 MovieClip Frame 21
this._visible = false;
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 23
gotoAndStop (2);
Symbol 233 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 10
_parent.fishbone_mc._x = _parent.fishbone.x;
_parent.fishbone_mc._y = _parent.fishbone.y;
_parent.fishbone_mc._visible = false;
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 25
gotoAndStop (2);
Symbol 261 MovieClip Frame 68
gotoAndStop (2);
Symbol 261 MovieClip Frame 69
this.enabled = false;
Symbol 261 MovieClip Frame 102
_parent.catbowl_mc.gotoAndStop("empty");
Symbol 261 MovieClip Frame 210
_parent.fishbone_mc._visible = true;
Symbol 261 MovieClip Frame 230
this.enabled = true;
gotoAndStop (1);
Symbol 277 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 100
gotoAndStop (1);
Symbol 297 Button
on (release) {
_parent.getReady.slideTo(_parent.getready._x, -300, 0.5, "easeInExpo", 0, _parent.hideFader);
trace("clicked");
ok_btn.enabled = false;
}
Symbol 307 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 1
function hideFader() {
fader_mc._visible = false;
enableButtons(true);
_parent.startTimer();
_parent.mrtiny_snd.start(0, 4);
spiderIn();
}
function showFader(link) {
function gameover() {
_parent.gotoAndStop(link);
}
fader_mc._visible = true;
fader_mc.alphaTo(100, 1, "linear", 0, gameover);
enableButtons(false);
}
function hideArrows() {
yarrows_mc._visible = false;
xarrows_mc._visible = false;
circArrow_mc._visible = false;
inArrow_mc._visible = false;
}
function resetObj(objName) {
this[objName + "_mc"]._x = this[objName].x;
this[objName + "_mc"]._y = this[objName].y;
this[objName + "_mc"].gotoAndStop(1);
this[objName + "_mc"].onMouseMove = null;
hideArrows();
}
function verticalInteration() {
function evalShake(mc) {
dirSwitch = (dirSwitch ? false : true);
shakeCount++;
if ((shakeCount % 20) == 19) {
mc.gotoAndPlay("burp");
shakeCount = 0;
if (mc.itemTotal > 0) {
mc.itemTotal--;
}
displayRecipe();
}
count_txt.text = shakeCount;
}
this.tempDepth = this.getDepth();
this.swapDepths(book_mc.getDepth() - 1);
this._x = hand_mc._x;
this._y = _ymouse - 10;
trace(this._name);
if (this._name == "cat_mc") {
this.onEnterFrame = function () {
if (guilotine_mc.hitTest(_xmouse, _ymouse)) {
if (!this.angryloop) {
this.angryloop = true;
catscratch.play();
this.gotoAndPlay("angry");
}
} else {
this.angryloop = false;
}
};
}
var shakeCount = 0;
var dirSwitch = false;
yarrows_mc._visible = true;
this.gotoAndStop(2);
this.onMouseMove = function () {
if (((_ymouse >= (yarrows_mc._y + 20)) && (dirSwitch)) && ((_xmouse >= 350) && (_xmouse <= 570))) {
evalShake(this);
}
if (((_ymouse <= (yarrows_mc._y - 20)) && (!dirSwitch)) && ((_xmouse >= 350) && (_xmouse <= 570))) {
evalShake(this);
}
this._x = hand_mc._x;
if (_ymouse >= 20) {
this._y = _ymouse - 10;
}
updateAfterEvent();
};
}
function horizontalInteraction() {
function evalShake(mc) {
dirSwitch = (dirSwitch ? false : true);
shakeCount++;
if ((shakeCount % 20) == 19) {
mc.gotoAndPlay("burp");
sprinkle.gotoAndPlay("in");
if (mc.itemTotal > 0) {
mc.itemTotal--;
}
displayRecipe();
}
count_txt.text = shakeCount;
}
this.tempDepth = this.getDepth();
this.swapDepths(book_mc.getDepth() - 1);
this._x = _xmouse;
this._y = _ymouse - 10;
shakeCount = 0;
var dirSwitch = false;
xarrows_mc._visible = true;
this.gotoAndStop(2);
this.onMouseMove = function () {
if ((((_xmouse >= 470) && (dirSwitch)) && (_ymouse <= (xarrows_mc._y + 40))) && (_ymouse >= (xarrows_mc._y - 40))) {
_root.jarshake_snd.start(0, 0);
evalShake(this);
}
if ((((_xmouse <= 430) && (!dirSwitch)) && (_ymouse <= (xarrows_mc._y + 40))) && (_ymouse >= (xarrows_mc._y - 40))) {
evalShake(this);
}
this._x = hand_mc._x;
if (_ymouse >= 20) {
this._y = _ymouse - 10;
}
updateAfterEvent();
};
}
function spiderOut() {
spider_mc.slideTo(spider_mc._x, -100, 3, "easeOutExpo", 0, spiderIn);
}
function spiderIn() {
_root.spider_snd.start();
spider_mc._x = random(900) + 50;
spider_mc._visible = true;
spider_mc.slideTo(spider_mc._x, 100, 6, "easeOutElastic", 0, spiderOut);
}
function throwObj() {
if (this.dragging) {
this.old.x = this.pos.x;
this.old.y = this.pos.y;
this.pos.x = this._x;
this.pos.y = this._y;
this.vel.x = (this.pos.x - this.old.x) / 2;
this.vel.y = (this.pos.y - this.old.y) / 2;
} else {
if (this._y < mainTarget_mc._y) {
mainTarget_mc.gotoAndStop(1);
}
this.vel.y = this.vel.y + gravity;
this.old.x = this.pos.x;
this.old.y = this.pos.y;
this.pos.x = this.pos.x + this.vel.x;
this.pos.y = this.pos.y + this.vel.y;
if ((this.pos.y + this.radius) > movie.height) {
this.pos.y = movie.height - this.radius;
this.vel.y = this.vel.y * (-restitution);
this.vel.x = this.vel.x * friction;
}
if ((rimTarget_mc.hitTest(this._x, this._y, true) && (this.vel.y > 0)) && (this.old.y < mainTarget_mc._y)) {
if (this.vel.x > 0) {
this.xdir = 1;
} else {
this.xdir = -1;
}
trace("hit");
this.pos.y = rimTarget_mc._y;
this.vel.x = 3 * this.xdir;
this.vel.y = -(this.vel.y * restitution);
this.vel.x = this.vel.x * friction;
}
if ((this.pos.x + this.radius) > movie.width) {
this.pos.x = movie.width - this.radius;
this.vel.x = this.vel.x * (-restitution);
}
if (this.pos.x < this.radius) {
this.pos.x = this.radius;
this.vel.x = this.vel.x * (-restitution);
}
this._x = this.pos.x;
this._y = this.pos.y;
if ((mainTarget_mc.hitTest(this._x, this._y, true) && (this.vel.y > 0)) && (this.old.y < mainTarget_mc._y)) {
if (this.itemTotal > 0) {
this.itemTotal--;
}
displayRecipe();
_parent.bubble_snd.start();
splash_mc._x = this._x;
splash_mc.setMask(pot_mask);
splash_mc.gotoAndPlay("in");
this.setMask(null);
this._y = -100;
this._x = -100;
this.gotoAndStop(1);
this.onEnterFrame = null;
if (((this._name == "fishhead_mc") || (this._name == "fish_mc")) || (this._name == "fishbone_mc")) {
fishbowl_mc.gotoAndPlay(1);
fishbowl_mc.enabled = true;
}
if (this._name == "spider2_mc") {
spiderOut();
}
if (this._name == "worms_mc") {
resetObj("worms");
}
}
if (this._y > 650) {
this.setMask(null);
this._y = -100;
this._x = -100;
this.gotoAndStop(1);
this.onEnterFrame = null;
if (((this._name == "fishhead_mc") || (this._name == "fish_mc")) || (this._name == "fishbone_mc")) {
fishbowl_mc.gotoAndPlay(1);
fishbowl_mc.enabled = true;
}
if (this._name == "spider2_mc") {
spiderOut();
}
if (this._name == "worms_mc") {
resetObj("worms");
}
}
}
}
function displayRecipe() {
switch (_root.level) {
case 1 :
book_mc.recipe_txt.text = spider2_mc.itemTotal + " - Spider";
if (spider2_mc.itemTotal != 1) {
book_mc.recipe_txt.text = book_mc.recipe_txt.text + "s";
}
book_mc.recipe_txt.text = book_mc.recipe_txt.text + ((newline + frog_mc.itemTotal) + " - Frogs breath\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (cat_mc.itemTotal + " - Cat smell\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (newt_mc.itemTotal + " - Sprinkle of newts eyes\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (worms_mc.itemTotal + " - Worms\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + "Stir Thoroughly ";
break;
case 2 :
book_mc.recipe_txt.text = spider2_mc.itemTotal + " - Spider";
if (spider2_mc.itemTotal != 1) {
book_mc.recipe_txt.text = book_mc.recipe_txt.text + "s";
}
book_mc.recipe_txt.text = book_mc.recipe_txt.text + ((newline + frog_mc.itemTotal) + " - Frogs breath\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (cat_mc.itemTotal + " - Cat smell\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (newt_mc.itemTotal + " - Sprinkle of newts eyes\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (fishhead_mc.itemTotal + " - Fish head\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (worms_mc.itemTotal + " - Worms\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + "Stir Thoroughly ";
break;
case 3 :
book_mc.recipe_txt.text = spider2_mc.itemTotal + " - Spider";
if (spider2_mc.itemTotal != 1) {
book_mc.recipe_txt.text = book_mc.recipe_txt.text + "s";
}
book_mc.recipe_txt.text = book_mc.recipe_txt.text + ((newline + frog_mc.itemTotal) + " - Frogs breath\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (cat_mc.itemTotal + " - Cat smell\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (newt_mc.itemTotal + " - Sprinkle of newts eyes\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (fishhead_mc.itemTotal + " - Fish head\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (fishbone_mc.itemTotal + " - Fish Bone\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + (worms_mc.itemTotal + " - Worms\n");
book_mc.recipe_txt.text = book_mc.recipe_txt.text + "Stir Thoroughly ";
}
if (spider2_mc.itemTotal <= 0) {
trace("spider complete");
}
if (frog_mc.itemTotal <= 0) {
trace("frogs breath complete");
}
if (cat_mc.itemTotal <= 0) {
trace("Fur ball complete");
}
if (newt_mc.itemTotal <= 0) {
trace("Newt eyes complete");
}
if (fishbone_mc.itemTotal <= 0) {
trace("Newt eyes complete");
}
if (fishhead_mc.itemTotal <= 0) {
trace("Fish head complete");
}
if (worms_mc.itemTotal <= 0) {
trace("worms complete");
}
if (((((((spider2_mc.itemTotal <= 0) && (frog_mc.itemTotal <= 0)) && (cat_mc.itemTotal <= 0)) && (newt_mc.itemTotal <= 0)) && (fishhead_mc.itemTotal <= 0)) && (fishbone_mc.itemTotal <= 0)) && (worms_mc.itemTotal <= 0)) {
trace("stir the soup Now!!!");
_parent.stirNow = true;
}
}
function fishPickup() {
fish_mc.tempDepth = this.getDepth();
fish_mc.swapDepths(book_mc.getDepth() - 1);
this.speed = 0;
fishbowl_mc.gotoAndStop("pickupfish");
fish_mc.dragging = true;
fish_mc.onEnterFrame = throwObj;
fish_mc._visible = true;
fishbowl_mc.gotoAndStop("nofish");
fish_mc._y = _ymouse - 10;
fish_mc._x = _xmouse;
fish_mc.onMouseMove = function () {
this._x = hand_mc._x;
if (_ymouse >= 20) {
this._y = _ymouse - 10;
}
updateAfterEvent();
};
}
function gotoEnd() {
showFader("welldone");
}
function enableButtons(btnState) {
frog_mc.enabled = btnState;
cat_mc.enabled = btnState;
newt_mc.enabled = btnState;
spoon_mc.enabled = btnState;
spider_mc.enabled = btnState;
fishbowl_mc.enabled = btnState;
fishhead_mc.enabled = btnState;
fishbone_mc.enabled = btnState;
worms_mc.enabled = btnState;
snail_mc.enabled = btnState;
book_mc.enabled = btnState;
guilotine_mc.enabled = btnState;
}
stop();
Mouse.hide();
guilotineEmpty = true;
getReady._y = -300;
fader_mc.alphaTo(0, 2.5, "linear", 0);
getReady.slideTo(getready._x, 200, 0.5, "easeOutExpo", 0);
cauldrenglow._alpha = 0;
hand_mc.onMouseMove = function () {
if ((_xmouse > 0) && (_xmouse < 980)) {
hand_mc._x = _xmouse;
}
if (_ymouse > 25) {
hand_mc._y = _ymouse;
}
updateAfterEvent();
};
fishhead_mc._visible = false;
fishbone_mc._visible = false;
var cat = (new flash.geom.Point(cat_mc._x, cat_mc._y));
var frog = (new flash.geom.Point(frog_mc._x, frog_mc._y));
var newt = (new flash.geom.Point(newt_mc._x, newt_mc._y));
var spoon = (new flash.geom.Point(spoon_mc._x, spoon_mc._y));
var worms = (new flash.geom.Point(worms_mc._x, worms_mc._y));
var fishhead = (new flash.geom.Point(fishhead_mc._x, fishhead_mc._y));
var worms = (new flash.geom.Point(worms_mc._x, worms_mc._y));
var snail = (new flash.geom.Point(snail_mc._x, snail_mc._y));
var fishbone = (new flash.geom.Point(fishbone_mc._x, fishbone_mc._y));
hideArrows();
frog_mc.itemTotal = _parent.frogsBreathTotal;
frog_mc.onPress = verticalInteration;
frog_mc.onRelease = (frog_mc.onReleaseOutside = function () {
this.swapDepths(this.tempDepth);
if (guilotine_mc.hitTest(_xmouse, _ymouse) && (guilotineEmpty)) {
hideArrows();
trace("in guilotine");
frog_mc.onMouseMove = null;
frog_mc._x = -200;
frog_mc._y = -200;
guilotine_mc.gotoAndStop("frogoff");
} else {
resetObj("frog");
}
});
cat_mc.itemTotal = _parent.catTotal;
cat_mc.onPress = verticalInteration;
cat_mc.onRelease = (cat_mc.onReleaseOutside = function () {
this.swapDepths(this.tempDepth);
resetObj("cat");
cat_mc.onEnterFrame = null;
});
newt_mc.itemTotal = _parent.newtTotal;
newt_mc.onPress = horizontalInteraction;
newt_mc.onRelease = (newt_mc.onReleaseOutside = function () {
this.swapDepths(this.tempDepth);
resetObj("newt");
});
spoon_anim._visible = false;
spoonx = spoon_mc._x;
spoony = spoon_mc._y;
spoon_mc.onPress = function () {
readOut = 0;
lastAngle = undefined;
spoon_mc._visible = false;
spoon_anim._visible = true;
circArrow_mc._visible = true;
var readOut = 0;
var lastAngle = undefined;
this.onMouseMove = function () {
spoon_mc._x = _xmouse;
spoon_mc._y = _ymouse;
pressx = _xmouse - circArrow_mc._x;
pressy = (_ymouse - circArrow_mc._y) * -1;
angle = Math.round(Math.atan(pressy / pressx) / 0.0174533);
if (pressx < 0) {
angle = angle + 180;
}
if ((pressx >= 0) && (pressy < 0)) {
angle = angle + 360;
}
if (lastAngle != undefined) {
if (Math.abs(lastAngle - angle) < 180) {
readOut = readOut + (lastAngle - angle);
if (readOut < 0) {
readOut = 0;
}
}
}
if ((((lastAngle - angle) > 0) && ((lastAngle - angle) < 90)) && (angle < lastAngle)) {
newFrame = Math.floor((lastAngle - angle) / 4);
goto = spoon_anim._currentframe + newFrame;
if (goto > 100) {
goto = goto % 100;
}
spoon_anim.gotoAndStop(goto);
}
lastAngle = angle;
readOut_txt.text = readOut;
if ((readOut > 5000) && (_parent.stirNow)) {
_root.magic_snd.start();
sndControl_mc.vol = 100;
sndControl_mc.onEnterFrame = function () {
_root.mrtiny_snd.setVolume(this.vol);
this.vol = this.vol - 2;
if (this.vol <= 0) {
_root.mrtiny_snd.stop();
this.onEnterFrame = null;
}
};
cauldrenglow.alphaTo(100, 2, "linear", 0, gotoEnd);
spoon_mc.enabled = false;
this.onEnterFrame = null;
spoon_anim._visible = false;
spoon_mc._visible = true;
resetObj("spoon");
trace("well done");
_parent.stopTimer();
}
updateAfterEvent();
};
};
spoon_mc.onRelease = (spoon_mc.onReleaseOutside = function () {
this.onEnterFrame = null;
spoon_anim._visible = false;
spoon_mc._visible = true;
resetObj("spoon");
});
spider2_mc.vel = {x:0, y:0};
spider2_mc.pos = {x:spider2_mc._x, y:spider2_mc._y};
spider2_mc.old = {x:spider2_mc._x, y:spider2_mc._y};
spider2_mc.radius = spider2_mc._width / 2;
spider2_mc.itemTotal = _parent.spiderTotal;
pot_mask._visible = false;
spider_mc.onPress = function () {
this.tempDepth = this.getDepth();
this.swapDepths(book_mc.getDepth() - 1);
inArrow_mc._visible = true;
mainTarget_mc.gotoAndStop(1);
spider2_mc._x = _xmouse;
spider2_mc._y = _ymouse - 10;
spider2_mc.onMouseMove = function () {
this._x = hand_mc._x;
if (_ymouse >= 20) {
this._y = _ymouse - 10;
}
updateAfterEvent();
};
spider2_mc.dragging = true;
spider2_mc.onEnterFrame = throwObj;
this._visible = false;
this.stopTween();
};
spider_mc.onRelease = (spider_mc.onReleaseOutside = function () {
this.swapDepths(this.tempDepth);
hideArrows();
if (this._y > mainTarget_mc._y) {
mainTarget_mc.gotoAndStop(2);
}
spider2_mc.onMouseMove = null;
spider2_mc.dragging = false;
});
var gravity = 1.2;
var restitution = 0.6;
var friction = 0.9;
var movie = {width:980, height:700};
fish_mc.vel = {x:0, y:0};
fish_mc.pos = {x:fish_mc._x, y:fish_mc._y};
fish_mc.old = {x:fish_mc._x, y:fish_mc._y};
fish_mc.radius = fish_mc._width / 2;
fishbowl_mc.onPress = fishPickup;
fishbowl_mc.onRelease = (fishbowl_mc.onReleaseOutside = function () {
fish_mc.swapDepths(this.tempDepth);
trace("should drop fish");
fish_mc.dragging = false;
fish_mc.stopDrag();
fish_mc.onMouseMove = null;
if (guilotine_mc.hitTest(_xmouse, _ymouse) && (guilotineEmpty)) {
trace("in guilotine");
fishbowl_mc.enabled = false;
fish_mc._visible = false;
fish_mc.onEnterFrame = null;
fish_mc.onMouseMove = null;
fish_mc._x = -200;
fish_mc._y = -200;
guilotine_mc.gotoAndStop("fishoff");
}
if (catbowl_mc.hitTest(_xmouse, _ymouse)) {
trace("fish in catbowl");
fishbowl_mc.enabled = false;
fish_mc._visible = false;
fish_mc.onEnterFrame = null;
fish_mc.onMouseMove = null;
fish_mc._x = -200;
fish_mc._y = -200;
catbowl_mc.gotoAndStop("fish");
cat_mc.gotoAndPlay("eat");
}
});
fishhead_mc.vel = {x:0, y:0};
fishhead_mc.pos = {x:fishhead_mc._x, y:fishhead_mc._y};
fishhead_mc.old = {x:fishhead_mc._x, y:fishhead_mc._y};
fishhead_mc.radius = fishhead_mc._width / 2;
fishhead_mc.itemTotal = _parent.fishheadTotal;
fishhead_mc.onPress = function () {
this.tempDepth = this.getDepth();
this.swapDepths(book_mc.getDepth() - 1);
this._x = _xmouse;
this._y = _ymouse - 10;
inArrow_mc._visible = true;
mainTarget_mc.gotoAndStop(1);
this.onMouseMove = function () {
this._x = hand_mc._x;
if (_ymouse >= 20) {
this._y = _ymouse - 10;
}
updateAfterEvent();
};
this.gotoAndStop(2);
this.speed = 0;
this.dragging = true;
fishhead_mc.onEnterFrame = throwObj;
};
fishhead_mc.onRelease = (fishhead_mc.onReleaseOutside = function () {
this.swapDepths(this.tempDepth);
hideArrows();
if (this._y > mainTarget_mc._y) {
mainTarget_mc.gotoAndStop(2);
}
this.onMouseMove = null;
this.gotoAndStop(3);
this.speed = -3;
this.dragging = false;
});
fishbone_mc.vel = {x:0, y:0};
fishbone_mc.pos = {x:fishbone_mc._x, y:fishbone_mc._y};
fishbone_mc.old = {x:fishbone_mc._x, y:fishbone_mc._y};
fishbone_mc.radius = fishbone_mc._width / 2;
fishbone_mc.itemTotal = _parent.fishboneTotal;
fishbone_mc.onPress = function () {
this.tempDepth = this.getDepth();
this.swapDepths(book_mc.getDepth() - 1);
this._x = _xmouse;
this._y = _ymouse;
inArrow_mc._visible = true;
mainTarget_mc.gotoAndStop(1);
this.onMouseMove = function () {
this._x = hand_mc._x;
if (_ymouse >= 20) {
this._y = _ymouse;
}
updateAfterEvent();
};
this.gotoAndStop(2);
this.speed = 0;
this.dragging = true;
fishbone_mc.onEnterFrame = throwObj;
};
fishbone_mc.onRelease = (fishbone_mc.onReleaseOutside = function () {
this.swapDepths(this.tempDepth);
hideArrows();
if (this._y > mainTarget_mc._y) {
mainTarget_mc.gotoAndStop(2);
}
this.onMouseMove = null;
this.gotoAndStop(3);
this.speed = -3;
this.dragging = false;
});
worms_mc.vel = {x:0, y:0};
worms_mc.pos = {x:worms_mc._x, y:worms_mc._y};
worms_mc.old = {x:worms_mc._x, y:worms_mc._y};
worms_mc.radius = worms_mc._width / 2;
worms_mc.itemTotal = _parent.wormsTotal;
worms_mc.onPress = function () {
this.tempDepth = this.getDepth();
this.swapDepths(book_mc.getDepth() - 1);
this._x = _xmouse;
this._y = _ymouse - 10;
inArrow_mc._visible = true;
mainTarget_mc.gotoAndStop(1);
this.onMouseMove = function () {
this._x = hand_mc._x;
if (_ymouse >= 20) {
this._y = _ymouse;
}
updateAfterEvent();
};
this.dragging = true;
worms_mc.onEnterFrame = throwObj;
};
worms_mc.onRelease = (worms_mc.onReleaseOutside = function () {
this.swapDepths(this.tempDepth);
hideArrows();
if (this._y > mainTarget_mc._y) {
mainTarget_mc.gotoAndStop(2);
}
this.onMouseMove = null;
this.dragging = false;
});
stop();
snail_mc.vel = {x:0, y:0};
snail_mc.pos = {x:snail_mc._x, y:snail_mc._y};
snail_mc.old = {x:snail_mc._x, y:snail_mc._y};
snail_mc.radius = snail_mc._width / 2;
snail_mc.itemTotal = snailTotal;
snail_mc.onPress = function () {
this.tempDepth = this.getDepth();
this.swapDepths(book_mc.getDepth() - 1);
this._x = _xmouse;
this._y = _ymouse - 10;
inArrow_mc._visible = true;
mainTarget_mc.gotoAndStop(1);
this.startDrag();
this.dragging = true;
this.onEnterFrame = throwObj;
};
snail_mc.onRelease = (snail_mc.onReleaseOutside = function () {
this.swapDepths(this.tempDepth);
hideArrows();
if (this._y > mainTarget_mc._y) {
mainTarget_mc.gotoAndStop(2);
}
this.stopDrag();
this.dragging = false;
});
stop();
displayRecipe();
book_mc.hit_mc.onRollOver = function () {
book_mc.slideTo(165, 280, 1);
};
book_mc.hit_mc.onRollOut = (book_mc.hit_mc.onDragOut = function () {
book_mc.slideTo(165, 480, 1);
});
enableButtons(false);