STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #259383 |
ActionScript [AS1/AS2]
Frame 1function onLaunchGame() { _root.game = new midasplayer.goldfishbowl.Game(_root); _root.game.init(_root.gda); } _root.gda = new com.midasplayer.util.GameDataAcquirer(); _root.gda.beginWait(mx.utils.Delegate.create(this, onLaunchGame));Symbol 34 MovieClip [fish2] Frame 1stop();Symbol 34 MovieClip [fish2] Frame 2stop();Symbol 38 MovieClip [fish] Frame 1stop();Symbol 38 MovieClip [fish] Frame 2stop();Symbol 43 MovieClip [diamondfish] Frame 1stop();Symbol 43 MovieClip [diamondfish] Frame 2stop();Symbol 76 MovieClip [platta_levelover] Frame 1#initclip 52 Object.registerClass("platta_levelover", midasplayer.goldfishbowl.LevelOverPlate); #endinitclipSymbol 80 MovieClip [treasure] Frame 1stop();Symbol 80 MovieClip [treasure] Frame 2stop();Symbol 87 MovieClip [sturgeon] Frame 1stop();Symbol 87 MovieClip [sturgeon] Frame 2stop();Symbol 104 MovieClip [platta_intro] Frame 1#initclip 47 Object.registerClass("platta_intro", midasplayer.goldfishbowl.IntroPlate); #endinitclipSymbol 109 MovieClip [platta_gameover] Frame 1#initclip 48 Object.registerClass("platta_gameover", midasplayer.goldfishbowl.GameOverPlate); #endinitclipSymbol 151 MovieClip Frame 1stop();Symbol 151 MovieClip Frame 61gotoAndPlay (43);Symbol 155 MovieClip Frame 1stop();Symbol 155 MovieClip Frame 42Symbol 155 MovieClip Frame 61gotoAndPlay (43);Symbol 165 MovieClip Frame 1stop();Symbol 165 MovieClip Frame 61gotoAndPlay (43);Symbol 166 MovieClip [tjejen] Frame 1#initclip 49 Object.registerClass("tjejen", midasplayer.goldfishbowl.Fisherman); #endinitclipSymbol 172 MovieClip Frame 1stop();Symbol 172 MovieClip Frame 61gotoAndPlay (43);Symbol 180 MovieClip Frame 1stop();Symbol 180 MovieClip Frame 61gotoAndPlay (43);Symbol 186 MovieClip Frame 1stop();Symbol 186 MovieClip Frame 61gotoAndPlay (43);Symbol 187 MovieClip Frame 1stop();Symbol 187 MovieClip Frame 42Symbol 187 MovieClip Frame 61gotoAndPlay (43);Symbol 191 MovieClip Frame 1stop();Symbol 191 MovieClip Frame 61gotoAndPlay (43);Symbol 192 MovieClip [killen] Frame 1#initclip 50 Object.registerClass("killen", midasplayer.goldfishbowl.Fisherman); #endinitclipSymbol 196 MovieClip [head_toby] Frame 1Symbol 196 MovieClip [head_toby] Frame 42Symbol 196 MovieClip [head_toby] Frame 61gotoAndPlay (43);Symbol 218 MovieClip [expl] Frame 23stop(); this.removeMovieClip();Instance of Symbol 221 MovieClip "exitbutton" in Symbol 222 MovieClip [exitbutton] Frame 1on (press) { _root.game.onExitButton(); }Symbol 224 MovieClip [hook2] Frame 1#initclip 51 Object.registerClass("hook2", midasplayer.goldfishbowl.Hook); #endinitclip stop();Symbol 224 MovieClip [hook2] Frame 2stop();Instance of Symbol 221 MovieClip "soundbutton" in Symbol 246 MovieClip Frame 1on (press) { _root.game.onToggleSoundButton(); }Symbol 247 MovieClip [__Packages.com.midasplayer.util.I18n] Frame 0class com.midasplayer.util.I18n { static var lang; function I18n () { } static function init(newLang) { lang = newLang; } static function getProperties() { return(lang); } static function getString(name) { var _local4 = lang.get(name); var _local3; if (_local4 == undefined) { _local3 = ("{" + name) + "}"; } else { _local3 = _local4.toString(); } var _local2 = 1; while (_local2 < arguments.length) { _local3 = _local3.split(("{" + (_local2 - 1)) + "}").join(arguments[_local2]); _local2++; } return(_local3); } }Symbol 248 MovieClip [__Packages.com.midasplayer.util.Map] Frame 0class com.midasplayer.util.Map { var map, lastSize; function Map (init) { map = new Object(); for (var _local3 in init) { map["" + _local3] = init[_local3]; } lastSize = -1; } function put(key, value) { map["" + key] = value; lastSize = -1; } function get(key) { return(map["" + key]); } function remove(key) { var _local2 = "" + key; var _local3 = map[_local2]; delete map[_local2]; lastSize = -1; return(_local3); } function contains(key) { return(map["" + key] != undefined); } function count() { if (lastSize < 0) { lastSize = 0; for (var _local2 in map) { lastSize++; } } return(lastSize); } function size() { return(count()); } function clear() { map = {}; lastSize = 0; } function dump() { var _local2 = ""; for (var _local3 in map) { _local2 = _local2 + (((_local3 + "=>") + map[_local3]) + newline); } } function copy() { var _local2 = new com.midasplayer.util.Map(); for (var _local3 in map) { _local2.map[_local3] = map[_local3]; } return(_local2); } function toArray() { var _local2 = []; for (var _local3 in map) { _local2[_local2.length] = map[_local3]; } return(_local2); } function keySet() { var _local2 = []; for (var _local3 in map) { _local2[_local2.length] = _local3; } return(_local2); } function get iterator() { return(new com.midasplayer.util.MapIterator(this)); } function get valueIterator() { return(new com.midasplayer.util.MapValueIterator(this)); } function foreach(fn) { var _local3 = arguments.slice(1); if (_local3.length > 0) { do { if ((in map) == null) { break; } var _local5 = in map; } while (fn(_local5, map[_local5], _local3[0], _local3[1], _local3[2], _local3[3], _local3[4]) != false); do { } while ("foreach" != null); } else { do { if ((in map) == null) { break; } var _local5 = in map; } while (fn(_local5, map[_local5]) != false); do { } while (_local2 != null); } lastSize = -1; } function get _content() { return(map); } }Symbol 249 MovieClip [__Packages.com.midasplayer.util.Iterator] Frame 0interface com.midasplayer.util.Iterator { }Symbol 250 MovieClip [__Packages.com.midasplayer.util.MapIterator] Frame 0class com.midasplayer.util.MapIterator implements com.midasplayer.util.Iterator { var map, keys, ptr; function MapIterator (map) { this.map = map; keys = map.keySet(); ptr = 0; } function next() { if (ptr < keys.length) { return(keys[ptr++]); } return(undefined); } function hasNext() { return(ptr != keys.length); } function remove() { if (ptr == 0) { return(undefined); } map.remove(keys[ptr - 1]); } }Symbol 251 MovieClip [__Packages.com.midasplayer.util.MapValueIterator] Frame 0class com.midasplayer.util.MapValueIterator implements com.midasplayer.util.Iterator { var map, mapRef, keys, ptr; function MapValueIterator (map) { this.map = map; mapRef = map._content; keys = map.keySet(); ptr = 0; } function next() { return(mapRef[keys[ptr++]]); } function hasNext() { return(ptr != keys.length); } function remove() { if (ptr == 0) { return(undefined); } map.remove(keys[ptr - 1]); } }Symbol 252 MovieClip [__Packages.mx.utils.Delegate] Frame 0class mx.utils.Delegate extends Object { var func; function Delegate (f) { super(); func = f; } static function create(obj, func) { var _local2 = function () { var _local2 = arguments.callee.target; var _local3 = arguments.callee.func; return(_local3.apply(_local2, arguments)); }; _local2.target = obj; _local2.func = func; return(_local2); } function createDelegate(obj) { return(create(obj, func)); } }Symbol 253 MovieClip [__Packages.midasplayer.goldfishbowl.IObjectManager] Frame 0interface midasplayer.goldfishbowl.IObjectManager { }Symbol 254 MovieClip [__Packages.com.midasplayer.util.Sprite] Frame 0class com.midasplayer.util.Sprite { var sxp, syp, mc, animator, alpha, r, fx, fy, fr, immedate, hooks, opacity, scale, color, lastResource, thisParent, visible, currentColor, posX, posY, frame, signalValue, realWidth, realHeight; function Sprite (resource, ix, iy, iframe, parent) { sxp = 0; syp = 0; mc = null; animator = null; alpha = 100; r = 0; fx = new com.midasplayer.timing.IFloat(); fy = new com.midasplayer.timing.IFloat(); fr = new com.midasplayer.timing.IFloat(); immedate = true; hooks = new com.midasplayer.util.Map(); opacity = new Object(); scale = new Object(); color = new Object(); lastResource = resource; thisParent = ((parent == undefined) ? _root : (parent)); visible = false; currentColor = {ra:0, rb:0, ga:0, gb:0, ba:0, bb:0, aa:0, ab:0}; if ((((ix != undefined) && (iy != undefined)) && (iframe != undefined)) && (resource != undefined)) { visible = true; } posX = ix; posY = iy; frame = iframe; if (resource != undefined) { bind(); } } function setAttribute(name, value) { if (mc != undefined) { mc.properties[name] = value; } } function getAttribute(name) { if (mc != undefined) { return(mc.properties[name]); } } function get signal() { return(signalValue); } function set signal(value) { signalValue = value; //return(signal); } function setFrame(f) { frame = f; mc.gotoAndStop(frame + 1); } function getFrame() { return(frame); } function setPosition(x, y) { posX = x; posY = y; fx.set(x); fy.set(y); fr.set(r); if (immedate && (mc != undefined)) { mc._x = x; mc._y = y; } } function getPosition() { return({x:posX, y:posY}); } function setPosX(x) { posX = x; fx.set(x); if (immedate && (mc != undefined)) { mc._x = x; } } function setPosY(y) { posX = y; fy.set(y); if (immedate && (mc != undefined)) { mc._y = y; } } function setRotation(degree) { r = degree; if (mc != undefined) { mc._rotation = degree; } } function getRotation() { return(r); } function getPosX() { return(posX); } function getPosY() { return(posY); } function getWidth() { return(realWidth); } function getHeight() { return(realHeight); } function getMovieClip() { return(mc); } function setImmedateRendering(enable) { immedate = enable; fx.set(posX); fy.set(posY); } function setDepth(depth) { if (mc != undefined) { mc.swapDepths(depth); } } function setVisible(visible) { this.visible = visible; if (mc != undefined) { mc._visible = visible; } } function setScale(value) { if (mc != undefined) { mc._xscale = value; mc._yscale = value; } } function setAlpha(value) { alpha = (mc._alpha = value); } function setParent(aParent) { var _local2 = thisParent; thisParent = aParent; if (mc != undefined) { destroy(); bind(lastResource); posX = (mc._x = 0); posY = (mc._y = 0); } } function scaleFitInside(maxWidth, maxHeight) { var _local9 = realWidth; var _local8 = realHeight; var _local2 = _local9; var _local3 = _local8; if ((_local2 < maxWidth) && (_local3 < maxWidth)) { _local3 = _local3 * (maxWidth / _local2); _local2 = maxWidth; } if (_local2 > maxWidth) { _local3 = _local3 * (maxWidth / _local2); _local2 = maxWidth; } if (_local3 > maxHeight) { _local2 = _local2 * (maxHeight / _local3); _local3 = maxHeight; } var _local7 = 100 * (1 - ((realWidth - _local2) / realWidth)); var _local5 = 100 * (1 - ((realHeight - _local3) / realHeight)); mc._xscale = _local7; mc._yscale = _local5; } function updatePosition(alpha) { if (immedate) { return(undefined); } mc._x = fx.get(alpha); mc._y = fy.get(alpha); } function setColorTransform(a) { var _local2 = new Color(mc); _local2.setTransform(a); currentColor = a; } function setTint(r, g, b, amount) { currentColor = new Object(); currentColor.ra = (currentColor.ga = (currentColor.ba = 100 - amount)); var _local2 = amount / 100; currentColor.rb = r * _local2; currentColor.gb = g * _local2; currentColor.bb = b * _local2; var _local3 = new Color(mc); _local3.setTransform(currentColor); } function moveSpringy(centerx, centery, inertia, k) { var _local3 = (-posX) + centerx; var _local2 = (-posY) + centery; sxp = (sxp * inertia) + (_local3 * k); syp = (syp * inertia) + (_local2 * k); setPosition(posX + sxp, posY + syp); } function delayedInvokation(duration, callback) { var _local2 = new Object(); _local2.callback = callback; _local2.finished = getTimer() + duration; _local2.name = "delay-" + getUniqeId(); _local2.fn = function (owner, hook) { return(hook.finished > getTimer()); }; hooks.put(_local2.name, _local2); } function approachColor(colorTransform, duration, callback) { color.endTransform = colorTransform; color.transformDiff = {ra:colorTransform.ra - currentColor.ra, rb:colorTransform.rb - currentColor.rb, ga:colorTransform.ga - currentColor.ga, gb:colorTransform.gb - currentColor.gb, ba:colorTransform.ba - currentColor.ba, bb:colorTransform.bb - currentColor.bb, aa:colorTransform.aa - currentColor.aa, ab:colorTransform.ab - currentColor.ab}; color.colorObj = new Color(mc); color.duration = duration; color.finishAt = duration + getTimer(); var _local4 = new Object(); _local4.callback = callback; _local4.name = "color-"; _local4.fn = function (owner) { var _local1 = owner.color; var _local5 = _local1.finishAt - getTimer(); var _local6 = owner.mc; if (_local5 <= 0) { owner.currentColor = _local1.endTransform; _local1.colorObj.setTransform(_local1.endTransform); _local1.color = new Object(); return(false); } var _local4 = 1 - (_local5 / duration); var _local3 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}; _local3.rb = owner.currentColor.rb + Math.floor(_local1.transformDiff.rb * _local4); _local3.gb = owner.currentColor.gb + Math.floor(_local1.transformDiff.gb * _local4); _local3.bb = owner.currentColor.bb + Math.floor(_local1.transformDiff.bb * _local4); _local1.colorObj.setTransform(_local3); return(true); }; hooks.put(_local4.name, _local4); } function approachScale(targetScaleFactor, duration, keepCenter, callback) { var _local6 = Math.max(mc._xscale, mc._yscale) - targetScaleFactor; if (0 == Math.round(_local6)) { if (callback) { callback(this); } return(undefined); } scale.targetScale = targetScaleFactor; scale.duration = duration; scale.diff = _local6; scale.finishAt = duration + getTimer(); scale.cx = mc._x + (mc._width / 2); scale.cy = mc._y + (mc._height / 2); var _local4 = new Object(); _local4.callback = callback; _local4.name = "scale-"; _local4.fn = function (owner) { var _local2 = owner.scale; var _local5 = _local2.finishAt - getTimer(); var _local1 = owner.mc; if (_local5 <= 0) { owner.scale = new Object(); owner.mc._xscale = _local2.targetScale; owner.mc._yscale = _local2.targetScale; if (keepCenter) { owner.posX = (_local1._x = _local2.cx - (_local1._width / 2)); owner.posY = (_local1._y = _local2.cy - (_local1._height / 2)); } return(false); } var _local6 = _local5 / duration; var _local4 = Math.round((_local6 * _local2.diff) + _local2.targetScale); _local1._xscale = _local4; _local1._yscale = _local4; if (keepCenter) { owner.posX = (_local1._x = _local2.cx - (_local1._width / 2)); owner.posY = (_local1._y = _local2.cy - (_local1._height / 2)); } return(true); }; hooks.put(_local4.name, _local4); } function approachAlpha(targetOpacity, duration, callback) { if ((targetOpacity < 0) || (targetOpacity > 100)) { mc._alpha = 100; return(undefined); } opacity.targetOp = targetOpacity; opacity.duration = duration; opacity.diff = mc._alpha - targetOpacity; opacity.finsishAt = duration + getTimer(); var _local3 = new Object(); _local3.callback = callback; _local3.name = "alpha-"; _local3.fn = function (owner) { var _local1 = owner.opacity; var _local3 = _local1.finsishAt - getTimer(); if (_local3 <= 0) { _local1.alpha = (owner.mc._alpha = _local1.targetOp); owner.opacity = new Object(); return(false); } _local1.alpha = (owner.mc._alpha = Math.round(((_local3 / duration) * _local1.diff) + _local1.targetOp)); return(true); }; hooks.put(_local3.name, _local3); } function applyAnimator(an, callback) { animator = an; animator.setSource(mc); var _local2 = new Object(); _local2.callback = callback; _local2.name = "anim-"; _local2.fn = function (owner) { var _local1 = owner.animator; if ((_local1 != undefined) && (!_local1.isFinished())) { _local1.update(); return(true); } return(false); }; hooks.put(_local2.name, _local2); } function bind(resource) { if (resource == undefined) { if (lastResource == undefined) { return(undefined); } resource = lastResource; } var _local5 = thisParent.getNextHighestDepth(); var _local8 = "@sprite" + com.midasplayer.util.Numbers.itoa(_local5, 4); mc = thisParent.attachMovie(resource, _local8, _local5); mc._x = posX; mc._y = posY; realWidth = mc._width; realHeight = mc._height; mc._visible = visible; mc._alpha = alpha; mc.gotoAndStop(frame + 1); var _local4 = new Object(); _local4.owner = this; mc.properties = _local4; lastResource = resource; mc.onEnterFrame = function () { var o = this.properties.owner; var _local2 = o.hooks; var _local4 = 0; _local4 = _local2.count(); if (_local4 > 0) { var list = new Array(); _local2.foreach(function (name, hook) { if (hook.fn(o, hook) == false) { if (hook.callback != undefined) { hook.callback(o); } list.push(hook.name); } return(true); }); for (var _local3 in list) { _local2.remove(list[_local3]); } } }; } function flipX() { if (mc != undefined) { } mc._yscale = -mc._yscale; } function flipY() { if (mc != undefined) { } mc._xscale = -mc._xscale; } function destroy() { if (mc != undefined) { for (var _local2 in mc) { if (_local2.indexOf("@sprite") == 0) { mc[_local2].destroy(); } } for (var _local2 in mc.properties) { delete mc.properties[_local2]; mc.properties[_local2] = null; } mc.onEnterFrame = undefined; mc.swapDepths(1048000); mc.removeMovieClip(); mc = undefined; } hooks.clear(); } function clearHooks() { hooks.clear(); } function hookCount() { return(hooks.count()); } function getUniqeId() { var _local1 = (Math.random() * 10000) >> 0; var _local2 = getTimer(); return((_local1 + ":") + _local2); } }Symbol 255 MovieClip [__Packages.com.midasplayer.util.Animator] Frame 0class com.midasplayer.util.Animator { var finished, targetObject, x, startX, y, startY, startTime, tick, duration, timeTicks, targetY, targetX, dx, dy, dt, callback, callbackFire; function Animator (t) { finished = true; targetObject = t; x = (startX = t._x); y = (startY = t._y); startTime = null; tick = 0; duration = 800; timeTicks = false; } function fillBaseCopy(t, o) { o.targetObject = t; o.duration = duration; o.x = x; o.y = y; o.startTime = startTime; o.finished = finished; o.timeTicks = timeTicks; o.tick = tick; o.targetY = targetY; o.targetX = targetX; o.startX = startX; o.startY = startY; o.dx = dx; o.dy = dy; o.dt = dt; } function setSource(t) { targetObject = t; x = (startX = t._x); y = (startY = t._y); } function complete() { startTime = null; x = targetX; y = targetY; finished = true; targetObject._x = x; targetObject._y = y; } function setPosition(x, y) { startX = targetObject._x; startY = targetObject._y; targetX = Math.round(x); targetY = Math.round(y); finished = false; startTime = null; } function setDuration(ms) { duration = ms; finished = false; startTime = null; } function setDurationTicks(ticks) { duration = ticks; finished = false; startTime = null; timeTicks = true; } function getElapsedPercent() { return(getElapsed()); } function getElapsed() { if ((!dt) || (duration == 0)) { return(1); } return(Math.max(0, duration - dt) / duration); } function update() { if (finished) { if (callback && ((1 - getElapsed()) >= callbackFire)) { callback(); callbackFire = undefined; callback = undefined; } return(true); } if (!timeTicks) { var _local2 = getTimer(); if (startTime == null) { startTime = _local2; } dt = _local2 - startTime; } else { dt = tick; tick++; } dx = targetX - startX; dy = targetY - startY; nextPosition(); var _local4 = false; x = Math.floor(x); if (((x >= targetX) && (targetX >= startX)) || ((x <= targetX) && (targetX <= startX))) { _local4 = true; x = targetX; } var _local3 = false; y = Math.floor(y); if (((y >= targetY) && (targetY >= startY)) || ((y <= targetY) && (targetY <= startY))) { _local3 = true; y = targetY; } if (_local4 && (_local3)) { startTime = null; x = targetX; y = targetY; finished = true; } targetObject._x = x; targetObject._y = y; if (callback && ((1 - getElapsed()) >= callbackFire)) { callback(); callbackFire = undefined; callback = undefined; } return(finished); } function setCallback(at, fn) { callbackFire = ((at == undefined) ? 1 : (at)); callback = fn; } function toString() { return((((((((("Animator[start=" + [startX, startY]) + ", target=") + [targetX, targetY]) + ", t=") + getElapsedPercent()) + ", ticks=") + tick) + ", targetObject=") + [targetObject._x, targetObject._y]); } function isFinished() { return(finished); } function nextPosition() { } }Symbol 256 MovieClip [__Packages.com.midasplayer.timing.IFloat] Frame 0class com.midasplayer.timing.IFloat { static var alpha; var ivalue, lastValue; function IFloat (initial) { ivalue = initial; lastValue = initial; alpha = 0; } function setTo(initial) { ivalue = initial; lastValue = initial; } function set(newValue) { lastValue = ivalue; ivalue = newValue; } function get(lalpha) { return(lastValue + ((ivalue - lastValue) * lalpha)); } static function setAlpha(na) { alpha = na; } function get value() { return(lastValue + ((ivalue - lastValue) * alpha)); } function set value(v) { ivalue = v; lastValue = v; //return(value); } }Symbol 257 MovieClip [__Packages.com.midasplayer.util.Numbers] Frame 0class com.midasplayer.util.Numbers { function Numbers () { } static function dec2hex(iValue, padding) { var _local1 = ""; while (iValue != 0) { _local1 = "0123456789abcdef".charAt(iValue & 15) + _local1; iValue = iValue >>> 4; } if (padding) { if (_local1.length == 0) { _local1 = "00"; } if (_local1.length < 2) { _local1 = "0" + _local1; } } else if (_local1.length == 0) { _local1 = "0"; } return(_local1); } static function itoa(value, numZeroPadding) { var _local2 = "" + value; if (numZeroPadding) { var _local1 = numZeroPadding - 1; while (_local1 > 0) { if (value < Math.pow(10, _local1)) { _local2 = "0" + _local2; } _local1--; } } return(_local2); } static function asTime(millis, alwaysHours, alwaysMinutes) { if (alwaysHours) { alwaysMinutes = true; } if (millis < 0) { millis = 0; } millis = millis / 1000; millis = Math.floor(millis); var _local3 = Math.floor(millis / 3600); var _local4 = Math.floor(millis / 60) % 60; var _local5 = millis % 60; var _local1 = ""; if (alwaysHours || (_local3 > 0)) { _local1 = _local1 + itoa(_local3, 2); } if (alwaysHours || (_local1.length > 0)) { _local1 = _local1 + ":"; } var _local6 = _local1.length; if ((alwaysMinutes || (_local4 > 0)) || (_local3 > 0)) { _local1 = _local1 + itoa(_local4, 2); } if (alwaysMinutes || (_local1.length != _local6)) { _local1 = _local1 + ":"; } return(_local1 + itoa(_local5, 2)); } }Symbol 258 MovieClip [__Packages.midasplayer.goldfishbowl.TankItem] Frame 0class midasplayer.goldfishbowl.TankItem extends com.midasplayer.util.Sprite { var objMgr, name, exploded, startX, startY, flipState, id, fl, fm, tickCount, realWidth, realHeight, tankLeft, tankTop, tankRight, tankBottom, isCaught, setPosition, mc, r, flipX, uid, getPosX, getPosY, applyAnimator, approachScale, approachAlpha, moveSpringy; function TankItem (mgr, name, x, y, p) { super(name, x, y, 0, p); var _local5 = mgr; objMgr = _local5; if (ITEM[name] == undefined) { this.name = "none"; } else { this.name = name; } exploded = false; startX = x; startY = y; flipState = false; id = ++idCounter; fl = (Math.random() * 2) * Math.PI; fm = (Math.random() - 0.5) / 5; tickCount = 0; var _local3 = 0; while (_local3 < ITEMLIST.length) { if (ITEMLIST[_local3] == name) { realWidth = SIZE[_local3][0]; realHeight = SIZE[_local3][1]; return; } _local3++; } } function onCatch() { return(true); } function setTankLimits(left, top, right, bottom) { tankLeft = left; tankTop = top; tankRight = right; tankBottom = bottom; } function setCaught(c) { isCaught = c; } function getWidth() { return(realWidth); } function getHeight() { return(realHeight); } function setItemPosition(x, y) { setPosition(x, y); var _local2 = mc.properties.bounds; _local2.setPosition(x, y, r * DEGREE_TO_RADIAN); } function getArea() { return(mc.properties.bounds.getArea()); } function getBoundBox() { return(mc.properties.bounds); } function flip() { flipState = !flipState; r = (r + 180) % 360; flipX(); setRotation(r); } function setRotation(r) { super.setRotation(r); } function getRotation() { return(r); } function getWeight() { return(ITEM[name].weight); } function set uniqeId(id) { uid = id; //return(uniqeId); } function get uniqeId() { return(uid); } function getPoints() { return(ITEM[name].points); } function getName() { return(name); } function onBlast() { return(true); } function onAcquire(lastAngle) { var _local5 = DEGREE_TO_RADIAN * lastAngle; var _local6 = com.midasplayer.util.SineLookup.__get__instance(); var _local4 = _local6.sin(_local5) * 100; var _local3 = _local6.cos(_local5) * 100; var _local2 = new com.midasplayer.util.EaseInQuadAnimator(); _local2.setPosition(getPosX() + _local4, getPosY() + _local3); _local2.setDuration(500); applyAnimator(_local2); approachScale(500, 500); approachAlpha(0, 520, function (s) { s.destroy(); }); _local2 = new com.midasplayer.util.EaseInQuadAnimator(); _local2.setPosition((getPosX() + _local4) + 15, (getPosY() + _local3) + 15); _local2.setDuration(500); } function updateCaught(hookX, hookY, hookAngle) { moveSpringy(hookX, hookY, 0.65, 0.35); setRotation(hookAngle); } function get tick() { return(tickCount); } function update() { tickCount++; } static var ITEM = {fish:{weight:65, points:25, dx:20, dy:20, yoffs:-30}, fish2:{weight:70, points:50, dx:20, dy:20, yoffs:-40}, bra:{weight:20, points:75, dx:50, dy:50, yoffs:-10}, crisps:{weight:30, points:100, dx:40, dy:30}, briefs:{weight:20, points:25, dx:20, dy:20, yoffs:-25}, caviar:{weight:10, points:1000, dx:10, dy:10}, cell:{weight:5, points:300, dx:10, dy:10, yoffs:-30}, cola:{weight:5, points:300, dx:10, dy:10}, mine:{weight:100, points:0, dx:40, dy:40}, korv:{weight:5, points:250, dx:20, dy:10, yoffs:-17}, champagne:{weight:5, points:500, dx:10, dy:10}, toffee:{weight:10, points:400, dx:10, dy:10}, tire:{weight:85, points:10, dx:50, dy:20, yoffs:-25}, smalltire:{weight:60, points:10, dx:30, dy:30}, sturgeon:{weight:5, points:0, dx:0, dy:0, yoffs:-90}, diamondfish:{weight:65, points:500, dx:20, dy:20, yoffs:-18}, treasure:{weight:50, points:0, dx:40, dy:0, yoffs:-30}, sunlotion:{weight:10, points:400, dx:10, dy:10}, beans:{weight:10, points:200, dx:10, dy:10}, none:{weight:10, points:0, dx:10, dy:10}}; static var SIZE = [[48.65, 26.85], [85.3, 68.3], [90.7, 38.15], [36.1, 63.75], [44.1, 36.3], [29.3, 26.65], [13.35, 36.45], [18, 32], [61.5, 61.5], [46, 19], [18, 46], [50.4, 27.7], [92, 92], [56.05, 56.05], [170.9, 36.5], [48.65, 39.6], [80, 62], [23, 47], [40, 58]]; static var ITEMLIST = ["fish", "fish2", "bra", "crisps", "briefs", "caviar", "cell", "cola", "mine", "korv", "champagne", "toffee", "tire", "smalltire", "sturgeon", "diamondfish", "treasure", "sunlotion", "beans"]; static var DEGREE_TO_RADIAN = 0.0174532925; static var idCounter = 0; }Symbol 259 MovieClip [__Packages.midasplayer.goldfishbowl.BoundBox] Frame 0class midasplayer.goldfishbowl.BoundBox { var r, x, y, w, h, lrs, lrc, intersects, line, px, py, maxRadius, cx, cy; function BoundBox (x, y, w, h, angle) { r = angle; this.x = x; this.y = y; this.w = w; this.h = h; var _local5 = com.midasplayer.util.SineLookup.__get__instance(); lrs = _local5.sin(r); lrc = _local5.cos(r); intersects = new Array(); line = new Array(4); px = new Array(4); py = new Array(4); updateVert(); maxRadius = 0; var _local2 = 0; while (_local2 < 4) { var _local4 = px[_local2] - cx; _local4 = _local4 * _local4; var _local3 = py[_local2] - cy; _local3 = _local3 * _local3; maxRadius = Math.max(maxRadius, Math.sqrt(_local4 + _local3)); _local2++; } } function getArea() { return(w * h); } function toString() { return(("[BoundBox:" + [x, y, w, h, r]) + "]"); } function updateVert() { var _local6 = w / 2; var _local5 = h / 2; px[0] = x - _local6; py[0] = y - _local5; px[1] = x + _local6; py[1] = y - _local5; px[2] = x + _local6; py[2] = y + _local5; px[3] = x - _local6; py[3] = y + _local5; cx = x; cy = y; var _local2 = 0; while (_local2 < 4) { px[_local2] = px[_local2] - cx; py[_local2] = py[_local2] - cy; var _local4 = (lrc * px[_local2]) + (lrs * py[_local2]); var _local3 = (lrs * px[_local2]) - (lrc * py[_local2]); px[_local2] = _local4 + cx; py[_local2] = _local3 + cy; _local2++; } line[0] = new midasplayer.goldfishbowl.Line(px[0], py[0], px[1], py[1]); line[1] = new midasplayer.goldfishbowl.Line(px[1], py[1], px[2], py[2]); line[2] = new midasplayer.goldfishbowl.Line(px[2], py[2], px[3], py[3]); line[3] = new midasplayer.goldfishbowl.Line(px[3], py[3], px[0], py[0]); } function setPoints(p) { px[0] = p[0]; py[0] = p[1]; px[1] = p[2]; py[1] = p[3]; px[2] = p[4]; py[2] = p[5]; px[3] = p[6]; py[3] = p[7]; } function getPoint(p) { return([px[p], py[p]]); } function getLine(n) { return(line[n]); } function mayCollide(other) { var _local3 = other.getCenterX() - cx; _local3 = _local3 * _local3; var _local2 = other.getCenterY() - cy; _local2 = _local2 * _local2; var _local4 = other.getRadius() + maxRadius; _local4 = _local4 * _local4; return((_local3 + _local2) <= _local4); } function getPositionKey() { return(Math.round(Math.sqrt((cx * cx) + (cy * cy))) / 960); } function getWidth() { return(w); } function getHeight() { return(h); } function getCenterX() { return(cx); } function getRotation() { return(r); } function getCenterY() { return(cy); } function getRadius() { return(maxRadius); } function setPosition(x, y, r) { this.x = x; this.y = y; this.r = r; var _local2 = com.midasplayer.util.SineLookup.__get__instance(); lrs = _local2.sin(r); lrc = _local2.cos(r); updateVert(); } function intersectsWith(aBox) { intersects = new Array(); var _local19 = false; var _local17 = 0; while (_local17 < 4) { var _local16 = aBox.getLine(_local17); var _local3 = _local16.x1; var _local2 = _local16.y1; var _local10 = _local16.x2; var _local9 = _local16.y2; var _local11 = 0; while (_local11 < 4) { var _local7 = getLine(_local11); var _local5 = _local7.x1; var _local13 = _local7.x2; var _local6 = _local7.y1; var _local12 = _local7.y2; var _local8 = (((_local13 - _local5) * (_local2 - _local6)) - ((_local12 - _local6) * (_local3 - _local5))) / (((_local12 - _local6) * (_local10 - _local3)) - ((_local13 - _local5) * (_local9 - _local2))); var _local15 = (((_local10 - _local3) * (_local2 - _local6)) - ((_local9 - _local2) * (_local3 - _local5))) / (((_local12 - _local6) * (_local10 - _local3)) - ((_local13 - _local5) * (_local9 - _local2))); if (((_local8 > 0) && (_local8 < 1)) && ((_local15 > 0) && (_local15 < 1))) { var _local4 = [0, 0]; _local4[0] = _local3 + (_local8 * (_local10 - _local3)); _local4[1] = _local2 + (_local8 * (_local9 - _local2)); _local19 = true; intersects.push({x:_local4[0], y:_local4[1], s:(_local4[0] * 10000) + (_local4[1] * 100)}); } _local11++; } _local17++; } _local17 = 0; while (_local17 < 4) { var _local14 = aBox.getPoint(_local17); if (isInside(_local14[0], _local14[1])) { intersects.push({x:_local14[0], y:_local14[1], s:(_local14[0] * 10000) + (_local14[1] * 100)}); } _local17++; } _local17 = 0; while (_local17 < 4) { var _local14 = getPoint(_local17); if (aBox.isInside(_local14[0], _local14[1])) { intersects.push({x:_local14[0], y:_local14[1], s:(_local14[0] * 10000) + (_local14[1] * 100)}); } _local17++; } return(_local19); } function isInside(x, y) { var _local6 = px.length; var _local2; var _local3; var _local5 = false; _local2 = 0; _local3 = _local6 - 1; while (_local2 < _local6) { if ((((py[_local2] <= y) && (y < py[_local3])) || ((py[_local3] <= y) && (y < py[_local2]))) && (x < ((((px[_local3] - px[_local2]) * (y - py[_local2])) / (py[_local3] - py[_local2])) + px[_local2]))) { _local5 = !_local5; } _local3 = _local2++; } return(_local5); } function getOverlapArea() { var _local8 = intersects.length; if (_local8 == 0) { return(0); } var _local2 = new Array(_local8); var _local4 = 0; while (_local4 < _local8) { _local2[_local4] = intersects[_local4]; _local4++; } _local4 = 0; while (_local4 < _local2.length) { var _local7 = 0; while (_local7 < _local2.length) { if (_local2[_local4].s > _local2[_local7].s) { var _local3 = _local2[_local4]; _local2[_local4] = _local2[_local7]; _local2[_local7] = _local3; } _local7++; } _local4++; } var _local5 = new Array(_local8 + 4); var _local9 = computeChainHull(_local2, _local2.length, _local5); _local5[_local9] = _local5[0]; _local5[_local9 + 1] = _local5[1]; var _local10 = 0; _local4 = 1; var _local7 = 2; var _local6 = 0; while (_local4 <= _local9) { _local10 = _local10 + (_local5[_local4].x * (_local5[_local7].y - _local5[_local6].y)); _local4++; _local7++; _local6++; } return(Math.floor(_local10 / 2)); } function isLeft(P0, P1, P2) { return(((P1.x - P0.x) * (P2.y - P0.y)) - ((P2.x - P0.x) * (P1.y - P0.y))); } function computeChainHull(P, n, H) { var _local8 = 0; var _local3 = -1; var _local2; var _local10 = 0; var _local6; var _local13 = P[0].x; _local2 = 1; while (_local2 < n) { if (P[_local2].x != _local13) { break; } _local2++; } _local6 = _local2 - 1; if (_local6 == (n - 1)) { _local3++; H[_local3] = P[_local10]; if (P[_local6].y != P[_local10].y) { _local3++; H[_local3] = P[_local6]; } _local3++; H[_local3] = P[_local10]; return(_local3 + 1); } var _local7; var _local11 = n - 1; var _local12 = P[n - 1].x; _local2 = n - 2; while (_local2 >= 0) { if (P[_local2].x != _local12) { break; } _local2--; } _local7 = _local2 + 1; _local3++; H[_local3] = P[_local10]; _local2 = _local6; while (_local2++ , _local2 <= _local7) { if ((isLeft(P[_local10], P[_local7], P[_local2]) >= 0) && (_local2 < _local7)) { continue; } while (_local3 > 0) { if (isLeft(H[_local3 - 1], H[_local3], P[_local2]) > 0) { break; } _local3--; } _local3++; H[_local3] = P[_local2]; } if (_local11 != _local7) { _local3++; H[_local3] = P[_local11]; } _local8 = _local3; _local2 = _local7; while (_local2-- , _local2 >= _local6) { if ((isLeft(P[_local11], P[_local6], P[_local2]) >= 0) && (_local2 > _local6)) { continue; } while (_local3 > _local8) { if (isLeft(H[_local3 - 1], H[_local3], P[_local2]) > 0) { break; } _local3--; } _local3++; H[_local3] = P[_local2]; } if (_local6 != _local10) { _local3++; H[_local3] = P[_local10]; } return(_local3 + 1); } }Symbol 260 MovieClip [__Packages.com.midasplayer.util.SineLookup] Frame 0class com.midasplayer.util.SineLookup { static var thisInstance; function SineLookup () { var _local2 = PI2 / TABLE_SIZE; var _local1 = 0; while (_local1 < TABLE_SIZE) { TABLE[_local1] = Math.sin(_local2 * _local1); _local1++; } } static function get instance() { if (thisInstance == null) { thisInstance = new com.midasplayer.util.SineLookup(); } return(thisInstance); } function sin(rad) { rad = rad % PI2; rad = rad * TABLE_SIZE; rad = rad / PI2; rad = rad & TABLE_MASK; return(TABLE[rad >> 0]); } function cos(rad) { rad = rad % PI2; rad = rad * TABLE_SIZE; rad = rad / PI2; rad = rad + QUART; rad = rad & TABLE_MASK; return(TABLE[rad >> 0]); } static var TABLE_SIZE = 16384; static var TABLE_MASK = TABLE_SIZE - 1; static var QUART = TABLE_SIZE / 4; static var TABLE = new Array(TABLE_SIZE); static var PI2 = (Math.PI*2); }Symbol 261 MovieClip [__Packages.midasplayer.goldfishbowl.Line] Frame 0class midasplayer.goldfishbowl.Line { var x1, y1, x2, y2; function Line (x1, y1, x2, y2) { this.x1 = x1; this.y1 = y1; this.x2 = x2; this.y2 = y2; } function toString() { return(((("[" + [x1, y1]) + "]--[") + [x2, y2]) + "]"); } }Symbol 262 MovieClip [__Packages.com.midasplayer.util.EaseInQuadAnimator] Frame 0class com.midasplayer.util.EaseInQuadAnimator extends com.midasplayer.util.Animator { var dt, duration, x, startX, dx, y, startY, dy, fillBaseCopy; function EaseInQuadAnimator (o) { super(o); } function nextPosition() { var _local2 = dt * dt; var _local3 = duration * duration; x = ((dx * _local2) / _local3) + startX; y = ((dy * _local2) / _local3) + startY; } function makeCopy(t) { var _local2 = new com.midasplayer.util.EaseInQuadAnimator(); fillBaseCopy(t, _local2); return(_local2); } }Symbol 263 MovieClip [__Packages.com.midasplayer.timing.Timeable] Frame 0interface com.midasplayer.timing.Timeable { }Symbol 264 MovieClip [__Packages.midasplayer.goldfishbowl.Game] Frame 0class midasplayer.goldfishbowl.Game implements midasplayer.goldfishbowl.IObjectManager, com.midasplayer.timing.Timeable { var lastTick, performance, allowExit, isGameOver, isGameOverInit, numFishingLines, levelInited, timer, tankLimits, totalScore, currentLevel, parent, collisionList, optimizeFlag, objects, lang, hasBeenForcedLow, textboxNumLines, textboxTime, textboxScore, random, levelIds, levelTimes, levelQualify, lp, fisherman, gameLogo, currentGameLogo, soundsEnabled, rodDrawer, roll, rod, hook, lastPlate, nextInitLevel, numObject, spawnedExplosions, lastItemRepeats, lastItemTime, lastItem, hasSplashedUp, hasSplashedDown, droppingHook, releasingLine, lastHit, strengthSprite, secondsLevel, ticksLevel, levelPlayEnd, levelPlayBegin, scorePlateSprite, textboxMulitplier; function Game (parent) { lastTick = -1; performance = new com.midasplayer.timing.Performance(MOVIE_FPS); performance.setFpsThreshold(MIN_FPS, MEASURE_TIME); performance.addQualityFeedbackListener(mx.utils.Delegate.create(this, onLowQualityWarning)); allowExit = true; isGameOver = false; isGameOverInit = false; numFishingLines = 0; levelInited = false; timer = new com.midasplayer.timing.Timer(this, 25); tankLimits = new Object(); totalScore = 0; currentLevel = 0; relaxModeCountdown = false; this.parent = parent; collisionList = []; optimizeFlag = true; objects = new com.midasplayer.util.Map(); lang = "en"; hasBeenForcedLow = false; } function enableLowQuality() { if (!optimizeFlag) { return(undefined); } parent._quality = "low"; hasBeenForcedLow = true; var _local2 = textboxNumLines.getMovieClip(); _local2._x = 186; _local2._y = 58; _local2._rotation = 0; _local2 = textboxTime.getMovieClip(); _local2._x = 10; _local2._y = 86; _local2._rotation = 0; _local2 = textboxScore.getMovieClip(); _local2._x = 4; _local2._y = 25; _local2._rotation = 0; } function init(gda) { random = new com.midasplayer.util.Random(gda.getGameData("randomseed")); var _local7 = new midasplayer.goldfishbowl.GameDataParser(WENDYS_LEVELS); var _local8 = _local7.getSubTrees("leveldata"); optimizeFlag = true; lang = gda.getGameData("lang"); levelIds = _local7.getGameData("order").split(","); var _local2 = 0; while (_local2 < levelIds.length) { var _local3 = random.nextInt(levelIds.length); var _local4 = levelIds[_local2]; levelIds[_local2] = levelIds[_local3]; levelIds[_local3] = _local4; _local2++; } while (levelIds.length > 4) { levelIds.pop(); } relaxMode = gda.getGameData("relaxMode") == "true"; levelTimes = gda.getGameData("limits").split(","); levelQualify = gda.getGameData("qualify").split(","); var _local9 = gda.getGameData("head"); levelScore = 0; previousTotalScore = 0; tankLimits.x = parent.tank._x; tankLimits.y = parent.tank._y - 150; tankLimits.w = 675; tankLimits.h = 529; lp = new midasplayer.goldfishbowl.LevelParser(parent, this, random, tankLimits, _local8, levelIds, relaxMode); var _local6 = parent.attachMovie("tjejen", "fisherdude", parent.getNextHighestDepth()); _local6._x = 780; _local6._y = -100; fisherman = _local6; fisherman.assignHead(null, 15, -60, mx.utils.Delegate.create(this, continueInit)); } function continueInit() { fisherman.setPosition(645, 115); gameLogo = new com.midasplayer.util.Sprite("gamelogo_goldfishbowl", 244.8, 56.8, 0, parent); gameLogo.setVisible(true); parent.gamelogo_static._visible = false; currentGameLogo = parent.gamelogo_static; var _local6 = parent.createEmptyMovieClip("scoreTextBoxMc", parent.getNextHighestDepth()); _local6._x = 4; _local6._y = 30; _local6._rotation = 354; textboxScore = new com.midasplayer.fx.TextBox("numbas", numberOrder, 0, 0, 18, 30, "left", _local6); textboxScore.setFixedWidth(16); textboxScore.setText("000000"); var _local5 = parent.createEmptyMovieClip("timeTextBoxMc", parent.getNextHighestDepth()); _local5._x = 10; _local5._y = 78; _local5._rotation = 7.5; textboxTime = new com.midasplayer.fx.TextBox("numbas", numberOrder, 0, 0, 18, 30, "left", _local5); textboxTime.setFixedWidth(16); textboxTime.setText("01:00"); if (relaxMode) { textboxTime.setVisible(false); parent.time_txt._visible = false; parent.time_bkg._visible = false; } var _local4 = parent.createEmptyMovieClip("numLinesTextBoxMc", parent.getNextHighestDepth()); _local4._x = 186; _local4._y = 58; _local4._rotation = 7; textboxNumLines = new com.midasplayer.fx.TextBox("numbas", numberOrder, 0, 0, 18, 30, "left", _local4); textboxNumLines.setFixedWidth(16); textboxNumLines.setText("0"); parent.exitbutton.button_txt.text = com.midasplayer.util.I18n.getString("exit_btn"); parent.soundbutton.sound_button_txt.text = com.midasplayer.util.I18n.getString("sound_off"); soundsEnabled = true; var _local8 = new com.midasplayer.fx.Draw(parent.createEmptyMovieClip("tankmask_mc", parent.getNextHighestDepth())); _local8.fillRect(tankLimits.x, tankLimits.y, tankLimits.w, tankLimits.h - 8); parent.tank.setMask(_local8.mc); parent.bonus_button.onPress = mx.utils.Delegate.create(this, onUseFishingline); parent.tank.onPress = mx.utils.Delegate.create(this, onDropHook); var _local9 = new Object(); _local9.onKeyDown = mx.utils.Delegate.create(this, onPressKey); Key.addListener(_local9); parent.score_txt.text = com.midasplayer.util.I18n.getString("score_label"); parent.time_txt.text = com.midasplayer.util.I18n.getString("time_label"); parent.bonus_txt.text = com.midasplayer.util.I18n.getString("bonus_label"); rodDrawer = new com.midasplayer.fx.Draw(); rodDrawer.createClip(parent.tank); rodDrawer.__set__color(102); rodDrawer.__set__alpha(100); rodDrawer.__set__thickness(4); var _local11 = parent.getNextHighestDepth(); roll = parent.tank.attachMovie("rodroll", "roll_mc", _local11 + 1250); rod = new midasplayer.goldfishbowl.Rod(335, -120, 625, 0, 20); rod.applyForce(3.14159, HOOK_WEIGHT); rod.update(true); hook = parent.tank.hook; hook.init(this, parent.tank, rod.__get__tip().x, rod.__get__tip().y); hook.setTankLimits(tankLimits.x, tankLimits.y, tankLimits.w + tankLimits.x, (tankLimits.h + tankLimits.y) - 130); var _local3 = parent.attachMovie("platta_intro", "platta", parent.getNextHighestDepth()); lastPlate = _local3; _local3.setExitEvent(mx.utils.Delegate.create(this, begin)); _local3.init(1, 0, 1000, 2000); _local3._x = PLATE_X; _local3._y = PLATE_Y; gameLogo.setDepth(LOGO_FRONT); var _local12 = parent.attachMovie("backdrop", "gamebackdrop", parent.getNextHighestDepth()); parent.game_backdrop.swapDepths(_local12); parent.game_backdrop.removeMovieClip(); parent.backdrop.swapDepths(104800); parent.backdrop.removeMovieClip(); fisherman.setVisible(true); com.midasplayer.fx.SoundManager.play("fishtheme_loop", 100, true); fscommand ("config", "contextmenu=false"); Stage.scaleMode = "noScale"; var _local7 = new ContextMenu(); _local7.hideBuiltInItems(); _local7.builtInItems.quality = true; _root.menu = _local7; fscommand ("gameStart"); var _local10 = AUTO_VERSION.split("_")[1]; writePD(17, 0, parseInt(_local10.substring(1, _local10.length - 1))); } function gameLogoToFront() { currentGameLogo._visible = false; gameLogo.setDepth(parent.getNextHighestDepth()); gameLogo.setVisible(true); gameLogo.approachAlpha(100, 0); } function gameLogoToBack() { var cgl = currentGameLogo; var _local2 = function (s) { cgl._visible = false; s.setVisible(false); }; gameLogo.approachAlpha(0, 0, mx.utils.Delegate.create(this, _local2)); } function begin() { parent.onEnterFrame = mx.utils.Delegate.create(this, onEnterFrame); fisherman.sitUp(); gameLogoToBack(); initializeLevel(0); } function initializeLevel(levelNum) { levelInited = false; nextInitLevel = levelNum; } function doInitializeLevel() { com.midasplayer.fx.SoundManager.stopAll(); com.midasplayer.fx.SoundManager.play("level_start", 100, false, function () { com.midasplayer.fx.SoundManager.play("ingame_loop", 33, true); }); hook.reset(); var _local2 = objects.__get__valueIterator(); while (_local2.hasNext()) { _local2.next().item.destroy(); } objects = undefined; numObject = 0; objects = lp.initLevelByNumber(nextInitLevel); _local2 = objects.__get__valueIterator(); while (_local2.hasNext()) { _local2.next().item.approachAlpha(100, 250, function (spr) { spr.setAlpha(100); }); } spawnedExplosions = new Array(); lastItemRepeats = 0; lastItemTime = -1; lastItem = undefined; hasSplashedUp = false; hasSplashedDown = false; relaxModeCountdown = false; levelScore = 0; if (relaxMode) { textboxTime.setVisible(false); parent.time_txt._visible = false; parent.time_bkg._visible = false; } droppingHook = false; releasingLine = false; lastHit = 0; rod = new midasplayer.goldfishbowl.Rod(335, -120, 625, 0, 20); rod.applyForce(3.14159, HOOK_WEIGHT); rod.update(true); if (strengthSprite != undefined) { strengthSprite.destroy(); } strengthSprite = undefined; if (relaxMode) { secondsLevel = 30; } else { secondsLevel = 60000; } ticksLevel = int(secondsLevel / timer.getMillisPerTick()); levelPlayEnd = levelPlayBegin + ticksLevel; var _local3 = lp.getHookOffsetByLevel(nextInitLevel); hook.pendulaStep(_local3); nextInitLevel = -1; levelInited = true; } function onToggleSoundButton() { com.midasplayer.fx.SoundManager.enableSounds((soundsEnabled = !soundsEnabled)); parent.soundbutton.sound_button_txt.text = com.midasplayer.util.I18n.getString((soundsEnabled ? "sound_off" : "sound_on")); } function onExitButton() { if (((!allowExit) || (isGameOverInit)) || (isGameOver)) { return(undefined); } writePD(104, lastTick); lastPlate.removeMovieClip(); onGameOver(); gameLogoToFront(); } function onLowQualityWarning(fps) { if (!hasBeenForcedLow) { enableLowQuality(); } } function onPressKey() { switch (Key.getCode()) { case 38 : onUseFishingline(); break; case 40 : case 32 : onDropHook(); } } function onUseFishingline() { if (numFishingLines == 0) { return(undefined); } releasingLine = true; } function onDropHook(num) { if (hook.canDropHook()) { droppingHook = true; } } function onReelIn(item) { if (!levelInited) { return(undefined); } var _local2 = 0; if (item != undefined) { _local2 = item.getWeight(); if (hook.getStrength()) { _local2 = _local2 / 2; } } com.midasplayer.fx.SoundManager.play("reel_in_loop", 100, true); fisherman.reelIn(_local2); } function removeScorePlate() { if (scorePlateSprite != undefined) { scorePlateSprite.destroy(); scorePlateSprite = undefined; } } function onCaughtItem(item) { fisherman.idle(); com.midasplayer.fx.SoundManager.stop("reel_in_loop"); if ((((!levelInited) || (item == undefined)) || (isGameOverInit)) || (isGameOver)) { return(undefined); } var _local6 = 0; var _local8 = lastTick; if (lastItemTime >= 0) { var _local13 = _local8 - lastItemTime; var _local9 = 10000 / timer.getMillisPerTick(); var _local12 = Math.min(_local13, _local9) / _local9; _local6 = int(10 * (1 - _local12)); } lastItemTime = _local8; var _local5 = item.getName(); if (_local5 == lastItem) { lastItemRepeats++; } else { lastItemRepeats = 0; lastItem = _local5; } var _local3 = Math.max(1, (1 + lastItemRepeats) * 1); com.midasplayer.fx.SoundManager.play("catch_" + Math.min(4, _local3)); var _local7 = 1 + ((currentLevel / 10) * 2); var _local4 = ((item.getPoints() * _local7) * _local3) + _local6; totalScore = totalScore + _local4; if (relaxMode) { levelScore = levelScore + _local4; if ((!relaxModeCountdown) && (levelScore >= getQualifyScoreRelaxMode(currentLevel))) { secondsLevel = 30000; levelPlayBegin = lastTick; ticksLevel = int(secondsLevel / timer.getMillisPerTick()); levelPlayEnd = levelPlayBegin + ticksLevel; relaxModeCountdown = true; textboxTime.setVisible(true); parent.time_txt._visible = true; parent.time_bkg._visible = true; } } writePD(603, lastTick, com.midasplayer.util.FloatEncoder.encodeBits(lastHit), _local4); textboxScore.setText(com.midasplayer.util.Numbers.itoa(Math.min(999999, totalScore), 6)); if ((objects.count() > 0) && (item.getPoints() > 0)) { removeScorePlate(); scorePlateSprite = new com.midasplayer.util.Sprite("scoreplate", 256, 74, 0, parent); var _local10 = scorePlateSprite.getMovieClip(); var _local14 = new com.midasplayer.util.Sprite(item.getName(), 160, 25, 0, _local10); _local14.scaleFitInside(50, 50); scorePlateSprite.delayedInvokation(2000, mx.utils.Delegate.create(this, removeScorePlate)); textboxMulitplier = new com.midasplayer.fx.TextBox("numbas", numberOrder, 88, 10, 18, 30, "right", _local10); textboxMulitplier.setFixedWidth(16); var _local11 = Math.round(_local7 * item.getPoints()); textboxMulitplier.setText((_local11 + "x") + Math.min(9, _local3)); } } function blastTankItem(item) { var _local8 = parent.tank; var _local7 = _local8.getNextHighestDepth(); var _local4 = getTimer(); var _local3 = 0; for (var _local6 in spawnedExplosions) { var _local2 = _local4 - spawnedExplosions[_local6]; if (_local2 < 500) { _local3++; } } if (_local3 < 5) { var _local5 = _local8.attachMovie("expl", "boom_" + _local7, _local7); _local5._x = item.getPosX(); _local5._y = item.getPosY(); _local5._rotation = Math.round(Math.random() * 360); _local5._xscale = 200; _local5._yscale = 200; spawnedExplosions.push(_local4); if (_local3 == 0) { com.midasplayer.fx.SoundManager.play("blast"); } } removeTankItem(item); } function removeTankItem(item) { var _local2 = objects.get(item.__get__uniqeId()); objects.remove(item.__get__uniqeId()); _local2.item.destroy(); } function addTankItem(name, x, y) { var _local5 = (name + "_d") + getTimer(); var _local3 = {x:x, y:y, rotation:"0", flip:"false"}; com.midasplayer.fx.SoundManager.play(name + "_drop"); objects.put(_local5, _local3); var _local4 = lp.getDisplacementByName(name); var _local2 = lp.attachTankItem(_local5, _local3, _local4[0], _local4[1]); _local2.setScale(0); _local2.setAlpha(0); _local2.approachScale(100, 500, false); _local2.approachAlpha(100, 250, function (spr) { spr.setAlpha(100); }); return(_local3.item); } function getItemsByProximity(origin, proximity) { var _local7 = new Array(); var _local9 = origin.getPosX(); var _local8 = origin.getPosY(); proximity = proximity * proximity; var _local3 = objects.__get__valueIterator(); while (_local3.hasNext()) { var _local2 = _local3.next(); var _local5 = _local9 - _local2.item.getPosX(); var _local4 = _local8 - _local2.item.getPosY(); var _local6 = (_local5 * _local5) + (_local4 * _local4); if (_local6 <= proximity) { _local7.push(_local2.item); } } return(_local7); } function bonusItemAcquired(name, bonusSprite) { switch (name) { case "strength_item" : if (strengthSprite != undefined) { bonusSprite.destroy(); return(undefined); } strengthSprite = bonusSprite; bonusSprite.delayedInvokation(500, function (self) { self.setParent(_root); self.setRotation(0); self.setScale(70); self.setPosition(500, 152); }); hook.setStrength(true); break; case "doublehook_item" : bonusSprite.delayedInvokation(500, function (self) { self.destroy(); }); hook.setBigHook(true); break; case "fishingline_item" : bonusSprite.delayedInvokation(500, function (self) { self.destroy(); }); numFishingLines++; textboxNumLines.setText("" + numFishingLines); } } function getQualifyScoreRelaxMode(level) { if (level < 4) { return((level + 1) * 1000); } return((level - 2) * 5000); } function onLevelComplete() { fisherman.idle(); removeScorePlate(); levelInited = false; if ((currentLevel + 1) < lp.maxNumLevels()) { com.midasplayer.fx.SoundManager.stopAll(); var _local3 = 0; var _local4 = 0; if (relaxMode) { _local3 = getQualifyScoreRelaxMode(currentLevel) + previousTotalScore; _local4 = getQualifyScoreRelaxMode(currentLevel + 1) + totalScore; } else { _local3 = levelQualify[currentLevel]; _local4 = levelQualify[currentLevel + 1]; } var _local2 = parent.attachMovie("platta_levelover", "platta", parent.getNextHighestDepth()); lastPlate = _local2; if ((relaxMode && (getQualifyScoreRelaxMode(currentLevel) > levelScore)) || ((!relaxMode) && (_local3 > totalScore))) { com.midasplayer.fx.SoundManager.play("game_over"); allowExit = false; _local2.setExitEvent(mx.utils.Delegate.create(this, doGameOver)); } else { com.midasplayer.fx.SoundManager.play("level_complete"); _local2.setExitEvent(mx.utils.Delegate.create(this, doLevelCompleteSignRemoved)); } _local2.init(++currentLevel, totalScore, _local3, _local4); _local2._x = PLATE_X; _local2._y = PLATE_Y; previousTotalScore = totalScore; levelScore = 0; } else { onGameOver(); } gameLogoToFront(); } function doLevelCompleteSignRemoved() { gameLogoToBack(); initializeLevel(currentLevel); } function onGameOver() { if (isGameOverInit) { return(undefined); } isGameOverInit = true; com.midasplayer.fx.SoundManager.stopAll(); com.midasplayer.fx.SoundManager.play("game_over"); var _local2 = parent.attachMovie("platta_gameover", "platta", parent.getNextHighestDepth()); lastPlate = _local2; _local2.setExitEvent(mx.utils.Delegate.create(this, doGameOver)); _local2.init(++currentLevel, totalScore); _local2._x = PLATE_X; _local2._y = PLATE_Y; } function doGameOver() { if (isGameOver) { return(undefined); } isGameOver = true; fscommand ("gameOver", totalScore); parent.onEnterFrame = undefined; var _local2 = objects.__get__valueIterator(); while (_local2.hasNext()) { _local2.next().item.destroy(); } objects.clear(); gameLogoToBack(); } function onEnterFrame() { timer.advanceTime2(); performance.frameUpdated(); } function checkCollisions() { var _local5 = hook.getBoundBox(); var _local11 = _local5.getArea(); var _local6 = objects.__get__valueIterator(); while (_local6.hasNext()) { var _local4 = _local6.next(); var _local2 = _local4.bounds; if (!_local5.mayCollide(_local2)) { } else { var _local3 = _local2.getArea(); if (_local11 < _local3) { if (_local5.intersectsWith(_local2)) { var _local10 = _local5.getOverlapArea(); var _local8 = _local10 / _local11; if (_local8 > 0.2) { collisionList.push({obj:_local4, score:(_local8 * _local3) + _local2.getPositionKey()}); } } } else if (_local2.intersectsWith(_local5)) { var _local9 = _local2.getOverlapArea(); var _local7 = _local9 / _local3; if (_local7 > 0.05) { collisionList.push({obj:_local4, score:(_local7 * _local3) + _local2.getPositionKey()}); } } } } } function tick(tick) { lastTick = tick; if (nextInitLevel != -1) { levelPlayBegin = tick; writePD(1, tick); doInitializeLevel(); performance.begin(); } hook.update(levelInited); fisherman.update(); rod.update(); var _local7 = hook.getDirection(); var _local8 = HOOK_WEIGHT + ((_local7 < 0) ? 5 : 0); if (hook.hasCatch()) { rod.__set__lineSlack(5); var _local10 = hook.getCaughtItem().getWeight(); _local8 = _local8 + _local10; if (_local10 >= 10) { _local8 = _local8 + (com.midasplayer.util.SineLookup.__get__instance().sin(hook.getAngle()) * 10); } } else { rod.__set__lineSlack(((_local7 < 0) ? (((1 - (hook.getLineLength() / 400)) * 15) + 15) : 30)); } rod.applyForce(Math.PI, _local8); hook.setRodTip(rod.__get__tip().x, rod.__get__tip().y); var _local3 = objects.__get__valueIterator(); while (_local3.hasNext()) { _local3.next().item.update(); } var _local5; var _local4 = 0; collisionList = []; if (_local7 > 0) { checkCollisions(); var _local2 = 0; while (_local2 < collisionList.length) { if (collisionList[_local2].score > _local4) { _local5 = collisionList[_local2].obj; _local4 = collisionList[_local2].score; } _local2++; } } if (levelInited) { if (((_local7 > 0) && (hook._y > 10)) && (!hasSplashedDown)) { com.midasplayer.fx.SoundManager.play("splash_down"); hasSplashedDown = true; } if ((((_local7 < 0) && (hook._y < 10)) && (hasSplashedDown)) && (!hasSplashedUp)) { com.midasplayer.fx.SoundManager.play("splash"); hasSplashedUp = true; } if (_local5 != undefined) { var _local9; if (_local5.item.onCatch()) { objects.remove(_local5.item.uniqeId); _local9 = _local5; lastHit = _local4; } hook.retractHook(_local9); } if (droppingHook) { hook.releaseHook(); droppingHook = false; hasSplashedDown = false; hasSplashedUp = false; writePD(6, tick); } if (releasingLine) { if (hook.attachNewFishingline()) { fisherman.idle(); releasingLine = false; numFishingLines--; writePD(3, tick); textboxNumLines.setText("" + numFishingLines); com.midasplayer.fx.SoundManager.stop("reel_in_loop"); } } if (relaxMode) { if ((relaxModeCountdown && (tick == levelPlayEnd)) || ((objects.count() == 0) && (!hook.hasCatch()))) { onLevelComplete(); } } else if ((tick == levelPlayEnd) || ((objects.count() == 0) && (!hook.hasCatch()))) { writePD(105, tick); onLevelComplete(); } } } function render(tick, alpha) { if (levelInited) { var _local6 = levelPlayEnd - levelPlayBegin; var _local8 = tick - levelPlayBegin; var _local4 = 1 - (_local8 / _local6); _local4 = _local4 * secondsLevel; _local4 = int(_local4); if ((!relaxMode) || (relaxMode && (relaxModeCountdown))) { textboxTime.setText(com.midasplayer.util.Numbers.asTime(_local4, false, true)); } } var _local2 = objects.__get__valueIterator(); while (_local2.hasNext()) { _local2.next().item.updatePosition(alpha); } var _local7; _local7 = hook.getCaughtItem(); if (_local7 != undefined) { _local7.updatePosition(alpha); } var _local5; _local5 = hook.getFallingHook(); if (_local5 != undefined) { _local5.getCaughtItem().updatePosition(alpha); } rodDrawer.clear(); rod.paint(rodDrawer, roll); rodDrawer.__set__color(102); rodDrawer.__set__thickness(1); rodDrawer.drawLine(hook._x, hook._y, rod.__get__tip().x, rod.__get__tip().y); } function writePD(event, tick, extra, s) { var _local1 = (event + ",") + tick; if (extra != undefined) { _local1 = _local1 + ("," + extra); } if (s == undefined) { s = 0; } _local1 = _local1 + (",0=" + s); fscommand ("playData", _local1); } static var WENDYS_LEVELS = ((((((("<gamedata head=\"\" randomseed=\"" + int(Math.random() * 123456789)) + "\" gametime=\"290\" order=\"152,162,163,167,172\" relaxMode=\"false\" limits=\"60,60,60,60,60\" qualify=\"1500,5000,10000\" lang=\"en\">") + "<leveldata id=\"152\"><level><objects><sunlotion rotation=\"0\" flip=\"false\" y=\"333.55\" x=\"359\" id=\"20\" /><sunlotion rotation=\"0\" flip=\"false\" y=\"331.5\" x=\"388.7\" id=\"19\" /><sunlotion rotation=\"0\" flip=\"false\" y=\"334.45\" x=\"328.2\" id=\"18\" /><beans rotation=\"0\" flip=\"false\" y=\"163\" x=\"554\" id=\"17\" /><beans rotation=\"0\" flip=\"false\" y=\"166\" x=\"402\" id=\"16\" /><beans rotation=\"0\" flip=\"false\" y=\"164\" x=\"102\" id=\"15\" /><crisps rotation=\"0\" flip=\"false\" y=\"300\" x=\"236\" id=\"14\" /><crisps rotation=\"0\" flip=\"false\" y=\"273\" x=\"432\" id=\"13\" /><crisps rotation=\"0\" flip=\"false\" y=\"292\" x=\"550\" id=\"12\" /><crisps rotation=\"0\" flip=\"false\" y=\"303\" x=\"606\" id=\"11\" /><crisps rotation=\"0\" flip=\"false\" y=\"251\" x=\"291\" id=\"10\" /><crisps rotation=\"0\" flip=\"false\" y=\"241\" x=\"36\" id=\"9\" /><crisps rotation=\"0\" flip=\"false\" y=\"240\" x=\"647\" id=\"8\" /><treasure rotation=\"0\" flip=\"false\" y=\"323\" x=\"155\" id=\"7\" /><fish rotation=\"0\" flip=\"false\" y=\"103\" x=\"69\" id=\"6\" /><mine rotation=\"0\" flip=\"false\" y=\"167\" x=\"176\" id=\"4\" /><mine rotation=\"0\" flip=\"false\" y=\"161\" x=\"629\" id=\"2\" /><mine rotation=\"0\" flip=\"false\" y=\"165\" x=\"323\" id=\"1\" /></objects></level></leveldata>") + "<leveldata id=\"162\"><level><objects><sunlotion rotation=\"0\" flip=\"false\" y=\"161.9\" x=\"119.5\" id=\"17\" /><sunlotion rotation=\"0\" flip=\"false\" y=\"236.95\" x=\"589.4\" id=\"16\" /><sunlotion rotation=\"0\" flip=\"false\" y=\"325\" x=\"107\" id=\"15\" /><crisps rotation=\"30\" flip=\"false\" y=\"105.45\" x=\"86\" id=\"14\" /><tire rotation=\"0\" flip=\"false\" y=\"311.7\" x=\"586.7\" id=\"13\" /><smalltire rotation=\"0\" flip=\"false\" y=\"319.95\" x=\"169.8\" id=\"12\" /><fish rotation=\"0\" flip=\"false\" y=\"90.4\" x=\"496.95\" id=\"11\" /><diamondfish rotation=\"0\" flip=\"false\" y=\"201.7\" x=\"54.1\" id=\"10\" /><champagne rotation=\"0\" flip=\"false\" y=\"312.55\" x=\"50.4\" id=\"9\" /><champagne rotation=\"0\" flip=\"false\" y=\"276.95\" x=\"504.95\" id=\"8\" /><champagne rotation=\"0\" flip=\"false\" y=\"115\" x=\"638.45\" id=\"7\" /><mine rotation=\"0\" flip=\"false\" y=\"301.3\" x=\"321.05\" id=\"6\" /><beans rotation=\"340\" flip=\"false\" y=\"253.65\" x=\"267.4\" id=\"5\" /><beans rotation=\"25\" flip=\"false\" y=\"210.6\" x=\"322.95\" id=\"4\" /><beans rotation=\"0\" flip=\"false\" y=\"255.85\" x=\"375.65\" id=\"3\" /><beans rotation=\"10\" flip=\"false\" y=\"318\" x=\"412\" id=\"2\" /><beans rotation=\"20\" flip=\"false\" y=\"310.1\" x=\"232.75\" id=\"1\" /></objects></level></leveldata>") + "<leveldata id=\"163\"><level><objects><smalltire rotation=\"0\" flip=\"false\" y=\"318.35\" x=\"407.45\" id=\"21\" /><smalltire rotation=\"0\" flip=\"false\" y=\"193.85\" x=\"416.15\" id=\"20\" /><smalltire rotation=\"0\" flip=\"false\" y=\"208.25\" x=\"105.9\" id=\"19\" /><sunlotion rotation=\"0\" flip=\"false\" y=\"317.15\" x=\"524.15\" id=\"18\" /><sunlotion rotation=\"0\" flip=\"false\" y=\"85.45\" x=\"61.05\" id=\"17\" /><sunlotion rotation=\"20\" flip=\"false\" y=\"191.8\" x=\"592.85\" id=\"16\" /><beans rotation=\"345\" flip=\"false\" y=\"315.1\" x=\"46.25\" id=\"14\" /><beans rotation=\"0\" flip=\"false\" y=\"270.15\" x=\"461\" id=\"12\" /><beans rotation=\"20\" flip=\"false\" y=\"278.85\" x=\"608.4\" id=\"11\" /><fish rotation=\"0\" flip=\"false\" y=\"173.3\" x=\"49.65\" id=\"10\" /><fish rotation=\"170\" flip=\"true\" y=\"94.55\" x=\"639.15\" id=\"9\" /><champagne rotation=\"0\" flip=\"false\" y=\"320.15\" x=\"263.4\" id=\"7\" /><champagne rotation=\"355\" flip=\"false\" y=\"317.45\" x=\"179.05\" id=\"6\" /><champagne rotation=\"10\" flip=\"false\" y=\"318.15\" x=\"326.55\" id=\"5\" /><crisps rotation=\"30\" flip=\"false\" y=\"153.35\" x=\"202.85\" id=\"4\" /><korv rotation=\"340\" flip=\"false\" y=\"252.9\" x=\"348.2\" id=\"3\" /><crisps rotation=\"0\" flip=\"false\" y=\"128.8\" x=\"612.25\" id=\"2\" /><sturgeon rotation=\"0\" flip=\"false\" y=\"263.45\" x=\"107.9\" id=\"1\" /></objects></level></leveldata>") + "<leveldata id=\"167\"><level><objects><fish2 rotation=\"0\" flip=\"false\" y=\"197.5\" x=\"453.2\" id=\"20\" /><fish2 rotation=\"180\" flip=\"true\" y=\"151.25\" x=\"228.65\" id=\"19\" /><smalltire rotation=\"0\" flip=\"false\" y=\"266.35\" x=\"392.1\" id=\"18\" /><smalltire rotation=\"0\" flip=\"false\" y=\"301.7\" x=\"616.25\" id=\"17\" /><smalltire rotation=\"0\" flip=\"false\" y=\"319.9\" x=\"96.8\" id=\"16\" /><sunlotion rotation=\"10\" flip=\"false\" y=\"324.75\" x=\"339.75\" id=\"15\" /><sunlotion rotation=\"0\" flip=\"false\" y=\"328.9\" x=\"578.4\" id=\"14\" /><sunlotion rotation=\"350\" flip=\"false\" y=\"325\" x=\"147.25\" id=\"13\" /><sunlotion rotation=\"355\" flip=\"false\" y=\"158.95\" x=\"47.05\" id=\"12\" /><sunlotion rotation=\"10\" flip=\"false\" y=\"308.7\" x=\"457.05\" id=\"11\" /><beans rotation=\"10\" flip=\"false\" y=\"94.65\" x=\"57.05\" id=\"10\" /><beans rotation=\"300\" flip=\"false\" y=\"229.7\" x=\"618.85\" id=\"9\" /><beans rotation=\"0\" flip=\"false\" y=\"316.5\" x=\"528.9\" id=\"8\" /><beans rotation=\"0\" flip=\"false\" y=\"301.6\" x=\"283.45\" id=\"7\" /><beans rotation=\"0\" flip=\"false\" y=\"93.7\" x=\"589.15\" id=\"6\" /><diamondfish rotation=\"0\" flip=\"false\" y=\"266.85\" x=\"38.75\" id=\"5\" /><diamondfish rotation=\"175\" flip=\"true\" y=\"152.45\" x=\"646.4\" id=\"4\" /><crisps rotation=\"0\" flip=\"false\" y=\"217.85\" x=\"176.4\" id=\"3\" /><crisps rotation=\"0\" flip=\"false\" y=\"285.75\" x=\"198.05\" id=\"2\" /><korv rotation=\"15\" flip=\"false\" y=\"161\" x=\"130.1\" id=\"1\" /></objects></level></leveldata>") + "<leveldata id=\"172\"><level><objects><fish rotation=\"10\" flip=\"false\" y=\"86.3\" x=\"127.25\" id=\"17\" /><fish rotation=\"190\" flip=\"true\" y=\"260.45\" x=\"583.7\" id=\"16\" /><smalltire rotation=\"0\" flip=\"false\" y=\"325.8\" x=\"280.4\" id=\"15\" /><beans rotation=\"0\" flip=\"false\" y=\"331.9\" x=\"326.85\" id=\"14\" /><beans rotation=\"0\" flip=\"false\" y=\"276.65\" x=\"279.35\" id=\"13\" /><beans rotation=\"15\" flip=\"false\" y=\"333.45\" x=\"229\" id=\"12\" /><champagne rotation=\"0\" flip=\"false\" y=\"317.05\" x=\"389.15\" id=\"11\" /><champagne rotation=\"340\" flip=\"false\" y=\"239.5\" x=\"434.15\" id=\"10\" /><champagne rotation=\"330\" flip=\"false\" y=\"331.5\" x=\"550.35\" id=\"9\" /><crisps rotation=\"0\" flip=\"false\" y=\"164.85\" x=\"259.15\" id=\"8\" /><sunlotion rotation=\"15\" flip=\"false\" y=\"191.6\" x=\"34.45\" id=\"7\" /><sunlotion rotation=\"45\" flip=\"false\" y=\"170.8\" x=\"88.5\" id=\"6\" /><sunlotion rotation=\"30\" flip=\"false\" y=\"206.1\" x=\"153.15\" id=\"5\" /><sunlotion rotation=\"50\" flip=\"false\" y=\"268.6\" x=\"152.05\" id=\"4\" /><treasure rotation=\"0\" flip=\"false\" y=\"329\" x=\"632.45\" id=\"3\" /><tire rotation=\"0\" flip=\"false\" y=\"242.1\" x=\"84.65\" id=\"2\" /><tire rotation=\"0\" flip=\"false\" y=\"305.95\" x=\"453.4\" id=\"1\" /></objects></level></leveldata>") + "</gamedata>"; static var AUTO_VERSION = "BUILD_[126]_121e92b2b04"; var relaxMode = false; var relaxModeCountdown = false; var levelScore = 0; var previousTotalScore = 0; static var RADIAN_TO_DEGREE = 57.2957795; static var DEGREE_TO_RADIAN = 0.0174532925; static var HOOK_WEIGHT = 40; static var PLATE_X = 78.5; static var PLATE_Y = 82.5; static var MOVIE_FPS = 40; static var MEASURE_TIME = 5; static var MIN_FPS = 15; static var numberOrder = "0123456789:x"; static var LOGO_BACK = 0; static var LOGO_FRONT = 75000; }Symbol 265 MovieClip [__Packages.com.midasplayer.timing.Performance] Frame 0class com.midasplayer.timing.Performance { var idealFps, measurePeriod, minPeriodFps, listeners, startAt, period, nextFpsUpdate, totalFps, fpsCount, lastFpsCount, periodFps, updates; function Performance (idealFps) { this.idealFps = idealFps; measurePeriod = 5; minPeriodFps = (idealFps / 2) * measurePeriod; listeners = []; begin(); } function begin() { startAt = -1; period = -1; nextFpsUpdate = getTimer(); totalFps = 0; fpsCount = 0; lastFpsCount = -1; periodFps = 0; updates = 0; } function frameUpdated() { fpsCount++; var _local3 = getTimer(); if (startAt < 0) { startAt = _local3; } if (_local3 > nextFpsUpdate) { if (updates > 0) { lastFpsCount = fpsCount; totalFps = totalFps + fpsCount; } periodFps = periodFps + fpsCount; if ((++period) == measurePeriod) { if (periodFps < minPeriodFps) { for (var _local2 in listeners) { listeners[_local2](periodFps / measurePeriod); } } period = 0; periodFps = 0; } nextFpsUpdate = _local3 + 1000; fpsCount = 0; updates++; } } function addQualityFeedbackListener(fn) { listeners.push(fn); } function setFpsThreshold(minPeriodFps, measurePeriod) { this.minPeriodFps = minPeriodFps * measurePeriod; this.measurePeriod = measurePeriod; } function get fps() { return(lastFpsCount); } function get averageFps() { return(totalFps / ((getTimer() - startAt) / 1000)); } }Symbol 266 MovieClip [__Packages.com.midasplayer.util.GameDataAcquirer] Frame 0class com.midasplayer.util.GameDataAcquirer { var attrib, trees, targetVar, dataEvent, timerFn, timer, error; function GameDataAcquirer (variable) { attrib = new com.midasplayer.util.Map(); trees = new com.midasplayer.util.Map(); if (variable != undefined) { targetVar = variable; } else { targetVar = "gameData"; } } function beginWait(fn) { dataEvent = fn; timerFn = function (caller) { var _local1 = _level0[caller.targetVar]; if (((_local1 != undefined) && (_local1 != null)) && (_local1.length > 0)) { caller.parse(_local1); if (caller.dataEvent != undefined) { caller.dataEvent(); } caller.dataEvent = undefined; clearInterval(caller.timer); } }; timer = setInterval(timerFn, 100, this); } function poll() { if (!parsed) { var _local2 = _level0[targetVar]; if (((_local2 != undefined) && (_local2 != null)) && (_local2.length > 0)) { parse(_local2); parsed = true; return(true); } } return(false); } function getAttributes() { return(attrib); } function getSubTrees(name) { return(trees.get(name)); } function getGameData(name) { return(attrib.get(name)); } function parse(data) { attrib.clear(); var _local7 = new com.midasplayer.util.Map(); var _local9 = new XML(); _local9.ignoreWhite = true; _local9.parseXML(data); var _local4 = _local9.firstChild; if (_local4.nodeName != "gamedata") { error = "Bad XML (expected <gamedata>)"; return(undefined); } for (var _local8 in _local4.attributes) { var _local5; var _local3 = _local4.attributes[_local8]; if ((_local3.indexOf("[") == 0) && ((_local5 = _local3.indexOf("]")) != -1)) { _local3 = _local3.substring(1, _local5).split(","); } attrib.put(_local8, _local3); } for (var _local8 in _local4.childNodes) { var _local2 = _local4.childNodes[_local8]; switch (_local2.nodeName) { case "text" : _local7.put(_local2.attributes.id, _local2.firstChild.nodeValue); break; default : var _local6; _local6 = trees.get(_local2.nodeName); if (_local6 == undefined) { trees.put(_local2.nodeName, [_local2]); } else { _local6.push(_local2); } } } com.midasplayer.util.I18n.init(_local7); } var parsed = false; }Symbol 267 MovieClip [__Packages.com.midasplayer.util.Random] Frame 0class com.midasplayer.util.Random { var mta, mti, lastSeed; function Random (aSeed) { mta = new Array(N); mti = N + 1; if (aSeed != undefined) { init_genrand(aSeed); } } function set seed(s) { init_genrand(s); //return(seed); } function get seed() { return(lastSeed); } function nextInt(n) { return((genrand_int32() & 2147483647) % n); } function nextFloat() { return(next(24) / 16777216); } function nextDouble() { return(next(24) / 16777216); } function next(bits) { if (bits < 32) { return(genrand_int32() & ((1 << bits) - 1)); } return(genrand_int32()); } function init_genrand(s) { s = int(s); var _local6 = getTimer(); lastSeed = s; mta[0] = s; var _local2 = s; var _local3 = new com.midasplayer.util.Integer64(); var _local4 = N; mti = 1; while (mti < _local4) { _local3.init32((_local2 >>> 30) ^ _local2); _local3.mulu32(1812433253); _local2 = (mta[mti] = int(_local3.lsb + mti)); mti++; } var _local7 = getTimer(); } function genrand_int32() { var _local9 = N; var _local3 = 0; if (mti >= _local9) { if (mti == (_local9 + 1)) { init_genrand(5489); } var _local8 = M; var _local6 = UPPER_MASK; var _local4 = LOWER_MASK; var _local5 = mag01; var _local11 = getTimer(); var _local2 = 0; var _local7 = _local9 - _local8; var _local10 = _local8 - _local9; _local2 = 0; while (_local2 < _local7) { _local3 = (mta[_local2] & _local6) | (mta[_local2 + 1] & _local4); mta[_local2] = (mta[_local2 + _local8] ^ (_local3 >>> 1)) ^ _local5[_local3 & 1]; _local2++; } _local7 = _local9 - 1; while (_local2 < _local7) { _local3 = (mta[_local2] & _local6) | (mta[_local2 + 1] & _local4); mta[_local2] = (mta[_local2 + _local10] ^ (_local3 >>> 1)) ^ _local5[_local3 & 1]; _local2++; } _local3 = (mta[_local9 - 1] & _local6) | (mta[0] & _local4); mta[_local9 - 1] = (mta[_local8 - 1] ^ (_local3 >>> 1)) ^ _local5[_local3 & 1]; mti = 0; var _local12 = getTimer(); } _local3 = mta[mti++]; _local3 = _local3 ^ (_local3 >>> 11); _local3 = _local3 ^ ((_local3 << 7) & 2636928640); _local3 = _local3 ^ ((_local3 << 15) & 4022730752); _local3 = _local3 ^ (_local3 >>> 18); return(_local3); } static var N = 624; static var M = 397; static var MATRIX_A = 2567483615; static var UPPER_MASK = 2147483648; static var LOWER_MASK = 2147483647; static var mag01 = [0, 2567483615]; }Symbol 268 MovieClip [__Packages.com.midasplayer.util.Integer64] Frame 0class com.midasplayer.util.Integer64 { var r, p, s; function Integer64 (lowInt) { r = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]; p = [0, 0, 0, 0, 0]; s = [0, 0, 0]; if (lowInt != undefined) { merge(lowInt); } } function init(v) { var _local2 = 0; while (_local2 < p.length) { p[_local2] = v.p[_local2]; _local2++; } } function init32(n) { p[0] = n & 32767; n = n >>> 15; p[1] = n & 32767; n = n >>> 15; p[2] = n & 3; p[3] = 0; p[4] = 0; } function get lsb() { return((p[0] | (p[1] << 15)) | ((p[2] & 3) << 30)); } function get msb() { return((((p[2] >> 2) | ((p[3] << 15) >> 2)) | ((p[4] << 30) >> 2)) & 2147483647); } function binaryShiftLeft(step) { var _local2 = 0; while (_local2 < step) { shl(); _local2++; } } function binaryShiftRight(step) { var _local4 = (step / 15) >> 0; var _local5 = step - (_local4 * 15); var _local2 = p.length - 1; while (_local2 > 0) { var _local3 = 0; while (_local3 < _local4) { p[_local3] = p[_local3 + 1]; _local3++; } p[_local2--] = 0; } if (_local5 > 0) { var _local3 = 0; while (_local3 < _local5) { shr(); _local3++; } } } function binaryNot(o) { p[0] = p[0] ^ o.p[0]; p[1] = p[1] ^ o.p[1]; p[2] = p[2] ^ o.p[2]; p[3] = p[3] ^ o.p[3]; p[4] = p[4] ^ o.p[4]; } function add64(o) { var _local4 = 0; var _local3 = 1; var _local2 = 0; while ((_local3 < p.length) && (o.p[_local2] != 0)) { _local3++; } _local2 = 0; while (_local2 < _local3) { _local4 = _local4 + (p[_local2] + o.p[_local2]); p[_local2] = _local4 & 32767; _local4 = _local4 >> 15; _local2++; } } function add32(num) { var _local2 = 0; var _local5 = num & 32767; num = num >> 15; var _local6 = num & 32767; num = num >> 15; var _local4 = num & 3; _local2 = _local2 + (p[0] + _local5); p[0] = _local2 & 32767; _local2 = _local2 >> 15; _local2 = _local2 + (p[1] + _local6); p[1] = _local2 & 32767; _local2 = _local2 >> 15; _local2 = _local2 + (p[2] + _local4); p[2] = _local2 & 32767; } function mulu32(num) { var _local3 = 0; s[0] = num & 32767; num = num >>> 15; s[1] = num & 32767; num = num >>> 15; s[2] = num & 3; var _local2 = 0; while (_local2 < 3) { var _local4 = s[_local2]; _local3 = _local4 * p[0]; r[_local2][0] = _local3 & 32767; _local3 = _local3 >> 15; _local3 = _local3 + (_local4 * p[1]); r[_local2][1] = _local3 & 32767; _local3 = _local3 >> 15; _local3 = _local3 + (_local4 * p[2]); r[_local2][2] = _local3 & 3; _local2++; } _local3 = r[0][0]; p[0] = _local3 & 32767; _local3 = _local3 >> 15; _local3 = _local3 + (r[0][1] + r[1][0]); p[1] = _local3 & 32767; _local3 = _local3 >> 15; _local3 = _local3 + ((r[0][2] + r[1][1]) + r[2][0]); p[2] = _local3 & 3; p[3] = 0; p[4] = 0; } function mul64(o) { var _local2 = 0; var _local3 = 0; while (_local3 < 5) { var _local4 = o.p[_local3]; _local2 = _local4 * p[0]; r[_local3][0] = _local2 & 32767; _local2 = _local2 >> 15; _local2 = _local2 + (_local4 * p[1]); r[_local3][1] = _local2 & 32767; _local2 = _local2 >> 15; _local2 = _local2 + (_local4 * p[2]); r[_local3][2] = _local2 & 32767; _local2 = _local2 >> 15; _local2 = _local2 + (_local4 * p[3]); r[_local3][3] = _local2 & 32767; _local2 = _local2 >> 15; _local2 = _local2 + (_local4 * p[4]); r[_local3][4] = _local2 & 32767; _local3++; } _local2 = r[0][0]; p[0] = _local2 & 32767; _local2 = _local2 >> 15; _local2 = _local2 + (r[0][1] + r[1][0]); p[1] = _local2 & 32767; _local2 = _local2 >> 15; _local2 = _local2 + ((r[0][2] + r[1][1]) + r[2][0]); p[2] = _local2 & 32767; _local2 = _local2 >> 15; _local2 = _local2 + (((r[0][3] + r[1][2]) + r[2][1]) + r[3][0]); p[3] = _local2 & 32767; _local2 = _local2 >> 15; _local2 = _local2 + ((((r[0][4] + r[1][3]) + r[2][2]) + r[3][1]) + r[4][0]); p[4] = _local2 & 7; } function mul32(value) { mul64(new com.midasplayer.util.Integer64(value)); } function merge(a) { var _local2 = 0; while (_local2 < 3) { p[_local2] = p[_local2] + (a & 32767); a = a >>> 15; _local2++; } return(a); } function shl() { var _local5 = 0; var _local4 = 0; var _local2 = 0; var _local3 = p.length; while (_local2 < _local3) { _local5 = (p[_local2] & 16384) >> 14; p[_local2] = p[_local2] << 1; p[_local2] = (p[_local2] | _local4) & 32767; _local2++; _local4 = _local5; } } function shr() { var _local4 = 0; var _local3 = 0; var _local2 = p.length - 1; while (_local2 >= 0) { _local4 = (p[_local2] & 1) << 14; p[_local2] = p[_local2] >> 1; p[_local2] = (p[_local2] | _local3) & 32767; _local2--; _local3 = _local4; } } }Symbol 269 MovieClip [__Packages.com.midasplayer.fx.Draw] Frame 0class com.midasplayer.fx.Draw { var clip, colorVal, thicknessVal, alphaVal, __get__color, __get__alpha, __get__thickness; function Draw (mc) { clip = mc; colorVal = 16777215 /* 0xFFFFFF */; thicknessVal = 1.5; alphaVal = 255; } function clone() { var _local2 = new com.midasplayer.fx.Draw(); _local2.clip = clip; _local2.thicknessVal = thicknessVal; _local2.colorVal = colorVal; _local2.alphaVal = alphaVal; return(_local2); } function createClip(parent) { var _local2 = parent.getNextHighestDepth(); clip = parent.createEmptyMovieClip("fx_draw_" + count, _local2); count++; } function set color(v) { colorVal = v; //return(__get__color()); } function set alpha(v) { alphaVal = v; //return(__get__alpha()); } function set thickness(v) { thicknessVal = v; //return(__get__thickness()); } function clear() { clip.clear(); } function fillInverseRect(param) { var _local3 = param[0]; var _local9 = param[1]; var _local6 = _local3 + param[2]; var _local10 = _local9 + param[3]; var _local8 = param[4]; var _local2 = param[5]; var _local7 = _local8 + param[6]; var _local5 = _local2 + param[7]; if (_local2 > _local9) { fillRect(_local3, _local9, _local6, _local2); } if (_local5 < _local10) { fillRect(_local3, _local5, _local6, _local10 - _local5); } if (_local8 > _local3) { fillRect(_local3, _local2, _local8 - _local3, _local5 - _local2); } if (_local7 < _local6) { fillRect(_local7, _local2, _local6 - _local7, _local5 - _local2); } } function fillRect(left, top, width, height) { clip.endFill(); clip.beginFill(colorVal, alphaVal); clip.moveTo(left, top); clip.lineTo(left + width, top); clip.lineTo(left + width, top + height); clip.lineTo(left, top + height); clip.lineTo(left, top); clip.endFill(); } function fillRectangle(r) { fillRect(r.__get__x1(), r.__get__y1(), r.__get__x2() - r.__get__x1(), r.__get__y2() - r.__get__y1()); } function drawBox(left, top, width, height) { drawLine(left, top, left + width, top); drawLine(left, top, left, top + height); drawLine(left + width, top + height, left + width, top); drawLine(left + width, top + height, left, top + height); } function drawLine(x1, y1, x2, y2) { clip.lineStyle(thicknessVal, colorVal, alphaVal); clip.moveTo(x1, y1); clip.lineTo(x2, y2); } function fillPolygon(points) { clip.beginFill(colorVal, alphaVal); clip.moveTo(points[0], points[1]); var _local2 = 1; var _local5 = points.length / 2; while (_local2 < _local5) { var _local3 = _local2 << 1; clip.lineTo(points[_local3], points[_local3 + 1]); _local2++; } clip.lineTo(points[0], points[1]); clip.endFill(); } function get mc() { return(clip); } static var count = 1; }Symbol 270 MovieClip [__Packages.com.midasplayer.geom.Rectangle] Frame 0class com.midasplayer.geom.Rectangle { var px, py, width, height; function Rectangle (x, y, w, h) { px = x; py = y; width = w; height = h; } function get x1() { return(px); } function get y1() { return(py); } function get x2() { return(px + width); } function get y2() { return(py + height); } function get isValid() { return((width > 0) && (height > 0)); } function setPosition(x, y) { px = x; py = y; } function isInside(x, y) { return((((x >= px) && (x < (px + width))) && (y >= py)) && (y < (py + height))); } function isIntersect(other) { var _local4 = px; var _local3 = other.px; var _local8 = px + width; var _local7 = other.px + other.width; var _local6 = py; var _local5 = other.py; var _local10 = py + height; var _local9 = other.py + other.height; return(!((((_local10 < _local5) || (_local6 > _local9)) || (_local8 < _local3)) || (_local4 > _local7))); } function getIntersection(other) { var _local4 = px; var _local3 = other.px; var _local8 = px + width; var _local7 = other.px + other.width; var _local6 = py; var _local5 = other.py; var _local10 = py + height; var _local9 = other.py + other.height; if ((((_local10 < _local5) || (_local6 > _local9)) || (_local8 < _local3)) || (_local4 > _local7)) { return(INVALID); } var _local13 = ((_local10 > _local9) ? (_local9) : (_local10)); var _local12 = ((_local6 < _local5) ? (_local5) : (_local6)); var _local14 = ((_local8 > _local7) ? (_local7) : (_local8)); var _local11 = ((_local4 < _local3) ? (_local3) : (_local4)); var _local16 = _local14 - _local11; var _local15 = _local13 - _local12; return(new com.midasplayer.geom.Rectangle(_local11, _local12, _local16, _local15)); } function toString() { return(((((((("Rectangle[" + x1) + ",") + y1) + " -- ") + x2) + ",") + y2) + "]"); } static var INVALID = new com.midasplayer.geom.Rectangle(0, 0, -1000, -1000); }Symbol 271 MovieClip [__Packages.midasplayer.goldfishbowl.Rod] Frame 0class midasplayer.goldfishbowl.Rod { var r, rs, rc, a, tick, slack, startX, startY, endX, endY, numVert, list, points, pl, tipY, tipX, __get__lineSlack; function Rod (x1, y1, x2, y2, vertices) { r = 0; var _local2 = com.midasplayer.util.SineLookup.__get__instance(); rs = _local2.sin(r); rc = _local2.cos(r); a = 0; tick = 0; slack = 30; startX = x1; startY = y1; endX = x2; endY = y2; numVert = vertices; init(); } function setStartPos(x, y) { startX = x; startY = y; init(); } function setEndPos(x, y) { endX = x; endY = y; init(); } function init() { list = new Array(numVert); points = new Array(numVert); var _local10 = endX - startX; var _local4 = _local10 / numVert; var _local9 = endY - startY; var _local3 = _local9 / numVert; var _local6 = startX; var _local5 = startY; pl = Math.sqrt((_local4 * _local4) + (_local3 * _local3)); var _local2 = 0; while (_local2 < numVert) { list[_local2] = {x:_local6, y:_local5, sx:0, sy:0}; points[_local2] = {x:0, y:0}; _local6 = _local6 + _local4; _local5 = _local5 + _local3; _local2++; } update(true); } function get tip() { return({x:tipX, y:tipY}); } function get numpoints() { return(numVert); } function get state() { return([tipX, tipY, list[0].sx, list[0].sy, tick]); } function applyForce(ra, an) { r = ra; a = an; var _local2 = com.midasplayer.util.SineLookup.__get__instance(); rs = _local2.sin(r); rc = _local2.cos(r); } function update(stiff) { var _local3 = a; var _local5 = Math.pow(6, -2 / numVert); var _local16 = 0; var _local15 = 0; if ((stiff == false) || (stiff == undefined)) { var _local7 = 0.8; var _local6 = 0.55; var _local2 = 0; while (_local2 < numVert) { var _local4 = list[_local2]; _local3 = _local3 * _local5; var _local13 = (-points[_local2].x) + (_local4.x + (rs * _local3)); var _local12 = (-points[_local2].y) + (_local4.y - (rc * _local3)); list[_local2].sx = (list[_local2].sx * _local7) + (_local13 * _local6); list[_local2].sy = (list[_local2].sy * _local7) + (_local12 * _local6); if (Math.abs(list[_local2].sx) < 1E-6) { list[_local2].sx = 0; } if (Math.abs(list[_local2].sy) < 1E-6) { list[_local2].sy = 0; } points[_local2].x = points[_local2].x + list[_local2].sx; points[_local2].y = points[_local2].y + list[_local2].sy; _local2++; } tick++; } else { var _local2 = 0; while (_local2 < numVert) { var _local4 = list[_local2]; _local3 = _local3 * _local5; points[_local2].x = _local4.x + (rs * _local3); points[_local2].y = _local4.y - (rc * _local3); _local2++; } } var _local13 = points[0].x; var _local12 = points[0].y; var _local11 = points[1].x; var _local10 = points[1].y; var _local8 = com.midasplayer.util.XPMath.atan2(_local10 - _local12, _local11 - _local13) + (Math.PI/2); var _local9 = com.midasplayer.util.SineLookup.__get__instance(); tipX = points[0].x + (_local9.cos(_local8) * 5); tipY = points[0].y + (_local9.sin(_local8) * 5); } function getPoint(p) { return(points[p]); } function set lineSlack(slack) { this.slack = slack; //return(__get__lineSlack()); } function paint(contex, roll) { var _local12 = points[0]; contex.__set__thickness(4); contex.__set__color(0); var _local6 = 1; while (_local6 < numVert) { var _local7 = points[_local6]; var _local8 = (numVert - _local6) / numVert; if (_local8 < 0.4) { contex.__set__thickness(7); contex.__set__color(8419129); } else { contex.__set__thickness((1.5 - _local8) * 3); contex.__set__color(0); } contex.drawLine(_local12.x, _local12.y, _local7.x, _local7.y); _local12 = _local7; _local6++; } var _local10 = 4; contex.__set__color(0); contex.__set__thickness(1); var _local9 = null; _local6 = 0; while (_local6 < _local10) { var _local8 = 1.3 - ((_local10 - _local6) / _local10); _local8 = _local8 / 1.5; var _local2 = Math.floor(_local6 * 5); var _local11 = _local2 + 1; var _local19 = points[_local2].x; var _local18 = points[_local2].y; var _local16 = points[_local11].x; var _local15 = points[_local11].y; var _local4 = com.midasplayer.util.XPMath.atan2(_local15 - _local18, _local16 - _local19) + (Math.PI/2); var _local5 = com.midasplayer.util.SineLookup.__get__instance(); _local19 = _local19 + (_local5.cos(_local4) * 5); _local18 = _local18 + (_local5.sin(_local4) * 5); if (_local9 != null) { var _local14 = points[_local2 - 3].x; var _local13 = points[_local2 - 3].y; contex.__get__mc().lineStyle(0.5, 102, 100); contex.__get__mc().moveTo(_local9.x, _local9.y); if (_local6 == (_local10 - 1)) { roll._x = _local19; roll._y = _local18; _local19 = points[_local2].x + (_local5.cos(_local4) * 10); _local18 = points[_local2].y + (_local5.sin(_local4) * 10); } contex.__get__mc().curveTo(_local14 + ((_local5.cos(_local4) * slack) * _local8), _local13 + ((_local5.sin(_local4) * slack) * _local8), _local19, _local18); } contex.__set__thickness(1); contex.drawLine(points[_local2].x, points[_local2].y, _local19, _local18); _local9 = {x:_local19, y:_local18}; _local6++; } } }Symbol 272 MovieClip [__Packages.com.midasplayer.util.XPMath] Frame 0class com.midasplayer.util.XPMath { function XPMath () { } static function atan2(y, x) { var _local3 = Math.PI; var _local4 = 1.5707963267949 /* Math.PI/2 */; if (x == 0) { if (y > 0) { return(_local4); } if (y == 0) { return(0); } return(-_local4); } var _local2; var _local1 = y / x; if (Math.abs(_local1) < 1) { _local2 = _local1 / (1 + ((0.28 * _local1) * _local1)); if (x < 0) { if (y < 0) { return(_local2 - _local3); } return(_local2 + _local3); } } else { _local2 = _local4 - (_local1 / ((_local1 * _local1) + 0.28)); if (y < 0) { return(_local2 - _local3); } } return(_local2); } static function atan(x) { var _local2 = 0; if (x < -2.41421356237309) { var _local3 = 1 / x; _local2 = -1.5707963267949 - (_local3 * (1 - ((_local3 * _local3) * (0.333333333333333 - ((_local3 * _local3) / 5))))); } else if (x < -1) { var _local3 = (1 + (x * 0.414213562373095)) / (0.414213562373095 - x); _local2 = (-1.5707963267949 + (_local3 * (1 - ((_local3 * _local3) * (0.333333333333333 - ((_local3 * _local3) / 5)))))) + 0.392699081698724; } else if (x < -0.414213562373095) { var _local3 = (x + 0.414213562373095) / ((0.414213562373095 * x) - 1); _local2 = (-(_local3 * (1 - ((_local3 * _local3) * (0.333333333333333 - ((_local3 * _local3) / 5)))))) - 0.392699081698724; } else if (x < 0.414213562373095) { _local2 = x * (1 - ((x * x) * (0.333333333333333 - ((x * x) / 5)))); } else if (x < 1) { var _local3 = (x - 0.414213562373095) / (1 + (0.414213562373095 * x)); _local2 = (_local3 * (1 - ((_local3 * _local3) * (0.333333333333333 - ((_local3 * _local3) / 5))))) + 0.392699081698724; } else if (x < 2.41421356237309) { var _local3 = (1 - (x * 0.414213562373095)) / (x + 0.414213562373095); _local2 = (1.5707963267949 /* Math.PI/2 */ - (_local3 * (1 - ((_local3 * _local3) * (0.333333333333333 - ((_local3 * _local3) / 5)))))) - 0.392699081698724; } else { var _local3 = 1 / x; _local2 = 1.5707963267949 /* Math.PI/2 */ - (_local3 * (1 - ((_local3 * _local3) * (0.333333333333333 - ((_local3 * _local3) / 5))))); } return(_local2); } static function cos(f) { var _local2 = 0; var _local1 = ((f > 0) ? (f) : (-f)); if (_local1 >= 14.1371669411541) { _local2 = int(_local1 * 0.636619772367581); if ((_local2 & 1) != 0) { _local2++; } _local1 = _local1 - (_local2 * 1.5707963267949 /* Math.PI/2 */); } else if (_local1 < 1.5707963267949 /* Math.PI/2 */) { } else if (_local1 < 4.71238898038469) { _local1 = _local1 - Math.PI; _local2 = 2; } else if (_local1 < 7.85398163397448) { _local1 = _local1 - (Math.PI*2); } else if (_local1 < 10.9955742875643) { _local1 = _local1 - 9.42477796076938; _local2 = 2; } else { _local1 = _local1 - 12.5663706143592; } var _local3 = _local1 * _local1; var _local4 = 0.999999953027512 + (_local3 * (-0.499999047777921 + (_local3 * (0.041663573160188 + (_local3 * (-0.0013853629536173 + (_local3 * 2.31524166599385E-5))))))); return((((_local2 & 2) != 0) ? (-_local4) : (_local4))); } static function sin(f) { f = f - 1.5707963267949 /* Math.PI/2 */; var _local2 = 0; var _local1 = ((f > 0) ? (f) : (-f)); if (_local1 >= 14.1371669411541) { _local2 = int(_local1 * 0.636619772367581); if ((_local2 & 1) != 0) { _local2++; } _local1 = _local1 - (_local2 * 1.5707963267949 /* Math.PI/2 */); } else if (_local1 < 1.5707963267949 /* Math.PI/2 */) { } else if (_local1 < 4.71238898038469) { _local1 = _local1 - Math.PI; _local2 = 2; } else if (_local1 < 7.85398163397448) { _local1 = _local1 - (Math.PI*2); } else if (_local1 < 10.9955742875643) { _local1 = _local1 - 9.42477796076938; _local2 = 2; } else { _local1 = _local1 - 12.5663706143592; } var _local3 = _local1 * _local1; var _local4 = 0.999999953027512 + (_local3 * (-0.499999047777921 + (_local3 * (0.041663573160188 + (_local3 * (-0.0013853629536173 + (_local3 * 2.31524166599385E-5))))))); return((((_local2 & 2) != 0) ? (-_local4) : (_local4))); } }Symbol 273 MovieClip [__Packages.midasplayer.goldfishbowl.Hook] Frame 0class midasplayer.goldfishbowl.Hook extends MovieClip { var bounds, dropSpeed, hasBigHook, isReleased, hasStrength, pendula, rodx, rody, game, parent, lineLength, initialized, windingDirection, lastAngle, windUpPendula, posx, posy, rot, caught, reelSlowdown, tankRight, tankLeft, tankBottom, _x, _y, _rotation, tankTop, clear, lineStyle, moveTo, lineTo, creator, swapDepths, removeMovieClip, fallingHook, gotoAndStop, sinkUpdateTimer, grabX, grabY; function Hook () { super(); bounds = new midasplayer.goldfishbowl.BoundBox(0, 0, 9, 14, 0); dropSpeed = 10; hasBigHook = false; isReleased = false; hasStrength = false; reset(); } function get updateCount() { return(pendula.__get__tick()); } function setRodTip(x, y) { rodx = x; rody = y; } function init(game, parent, x, y) { this.game = game; this.parent = parent; rodx = x; rody = y; lineLength = MIN_LENGTH; initialized = true; } function pendulaStep(steps) { var _local2 = 0; while (_local2 < steps) { pendula.update(true); _local2++; } } function update(levelInited) { if (!initialized) { return(undefined); } pendula.update(false); if (windingDirection == 0) { lastAngle = pendula.angle; } if ((windUpPendula != undefined) && (windingDirection < 0)) { windUpPendula.update(); lastAngle = windUpPendula.angle; } var _local3 = DEGREE_TO_RADIAN * lastAngle; var _local8 = com.midasplayer.util.SineLookup.__get__instance(); var _local4 = _local8.sin(_local3); var _local5 = _local8.cos(_local3); posx = (_local4 * lineLength) + rodx; posy = (_local5 * lineLength) + rody; rot = -lastAngle; bounds.setPosition(posx + (_local4 * 7), posy + (_local5 * 7), -_local3); var _local2 = -20; if (caught != undefined) { var _local6 = midasplayer.goldfishbowl.TankItem.ITEM[caught.item.getName()]; if (_local6.yoffs != undefined) { _local2 = _local6.yoffs; } caught.item.updateCaught(posx, posy, -lastAngle); posx = caught.item.getPosX() + (_local4 * _local2); posy = caught.item.getPosY() + (_local5 * _local2); } if (levelInited && (windingDirection < 0)) { var _local7 = 1; if (caught != undefined) { _local7 = (100 - caught.item.getWeight()) / 100; } var _local9 = (10 * _local7) - ((reelSlowdown = reelSlowdown / 5)); _local9 = _local9 * (hasStrength ? 2 : 1); lineLength = lineLength - _local9; if (lineLength <= (MIN_LENGTH - _local2)) { lineLength = MIN_LENGTH; windingDirection = 0; onReleaseItem(); } } if (windingDirection > 0) { lineLength = lineLength + dropSpeed; if (((posx > tankRight) || (posx < tankLeft)) || (posy > tankBottom)) { windingDirection = -1; game.onReelIn(); } } _x = posx; _y = posy; _rotation = rot; } function setTankLimits(left, top, right, bottom) { tankLeft = left; tankTop = top; tankRight = right; tankBottom = bottom; } function onEnterFrame() { if (!isReleased) { return(undefined); } clear(); lineStyle(1, 0, 100); moveTo(0, 0); lineTo(0, -lineLength); if (caught) { var _local3 = DEGREE_TO_RADIAN * lastAngle; var _local4 = com.midasplayer.util.SineLookup.__get__instance(); var _local6 = _local4.sin(_local3); var _local7 = _local4.cos(_local3); var _local5 = -20; var _local2 = midasplayer.goldfishbowl.TankItem.ITEM[caught.item.getName()]; if (_local2.yoffs != undefined) { _local5 = _local2.yoffs; } caught.item.updateCaught(posx, posy, -lastAngle); } if ((posy - lineLength) > tankBottom) { if (caught) { caught.item.destroy(); caught.shadow.destroy(); caught = undefined; } clearInterval(creator.sinkUpdateTimer); creator.sinkUpdateTimer = undefined; creator.fallingHook = undefined; swapDepths(1048000); removeMovieClip(); return(undefined); } _x = posx; _y = posy; _rotation = rot; } function getBoundsCenter() { return([bounds.getCenterX(), bounds.getCenterY()]); } function onReleaseItem() { windUpPendula = undefined; var _local2 = caught.item; game.onCaughtItem(_local2); if (caught == undefined) { return(undefined); } _local2.onAcquire(lastAngle); caught = undefined; } function getBoundBox() { return(bounds); } function reset() { fallingHook = undefined; pendula = new midasplayer.goldfishbowl.Pendulum(0.15, 80, MIN_LENGTH); lastAngle = pendula.angle; lineLength = MIN_LENGTH; windingDirection = 0; windUpPendula = undefined; if (caught != undefined) { caught.item.destroy(); caught.shadow.destroy(); caught = undefined; } var _local2 = DEGREE_TO_RADIAN * lastAngle; var _local3 = com.midasplayer.util.SineLookup.__get__instance(); var _local4 = _local3.sin(_local2); var _local5 = _local3.cos(_local2); posx = (_local4 * lineLength) + rodx; posy = (_local5 * lineLength) + rody; rot = -lastAngle; bounds = new midasplayer.goldfishbowl.BoundBox(0, 0, 9, 14, 0); bounds.setPosition(posx + (_local4 * 7), posy + (_local5 * 7), -_local2); gotoAndStop(1); hasBigHook = false; isReleased = false; hasStrength = false; } function hasCatch() { return(caught != undefined); } function getCaughtItem() { return(caught.item); } function getAngle() { return(DEGREE_TO_RADIAN * pendula.__get__angle()); } function getLineLength() { var _local3 = -20; if (caught != undefined) { var _local2 = midasplayer.goldfishbowl.TankItem.ITEM[caught.item.getName()]; if (_local2.yoffs != undefined) { _local3 = _local2.yoffs; } } return(lineLength + _local3); } function getDirection() { return(windingDirection); } function canDropHook() { return(windingDirection == 0); } function getStrength() { return(hasStrength); } function setStrength(enable) { hasStrength = enable; } function setBigHook(enable) { if (enable) { bounds = new midasplayer.goldfishbowl.BoundBox(0, 0, 32, 22, 0); hasBigHook = true; gotoAndStop(2); } else { bounds = new midasplayer.goldfishbowl.BoundBox(0, 0, 9, 14, 0); hasBigHook = false; gotoAndStop(1); } } function updateAsFalling() { posy = posy + 15; } function getFallingHook() { return(fallingHook); } function attachNewFishingline() { var _local3 = false; if (sinkUpdateTimer == undefined) { var _local2 = parent.getNextHighestDepth(); var _local4 = parent.attachMovie("hook2", "oldhook" + _local2, _local2); fallingHook = _local4; fallingHook.gotoAndStop((hasBigHook ? 2 : 1)); fallingHook.posx = posx; fallingHook.posy = posy; fallingHook.rot = rot; fallingHook.lastAngle = lastAngle; fallingHook.lineLength = lineLength; fallingHook.rodx = rodx; fallingHook.rody = rody; fallingHook.isReleased = true; fallingHook.creator = this; fallingHook.tankLeft = tankLeft; fallingHook.tankTop = tankTop; fallingHook.tankRight = tankRight; fallingHook.tankBottom = tankBottom; fallingHook.caught = caught; caught.item.setDepth(parent.getNextHighestDepth()); lineLength = MIN_LENGTH; windingDirection = 0; caught = undefined; windUpPendula = undefined; sinkUpdateTimer = setInterval(mx.utils.Delegate.create(fallingHook, updateAsFalling), 25); _local3 = true; } return(_local3); } function releaseHook() { var _local2; if (canDropHook()) { windingDirection = 1; _local2 = pendula.__get__state().concat([dropSpeed]); reelSlowdown = 50; } return(_local2); } function retractHook(caught) { if (caught != undefined) { caught.item.setDepth(parent.getNextHighestDepth()); grabX = caught.item.getPosX() - posx; grabY = caught.item.getPosY() - posy; this.caught = caught; } windingDirection = -1; windUpPendula = new midasplayer.goldfishbowl.Pendulum(8.5, lastAngle, lineLength); game.onReelIn(caught.item); } static var RADIAN_TO_DEGREE = 57.2957795; static var DEGREE_TO_RADIAN = 0.0174532925; static var MIN_LENGTH = 20; }Symbol 274 MovieClip [__Packages.midasplayer.goldfishbowl.Pendulum] Frame 0class midasplayer.goldfishbowl.Pendulum { var tickCount, ad, ad1, ad2, ad3, ad4, alfa, tf, grlan; function Pendulum (timeFactor, a, b) { if ((STAB == undefined) || (STAB.length == 0)) { STAB = new Array(LUTLEN); var _local2 = 0; while (_local2 < LUTLEN) { STAB[_local2] = -Math.sin(_local2 * CO); _local2++; } } tickCount = 0; ad = [0, 0]; ad1 = [0, 0]; ad2 = [0, 0]; ad3 = [0, 0]; ad4 = [0, 0]; alfa = [0, 0]; tf = timeFactor; alfa[0] = (a * Math.PI) / 180; grlan = (-grav) / b; } function derivs(fad, fad1) { fad1[0] = fad[1]; var _local3 = ((fad[0] * ICO) + LUTLEN2) >> 0; fad1[1] = (grlan * STAB[_local3]) * tf; return(fad1); } function rk4(ad, ad1) { ad4[0] = ad[0] + (d1 * ad1[0]); ad4[1] = ad[1] + (d1 * ad1[1]); ad3[0] = ad4[1]; var _local3 = ((ad4[0] * ICO) + LUTLEN2) >> 0; ad3[1] = (grlan * STAB[_local3]) * tf; ad4[0] = ad[0] + (d1 * ad3[0]); ad4[1] = ad[1] + (d1 * ad3[1]); ad2[0] = ad4[1]; _local3 = ((ad4[0] * ICO) + LUTLEN2) >> 0; ad2[1] = (grlan * STAB[_local3]) * tf; ad4[0] = ad[0] + (dt * ad2[0]); ad2[0] = ad2[0] + ad3[0]; ad4[1] = ad[1] + (dt * ad2[1]); ad2[1] = ad2[1] + ad3[1]; ad3[0] = ad4[1]; _local3 = ((ad4[0] * ICO) + LUTLEN2) >> 0; ad3[1] = (grlan * STAB[_local3]) * tf; ad[0] = ad[0] + (d2 * ((ad1[0] + ad3[0]) + (2 * ad2[0]))); ad[1] = ad[1] + (d2 * ((ad1[1] + ad3[1]) + (2 * ad2[1]))); return(ad); } function update(skipTick) { alfa = rk4(alfa, derivs(alfa, ad)); if (!skipTick) { tickCount++; } } function get state() { return([tickCount, alfa[0]]); } function get tick() { return(tickCount); } function get angle() { return(alfa[0] * 57.2957795); } function get radians() { return(alfa[0]); } static var grav = 9.81; static var bt = 2; static var LUTLEN = 16384; static var LUTLEN2 = LUTLEN / 2; static var CO = (Math.PI*2) / LUTLEN; static var ICO = 1 / CO; static var STAB = undefined; static var dt = 0.2; static var d1 = dt * 0.5; static var d2 = dt / 6; }Symbol 275 MovieClip [__Packages.midasplayer.goldfishbowl.Fisherman] Frame 0class midasplayer.goldfishbowl.Fisherman extends MovieClip { var isShadow, _visible, state, tx, ty, _x, _y, posAnim, shadow, head, getNextHighestDepth, timeOut, headCallback, beginLoad, headLoader, frameOffset, nextVisibleFrame, catchWeight, reelFactor; function Fisherman () { super(); isShadow = false; _visible = false; state = -1; } function setPosition(x, y) { tx = x; ty = y; _x = 750; _y = 50; posAnim = new com.midasplayer.util.EaseInQuadAnimator(this); posAnim.setPosition(x, y); posAnim.setDuration(750); } function setVisible(enable) { _visible = enable; if (shadow != undefined) { shadow._visible = enable; } } function onLoadProgress(tg, loadedBytes, totalBytes) { } function onLoadStart(tg) { } function onLoadInit(tg) { } function onLoadError(tg, msg) { head.removeMovieClip(); for (var _local2 in this) { if (this[_local2]._name == "headContainer") { head = this[_local2].attachMovie("head_toby", "head", getNextHighestDepth()); } } head._x = 3; head._y = -60; head.gotoAndStop(1); clearInterval(timeOut); timeOut = null; headCallback(msg); headCallback = null; } function onLoadComplete(tg) { headCallback(null); headCallback = null; clearInterval(timeOut); timeOut = null; } function checkTimeOut() { if ((headCallback != null) && ((getTimer() - beginLoad) > HEAD_LOAD_TIMEOUT)) { onLoadError(null, "head request timed out"); } } function assignHead(swfUrl, offsetX, offsetY, fnCallback) { var _local4 = this; headCallback = fnCallback; for (var _local2 in this) { if (this[_local2]._name == "headContainer") { head = this[_local2].attachMovie("head_toby", "head", getNextHighestDepth()); } } if (swfUrl != null) { timeOut = setInterval(mx.utils.Delegate.create(this, checkTimeOut), 100); beginLoad = getTimer(); headLoader = new MovieClipLoader(); headLoader.addListener(this); headLoader.loadClip(swfUrl, head.head_image_mc); head._x = offsetX; head._y = offsetY; } else { head._x = 3; head._y = -60; headCallback(null); headCallback = null; } head.gotoAndStop(1); _visible = true; } function sitUp() { setState(0); frameOffset = 0; nextVisibleFrame = 0; } function reelIn(weight) { setState(2); frameOffset = 0; nextVisibleFrame = 30; catchWeight = weight; reelFactor = 1.33 - (catchWeight / 100); } function idle() { setState(1); frameOffset = 0; nextVisibleFrame = 43; } function update() { switch (state) { case 0 : nextVisibleFrame = frameOffset; frameOffset++; if (frameOffset == 30) { idle(); } break; case 1 : nextVisibleFrame = (frameOffset % 19) + 43; frameOffset++; break; case 2 : nextVisibleFrame = (Math.floor(frameOffset) % 13) + 30; frameOffset = frameOffset + reelFactor; } } function setState(n) { if (isShadow) { return(undefined); } state = n; shadow.state = n; } function playIt(k) { for (var _local3 in this) { this[_local3].gotoAndPlay(k); } if (shadow != undefined) { for (var _local3 in shadow) { shadow[_local3].gotoAndPlay(k); } } } function setIt(k) { for (var _local3 in this) { this[_local3].gotoAndStop(k); } if (shadow != undefined) { for (var _local3 in shadow) { shadow[_local3].gotoAndStop(k); } } } function onEnterFrame() { switch (state) { case -1 : setIt(0); posAnim.update(); break; case 0 : case 1 : case 2 : _x = tx; _y = ty; setIt(nextVisibleFrame); } } static var HEAD_LOAD_TIMEOUT = 5000; }Symbol 276 MovieClip [__Packages.midasplayer.goldfishbowl.LevelParser] Frame 0class midasplayer.goldfishbowl.LevelParser { var relaxMode, objMgr, parent, random, levelIds, tankLimits, levels, tickOffsets, treasureItems, displacement, nextTreasureItem; function LevelParser (parent, objMgr, random, tankLimits, levelXml, levelIds, relaxMode) { this.relaxMode = relaxMode; this.objMgr = objMgr; this.parent = parent; this.random = random; this.levelIds = levelIds; this.tankLimits = tankLimits; var _local35 = {}; levels = new com.midasplayer.util.Map(); tickOffsets = new Array(); treasureItems = new Array(); displacement = new com.midasplayer.util.Map(); nextTreasureItem = 0; var _local21 = 0; while (_local21 < 8) { tickOffsets.push(Math.floor(random.nextFloat() * 150)); _local21++; } _local21 = 0; while (_local21 < 20) { var _local34 = Math.floor(random.nextFloat() * 3); treasureItems.push(_local34); _local21++; } var _local6 = 0; while (_local6 < midasplayer.goldfishbowl.TankItem.ITEMLIST.length) { var _local26 = midasplayer.goldfishbowl.TankItem.ITEMLIST[_local6]; var _local8 = midasplayer.goldfishbowl.TankItem.ITEM[_local26]; var _local28 = _local8.dx; var _local27 = _local8.dy; var _local31 = _local8.dx / 2; var _local30 = _local8.dy / 2; var _local10 = new Array(10); _local21 = 0; var _local20 = _local10.length; while (_local21 < _local20) { var _local14 = Math.round(((random.nextFloat() * _local28) - _local31) * 10); var _local13 = Math.round(((random.nextFloat() * _local27) - _local30) * 10); _local10[_local21] = [_local14 / 10, _local13 / 10]; _local21++; } displacement.put(_local26, {ptr:0, values:_local10}); _local6++; } var _local20 = 0; while (_local20 < levelXml.length) { var _local15 = levelXml[_local20].firstChild; var _local11 = parseInt(levelXml[_local20].attributes.id); var _local37 = new Array(); for (_local21 in _local15.childNodes) { var _local4 = _local15.childNodes[_local21]; if (!(_local4.nodeName === "objects")) { } else { var _local7 = 0; for (_local6 in _local4.childNodes) { var _local2 = _local4.childNodes[_local6]; var _local3 = new Object(); for (var _local29 in _local2.attributes) { _local3[_local29] = _local2.attributes[_local29]; } _local37.push({id:nameToId(_local2.nodeName), sval:Math.round((parseFloat(_local3.x) + parseFloat(_local3.y)) * 10000), unique:(_local2.nodeName + "_") + _local7, object:_local3}); _local7++; } } } _local21 = 0; while (_local21 < _local37.length) { _local6 = 0; while (_local6 < _local37.length) { if (_local37[_local21].sval <= _local37[_local6].sval) { var _local8 = _local37[_local6]; _local37[_local6] = _local37[_local21]; _local37[_local21] = _local8; } _local6++; } _local21++; } _local35["@" + _local11] = _local37; _local20++; } _local21 = 0; while (_local21 < levelIds.length) { var _local9 = _local35["@" + levelIds[_local21]]; var _local25 = new com.midasplayer.util.Map(); var _local23 = new com.midasplayer.util.Map(); var _local24 = new com.midasplayer.util.Map(); _local6 = 0; while (_local6 < _local9.length) { var _local5 = _local9[_local6].unique; _local25.put(_local5, _local9[_local6].object); var _local18 = getDisplacementByName(_local5.split("_")[0]); _local23.put(_local5, _local18); var _local22 = TREASURE_ITEM[treasureItems[nextTreasureItem % treasureItems.length]]; nextTreasureItem++; _local24.put(_local5, _local22); _local6++; } levels.put("@" + levelIds[_local21], {objects:_local25, treasure:_local24, displacement:_local23}); _local21++; } } function nameToId(name) { var _local1 = 0; while (_local1 < midasplayer.goldfishbowl.TankItem.ITEMLIST.length) { if (midasplayer.goldfishbowl.TankItem.ITEMLIST[_local1] == name) { return(_local1); } _local1++; } return(-1); } function maxNumLevels() { return((relaxMode ? 2147483647 : (levelIds.length))); } function initLevelByNumber(levelId) { var _local10 = levelId; if (relaxMode) { _local10 = levelId % levelIds.length; } var _local9 = "@" + levelIds[_local10]; var _local3 = levels.get(_local9); var _local4 = _local3.objects.iterator; while (_local4.hasNext()) { var _local2 = _local4.next(); var _local6 = _local3.objects.get(_local2); var _local5 = _local3.displacement.get(_local2); var _local8 = _local3.treasure.get(_local2); var _local7 = attachTankItemEx(_local2, _local6, _local5[0], _local5[1], _local8); _local7.setAlpha(0); } return(_local3.objects.copy()); } function getHookOffsetByLevel(levelId) { return(tickOffsets[levelId % tickOffsets.length]); } function createTankItem(name, x, y, rotation, treasure) { var _local2; switch (name) { case "fish" : case "diamondfish" : _local2 = new midasplayer.goldfishbowl.Fish(objMgr, name, x, y, parent.tank); _local2.setImmedateRendering(false); break; case "fish2" : _local2 = new midasplayer.goldfishbowl.BigFish(objMgr, name, x, y, parent.tank); _local2.setImmedateRendering(false); break; case "sturgeon" : _local2 = new midasplayer.goldfishbowl.Sturgeon(objMgr, x, y, parent.tank, 250); _local2.setImmedateRendering(false); break; case "mine" : _local2 = new midasplayer.goldfishbowl.Mine(objMgr, x, y, parent.tank); break; case "treasure" : _local2 = new midasplayer.goldfishbowl.Treasure(objMgr, x, y, parent.tank, treasure); break; default : _local2 = new midasplayer.goldfishbowl.TankItem(objMgr, name, x, y, parent.tank); } _local2.setTankLimits(0, 0, tankLimits.w, tankLimits.h); return(_local2); } function getDisplacementByName(itemName) { var _local2 = displacement.get(itemName); return(_local2.values[((++_local2.ptr) - 1) % _local2.values.length]); } function attachTankItemEx(key, value, dx, dy, treasure) { var _local7 = key.split("_")[0]; var _local8 = midasplayer.goldfishbowl.TankItem.ITEM[_local7]; if (_local8 == undefined) { _local8 = midasplayer.goldfishbowl.TankItem.ITEM.none; } var _local6 = parseFloat(value.x) + dx; var _local5 = parseFloat(value.y) + dy; var _local4 = parseFloat(value.rotation); var _local3 = createTankItem(_local7, _local6, _local5, _local4, treasure); _local6 = _local3.getPosX(); _local5 = _local3.getPosY(); _local3.uniqeId = key; value.bounds = new midasplayer.goldfishbowl.BoundBox(0, 0, _local3.getWidth(), _local3.getHeight(), 0); value.bounds.setPosition(_local6, _local5, _local4 * DEGREE_TO_RADIAN); _local3.setAttribute("bounds", value.bounds); value.item = _local3; value.item.setRotation(_local4); if (value.flip == "true") { value.item.getMovieClip()._yscale = -100; } return(value.item); } function attachTankItem(key, value, dx, dy) { return(attachTankItemEx(key, value, dx, dy, "")); } static var DEGREE_TO_RADIAN = 0.0174532925; static var TREASURE_ITEM = ["strength_item", "doublehook_item", "fishingline_item"]; }Symbol 277 MovieClip [__Packages.midasplayer.goldfishbowl.Fish] Frame 0class midasplayer.goldfishbowl.Fish extends midasplayer.goldfishbowl.TankItem { var timeCaught, isDead, posY, setItemPosition, posX, setRotation, deadAngle, tickCount, objMgr, r, tankBottom, tankTop, tankLeft, tankRight, flip, flipState, setFrame; function Fish (mgr, fishName, x, y, p) { super(mgr, fishName, x, y, p); timeCaught = 0; isDead = false; } function update() { if (isDead) { if (posY > 20) { setItemPosition(posX, posY - 2); setRotation((deadAngle = deadAngle + 1)); tickCount++; } else { objMgr.removeTankItem(this); } return(undefined); } var _local2 = (r + 90) * midasplayer.goldfishbowl.TankItem.DEGREE_TO_RADIAN; var _local3 = com.midasplayer.util.SineLookup.__get__instance(); var _local5 = _local3.sin(_local2) * 2; var _local4 = (-_local3.cos(_local2)) * 2; setItemPosition(posX + _local5, posY + _local4); var _local6 = (posY > (tankBottom - 80)) || (posY < (tankTop + 20)); var _local7 = (posX < (tankLeft + 20)) || (posX > (tankRight - 20)); if (_local6 || (_local7)) { flip(); } tickCount++; } function onCatch() { if (isDead) { return(false); } if (flipState) { flip(); } return(true); } function onBlast() { setFrame(1); isDead = true; deadAngle = r; return(false); } function updateCaught(hx, hy, ha) { if (isDead) { return(undefined); } var _local2 = com.midasplayer.util.SineLookup.__get__instance(); ha = ha + (_local2.sin(timeCaught) * (_local2.sin(2.5 + (timeCaught / 1.5)) * 35)); hx = hx + ((Math.random() * 4) - 2); hy = hy + ((Math.random() * 4) - 2); timeCaught = timeCaught + 0.76; setItemPosition(hx, hy); setRotation(ha - 90); } }Symbol 278 MovieClip [__Packages.midasplayer.goldfishbowl.BigFish] Frame 0class midasplayer.goldfishbowl.BigFish extends midasplayer.goldfishbowl.Fish { var isDead, setItemPosition, posX, posY, r, tankBottom, tankTop, tankLeft, tankRight, flip, tickCount; function BigFish (mgr, fishName, x, y, p) { super(mgr, fishName, x, y, p); } function update() { if (isDead) { setItemPosition(posX, posY); return(undefined); } var _local2 = (r + 90) * midasplayer.goldfishbowl.TankItem.DEGREE_TO_RADIAN; var _local3 = com.midasplayer.util.SineLookup.__get__instance(); var _local5 = _local3.sin(_local2) * 2; var _local4 = (-_local3.cos(_local2)) * 2; setItemPosition(posX + _local5, posY + _local4); var _local6 = (posY > (tankBottom - 80)) || (posY < (tankTop + 20)); var _local7 = (posX < (tankLeft - 20)) || (posX > (tankRight - 20)); if (_local6 || (_local7)) { flip(); } tickCount++; } }Symbol 279 MovieClip [__Packages.midasplayer.goldfishbowl.Sturgeon] Frame 0class midasplayer.goldfishbowl.Sturgeon extends midasplayer.goldfishbowl.TankItem { var appearTime, timeCaught, isDead, hasAppeared, noFlip, turnCount, distance, tickCount, setItemPosition, posX, posY, distort, px, py, r, tankBottom, tankTop, tankLeft, tankRight, flip, removeAt, objMgr, setFrame, setPosition, setRotation; function Sturgeon (objMgr, x, y, p, appearAfter) { super(objMgr, "sturgeon", ((x > 330) ? 800 : -150), y, p); appearTime = appearAfter; timeCaught = 0; isDead = false; hasAppeared = false; noFlip = false; turnCount = 0; distance = 0; } function update() { tickCount++; if (isDead || (tickCount < appearTime)) { setItemPosition(posX, posY); return(undefined); } if (!hasAppeared) { if (!com.midasplayer.fx.SoundManager.isPlaying("sturgeon_enter")) { com.midasplayer.fx.SoundManager.play("sturgeon_enter", 75); } hasAppeared = true; } if (distort != undefined) { if (distort >= tickCount) { var _local2 = 10 * ((distort - tickCount) / 15); var _local6 = _local2 / 2; setItemPosition(px + ((Math.random() * _local2) - _local6), py + ((Math.random() * _local2) - _local6)); } else { setItemPosition(px, py); distort = undefined; } } else { var _local3 = (r + 90) * midasplayer.goldfishbowl.TankItem.DEGREE_TO_RADIAN; var _local5 = com.midasplayer.util.SineLookup.__get__instance(); var _local4 = _local5.sin(_local3) * 6; var _local7 = (-_local5.cos(_local3)) * 6; distance = distance + Math.abs(_local4); setItemPosition(posX + _local4, posY + _local7); var _local8 = (posY > (tankBottom - 80)) || (posY < (tankTop + 20)); var _local9 = (posX < (tankLeft - 20)) || (posX > (tankRight - 20)); if ((((!noFlip) && (distance > 400)) && (turnCount < 4)) && (_local8 || (_local9))) { turnCount++; flip(); } if (noFlip && (distance > removeAt)) { objMgr.removeTankItem(this); } if ((!noFlip) && (turnCount >= 4)) { noFlip = true; removeAt = distance + 800; } } } function onBlast() { setFrame(1); isDead = true; return(false); } function onCatch() { if (isDead) { return(true); } distort = tickCount + 15; px = posX; py = posY; objMgr.addTankItem("caviar", px, py); return(false); } function updateCaught(hx, hy, ha) { if (isDead) { setPosition(hx, hy); setRotation(ha - 90); return(undefined); } var _local2 = com.midasplayer.util.SineLookup.__get__instance(); ha = ha + (_local2.sin(timeCaught) * (_local2.sin(2.5 + (timeCaught / 1.5)) * 10)); hx = hx + ((Math.random() * 2) - 1); hy = hy + ((Math.random() * 2) - 1); timeCaught = timeCaught + 0.8; setItemPosition(hx, hy); setRotation(ha - 90); } }Symbol 280 MovieClip [__Packages.com.midasplayer.fx.SoundManager] Frame 0class com.midasplayer.fx.SoundManager { static var preloadLastId, progressCallback, preloadList, preloadNum, preloadLast, beginLoadCallback; function SoundManager () { } static function setup(useClip) { m_placeholder = useClip; } static function isSoundEnabled() { return(soundEnabled); } static function enableSounds(enabled) { soundEnabled = enabled; if (!enabled) { muteAll(); } else { restoreMuteAll(); } } static function stopAll() { sounds.foreach(function (name, soundEntry) { soundEntry.sound.stop(); soundEntry.playStatus = false; }); } static function muteAll() { sounds.foreach(function (name, soundEntry) { soundEntry.sound.setVolume(0); soundEntry.isMuted = true; }); } static function restoreMuteAll() { sounds.foreach(function (name, soundEntry) { soundEntry.sound.setVolume(soundEntry.realVol); soundEntry.isMuted = false; }); } static function stop(resource) { var _local1 = sounds.get(resource); if (_local1 != undefined) { _local1.sound.stop(); _local1.playStatus = false; } } static function getCalibratedVolume(flashVolume) { flashVolume = Math.min(100, flashVolume); flashVolume = Math.max(0, flashVolume); return(Math.ceil(Math.pow(flashVolume / 100, 1.46) * 100)); } static function setVolume(resource, percent) { var _local1 = sounds.get(resource); if ((_local1 != undefined) && (_local1.playStatus == true)) { if (!_local1.isMuted) { _local1.sound.setVolume(percent); } _local1.realVol = percent; } } static function getPosition(resource) { var _local1 = sounds.get(resource); if ((_local1 != undefined) && (_local1.playStatus == true)) { return(_local1.sound.position); } return(-1); } static function getLength(resource) { var _local1 = sounds.get(resource); if (_local1 != undefined) { return(_local1.sound.duration); } return(-1); } static function isPlaying(resource) { var _local1 = sounds.get(resource); return((_local1 != undefined) && (_local1.playStatus == true)); } static function initialize(list) { for (var _local8 in list) { var resource = list[_local8]; var _local2 = m_placeholder.getNextHighestDepth(); var _local1 = new Sound(m_placeholder.createEmptyMovieClip("sm_sndhold_" + _local2, _local2)); _local1.attachSound(resource); _local1.onSoundComplete = function () { var _local1 = com.midasplayer.fx.SoundManager.sounds.get(resource); _local1.playStatus = false; }; sounds.put(resource, {realVol:100, sound:_local1, playStatus:false}); } } static function killPreload() { unload(preloadLastId); progressCallback = undefined; preloadLastId = undefined; preloadList = undefined; preloadNum = 0; preloadLast = undefined; } static function preload(urlList, fnProgressCallback, fnBeginLoadCallback) { beginLoadCallback = fnBeginLoadCallback; progressCallback = fnProgressCallback; preloadList = new Array(); for (var _local2 in urlList) { preloadList.push(urlList[_local2]); } preloadLast = ""; preloadNum = urlList.length; loadUrl_(); } static function unload(name) { var _local1 = sounds.get(name); if ((_local1 != undefined) && (_local1.runtime == true)) { var _local2 = m_placeholder[_local1.clipId]; _local2.removeMovieClip(); delete _local1.sound; _local1.sound = undefined; sounds.remove(name); } } static function setPlaceholderParent(p) { m_placeholder = p; } static function play(resource, volume, isLoop, fn) { if (volume == undefined) { volume = 100; } if (isLoop == undefined) { isLoop = false; } volume = getCalibratedVolume(volume); var _local1 = sounds.get(resource); if (_local1 != undefined) { _local1.sound.setVolume((soundEnabled ? (volume) : 0)); _local1.realVol = volume; _local1.isMuted = !soundEnabled; _local1.playStatus = true; _local1.onPlayedFn = fn; _local1.sound.start(0, (isLoop ? 65535 : 1)); } else { var _local5 = m_placeholder.getNextHighestDepth(); var _local3 = new Sound(m_placeholder.createEmptyMovieClip("sm_sndhold_" + _local5, _local5)); _local3.attachSound(resource); _local3.onSoundComplete = function () { var _local1 = com.midasplayer.fx.SoundManager.sounds.get(resource); _local1.playStatus = false; com.midasplayer.fx.SoundManager.onPlayed_(resource); }; _local3.setVolume((soundEnabled ? (volume) : 0)); _local3.start(0, (isLoop ? 65535 : 1)); sounds.put(resource, {isMuted:!soundEnabled, realVol:volume, onPlayedFn:fn, sound:_local3, playStatus:true}); } } static function onPlayed_(name) { var _local1 = sounds.get(name); if ((_local1 != undefined) && (_local1.onPlayedFn != undefined)) { _local1.onPlayedFn(); } } static function loadUrl_(success) { var _local8 = preloadNum - preloadList.length; if (_local8 != 0) { if (success == false) { } progressCallback(_local8, success); } if (preloadList.length == 0) { progressCallback = undefined; preloadList = undefined; preloadNum = 0; preloadLast = undefined; return(undefined); } var _local5 = preloadList.pop(); preloadLast = _local5.url; var nextId = _local5.id; if (!_local5.id) { var _local3 = preloadLast.lastIndexOf("/"); if (_local3 == -1) { _local3 = 0; } else { _local3++; } var _local4 = preloadLast.lastIndexOf("."); if (_local4 == -1) { _local4 = preloadLast.length; } nextId = preloadLast.substring(_local3, _local4); } var _local7 = m_placeholder.getNextHighestDepth(); var _local6 = "dn_sndhold_" + _local7; var _local2 = new Sound(m_placeholder.createEmptyMovieClip(_local6, _local7)); _local2.onLoad = function (a) { var _local2 = com.midasplayer.fx.SoundManager.loadUrl_; com.midasplayer.util.Delay.oneShot(this, _local2, 50, a); }; _local2.onSoundComplete = function () { var _local1 = com.midasplayer.fx.SoundManager.sounds.get(nextId); _local1.playStatus = false; com.midasplayer.fx.SoundManager.onPlayed_(nextId); }; preloadLastId = nextId; _local2.loadSound("" + preloadLast, false); sounds.put(nextId, {realVol:100, clipId:_local6, sound:_local2, playStatus:false, runtime:true}); if (beginLoadCallback) { beginLoadCallback(_local2, preloadLast, nextId, (preloadNum - preloadList.length) - 1); } } static var m_placeholder = _root; static var sounds = new com.midasplayer.util.Map(); static var soundEnabled = true; }Symbol 281 MovieClip [__Packages.com.midasplayer.util.Delay] Frame 0class com.midasplayer.util.Delay { var m_fn, m_param, m_context, m_delay, m_started, m_timerId; function Delay (context, fn, delay) { m_fn = fn; m_param = new Array(); var _local3 = 3; while (_local3 < arguments.length) { m_param.push(arguments[_local3]); _local3++; } m_context = context; m_delay = delay; m_started = getTimer(); m_timerId = setInterval(mx.utils.Delegate.create(this, onEvent), delay); } function onEvent() { if (getTimer() >= (m_delay + m_started)) { clearInterval(m_timerId); m_fn.apply(m_context, m_param); m_fn = undefined; m_param = undefined; } } static function oneShot(context, fn, delay) { var _local3 = new com.midasplayer.util.Delay(context, fn, delay); _local3.m_param = new Array(); var _local2 = 3; while (_local2 < arguments.length) { _local3.m_param.push(arguments[_local2]); _local2++; } } }Symbol 282 MovieClip [__Packages.midasplayer.goldfishbowl.Mine] Frame 0class midasplayer.goldfishbowl.Mine extends midasplayer.goldfishbowl.TankItem { var swelling, objMgr, setScale; function Mine (mgr, x, y, p) { super(mgr, "mine", x, y, p); swelling = (Math.random() * 2) * Math.PI; } function onCatch() { chainReactionBy(this); return(false); } function chainReactionBy(item) { item.exploded = true; var _local5 = objMgr.getItemsByProximity(item, 100); var _local3 = 0; var _local4 = _local5.length; while (_local3 < _local4) { var _local2 = _local5[_local3]; if ((_local2.getName() == "mine") && (!_local2.exploded)) { chainReactionBy(_local2); } else if (_local2.onBlast()) { objMgr.blastTankItem(_local2); } _local3++; } } function update() { setScale((Math.sin(swelling) * 10) + 100); swelling = swelling + 0.0753; } }Symbol 283 MovieClip [__Packages.midasplayer.goldfishbowl.Treasure] Frame 0class midasplayer.goldfishbowl.Treasure extends midasplayer.goldfishbowl.TankItem { var contained, containedSprite, thisParent, mc, objMgr, destroy; function Treasure (mgr, x, y, p, contained) { super(mgr, "treasure", x, y, p); this.contained = contained; } function onRevealAnimatonComplete() { containedSprite.setAlpha(100); containedSprite.setParent(thisParent); containedSprite.setRotation(mc._rotation); containedSprite.setPosition(mc._x, mc._y - MOVE_HEIGHT); objMgr.bonusItemAcquired(contained, containedSprite); destroy(); } function onAcquire(lastAngle) { containedSprite = new com.midasplayer.util.Sprite(contained, 0, 0, 0, mc); containedSprite.setAlpha(0); var _local3 = lastAngle * midasplayer.goldfishbowl.TankItem.DEGREE_TO_RADIAN; var _local2 = new com.midasplayer.util.EaseInQuadAnimator(); _local2.setPosition(Math.sin(_local3) * MOVE_HEIGHT, (-Math.cos(_local3)) * MOVE_HEIGHT); _local2.setDuration(500); containedSprite.applyAnimator(_local2, mx.utils.Delegate.create(this, onRevealAnimatonComplete)); containedSprite.approachAlpha(100, 300); } static var MOVE_HEIGHT = 50; }Symbol 284 MovieClip [__Packages.com.midasplayer.timing.Timer] Frame 0class com.midasplayer.timing.Timer { var timeable; function Timer (timeable, gameTicksPerSecond) { millisPerGameTick = 1000 / gameTicksPerSecond; this.gameTicksPerSecond = gameTicksPerSecond; this.timeable = timeable; maxTickTime = 500; } function getMillisPerTick() { return(millisPerGameTick); } function getTicksPerSecond() { return(gameTicksPerSecond); } function setMaxTickTime(millis) { maxTickTime = millis; } function advanceTime2() { var _local3 = getTimer(); if (startTime < 0) { startTime = _local3; unprocessedTime = millisPerGameTick; } time = _local3 - startTime; var _local5 = time - lastTime; lastTime = time; unprocessedTime = unprocessedTime + _local5; if (unprocessedTime >= millisPerGameTick) { var _local2 = maxTickTime + _local3; do { timeable.tick(tick); tick++; unprocessedTime = unprocessedTime - millisPerGameTick; } while ((unprocessedTime >= millisPerGameTick) && (getTimer() < _local2)); } var _local4 = (unprocessedTime % millisPerGameTick) / millisPerGameTick; com.midasplayer.timing.IFloat.setAlpha(_local4); timeable.render(tick, _local4); } function advanceTime() { time = getTimer(); var _local3 = time - lastTime; lastTime = time; unprocessedTime = unprocessedTime + _local3; var _local2 = 0; while (unprocessedTime > millisPerGameTick) { unprocessedTime = unprocessedTime - millisPerGameTick; timeable.tick(tick); tick++; _local2++; if (_local2 >= 10) { unprocessedTime = 0; } } var _local4 = unprocessedTime / millisPerGameTick; timeable.render(tick, _local4); } var time = 0; var startTime = -1; var lastTime = 0; var unprocessedTime = 0; var gameTicksPerSecond = 0; var tick = 0; var millisPerGameTick = 0; var maxTickTime = -1; }Symbol 285 MovieClip [__Packages.com.midasplayer.fx.TextBox] Frame 0class com.midasplayer.fx.TextBox { var fontResource, align, width, height, chars, staticClips, clips, charOrder, mc, offsetX, offsetY, minWidth, flapping, lastMsg; function TextBox (resourceName, order, ox, oy, w, h, alignment, dest) { fontResource = resourceName; align = alignment.toLowerCase(); width = w; height = h; chars = new Array(); staticClips = new Array(); clips = new Array(); charOrder = order; mc = dest; offsetX = ox; offsetY = oy; minWidth = 10; flapping = false; } function setOldSchoolAirPortFlapping(enable) { flapping = enable; } function addStaticMc(mc) { staticClips.push(mc); } function setText(newMsg, force) { if ((newMsg == lastMsg) && (!force)) { return(undefined); } lastMsg = newMsg; var _local5 = chars; chars = new Array(); var _local17 = newMsg.length; var _local3 = 0; while (_local3 < _local17) { var _local9 = newMsg.charAt(_local3); switch (_local9) { case newline : case " " : chars[_local3] = 0; } var _local6 = charOrder.indexOf(_local9); if (_local6 < 0) { } else { _local6++; chars[_local3] = _local6; } _local3++; } var _local2; var _local4 = 0; var _local15 = 0; var _local14 = 0; var _local11 = function () { if (this._currentframe != this.targetFrame) { var _local2 = this._currentframe; this.nextFrame(); var _local3 = this._currentframe; if ((_local3 == _local2) && (this._currentframe == this._totalframes)) { this.gotoAndStop(1); } } }; if (staticClips.length > 0) { _local3 = 0; while ((_local3 < chars.length) && (_local14 < staticClips.length)) { _local2 = undefined; if (chars[_local3] > 0) { _local2 = staticClips[_local14++]; if (flapping) { var _local10 = _local5[_local3]; if (_local5[_local3] != chars[_local3]) { _local10 = (chars[_local3] + 1) % _local2._totalframes; } _local2.targetFrame = chars[_local3]; _local2.gotoAndStop(_local10); _local2.onEnterFrame = _local11; } else { _local2.gotoAndStop(chars[_local3]); } } _local3++; } return(undefined); } for (_local3 in clips) { clips[_local3].swapDepths(1048000); clips[_local3].removeMovieClip(); } clips = new Array(); if ((align == "center") || (align == "right")) { var _local13 = 0; _local3 = 0; while (_local3 < chars.length) { _local2 = undefined; if (chars[_local3] > 0) { var _local7 = com.midasplayer.util.DepthSequencer.nextValue(); var _local12 = (fontResource + "-") + _local7; _local2 = mc.attachMovie(fontResource, _local12, _local7); _local2._visible = false; _local2._x = offsetX; _local2._y = offsetY; clips.push(_local2); if (flapping) { var _local10 = _local5[_local3]; if (_local5[_local3] != chars[_local3]) { _local10 = (chars[_local3] + 1) % _local2._totalframes; } _local2.targetFrame = chars[_local3]; _local2.gotoAndStop(_local10); _local2.onEnterFrame = _local11; } else { _local2.gotoAndStop(chars[_local3]); } _local13 = _local13 + ((fixedWidth < 0) ? (Math.max(_local2._width, minWidth)) : (fixedWidth)); } else { _local13 = _local13 + space; } _local3++; } _local14 = 0; if (align == "right") { _local4 = width - _local13; } if (align == "center") { _local4 = (width - _local13) / 2; } _local3 = 0; var _local8 = 0; while (_local3 < chars.length) { if (chars[_local3] > 0) { _local2 = clips[_local3 - _local8]; _local2._x = offsetX + _local4; _local2._y = offsetY + _local15; _local2._visible = true; _local4 = _local4 + ((fixedWidth < 0) ? (Math.max(_local2._width, minWidth)) : (fixedWidth)); } else { _local4 = _local4 + space; _local8++; } _local3++; } } else { _local3 = 0; while (_local3 < chars.length) { _local2 = undefined; if (chars[_local3] > 0) { var _local7 = com.midasplayer.util.DepthSequencer.nextValue(); var _local12 = (fontResource + "-") + _local7; _local2 = mc.attachMovie(fontResource, _local12, _local7); _local2._x = offsetX + _local4; _local2._y = offsetY + _local15; clips.push(_local2); if (flapping) { var _local10 = _local5[_local3]; if (_local5[_local3] != chars[_local3]) { _local10 = (chars[_local3] + 1) % _local2._totalframes; } _local2.targetFrame = chars[_local3]; _local2.gotoAndStop(_local10); _local2.onEnterFrame = _local11; } else { _local2.gotoAndStop(chars[_local3]); } _local4 = _local4 + ((fixedWidth < 0) ? (Math.max(_local2._width, minWidth)) : (fixedWidth)); } else { _local4 = _local4 + space; } _local3++; } } } function setFixedWidth(pt) { fixedWidth = pt; } function setSpaceWidth(pt) { space = pt; } function setVisible(visible) { for (var _local2 in clips) { clips[_local2]._visible = visible; } } function getMovieClip() { return(mc); } static var DEFAULT_SPACE_WIDTH = 8; var fixedWidth = -1; var space = DEFAULT_SPACE_WIDTH; }Symbol 286 MovieClip [__Packages.com.midasplayer.util.DepthSequencer] Frame 0class com.midasplayer.util.DepthSequencer { function DepthSequencer () { } static function nextValue() { return(++value); } static var value = 0; }Symbol 287 MovieClip [__Packages.midasplayer.goldfishbowl.GameDataParser] Frame 0class midasplayer.goldfishbowl.GameDataParser { var attrib, trees, error; function GameDataParser (data) { attrib = new com.midasplayer.util.Map(); trees = new com.midasplayer.util.Map(); parse(data); } function getAttributes() { return(attrib); } function getSubTrees(name) { return(trees.get(name)); } function getGameData(name) { return(attrib.get(name)); } function parse(data) { attrib.clear(); var _local8 = new XML(); _local8.ignoreWhite = true; _local8.parseXML(data); var _local4 = _local8.firstChild; if (_local4.nodeName != "gamedata") { error = "Bad XML (expected <gamedata>)"; return(undefined); } for (var _local7 in _local4.attributes) { var _local5; var _local2 = _local4.attributes[_local7]; if ((_local2.indexOf("[") == 0) && ((_local5 = _local2.indexOf("]")) != -1)) { _local2 = _local2.substring(1, _local5).split(","); } attrib.put(_local7, _local2); } for (var _local7 in _local4.childNodes) { var _local3 = _local4.childNodes[_local7]; var _local6; _local6 = trees.get(_local3.nodeName); if (_local6 == undefined) { trees.put(_local3.nodeName, [_local3]); } else { _local6.push(_local3); } } } }Symbol 288 MovieClip [__Packages.com.midasplayer.util.FloatEncoder] Frame 0class com.midasplayer.util.FloatEncoder { function FloatEncoder () { } static function encodeBits(val) { var _local6 = val < 0; if (_local6) { val = -val; } var _local4 = 0; while (val > 1) { val = val / 2; _local4++; } if (_local6) { _local4 = (-_local4) - 1; } var _local5 = _local4 + "."; do { var _local3 = 0; var _local1 = 0; while (_local1 < 6) { if (val >= 1) { val = val - 1; _local3 = _local3 | (1 << _local1); } val = val * 2; _local1++; } _local5 = _local5 + BASE_64_CHARS.charAt(_local3); } while (val > 0); return(_local5); } static function decodeBits(encodedData) { var _local6 = encodedData.split("."); var _local7 = parseInt(_local6[0]); var _local8 = _local7 < 0; var _local5 = _local6[1]; var _local2 = 0; if (_local8) { _local7 = (-_local7) - 1; } var _local4 = 0; while (_local4 < _local5.length) { _local6 = _local5.charAt((_local5.length - _local4) - 1); var _local3 = BASE_64_CHARS.indexOf(_local6); var _local1 = 0; while (_local1 < 6) { _local2 = _local2 / 2; if (((_local3 >> (5 - _local1)) & 1) > 0) { _local2 = _local2 + 1; } _local1++; } _local4++; } _local4 = 0; while (_local4 < _local7) { _local2 = _local2 * 2; _local4++; } if (_local8) { _local2 = -_local2; } return(_local2); } static var BASE_64_CHARS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ()"; }Symbol 289 MovieClip [__Packages.midasplayer.goldfishbowl.Plate] Frame 0class midasplayer.goldfishbowl.Plate extends MovieClip { var _visible, self, exitDelay, exitCallback, stopDisplayTime, swapDepths, removeMovieClip; function Plate () { super(); _visible = false; self = this; exitDelay = -1; } function setExitEvent(fn) { exitCallback = fn; } function remove() { exitDelay = getTimer() + Math.round((Math.random() * 500) + 10); } function onEnterFrame() { var _local5 = getTimer(); var _local3 = stopDisplayTime - _local5; if (_local3 < 0) { _local3 = 0; } _local3 = _local3 / 1000; _local3 = Math.ceil(_local3); var _local6 = this; _local6.next_level_txt.text = com.midasplayer.util.I18n.getString("count_down_text", _local3); if ((exitDelay != -1) && (_local5 > exitDelay)) { if (exitCallback) { exitCallback(this); } for (var _local4 in this) { var _local2 = this[_local4]; if (typeof(this[_local4]) == "movieclip") { _local2.swapDepths(1048000); _local2.removeMovieClip(); } } onEnterFrame = undefined; swapDepths(1048000); removeMovieClip(); } else if (_local5 > stopDisplayTime) { remove(); } } function onPress() { remove(); } }Symbol 290 MovieClip [__Packages.midasplayer.goldfishbowl.IntroPlate] Frame 0class midasplayer.goldfishbowl.IntroPlate extends midasplayer.goldfishbowl.Plate { var self, stopDisplayTime, _visible; function IntroPlate () { super(); } function init() { self.top_txt.text = com.midasplayer.util.I18n.getString("instructions_title"); self.instructions_txt.text = com.midasplayer.util.I18n.getString("instructions_text"); self.title_good_txt.text = com.midasplayer.util.I18n.getString("instructions_title_good"); self.title_bad_txt.text = com.midasplayer.util.I18n.getString("instructions_title_bad"); self.title_special_txt.text = com.midasplayer.util.I18n.getString("instructions_title_special"); self.next_level_txt.text = com.midasplayer.util.I18n.getString("count_down_text", 10); var _local7 = ["crisps", "diamondfish", "beans", "sunlotion", "caviar", "korv", "champagne"]; var _local3 = 0; while (_local3 < _local7.length) { var _local2 = self.attachMovie(_local7[_local3], "gi" + _local3, self.getNextHighestDepth()); _local2._x = 44 + ((_local3 % 3) * 80); _local2._y = 230 + (Math.floor(_local3 / 3) * 64); _local2._yscale = (_local2._xscale = getScale(_local2._width, _local2._height, 40, 40)); var _local4 = self.createEmptyMovieClip("gt" + _local3, self.getNextHighestDepth()); _local4._xscale = 50; _local4._yscale = 50; _local4._x = _local2._x - 8; _local4._y = _local2._y - 4; var _local5 = new com.midasplayer.fx.TextBox("numbas", numberOrder, 0, 50, 18, 30, "center", _local4); _local5.setFixedWidth(16); _local5.setText("" + midasplayer.goldfishbowl.TankItem.ITEM[_local7[_local3]].points); _local3++; } var _local6 = ["fish", "smalltire", "fish2", "tire", "mine"]; _local3 = 0; while (_local3 < _local6.length) { var _local2 = self.attachMovie(_local6[_local3], "bi" + _local3, self.getNextHighestDepth()); _local2._x = 300 + ((_local3 % 2) * 80); _local2._y = 230 + (Math.floor(_local3 / 2) * 64); _local2._yscale = (_local2._xscale = getScale(_local2._width, _local2._height, 40, 40)); var _local4 = self.createEmptyMovieClip("bt" + _local3, self.getNextHighestDepth()); _local4._xscale = 50; _local4._yscale = 50; _local4._x = _local2._x - 8; _local4._y = _local2._y - 4; var _local5 = new com.midasplayer.fx.TextBox("numbas", numberOrder, 0, 50, 18, 30, "center", _local4); _local5.setFixedWidth(16); _local5.setText("" + midasplayer.goldfishbowl.TankItem.ITEM[_local6[_local3]].points); _local3++; } stopDisplayTime = getTimer() + 10000; _visible = true; } function getScale(realWidth, realHeight, maxWidth, maxHeight) { var _local10 = realWidth; var _local9 = realHeight; var _local1 = _local10; var _local2 = _local9; if ((_local1 < maxWidth) && (_local2 < maxWidth)) { _local2 = _local2 * (maxWidth / _local1); _local1 = maxWidth; } if (_local1 > maxWidth) { _local2 = _local2 * (maxWidth / _local1); _local1 = maxWidth; } if (_local2 > maxHeight) { _local1 = _local1 * (maxHeight / _local2); _local2 = maxHeight; } var _local7 = 100 * (1 - ((realWidth - _local1) / realWidth)); var _local4 = 100 * (1 - ((realHeight - _local2) / realHeight)); return(Math.min(_local7, _local4)); } static var numberOrder = "0123456789:x"; }Symbol 291 MovieClip [__Packages.midasplayer.goldfishbowl.GameOverPlate] Frame 0class midasplayer.goldfishbowl.GameOverPlate extends midasplayer.goldfishbowl.Plate { var self, stopDisplayTime, _visible; function GameOverPlate () { super(); } function init(currentLevel, finalScore) { self.score_txt.text = com.midasplayer.util.I18n.getString("current_score"); self.score_number_txt.text = "" + finalScore; self.message_txt.text = com.midasplayer.util.I18n.getString("game_over"); self.next_level_txt.text = com.midasplayer.util.I18n.getString("count_down_text", 10); stopDisplayTime = getTimer() + 10000; _visible = true; } }Symbol 292 MovieClip [__Packages.midasplayer.goldfishbowl.LevelOverPlate] Frame 0class midasplayer.goldfishbowl.LevelOverPlate extends midasplayer.goldfishbowl.Plate { var self, stopDisplayTime, _visible; function LevelOverPlate () { super(); } function init(currentLevel, finalScore, qualifyScore, nextLevelScore) { self.complete_msg_txt.text = ""; self.qualify_txt.text = com.midasplayer.util.I18n.getString("qualify_score"); self.qualify_number_txt.text = "" + qualifyScore; self.score_txt.text = com.midasplayer.util.I18n.getString("current_score"); self.score_number_txt.text = "" + finalScore; var _local2 = 5; if (qualifyScore <= finalScore) { self.complete_msg_txt.text = com.midasplayer.util.I18n.getString("level_complete", currentLevel); self.message_txt.text = com.midasplayer.util.I18n.getString("you_qualified"); if (nextLevelScore != undefined) { self.next_score_txt.text = com.midasplayer.util.I18n.getString("next_level_qualify"); self.next_score_number_txt.text = "" + nextLevelScore; } } else { self.message_txt.text = com.midasplayer.util.I18n.getString("you_didnt_qualify"); self.message2_txt.text = com.midasplayer.util.I18n.getString("game_over"); _local2 = 10; } self.next_level_txt.text = com.midasplayer.util.I18n.getString("count_down_text", _local2); stopDisplayTime = getTimer() + (_local2 * 1000); _visible = true; } }
Library Items
Symbol 1 Sound [sturgeon_enter] | ||
Symbol 2 Sound [splash_down] | ||
Symbol 3 Sound [splash] | ||
Symbol 4 Sound [reel_in_loop] | ||
Symbol 5 Sound [level_start] | ||
Symbol 6 Sound [level_complete] | ||
Symbol 7 Sound [ingame_loop] | ||
Symbol 8 Sound [game_over] | ||
Symbol 9 Sound [fishtheme_loop] | ||
Symbol 10 Sound [caviar_drop] | ||
Symbol 11 Sound [catch_4] | ||
Symbol 12 Sound [catch_3] | ||
Symbol 13 Sound [catch_2] | ||
Symbol 14 Sound [catch_1] | ||
Symbol 15 Sound [blast] | ||
Symbol 16 Bitmap | Used by:17 | |
Symbol 17 Graphic | Uses:16 | Used by:18 |
Symbol 18 MovieClip [tire] | Uses:17 | |
Symbol 19 Bitmap | Used by:20 | |
Symbol 20 Graphic | Uses:19 | Used by:21 |
Symbol 21 MovieClip [sunlotion] | Uses:20 | |
Symbol 22 Bitmap | Used by:23 | |
Symbol 23 Graphic | Uses:22 | Used by:24 |
Symbol 24 MovieClip [smalltire] | Uses:23 | |
Symbol 25 Bitmap | Used by:26 | |
Symbol 26 Graphic | Uses:25 | Used by:27 |
Symbol 27 MovieClip [mine] | Uses:26 | |
Symbol 28 Bitmap | Used by:29 | |
Symbol 29 Graphic | Uses:28 | Used by:30 |
Symbol 30 MovieClip [korv] | Uses:29 | |
Symbol 31 Bitmap | Used by:32 | |
Symbol 32 Graphic | Uses:31 | Used by:34 |
Symbol 33 Graphic | Used by:34 | |
Symbol 34 MovieClip [fish2] | Uses:32 33 | |
Symbol 35 Bitmap | Used by:36 | |
Symbol 36 Graphic | Uses:35 | Used by:38 |
Symbol 37 Graphic | Used by:38 43 | |
Symbol 38 MovieClip [fish] | Uses:36 37 | |
Symbol 39 Bitmap | Used by:40 | |
Symbol 40 Graphic | Uses:39 | Used by:43 |
Symbol 41 Graphic | Used by:42 | |
Symbol 42 MovieClip | Uses:41 | Used by:43 |
Symbol 43 MovieClip [diamondfish] | Uses:40 37 42 | |
Symbol 44 Bitmap | Used by:45 | |
Symbol 45 Graphic | Uses:44 | Used by:46 |
Symbol 46 MovieClip [crisps] | Uses:45 | |
Symbol 47 Bitmap | Used by:48 | |
Symbol 48 Graphic | Uses:47 | Used by:49 |
Symbol 49 MovieClip [cola] | Uses:48 | |
Symbol 50 Bitmap | Used by:51 | |
Symbol 51 Graphic | Uses:50 | Used by:52 |
Symbol 52 MovieClip [champagne] | Uses:51 | |
Symbol 53 Bitmap | Used by:54 | |
Symbol 54 Graphic | Uses:53 | Used by:55 |
Symbol 55 MovieClip [briefs] | Uses:54 | |
Symbol 56 Bitmap | Used by:57 | |
Symbol 57 Graphic | Uses:56 | Used by:58 |
Symbol 58 MovieClip [beans] | Uses:57 | |
Symbol 59 Bitmap | Used by:60 | |
Symbol 60 Graphic | Uses:59 | Used by:61 |
Symbol 61 MovieClip [scoreplate] | Uses:60 | |
Symbol 62 Bitmap | Used by:63 88 | |
Symbol 63 Graphic | Uses:62 | Used by:76 109 |
Symbol 64 Font | Used by:65 92 93 94 95 105 | |
Symbol 65 EditableText | Uses:64 | Used by:76 |
Symbol 66 Font | Used by:67 68 69 70 71 72 73 74 75 91 106 107 108 219 242 243 244 245 | |
Symbol 67 EditableText | Uses:66 | Used by:76 |
Symbol 68 EditableText | Uses:66 | Used by:76 |
Symbol 69 EditableText | Uses:66 | Used by:76 |
Symbol 70 EditableText | Uses:66 | Used by:76 |
Symbol 71 EditableText | Uses:66 | Used by:76 |
Symbol 72 EditableText | Uses:66 | Used by:76 |
Symbol 73 EditableText | Uses:66 | Used by:76 |
Symbol 74 EditableText | Uses:66 | Used by:76 |
Symbol 75 EditableText | Uses:66 | Used by:76 |
Symbol 76 MovieClip [platta_levelover] | Uses:63 65 67 68 69 70 71 72 73 74 75 | |
Symbol 77 Bitmap | Used by:78 | |
Symbol 78 Graphic | Uses:77 | Used by:80 |
Symbol 79 Graphic | Used by:80 | |
Symbol 80 MovieClip [treasure] | Uses:78 79 | Used by:104 |
Symbol 81 Bitmap | Used by:82 | |
Symbol 82 Graphic | Uses:81 | Used by:83 |
Symbol 83 MovieClip [caviar] | Uses:82 | Used by:104 |
Symbol 84 Bitmap | Used by:85 | |
Symbol 85 Graphic | Uses:84 | Used by:87 |
Symbol 86 Graphic | Used by:87 | |
Symbol 87 MovieClip [sturgeon] | Uses:85 86 | Used by:104 |
Symbol 88 Graphic | Uses:62 | Used by:104 |
Symbol 89 Graphic | Used by:90 | |
Symbol 90 MovieClip | Uses:89 | Used by:104 |
Symbol 91 EditableText | Uses:66 | Used by:104 |
Symbol 92 EditableText | Uses:64 | Used by:104 |
Symbol 93 EditableText | Uses:64 | Used by:104 |
Symbol 94 EditableText | Uses:64 | Used by:104 |
Symbol 95 EditableText | Uses:64 | Used by:104 |
Symbol 96 Bitmap | Used by:97 | |
Symbol 97 Graphic | Uses:96 | Used by:98 |
Symbol 98 MovieClip [fishingline_item] | Uses:97 | Used by:104 Timeline |
Symbol 99 Bitmap | Used by:100 | |
Symbol 100 Graphic | Uses:99 | Used by:101 |
Symbol 101 MovieClip [strength_item] | Uses:100 | Used by:104 |
Symbol 102 Graphic | Used by:103 137 224 | |
Symbol 103 MovieClip [doublehook_item] | Uses:102 | Used by:104 |
Symbol 104 MovieClip [platta_intro] | Uses:88 90 91 92 93 94 95 87 83 80 98 101 103 | |
Symbol 105 EditableText | Uses:64 | Used by:109 |
Symbol 106 EditableText | Uses:66 | Used by:109 |
Symbol 107 EditableText | Uses:66 | Used by:109 |
Symbol 108 EditableText | Uses:66 | Used by:109 |
Symbol 109 MovieClip [platta_gameover] | Uses:63 105 106 107 108 | |
Symbol 110 Bitmap | Used by:111 | |
Symbol 111 Graphic | Uses:110 | Used by:134 |
Symbol 112 Bitmap | Used by:113 | |
Symbol 113 Graphic | Uses:112 | Used by:134 |
Symbol 114 Bitmap | Used by:115 | |
Symbol 115 Graphic | Uses:114 | Used by:134 |
Symbol 116 Bitmap | Used by:117 | |
Symbol 117 Graphic | Uses:116 | Used by:134 |
Symbol 118 Bitmap | Used by:119 | |
Symbol 119 Graphic | Uses:118 | Used by:134 |
Symbol 120 Bitmap | Used by:121 | |
Symbol 121 Graphic | Uses:120 | Used by:134 |
Symbol 122 Bitmap | Used by:123 | |
Symbol 123 Graphic | Uses:122 | Used by:134 |
Symbol 124 Bitmap | Used by:125 | |
Symbol 125 Graphic | Uses:124 | Used by:134 |
Symbol 126 Bitmap | Used by:127 | |
Symbol 127 Graphic | Uses:126 | Used by:134 |
Symbol 128 Bitmap | Used by:129 | |
Symbol 129 Graphic | Uses:128 | Used by:134 |
Symbol 130 Bitmap | Used by:131 | |
Symbol 131 Graphic | Uses:130 | Used by:134 |
Symbol 132 Bitmap | Used by:133 | |
Symbol 133 Graphic | Uses:132 | Used by:134 |
Symbol 134 MovieClip [numbas] | Uses:111 113 115 117 119 121 123 125 127 129 131 133 | |
Symbol 135 Graphic | Used by:136 | |
Symbol 136 MovieClip [rodroll] | Uses:135 | |
Symbol 137 MovieClip [doublehook] | Uses:102 | |
Symbol 138 Bitmap | Used by:139 | |
Symbol 139 Graphic | Uses:138 | Used by:166 |
Symbol 140 Graphic | Used by:141 | |
Symbol 141 MovieClip | Uses:140 | Used by:166 |
Symbol 142 Bitmap | Used by:143 159 | |
Symbol 143 Graphic | Uses:142 | Used by:144 |
Symbol 144 MovieClip | Uses:143 | Used by:151 |
Symbol 145 Bitmap | Used by:146 161 170 | |
Symbol 146 Graphic | Uses:145 | Used by:147 169 |
Symbol 147 MovieClip | Uses:146 | Used by:151 |
Symbol 148 Bitmap | Used by:149 163 167 | |
Symbol 149 Graphic | Uses:148 | Used by:150 |
Symbol 150 MovieClip | Uses:149 | Used by:151 |
Symbol 151 MovieClip | Uses:144 147 150 | Used by:166 |
Symbol 152 Bitmap | Used by:153 | |
Symbol 153 Graphic | Uses:152 | Used by:154 |
Symbol 154 MovieClip | Uses:153 | Used by:155 187 |
Symbol 155 MovieClip | Uses:154 | Used by:166 |
Symbol 156 Bitmap | Used by:157 | |
Symbol 157 Graphic | Uses:156 | Used by:158 |
Symbol 158 MovieClip | Uses:157 | Used by:166 |
Symbol 159 Graphic | Uses:142 | Used by:160 |
Symbol 160 MovieClip | Uses:159 | Used by:165 |
Symbol 161 Graphic | Uses:145 | Used by:162 189 |
Symbol 162 MovieClip | Uses:161 | Used by:165 |
Symbol 163 Graphic | Uses:148 | Used by:164 188 |
Symbol 164 MovieClip | Uses:163 | Used by:165 |
Symbol 165 MovieClip | Uses:160 162 164 | Used by:166 |
Symbol 166 MovieClip [tjejen] | Uses:139 141 151 155 158 165 | |
Symbol 167 Graphic | Uses:148 | Used by:168 |
Symbol 168 MovieClip | Uses:167 | Used by:172 |
Symbol 169 MovieClip | Uses:146 | Used by:172 |
Symbol 170 Graphic | Uses:145 | Used by:171 190 |
Symbol 171 MovieClip | Uses:170 | Used by:172 |
Symbol 172 MovieClip | Uses:168 169 171 | Used by:192 |
Symbol 173 Bitmap | Used by:174 | |
Symbol 174 Graphic | Uses:173 | Used by:175 176 181 182 |
Symbol 175 MovieClip | Uses:174 | Used by:180 |
Symbol 176 MovieClip | Uses:174 | Used by:180 |
Symbol 177 Bitmap | Used by:178 | |
Symbol 178 Graphic | Uses:177 | Used by:179 |
Symbol 179 MovieClip | Uses:178 | Used by:180 |
Symbol 180 MovieClip | Uses:175 176 179 | Used by:192 |
Symbol 181 MovieClip | Uses:174 | Used by:186 |
Symbol 182 MovieClip | Uses:174 | Used by:186 |
Symbol 183 Bitmap | Used by:184 | |
Symbol 184 Graphic | Uses:183 | Used by:185 |
Symbol 185 MovieClip | Uses:184 | Used by:186 |
Symbol 186 MovieClip | Uses:181 182 185 | Used by:192 |
Symbol 187 MovieClip | Uses:154 | Used by:192 |
Symbol 188 MovieClip | Uses:163 | Used by:191 |
Symbol 189 MovieClip | Uses:161 | Used by:191 |
Symbol 190 MovieClip | Uses:170 | Used by:191 |
Symbol 191 MovieClip | Uses:188 189 190 | Used by:192 |
Symbol 192 MovieClip [killen] | Uses:172 180 186 187 191 | |
Symbol 193 Bitmap | Used by:194 | |
Symbol 194 Graphic | Uses:193 | Used by:195 |
Symbol 195 MovieClip | Uses:194 | Used by:196 |
Symbol 196 MovieClip [head_toby] | Uses:195 | |
Symbol 197 Bitmap | Used by:198 | |
Symbol 198 Graphic | Uses:197 | Used by:218 |
Symbol 199 Bitmap | Used by:200 | |
Symbol 200 Graphic | Uses:199 | Used by:218 |
Symbol 201 Bitmap | Used by:202 | |
Symbol 202 Graphic | Uses:201 | Used by:218 |
Symbol 203 Bitmap | Used by:204 | |
Symbol 204 Graphic | Uses:203 | Used by:205 |
Symbol 205 MovieClip | Uses:204 | Used by:218 |
Symbol 206 Bitmap | Used by:207 | |
Symbol 207 Graphic | Uses:206 | Used by:208 |
Symbol 208 MovieClip | Uses:207 | Used by:218 |
Symbol 209 Bitmap | Used by:210 | |
Symbol 210 Graphic | Uses:209 | Used by:211 |
Symbol 211 MovieClip | Uses:210 | Used by:218 |
Symbol 212 Bitmap | Used by:213 | |
Symbol 213 Graphic | Uses:212 | Used by:214 |
Symbol 214 MovieClip | Uses:213 | Used by:218 |
Symbol 215 Bitmap | Used by:216 | |
Symbol 216 Graphic | Uses:215 | Used by:217 |
Symbol 217 MovieClip | Uses:216 | Used by:218 |
Symbol 218 MovieClip [expl] | Uses:198 200 202 205 208 211 214 217 | |
Symbol 219 EditableText | Uses:66 | Used by:222 |
Symbol 220 Graphic | Used by:221 | |
Symbol 221 MovieClip | Uses:220 | Used by:222 246 |
Symbol 222 MovieClip [exitbutton] | Uses:219 221 | Used by:Timeline |
Symbol 223 Graphic | Used by:224 | |
Symbol 224 MovieClip [hook2] | Uses:223 102 | Used by:233 |
Symbol 225 Bitmap | Used by:226 | |
Symbol 226 Graphic | Uses:225 | Used by:227 |
Symbol 227 MovieClip [gamelogo_goldfishbowl] | Uses:226 | Used by:Timeline |
Symbol 228 Bitmap | Used by:229 | |
Symbol 229 Graphic | Uses:228 | Used by:230 |
Symbol 230 MovieClip [backdrop] | Uses:229 | Used by:Timeline |
Symbol 231 Bitmap | Used by:232 | |
Symbol 232 Graphic | Uses:231 | Used by:233 |
Symbol 233 MovieClip | Uses:232 224 | Used by:Timeline |
Symbol 234 Font | Used by:235 | |
Symbol 235 EditableText | Uses:234 | Used by:Timeline |
Symbol 236 Bitmap | Used by:237 | |
Symbol 237 Graphic | Uses:236 | Used by:238 |
Symbol 238 MovieClip | Uses:237 | Used by:Timeline |
Symbol 239 Bitmap | Used by:241 | |
Symbol 240 Bitmap | Used by:241 | |
Symbol 241 Graphic | Uses:239 240 | Used by:Timeline |
Symbol 242 EditableText | Uses:66 | Used by:Timeline |
Symbol 243 EditableText | Uses:66 | Used by:Timeline |
Symbol 244 EditableText | Uses:66 | Used by:Timeline |
Symbol 245 EditableText | Uses:66 | Used by:246 |
Symbol 246 MovieClip | Uses:245 221 | Used by:Timeline |
Symbol 247 MovieClip [__Packages.com.midasplayer.util.I18n] | ||
Symbol 248 MovieClip [__Packages.com.midasplayer.util.Map] | ||
Symbol 249 MovieClip [__Packages.com.midasplayer.util.Iterator] | ||
Symbol 250 MovieClip [__Packages.com.midasplayer.util.MapIterator] | ||
Symbol 251 MovieClip [__Packages.com.midasplayer.util.MapValueIterator] | ||
Symbol 252 MovieClip [__Packages.mx.utils.Delegate] | ||
Symbol 253 MovieClip [__Packages.midasplayer.goldfishbowl.IObjectManager] | ||
Symbol 254 MovieClip [__Packages.com.midasplayer.util.Sprite] | ||
Symbol 255 MovieClip [__Packages.com.midasplayer.util.Animator] | ||
Symbol 256 MovieClip [__Packages.com.midasplayer.timing.IFloat] | ||
Symbol 257 MovieClip [__Packages.com.midasplayer.util.Numbers] | ||
Symbol 258 MovieClip [__Packages.midasplayer.goldfishbowl.TankItem] | ||
Symbol 259 MovieClip [__Packages.midasplayer.goldfishbowl.BoundBox] | ||
Symbol 260 MovieClip [__Packages.com.midasplayer.util.SineLookup] | ||
Symbol 261 MovieClip [__Packages.midasplayer.goldfishbowl.Line] | ||
Symbol 262 MovieClip [__Packages.com.midasplayer.util.EaseInQuadAnimator] | ||
Symbol 263 MovieClip [__Packages.com.midasplayer.timing.Timeable] | ||
Symbol 264 MovieClip [__Packages.midasplayer.goldfishbowl.Game] | ||
Symbol 265 MovieClip [__Packages.com.midasplayer.timing.Performance] | ||
Symbol 266 MovieClip [__Packages.com.midasplayer.util.GameDataAcquirer] | ||
Symbol 267 MovieClip [__Packages.com.midasplayer.util.Random] | ||
Symbol 268 MovieClip [__Packages.com.midasplayer.util.Integer64] | ||
Symbol 269 MovieClip [__Packages.com.midasplayer.fx.Draw] | ||
Symbol 270 MovieClip [__Packages.com.midasplayer.geom.Rectangle] | ||
Symbol 271 MovieClip [__Packages.midasplayer.goldfishbowl.Rod] | ||
Symbol 272 MovieClip [__Packages.com.midasplayer.util.XPMath] | ||
Symbol 273 MovieClip [__Packages.midasplayer.goldfishbowl.Hook] | ||
Symbol 274 MovieClip [__Packages.midasplayer.goldfishbowl.Pendulum] | ||
Symbol 275 MovieClip [__Packages.midasplayer.goldfishbowl.Fisherman] | ||
Symbol 276 MovieClip [__Packages.midasplayer.goldfishbowl.LevelParser] | ||
Symbol 277 MovieClip [__Packages.midasplayer.goldfishbowl.Fish] | ||
Symbol 278 MovieClip [__Packages.midasplayer.goldfishbowl.BigFish] | ||
Symbol 279 MovieClip [__Packages.midasplayer.goldfishbowl.Sturgeon] | ||
Symbol 280 MovieClip [__Packages.com.midasplayer.fx.SoundManager] | ||
Symbol 281 MovieClip [__Packages.com.midasplayer.util.Delay] | ||
Symbol 282 MovieClip [__Packages.midasplayer.goldfishbowl.Mine] | ||
Symbol 283 MovieClip [__Packages.midasplayer.goldfishbowl.Treasure] | ||
Symbol 284 MovieClip [__Packages.com.midasplayer.timing.Timer] | ||
Symbol 285 MovieClip [__Packages.com.midasplayer.fx.TextBox] | ||
Symbol 286 MovieClip [__Packages.com.midasplayer.util.DepthSequencer] | ||
Symbol 287 MovieClip [__Packages.midasplayer.goldfishbowl.GameDataParser] | ||
Symbol 288 MovieClip [__Packages.com.midasplayer.util.FloatEncoder] | ||
Symbol 289 MovieClip [__Packages.midasplayer.goldfishbowl.Plate] | ||
Symbol 290 MovieClip [__Packages.midasplayer.goldfishbowl.IntroPlate] | ||
Symbol 291 MovieClip [__Packages.midasplayer.goldfishbowl.GameOverPlate] | ||
Symbol 292 MovieClip [__Packages.midasplayer.goldfishbowl.LevelOverPlate] |
Instance Names
"game_backdrop" | Frame 1 | Symbol 230 MovieClip [backdrop] |
"gamelogo_static" | Frame 1 | Symbol 227 MovieClip [gamelogo_goldfishbowl] |
"tank" | Frame 1 | Symbol 233 MovieClip |
"fps_txt" | Frame 1 | Symbol 235 EditableText |
"bonus_button" | Frame 1 | Symbol 238 MovieClip |
"score_txt" | Frame 1 | Symbol 242 EditableText |
"time_txt" | Frame 1 | Symbol 243 EditableText |
"bonus_txt" | Frame 1 | Symbol 244 EditableText |
"backdrop" | Frame 1 | Symbol 230 MovieClip [backdrop] |
"exitbutton" | Frame 1 | Symbol 222 MovieClip [exitbutton] |
"soundbutton" | Frame 1 | Symbol 246 MovieClip |
"next_level_txt" | Symbol 76 MovieClip [platta_levelover] Frame 1 | Symbol 65 EditableText |
"qualify_txt" | Symbol 76 MovieClip [platta_levelover] Frame 1 | Symbol 67 EditableText |
"qualify_number_txt" | Symbol 76 MovieClip [platta_levelover] Frame 1 | Symbol 68 EditableText |
"score_txt" | Symbol 76 MovieClip [platta_levelover] Frame 1 | Symbol 69 EditableText |
"score_number_txt" | Symbol 76 MovieClip [platta_levelover] Frame 1 | Symbol 70 EditableText |
"next_score_txt" | Symbol 76 MovieClip [platta_levelover] Frame 1 | Symbol 71 EditableText |
"next_score_number_txt" | Symbol 76 MovieClip [platta_levelover] Frame 1 | Symbol 72 EditableText |
"message2_txt" | Symbol 76 MovieClip [platta_levelover] Frame 1 | Symbol 73 EditableText |
"message_txt" | Symbol 76 MovieClip [platta_levelover] Frame 1 | Symbol 74 EditableText |
"complete_msg_txt" | Symbol 76 MovieClip [platta_levelover] Frame 1 | Symbol 75 EditableText |
"instructions_txt" | Symbol 104 MovieClip [platta_intro] Frame 1 | Symbol 91 EditableText |
"title_good_txt" | Symbol 104 MovieClip [platta_intro] Frame 1 | Symbol 92 EditableText |
"title_bad_txt" | Symbol 104 MovieClip [platta_intro] Frame 1 | Symbol 93 EditableText |
"title_special_txt" | Symbol 104 MovieClip [platta_intro] Frame 1 | Symbol 94 EditableText |
"next_level_txt" | Symbol 104 MovieClip [platta_intro] Frame 1 | Symbol 95 EditableText |
"next_level_txt" | Symbol 109 MovieClip [platta_gameover] Frame 1 | Symbol 105 EditableText |
"score_txt" | Symbol 109 MovieClip [platta_gameover] Frame 1 | Symbol 106 EditableText |
"score_number_txt" | Symbol 109 MovieClip [platta_gameover] Frame 1 | Symbol 107 EditableText |
"message_txt" | Symbol 109 MovieClip [platta_gameover] Frame 1 | Symbol 108 EditableText |
"headContainer" | Symbol 166 MovieClip [tjejen] Frame 1 | Symbol 141 MovieClip |
"head_image_mc" | Symbol 196 MovieClip [head_toby] Frame 1 | Symbol 195 MovieClip |
"button_txt" | Symbol 222 MovieClip [exitbutton] Frame 1 | Symbol 219 EditableText |
"exitbutton" | Symbol 222 MovieClip [exitbutton] Frame 1 | Symbol 221 MovieClip |
"hook" | Symbol 233 MovieClip Frame 1 | Symbol 224 MovieClip [hook2] |
"sound_button_txt" | Symbol 246 MovieClip Frame 1 | Symbol 245 EditableText |
"soundbutton" | Symbol 246 MovieClip Frame 1 | Symbol 221 MovieClip |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata present, AS1/AS2. |
SWFMetaData (77) | Timeline Frame 1 | 1284 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmln ..." |
Protect (24) | Timeline Frame 1 | 0 bytes "" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "sturgeon_enter" |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "splash_down" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "splash" |
ExportAssets (56) | Timeline Frame 1 | Symbol 4 as "reel_in_loop" |
ExportAssets (56) | Timeline Frame 1 | Symbol 5 as "level_start" |
ExportAssets (56) | Timeline Frame 1 | Symbol 6 as "level_complete" |
ExportAssets (56) | Timeline Frame 1 | Symbol 7 as "ingame_loop" |
ExportAssets (56) | Timeline Frame 1 | Symbol 8 as "game_over" |
ExportAssets (56) | Timeline Frame 1 | Symbol 9 as "fishtheme_loop" |
ExportAssets (56) | Timeline Frame 1 | Symbol 10 as "caviar_drop" |
ExportAssets (56) | Timeline Frame 1 | Symbol 11 as "catch_4" |
ExportAssets (56) | Timeline Frame 1 | Symbol 12 as "catch_3" |
ExportAssets (56) | Timeline Frame 1 | Symbol 13 as "catch_2" |
ExportAssets (56) | Timeline Frame 1 | Symbol 14 as "catch_1" |
ExportAssets (56) | Timeline Frame 1 | Symbol 15 as "blast" |
ExportAssets (56) | Timeline Frame 1 | Symbol 18 as "tire" |
ExportAssets (56) | Timeline Frame 1 | Symbol 21 as "sunlotion" |
ExportAssets (56) | Timeline Frame 1 | Symbol 24 as "smalltire" |
ExportAssets (56) | Timeline Frame 1 | Symbol 27 as "mine" |
ExportAssets (56) | Timeline Frame 1 | Symbol 30 as "korv" |
ExportAssets (56) | Timeline Frame 1 | Symbol 34 as "fish2" |
ExportAssets (56) | Timeline Frame 1 | Symbol 38 as "fish" |
ExportAssets (56) | Timeline Frame 1 | Symbol 43 as "diamondfish" |
ExportAssets (56) | Timeline Frame 1 | Symbol 46 as "crisps" |
ExportAssets (56) | Timeline Frame 1 | Symbol 49 as "cola" |
ExportAssets (56) | Timeline Frame 1 | Symbol 52 as "champagne" |
ExportAssets (56) | Timeline Frame 1 | Symbol 55 as "briefs" |
ExportAssets (56) | Timeline Frame 1 | Symbol 58 as "beans" |
ExportAssets (56) | Timeline Frame 1 | Symbol 61 as "scoreplate" |
ExportAssets (56) | Timeline Frame 1 | Symbol 76 as "platta_levelover" |
ExportAssets (56) | Timeline Frame 1 | Symbol 80 as "treasure" |
ExportAssets (56) | Timeline Frame 1 | Symbol 83 as "caviar" |
ExportAssets (56) | Timeline Frame 1 | Symbol 87 as "sturgeon" |
ExportAssets (56) | Timeline Frame 1 | Symbol 98 as "fishingline_item" |
ExportAssets (56) | Timeline Frame 1 | Symbol 101 as "strength_item" |
ExportAssets (56) | Timeline Frame 1 | Symbol 103 as "doublehook_item" |
ExportAssets (56) | Timeline Frame 1 | Symbol 104 as "platta_intro" |
ExportAssets (56) | Timeline Frame 1 | Symbol 109 as "platta_gameover" |
ExportAssets (56) | Timeline Frame 1 | Symbol 134 as "numbas" |
ExportAssets (56) | Timeline Frame 1 | Symbol 136 as "rodroll" |
ExportAssets (56) | Timeline Frame 1 | Symbol 137 as "doublehook" |
ExportAssets (56) | Timeline Frame 1 | Symbol 166 as "tjejen" |
ExportAssets (56) | Timeline Frame 1 | Symbol 192 as "killen" |
ExportAssets (56) | Timeline Frame 1 | Symbol 196 as "head_toby" |
ExportAssets (56) | Timeline Frame 1 | Symbol 218 as "expl" |
ExportAssets (56) | Timeline Frame 1 | Symbol 222 as "exitbutton" |
ExportAssets (56) | Timeline Frame 1 | Symbol 224 as "hook2" |
ExportAssets (56) | Timeline Frame 1 | Symbol 227 as "gamelogo_goldfishbowl" |
ExportAssets (56) | Timeline Frame 1 | Symbol 230 as "backdrop" |
ExportAssets (56) | Timeline Frame 1 | Symbol 247 as "__Packages.com.midasplayer.util.I18n" |
ExportAssets (56) | Timeline Frame 1 | Symbol 248 as "__Packages.com.midasplayer.util.Map" |
ExportAssets (56) | Timeline Frame 1 | Symbol 249 as "__Packages.com.midasplayer.util.Iterator" |
ExportAssets (56) | Timeline Frame 1 | Symbol 250 as "__Packages.com.midasplayer.util.MapIterator" |
ExportAssets (56) | Timeline Frame 1 | Symbol 251 as "__Packages.com.midasplayer.util.MapValueIterator" |
ExportAssets (56) | Timeline Frame 1 | Symbol 252 as "__Packages.mx.utils.Delegate" |
ExportAssets (56) | Timeline Frame 1 | Symbol 253 as "__Packages.midasplayer.goldfishbowl.IObjectManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 254 as "__Packages.com.midasplayer.util.Sprite" |
ExportAssets (56) | Timeline Frame 1 | Symbol 255 as "__Packages.com.midasplayer.util.Animator" |
ExportAssets (56) | Timeline Frame 1 | Symbol 256 as "__Packages.com.midasplayer.timing.IFloat" |
ExportAssets (56) | Timeline Frame 1 | Symbol 257 as "__Packages.com.midasplayer.util.Numbers" |
ExportAssets (56) | Timeline Frame 1 | Symbol 258 as "__Packages.midasplayer.goldfishbowl.TankItem" |
ExportAssets (56) | Timeline Frame 1 | Symbol 259 as "__Packages.midasplayer.goldfishbowl.BoundBox" |
ExportAssets (56) | Timeline Frame 1 | Symbol 260 as "__Packages.com.midasplayer.util.SineLookup" |
ExportAssets (56) | Timeline Frame 1 | Symbol 261 as "__Packages.midasplayer.goldfishbowl.Line" |
ExportAssets (56) | Timeline Frame 1 | Symbol 262 as "__Packages.com.midasplayer.util.EaseInQuadAnimator" |
ExportAssets (56) | Timeline Frame 1 | Symbol 263 as "__Packages.com.midasplayer.timing.Timeable" |
ExportAssets (56) | Timeline Frame 1 | Symbol 264 as "__Packages.midasplayer.goldfishbowl.Game" |
ExportAssets (56) | Timeline Frame 1 | Symbol 265 as "__Packages.com.midasplayer.timing.Performance" |
ExportAssets (56) | Timeline Frame 1 | Symbol 266 as "__Packages.com.midasplayer.util.GameDataAcquirer" |
ExportAssets (56) | Timeline Frame 1 | Symbol 267 as "__Packages.com.midasplayer.util.Random" |
ExportAssets (56) | Timeline Frame 1 | Symbol 268 as "__Packages.com.midasplayer.util.Integer64" |
ExportAssets (56) | Timeline Frame 1 | Symbol 269 as "__Packages.com.midasplayer.fx.Draw" |
ExportAssets (56) | Timeline Frame 1 | Symbol 270 as "__Packages.com.midasplayer.geom.Rectangle" |
ExportAssets (56) | Timeline Frame 1 | Symbol 271 as "__Packages.midasplayer.goldfishbowl.Rod" |
ExportAssets (56) | Timeline Frame 1 | Symbol 272 as "__Packages.com.midasplayer.util.XPMath" |
ExportAssets (56) | Timeline Frame 1 | Symbol 273 as "__Packages.midasplayer.goldfishbowl.Hook" |
ExportAssets (56) | Timeline Frame 1 | Symbol 274 as "__Packages.midasplayer.goldfishbowl.Pendulum" |
ExportAssets (56) | Timeline Frame 1 | Symbol 275 as "__Packages.midasplayer.goldfishbowl.Fisherman" |
ExportAssets (56) | Timeline Frame 1 | Symbol 276 as "__Packages.midasplayer.goldfishbowl.LevelParser" |
ExportAssets (56) | Timeline Frame 1 | Symbol 277 as "__Packages.midasplayer.goldfishbowl.Fish" |
ExportAssets (56) | Timeline Frame 1 | Symbol 278 as "__Packages.midasplayer.goldfishbowl.BigFish" |
ExportAssets (56) | Timeline Frame 1 | Symbol 279 as "__Packages.midasplayer.goldfishbowl.Sturgeon" |
ExportAssets (56) | Timeline Frame 1 | Symbol 280 as "__Packages.com.midasplayer.fx.SoundManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 281 as "__Packages.com.midasplayer.util.Delay" |
ExportAssets (56) | Timeline Frame 1 | Symbol 282 as "__Packages.midasplayer.goldfishbowl.Mine" |
ExportAssets (56) | Timeline Frame 1 | Symbol 283 as "__Packages.midasplayer.goldfishbowl.Treasure" |
ExportAssets (56) | Timeline Frame 1 | Symbol 284 as "__Packages.com.midasplayer.timing.Timer" |
ExportAssets (56) | Timeline Frame 1 | Symbol 285 as "__Packages.com.midasplayer.fx.TextBox" |
ExportAssets (56) | Timeline Frame 1 | Symbol 286 as "__Packages.com.midasplayer.util.DepthSequencer" |
ExportAssets (56) | Timeline Frame 1 | Symbol 287 as "__Packages.midasplayer.goldfishbowl.GameDataParser" |
ExportAssets (56) | Timeline Frame 1 | Symbol 288 as "__Packages.com.midasplayer.util.FloatEncoder" |
ExportAssets (56) | Timeline Frame 1 | Symbol 289 as "__Packages.midasplayer.goldfishbowl.Plate" |
ExportAssets (56) | Timeline Frame 1 | Symbol 290 as "__Packages.midasplayer.goldfishbowl.IntroPlate" |
ExportAssets (56) | Timeline Frame 1 | Symbol 291 as "__Packages.midasplayer.goldfishbowl.GameOverPlate" |
ExportAssets (56) | Timeline Frame 1 | Symbol 292 as "__Packages.midasplayer.goldfishbowl.LevelOverPlate" |
|