Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
MochiAd.showPreloaderAd({id:"3c59e1cdd8243e33", res:"400x400"});
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop ("loading");
}
Frame 5
_root._quality = "MEDIUM";
Symbol 2 MovieClip Frame 1
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
Symbol 5 MovieClip Frame 1
onEnterFrame = function () {
var _local4 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
var _local5 = int((_local4 / _local3) * 100);
num_txt.text = _local5 + "%";
if (_local4 == _local3) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 8 MovieClip Frame 1
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
_root.stop();
Symbol 8 MovieClip Frame 39
stop();
Symbol 220 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 221 MovieClip [__Packages.obj] Frame 0
class obj
{
var vCurr, vSpeed, sName, mParent, nSpeed, nRot, mClip;
function obj (x, y, _sn, _mp) {
vCurr = new Vector(x, y);
vSpeed = new Vector();
sName = _sn;
mParent = _mp;
nSpeed = 0;
nRot = 0;
}
function move() {
vCurr.plus(vSpeed);
moveClip();
}
function remove(_a) {
for (var _local3 in _a) {
if (_a[_local3] == this) {
removeMovieClip(mClip);
_a.splice(Number(_local3), 1);
}
}
}
function moveClip() {
mClip._x = vCurr.x;
mClip._y = vCurr.y;
}
}
Symbol 222 MovieClip [__Packages.Vector] Frame 0
class Vector
{
var x, y;
function Vector (px, py) {
x = ((px != undefined) ? (px) : 0);
y = ((py != undefined) ? (py) : 0);
}
function polar(r, l) {
x = l * Math.cos(r);
y = l * Math.sin(r);
return(this);
}
function setTo(px, py) {
x = px;
y = py;
}
function copy(v) {
x = v.x;
y = v.y;
}
function dot(v) {
return((x * v.x) + (y * v.y));
}
function cross(v) {
return((x * v.y) - (y * v.x));
}
function plus(v) {
x = x + v.x;
y = y + v.y;
return(this);
}
function plusNew(v) {
return(new Vector(x + v.x, y + v.y));
}
function minus(v) {
x = x - v.x;
y = y - v.y;
return(this);
}
function minusNew(v) {
return(new Vector(x - v.x, y - v.y));
}
function mult(s) {
x = x * s;
y = y * s;
return(this);
}
function multNew(s) {
return(new Vector(x * s, y * s));
}
function distance(v) {
var _local3 = x - v.x;
var _local2 = y - v.y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function magnitude() {
return(Math.sqrt((x * x) + (y * y)));
}
function normalize(n) {
n = ((n == undefined) ? 1 : (n));
var _local3 = Math.sqrt((x * x) + (y * y));
x = x * ((x != 0) ? (n / _local3) : 0);
y = y * ((y != 0) ? (n / _local3) : 0);
return(this);
}
function vertical(n) {
if (n > 0) {
var _local2 = new Vector(-y, x);
} else {
var _local2 = new Vector(y, -x);
}
return(_local2.normalize(Math.abs(n)));
}
function unzero() {
if ((x != 0) && (y != 0)) {
return(true);
}
return(false);
}
function project(b) {
var _local5 = dot(b);
var _local4 = (b.x * b.x) + (b.y * b.y);
var _local3 = new Vector(0, 0);
_local3.x = (_local5 / _local4) * b.x;
_local3.y = (_local5 / _local4) * b.y;
return(_local3);
}
function toString(b) {
var _local2 = ((("(x=" + x) + ",y=") + y) + ")";
b && (trace(_local2));
return(_local2);
}
}
Symbol 223 MovieClip [__Packages.SFM] Frame 0
class SFM
{
function SFM () {
}
static function rdm_2(a, b) {
return((Math.random() * (b - a)) + a);
}
static function rdm_0(a, l) {
return(Math.round((a - (Math.random() * l)) + (l / 2)));
}
static function rdm_a(a1, a2, A) {
var _local3 = 0;
var _local5 = Math.random();
var _local4 = 0;
var _local2 = A.concat();
for (var _local6 in _local2) {
var _local1 = 0;
while (_local1 < Number(_local6)) {
_local2[_local6] = _local2[_local6] + _local2[_local1];
_local1++;
}
(_local3 < _local2[_local6]) && (_local3 = _local2[_local6]);
_local2[_local6] = _local2[_local6] / _local3;
if (_local5 >= _local2[_local6]) {
_local4 = Number(_local6) + 1;
break;
}
}
return((_local4 * (a2 - a1)) / (_local2.length - 1));
}
static function distance(x0, y0, xt, yt) {
return(Math.sqrt(Math.pow(xt - x0, 2) + Math.pow(yt - y0, 2)));
}
static function side_min(x0, y0, xt, yt) {
return(Math.min(Math.abs(xt - x0), Math.abs(yt - y0)));
}
static function side_max(x0, y0, xt, yt) {
return(Math.max(Math.abs(xt - x0), Math.abs(yt - y0)));
}
static function Rfloor(r) {
if (r >= Math.PI) {
r = r - (Math.PI*2);
}
if (r <= -3.14159265358979) {
r = r + (Math.PI*2);
}
return(r);
}
static function Rfloor_n(r) {
if (r >= 180) {
r = r - 360;
}
if (r <= -180) {
r = r + 360;
}
return(r);
}
static function s_b_in(n, s, b) {
if ((s < n) && (n < b)) {
return(0);
}
if (n <= s) {
return(-1);
}
return(1);
}
static function s_b_out(n, s, b) {
if ((n < s) || (b < n)) {
return(true);
}
return(false);
}
static function vpNum(n, t) {
if (n == 0) {
return(0);
}
if (n > 0) {
return(((t != undefined) ? (t) : 1));
}
return(((t != undefined) ? (-t) : -1));
}
static function coordinateConvert(mc1, mc2, x, y) {
var _local1 = new Object({x:((x != undefined) ? (x) : 0), y:((y != undefined) ? (y) : 0)});
mc1.localToGlobal(_local1);
mc2.globalToLocal(_local1);
return(_local1);
}
static function formatTime(n) {
var _local3;
var _local4;
var _local2;
if (n < 60) {
_local3 = 0;
_local4 = _local3;
_local2 = n;
} else if (n < 3600) {
_local3 = 0;
_local4 = Math.floor(n / 60);
_local2 = n % 60;
} else {
_local3 = Math.floor(n / 3600);
_local4 = Math.floor(n / 60) % 60;
_local2 = n % 60;
}
var _local7 = ((_local3 < 10) ? ("0" + _local3) : (_local3));
var _local6 = ((_local4 < 10) ? ("0" + _local4) : (_local4));
var _local5 = ((_local2 < 10) ? ("0" + _local2) : (_local2));
return((((_local7 + ":") + _local6) + ":") + _local5);
}
static function format_n(n, l) {
var _local1;
var _local3;
if (l != 0) {
if (l > 0) {
}
}
return(_local1);
}
static function parabolaRot(x0, y0, xt, yt, nV, nG) {
var _local5 = xt - x0;
var _local7 = yt - y0;
var _local2 = ((nG * _local5) * _local5) / ((2 * nV) * nV);
var _local1 = _local5;
var _local6 = _local2 - _local7;
var _local4 = (_local1 * _local1) - ((4 * _local2) * _local6);
if (_local4 < 0) {
trace("\u56E0\u4E3A\u76EE\u6807\u592A\u9AD8\u6216\u592A\u8FDC\u65E0\u6CD5\u6253\u5230");
return(undefined);
}
var _local3 = new Object();
if (_local5 > 0) {
_local3.x1 = Math.atan(((-_local1) - Math.sqrt(_local4)) / (2 * _local2));
_local3.x2 = Math.atan(((-_local1) + Math.sqrt(_local4)) / (2 * _local2));
} else {
_local3.x1 = Math.atan(((-_local1) - Math.sqrt(_local4)) / (2 * _local2)) - Math.PI;
_local3.x2 = Math.atan(((-_local1) + Math.sqrt(_local4)) / (2 * _local2)) - Math.PI;
}
return(_local3);
}
static var R_PI = 57.2957795130823;
}
Symbol 224 MovieClip [__Packages.fish] Frame 0
class fish extends obj
{
var nFrame, mClip, mParent, sName, nW, nSpeed, nRot, nRange_score, bDodge, vSpeed, target, nDistance, vCurr, remove;
function fish (x, y, _sn, _mp, _f) {
super(x, y, _sn, _mp);
nFrame = _f;
mClip = mParent.addClip(sName, _mp.ground_4);
mClip.gotoAndStop(Math.round(SFM.rdm_2(1, 6)));
if (sName == "fish") {
mClip._xscale = SFM.rdm_2(60, 100);
mClip._yscale = mClip._xscale;
mClip.mHit._rotation = -mClip._rotation;
}
if (mParent.SDM) {
mClip.filters = [new flash.filters.DropShadowFilter(40, 45, 0, 1, 8, 8, 0.5, 1, false, false, false)];
}
mClip.cacheAsBitmap = true;
nW = mClip._width;
nSpeed = SFM.rdm_2(2, 5) + (mParent.nDif / 3);
if (Math.random() > 0.7) {
nRot = Math.atan2((mParent.nH_max / 2) - y, (mParent.nW_max / 2) - x) + SFM.rdm_2(-0.7, 0.7);
} else {
if (x < 0) {
nRot = 0;
} else if (x > mParent.nW_max) {
nRot = -3.14159265358979;
}
if (y < 0) {
nRot = (Math.PI/2);
} else if (y > mParent.nH_max) {
nRot = -1.5707963267949;
}
}
nRange_score = 75;
bDodge = false;
vSpeed.polar(nRot, nSpeed);
target = mParent.obj1[0];
}
function moveClip() {
super.moveClip();
mClip._rotation = nRot * SFM.R_PI;
eat();
}
function eat() {
nDistance = vCurr.distance(target.vCurr);
if (mParent.nGamestate == 1) {
if (target.nMode != 4) {
if (mClip.mHit.hitTest(target.mClip.mHit_2)) {
target.nMode = 4;
target.atk = this;
mParent.sndEat_2.start();
} else if (nDistance < nRange_score) {
bDodge = true;
var _local3 = nRange_score - nDistance;
(_local3 > nScore) && ((nScore = Math.round(_local3)));
(nScore > 36) && ((nScore = 36));
} else if (bDodge) {
mParent.seescore();
var _local2 = mParent.addClip("word", mParent);
_local2._x = target.vCurr.x;
_local2._y = target.vCurr.y;
_local2.st = aWord[Math.floor(nScore / 6)];
mParent.nGood = mParent.nGood + nScore;
bDodge = false;
}
} else if (sName == "fish") {
vSpeed.polar(nRot, nSpeed++);
}
}
runOut(mParent.obj2);
}
function runOut(_a) {
if (vSpeed.x > 0) {
if (vCurr.x > (mParent.nH_max + nW)) {
remove(_a);
return(true);
}
} else if (vSpeed.x < 0) {
if (vCurr.x < (-nW)) {
remove(_a);
return(true);
}
}
if (vSpeed.y > 0) {
if (vCurr.y > (mParent.nW_max + nW)) {
remove(_a);
return(true);
}
} else if (vSpeed.y < 0) {
if (vCurr.y < (-nW)) {
remove(_a);
return(true);
}
}
return(false);
}
var nScore = 0;
static var aWord = new Array("Too close !", "Get me outta here !", "o oh !", "Helppppp !", "Eeeek !", "Ouch that was close !", "Bonus !");
}
Symbol 225 MovieClip [__Packages.turtle] Frame 0
class turtle extends obj
{
var mClip, mParent, sName, nW, nMode, _xmouse, _ymouse, nTime3, nSpeed, oPoint, nRot, vCurr, vSpeed, atk;
function turtle (x, y, _sn, _mp) {
super(x, y, _sn, _mp);
mClip = mParent.addClip(sName, _mp.ground_5);
if (mParent.SDM) {
mClip.filters = [new flash.filters.DropShadowFilter(40, 45, 0, 1, 8, 8, 0.5, 1, false, false, false)];
}
nW = mClip._width;
nMode = 0;
_xmouse = mParent._xmouse;
_ymouse = mParent._ymouse;
nTime3 = 0;
nSpeed = 13;
var _local3 = new Object();
_local3.par = this;
_local3.onMouseMove = function () {
this.par.mouse();
};
Mouse.addListener(_local3);
}
function mouse() {
_xmouse = mParent._xmouse;
_ymouse = mParent._ymouse;
}
function moveClip() {
super.moveClip();
oPoint = SFM.coordinateConvert(mClip, mParent, 25, 0);
mClip._rotation = nRot * SFM.R_PI;
mClip.mHit_2._rotation = -mClip._rotation;
if (nMode == 3) {
nTime3++;
if (nTime3 > 10) {
nMode = 0;
nTime3 = 0;
}
} else if (nMode < 3) {
var _local5 = _xmouse - vCurr.x;
var _local4 = _ymouse - vCurr.y;
nRot = Math.atan2(_local4, _local5);
vCurr.x = vCurr.x + (_local5 * 0.2);
vCurr.y = vCurr.y + (_local4 * 0.2);
if (mParent.nGamestate == 1) {
if (mParent.ground_4.hitTest(oPoint.x, oPoint.y, true)) {
nMode = 3;
vSpeed.polar(nRot + Math.PI, 4);
}
for (var _local3 in mParent.obj3) {
if (mParent.obj3[_local3].nMode != 3) {
if (mClip.mHit.hitTest(mParent.obj3[_local3].mClip)) {
mParent.obj3[_local3].nMode = 3;
mParent.obj3[_local3].atk = this;
mParent.sndEat_1.start();
}
}
}
}
} else {
vSpeed.setTo(0, 0);
var _local5 = atk.vCurr.x - vCurr.x;
var _local4 = atk.vCurr.y - vCurr.y;
if (mClip._xscale > 5) {
vCurr.x = vCurr.x + (_local5 * 0.8);
vCurr.y = vCurr.y + (_local4 * 0.8);
mClip._xscale = mClip._xscale - 10;
mClip._yscale = mClip._xscale;
} else {
mParent.nGamestate = 2;
}
}
}
}
Symbol 226 MovieClip [__Packages.fish_1] Frame 0
class fish_1 extends fish
{
var mClip, nSpeed, nW, nRot, mParent, vSpeed, nRange_sight, vCurr, eat, target, nDistance;
function fish_1 (x, y, _sn, _mp, _f) {
super(x, y, _sn, _mp, _f);
mClip.gotoAndStop(1);
var _local3 = Math.random();
if (_local3 <= 0.4) {
mClip.nFrame = 1;
} else if (_local3 <= 0.7) {
mClip.nFrame = 2;
} else if (_local3 <= 0.9) {
mClip.nFrame = 3;
} else {
mClip.nFrame = 4;
}
mClip.owner = this;
nSpeed = 6;
nW = 150;
nRot = Math.atan2((mParent.nH_max / 2) - y, (mParent.nW_max / 2) - x) + SFM.rdm_2(-0.7, 0.7);
vSpeed.polar(nRot, nSpeed);
nRange_sight = 100;
}
function moveClip() {
mClip._x = vCurr.x;
mClip._y = vCurr.y;
eat();
if ((target.nMode != 4) && (mParent.nGamestate == 1)) {
var _local4 = target.vCurr.x - vCurr.x;
var _local3 = target.vCurr.y - vCurr.y;
if (nDistance < nRange_sight) {
var _local2 = Math.atan2(_local3, _local4) - nRot;
while (Math.abs(_local2) > Math.PI) {
if (_local2 >= Math.PI) {
_local2 = _local2 - (Math.PI*2);
} else if (_local2 <= -3.14159265358979) {
_local2 = _local2 + (Math.PI*2);
}
}
nRot = nRot + (_local2 * 0.2);
vSpeed.polar(nRot, nSpeed);
mClip.cacheAsBitmap = false;
}
}
}
}
Symbol 227 MovieClip [__Packages.smallfish] Frame 0
class smallfish extends fish
{
var vCurr, vSpeed, sName, mParent, nFrame, nMode, mClip, nW, nSpeed, nRot, runOut, atk, remove;
function smallfish (x, y, _sn, _mp, _f) {
super();
vCurr = new Vector(x, y);
vSpeed = new Vector();
sName = _sn;
mParent = _mp;
nFrame = _f;
nMode = 0;
mClip = mParent.addClip(sName, _mp.ground_5);
if (mParent.SDM) {
mClip.filters = [new flash.filters.DropShadowFilter(40, 45, 0, 1, 8, 8, 0.5, 1, false, false, false)];
}
mClip.cacheAsBitmap = true;
nW = mClip._width;
nSpeed = SFM.rdm_2(2, 5) + (mParent.nDif / 3);
nRot = Math.atan2((mParent.nH_max / 2) - y, (mParent.nW_max / 2) - x) + SFM.rdm_2(-0.7, 0.7);
vSpeed.polar(nRot, nSpeed);
}
function moveClip() {
mClip._x = vCurr.x;
mClip._y = vCurr.y;
if (nMode == 0) {
mClip._rotation = nRot * SFM.R_PI;
if (runOut(mParent.obj3)) {
mParent.nLoss++;
}
} else {
vSpeed.setTo(0, 0);
var _local3 = atk.vCurr.x - vCurr.x;
var _local2 = atk.vCurr.y - vCurr.y;
if (mClip._xscale > 5) {
vCurr.x = vCurr.x + (_local3 * 0.2);
vCurr.y = vCurr.y + (_local2 * 0.2);
mClip._xscale = mClip._xscale - 10;
mClip._yscale = mClip._xscale;
} else {
mParent.nKill++;
mParent.seescore();
remove(mParent.obj3);
}
}
}
}
Symbol 41 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
_root.stop();
Symbol 41 MovieClip Frame 146
_root.nextFrame();
Symbol 47 MovieClip Frame 1
function frame() {
var _local1;
if (bIn && (bFlagDown)) {
_local1 = "Down";
bFlagOn = !bFlagOn;
} else if (bIn || (bFlagDown)) {
_local1 = "Over";
tPop.text = sPop;
} else {
_local1 = "Up";
tPop.text = "";
}
gotoAndStop(_local1);
mAni.gotoAndStop(_local1);
mSwitch.gotoAndStop(bFlagOn.toString());
tLabel.autoSize = autoSize;
tPop.autoSize = autoSize;
tPop._y = y_tPop;
if (bAni) {
mAni._width = tLabel._width;
mAni._height = tLabel._height;
}
if (!bAniVisible) {
mAni._visible = false;
}
if (autoSize == "right") {
tLabel._x = -Math.floor(tLabel._width);
mAni._x = -Math.floor(mAni._width);
tPop._x = x_tPop - Math.floor(tPop._width);
} else if (autoSize == "center") {
tLabel._x = -Math.floor(tLabel._width / 2);
mAni._x = -Math.floor(mAni._width / 2);
tPop._x = x_tPop - Math.floor(tPop._width / 2);
} else {
tLabel._x = 0;
mAni._x = 0;
tPop._x = x_tPop;
}
}
var sLabel;
var sPop;
var autoSize;
var bAni;
var bAniVisible;
var x_tPop;
var y_tPop;
var bFlagOn;
var sSwitch;
var mSwitch = attachMovie(sSwitch, sSwitch, 10);
var onpress;
var onrelease;
var onhold;
var bIn = false;
var bFlagDown = false;
frame();
onRollOver = function () {
bIn = true;
frame();
};
onDragOut = (onRollOut = function () {
bIn = false;
frame();
});
onPress = function () {
bFlagDown = true;
frame();
onEnterFrame = function () {
onhold();
};
onpress();
};
onReleaseOutside = (onRelease = function () {
bFlagDown = false;
frame();
delete onEnterFrame;
onrelease();
});
hitArea = tLabel;
Symbol 47 MovieClip Frame 7
_level0.game.mGame.sndBt.start();
Instance of Symbol 47 MovieClip in Symbol 48 MovieClip [Q] Frame 1
//component parameters
onClipEvent (construct) {
sLabel = "Best";
autoSize = "left";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (press) {
_parent._parent.tQ.tLabel.text = (_parent._parent.tQ.sLabel = "Best");
_root._quality = "BEST";
_parent._parent.mGame.nGamestate = 1;
_parent.removeMovieClip();
}
Instance of Symbol 47 MovieClip in Symbol 48 MovieClip [Q] Frame 1
//component parameters
onClipEvent (construct) {
sLabel = "High";
autoSize = "left";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (press) {
_parent._parent.tQ.tLabel.text = (_parent._parent.tQ.sLabel = "High");
_root._quality = "HIGH";
_parent._parent.mGame.nGamestate = 1;
_parent.removeMovieClip();
}
Instance of Symbol 47 MovieClip in Symbol 48 MovieClip [Q] Frame 1
//component parameters
onClipEvent (construct) {
sLabel = "Medium";
autoSize = "left";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (press) {
_parent._parent.tQ.tLabel.text = (_parent._parent.tQ.sLabel = "Med");
_root._quality = "MEDIUM";
_parent._parent.mGame.nGamestate = 1;
_parent.removeMovieClip();
}
Instance of Symbol 47 MovieClip in Symbol 48 MovieClip [Q] Frame 1
//component parameters
onClipEvent (construct) {
sLabel = "Low";
autoSize = "left";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (press) {
_parent._parent.tQ.tLabel.text = (_parent._parent.tQ.sLabel = "Low");
_root._quality = "LOW";
_parent._parent.mGame.nGamestate = 1;
_parent.removeMovieClip();
}
Instance of Symbol 47 MovieClip in Symbol 49 MovieClip [MM] Frame 1
//component parameters
onClipEvent (construct) {
sLabel = "Yes";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (press) {
_parent._parent.mGame.nGamestate = 0;
_parent._parent.mGame.gotoAndStop(1);
_parent._parent.gotoAndStop("Menu");
_parent.removeMovieClip();
}
Instance of Symbol 47 MovieClip in Symbol 49 MovieClip [MM] Frame 1
//component parameters
onClipEvent (construct) {
sLabel = "No";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (press) {
_parent._parent.mGame.nGamestate = 1;
_parent.removeMovieClip();
}
Instance of Symbol 47 MovieClip in Symbol 49 MovieClip [MM] Frame 1
//component parameters
onClipEvent (construct) {
sLabel = "Return To Main Menu ?";
autoSize = "right";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Symbol 51 MovieClip Frame 1
_visible = false;
Symbol 72 MovieClip [ground_0] Frame 1
stopAllSounds();
var snd = new Sound(this);
snd.setVolume(40);
snd.attachSound("music");
snd.start(0, 999);
onEnterFrame = function () {
if (_parent._alpha < 100) {
_parent._alpha = _parent._alpha + 20;
} else {
_parent._alpha = 100;
}
};
Symbol 142 MovieClip [switch_0] Frame 1
stop();
Symbol 143 MovieClip [switch_1] Frame 1
stop();
Symbol 154 MovieClip [fish_1] Frame 1
var N = 11;
var C = 0.3;
var A = 8;
var x = new Array();
var y = new Array();
var aClips = new Array();
aClips[0] = this;
var i = 0;
while (i < N) {
x[i] = _x;
y[i] = _y;
i++;
}
var i = 1;
while (i < N) {
attachMovie("part_" + i, "part_" + i, N - i);
aClips[i] = this["part_" + i];
aClips[i].gotoAndStop(nFrame);
aClips[i]._x = 0;
aClips[i]._y = 0;
aClips[i]._yscale = 100 + (A * (1 - i));
i++;
}
onEnterFrame = function () {
x[0] = _x;
y[0] = _y;
var _local3 = 1;
while (_local3 < N) {
x[_local3] = x[_local3] + ((x[_local3 - 1] - x[_local3]) * C);
y[_local3] = y[_local3] + ((y[_local3 - 1] - y[_local3]) * C);
var _local4 = SFM.coordinateConvert(_parent, this, x[_local3], y[_local3]);
aClips[_local3]._x = _local4.x;
aClips[_local3]._y = _local4.y;
aClips[_local3]._rotation = 57.3 * Math.atan2(y[_local3] - y[_local3 - 1], x[_local3] - x[_local3 - 1]);
_local3++;
}
};
Symbol 157 MovieClip [part_10] Frame 2
_yscale = 100;
Symbol 157 MovieClip [part_10] Frame 3
_yscale = 100;
Symbol 157 MovieClip [part_10] Frame 4
_yscale = 100;
Symbol 161 MovieClip [part_1] Frame 1
_parent.C = 0.3;
Symbol 161 MovieClip [part_1] Frame 2
_parent.C = 0.2;
_yscale = 100;
_parent.owner.nW = 320;
_parent.owner.nRange_sight = 100;
Symbol 161 MovieClip [part_1] Frame 3
_parent.C = 0.2;
_yscale = 100;
_parent.owner.nW = 320;
_parent.owner.nRange_sight = 120;
Symbol 161 MovieClip [part_1] Frame 4
_parent.C = 0.2;
_yscale = 100;
_parent.owner.nW = 320;
_parent.owner.nRange_sight = 120;
Symbol 163 MovieClip [part_2] Frame 2
_yscale = 100;
Symbol 163 MovieClip [part_2] Frame 3
_yscale = 100;
Symbol 163 MovieClip [part_2] Frame 4
_yscale = 100;
Symbol 166 MovieClip [part_3] Frame 2
_yscale = 95;
Symbol 166 MovieClip [part_3] Frame 3
_yscale = 95;
Symbol 166 MovieClip [part_3] Frame 4
_yscale = 95;
Symbol 167 MovieClip [part_4] Frame 2
_yscale = 90;
Symbol 167 MovieClip [part_4] Frame 3
_yscale = 90;
Symbol 167 MovieClip [part_4] Frame 4
_yscale = 90;
Symbol 168 MovieClip [part_5] Frame 2
_yscale = 85;
Symbol 168 MovieClip [part_5] Frame 3
_yscale = 85;
Symbol 168 MovieClip [part_5] Frame 4
_yscale = 85;
Symbol 169 MovieClip [part_6] Frame 2
_yscale = 80;
Symbol 169 MovieClip [part_6] Frame 3
_yscale = 80;
Symbol 169 MovieClip [part_6] Frame 4
_yscale = 80;
Symbol 170 MovieClip [part_7] Frame 2
_yscale = 75;
Symbol 170 MovieClip [part_7] Frame 3
_yscale = 75;
Symbol 170 MovieClip [part_7] Frame 4
_yscale = 75;
Symbol 171 MovieClip [part_8] Frame 2
_yscale = 70;
Symbol 171 MovieClip [part_8] Frame 3
_yscale = 70;
Symbol 171 MovieClip [part_8] Frame 4
_yscale = 70;
Symbol 173 MovieClip [part_9] Frame 2
_yscale = 100;
Symbol 173 MovieClip [part_9] Frame 3
_yscale = 100;
Symbol 173 MovieClip [part_9] Frame 4
_yscale = 100;
Symbol 176 MovieClip [word] Frame 1
var st;
tmc.txt.text = st;
var time = 30;
onEnterFrame = function () {
if (time != 0) {
time--;
} else {
removeMovieClip(this);
}
};
Symbol 176 MovieClip [word] Frame 8
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
function addClip(_id, _mc, _depth) {
if (_depth == undefined) {
_depth = _mc.getNextHighestDepth();
}
return(_mc.attachMovie(_id, _id + _depth, _depth));
}
function moveObj() {
for (var _local1 in obj1) {
obj1[_local1].move();
}
for (var _local1 in obj2) {
obj2[_local1].move();
}
for (var _local1 in obj3) {
obj3[_local1].move();
}
}
function removeObj() {
for (var _local1 in obj1) {
obj1[_local1].remove(obj1);
}
for (var _local1 in obj2) {
obj2[_local1].remove(obj2);
}
for (var _local1 in obj3) {
obj3[_local1].remove(obj3);
}
}
function moveClip(x, y) {
}
function addtime() {
if ((nGamestate == 1) && (nGamestate != 3)) {
nTime++;
_parent.tTime.tLabel.text = SFM.formatTime(nTime);
if (((nTime % 10) == 0) && (nDif < 30)) {
nDif++;
}
var _local4 = 0;
var _local3 = 0;
if (Math.random() > 0.5) {
_local4 = SFM.rdm_2(0, nW_max);
((Math.random() > 0.5) ? (_local3 = -50) : (_local3 = nH_max + 50));
} else {
_local3 = SFM.rdm_2(0, nH_max);
((Math.random() > 0.5) ? (_local4 = -50) : (_local4 = nW_max + 50));
}
obj3.push(new smallfish(_local4, _local3, "smallfish", this));
seescore();
}
}
function seescore() {
nScore = ((nKill * 10) + Math.round(Math.pow(nTime / 5, 2))) + nGood;
_parent.score_2.tLabel.text = "Score : " + nScore;
_parent.score_2.tLabel.autoSize = true;
}
function removesdm() {
for (var _local1 in obj1) {
obj1[_local1].mClip.filters = [];
}
for (var _local1 in obj2) {
obj2[_local1].mClip.filters = [];
}
for (var _local1 in obj3) {
obj3[_local1].mClip.filters = [];
}
}
function addsdm() {
for (var _local1 in obj1) {
obj1[_local1].mClip.filters = [new flash.filters.DropShadowFilter(40, 45, 0, 1, 8, 8, 0.5, 1, false, false, false)];
}
for (var _local1 in obj2) {
obj2[_local1].mClip.filters = [new flash.filters.DropShadowFilter(40, 45, 0, 1, 8, 8, 0.5, 1, false, false, false)];
}
for (var _local1 in obj3) {
obj3[_local1].mClip.filters = [new flash.filters.DropShadowFilter(40, 45, 0, 1, 8, 8, 0.5, 1, false, false, false)];
}
}
if (SDM == undefined) {
SDM = true;
}
var snd = new Sound(this);
var sndEat_1 = new Sound(this);
sndEat_1.attachSound("eat_1");
var sndEat_2 = new Sound(this);
sndEat_2.attachSound("eat_2");
var sndBt = new Sound(this);
sndBt.attachSound("Bt");
var nW = Stage.width;
var nH = Stage.height;
var nDif = 0;
var nGameState;
var ground_2;
var ground_3;
var ground_4 = createEmptyMovieClip("ground_4", 5);
var ground_5 = createEmptyMovieClip("ground_5", 4);
var nW_max = 400;
var nH_max = 400;
var nTime = 0;
var nTime_id;
var nTime_2 = 0;
var nScore = 0;
var nKill = 0;
var nLoss = 0;
var nGood = 0;
var obj1 = new Array();
var obj2 = new Array();
var obj3 = new Array();
var v0 = new Vector();
var v1 = new Vector();
var v2 = new Vector();
var v3 = new Vector();
v0.x = (ground_0._width - nW) / nW;
v0.y = (ground_0._height - nH) / nH;
v1.x = (ground_1._width - nW) / nW;
v1.y = (ground_1._height - nH) / nH;
v2.x = (ground_2._width - nW) / nW;
v2.y = (ground_2._height - nH) / nH;
v3.x = (ground_3._width - nW) / nW;
v3.y = (ground_3._height - nH) / nH;
clearInterval(nTime_in);
onEnterFrame = function () {
if (nGamestate == 2) {
_parent.gotoAndStop("GameOver");
} else if (nGamestate < 2) {
((nTime_2 < 500) ? (nTime_2++) : ((nTime_2 = 0)));
if ((nTime_2 % (36 - nDif)) == 0) {
var _local4 = 0;
var _local3 = 0;
if (Math.random() > 0.5) {
_local4 = SFM.rdm_2(0, nW_max);
((Math.random() > 0.5) ? (_local3 = -50) : (_local3 = nH_max + 50));
} else {
_local3 = SFM.rdm_2(0, nH_max);
((Math.random() > 0.5) ? (_local4 = -50) : (_local4 = nW_max + 50));
}
if (Math.random() > (0.9 - (Math.ceil(nDif / 10) / 10))) {
obj2.push(new fish_1(_local4, _local3, "fish_1", this, 3));
} else {
obj2.push(new fish(_local4, _local3, "fish", this));
}
}
}
if (nGamestate != 3) {
moveObj();
}
};
removeObj();
obj1.push(new turtle(nW_max / 2, nH_max / 2, "player", this));
if (nGamestate == 0) {
stop();
}
Symbol 182 MovieClip Frame 2
stop();
for (var ob in obj2) {
obj2[ob].remove(obj2);
}
nGamestate = 1;
nTime_in = setInterval(this, "addtime", 1000);
Symbol 185 MovieClip Frame 1
function frame() {
if (bIn && (bFlagDown)) {
gotoAndStop ("Down");
} else if (bIn || (bFlagDown)) {
gotoAndStop ("Over");
} else {
gotoAndStop ("Up");
}
tLabel.autoSize = autoSize;
if (autoSize == "right") {
tLabel._x = -Math.floor(tLabel._width);
} else if (autoSize == "center") {
tLabel._x = -Math.floor(tLabel._width / 2);
} else {
tLabel._x = 0;
}
}
var sLabel;
var autoSize;
var bIn = false;
var bFlagDown = false;
var onpress;
var onrelease;
frame();
hitArea = tLabel;
onRollOver = function () {
bIn = true;
frame();
};
onDragOut = (onRollOut = function () {
bIn = false;
frame();
});
onPress = function () {
bFlagDown = true;
frame();
onpress();
};
onReleaseOutside = (onRelease = function () {
bFlagDown = false;
frame();
onrelease();
});
Symbol 187 MovieClip Frame 1
nextFrame();
Symbol 213 MovieClip Frame 1
function time() {
if ((!down) && (scrollBar._y < scrollBar._bottom)) {
scrollBar._y = scrollBar._y + 0.3;
}
}
var _maskY = int(scrollMask._y);
var _maskH = int(scrollMask._height);
var _barH = int(scrollBar._height);
var _upH = int(scrollUp._height);
var _downH = int(scrollDown._height);
var top = (_maskY + _upH);
var bottom = (((_maskY + _maskH) - _barH) - _downH);
var id = setInterval(this, "time", 50);
scrollBar._top = top;
scrollBar._bottom = bottom;
scrollBar._y = _maskY + _upH;
scrollBar._x = Math.floor(scrollMask._width + (scrollUp._width / 2)) - Math.floor(scrollBar._width / 2);
left = int(scrollBar._x);
scrollLine._x = Math.floor(scrollMask._width + (scrollUp._width / 2));
scrollLine._y = _maskY;
scrollLine._height = _maskH;
scrollUp._x = scrollMask._width;
scrollUp._y = _maskY;
scrollDown._x = scrollMask._width;
scrollDown._y = (_maskY + _maskH) - _downH;
var speed = 6;
var nSpeedLow = 1;
var nSpeedHigh = 3;
dis = ((scrollContent._height - _maskH) + 10) / (bottom - top);
contentStartY = scrollContent._y;
var down = false;
scrollContent._y = bottom;
scrollBar.onPress = function () {
scrollBar.startDrag(0, left, top, left, bottom);
down = true;
};
scrollBar.onRelease = (scrollBar.onReleaseOutside = function () {
scrollBar.stopDrag();
down = false;
});
this.onEnterFrame = function () {
disMove = (scrollBar._y - top) * dis;
scrollContent.yMove = contentStartY - disMove;
scrollContent._y = scrollContent._y + ((scrollContent.yMove - scrollContent._y) / speed);
};
scrollBar.onEnterFrame = function () {
if (this.d && (this._y < this._bottom)) {
this._y = this._y + this.s;
} else if (this.u && (this._y > this._top)) {
this._y = this._y - this.s;
}
};
scrollDown.onRollOver = function () {
scrollBar.d = true;
scrollBar.s = nSpeedLow;
down = true;
};
scrollDown.onPress = function () {
scrollBar.d = true;
scrollBar.s = nSpeedHigh;
down = true;
};
scrollDown.onRelease = function () {
scrollBar.d = true;
scrollBar.s = nSpeedLow;
down = true;
};
scrollDown.onRollOut = function () {
scrollBar.d = false;
scrollBar.s = 0;
down = false;
};
scrollDown.onReleaseOutside = function () {
scrollBar.d = false;
scrollBar.s = 0;
down = false;
};
scrollUp.onRollOver = function () {
scrollBar.u = true;
scrollBar.s = nSpeedLow;
down = true;
};
scrollUp.onPress = function () {
scrollBar.u = true;
scrollBar.s = nSpeedHigh;
down = true;
};
scrollUp.onRelease = function () {
scrollBar.u = true;
scrollBar.s = nSpeedLow;
down = true;
};
scrollUp.onRollOut = function () {
scrollBar.u = false;
scrollBar.s = 0;
down = false;
};
scrollUp.onReleaseOutside = function () {
scrollBar.u = false;
scrollBar.s = 0;
down = false;
};
Symbol 215 MovieClip Frame 1
this.useHandCursor = false;
Symbol 218 MovieClip Frame 1
stop();
_global.game_name = _game_name;
var highscore = eval (score_var);
_global.viewHighscore = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + game_name, "_blank");
};
if (highscore == 0) {
this._visible = false;
}
trace(game_name);
trace(highscore);
trace("http://www.freeworldgroup.com/score/index.asp?game=" + game_name);
Instance of Symbol 47 MovieClip in Symbol 218 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sLabel = "Submit Score";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (press) {
_parent.gotoAndStop("submit");
}
Symbol 218 MovieClip Frame 3
function sendData() {
send_var.game = game_name;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = highscore;
gold_txt.backgroundColor = 16777215 /* 0xFFFFFF */;
name_txt.backgroundColor = 16777215 /* 0xFFFFFF */;
send_var = new LoadVars();
load_var = new LoadVars();
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 215 MovieClip in Symbol 218 MovieClip Frame 3
on (press) {
}
Instance of Symbol 47 MovieClip in Symbol 218 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
sLabel = " X ";
autoSize = "right";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (press) {
_parent.gotoAndStop("submited");
}
Instance of Symbol 47 MovieClip in Symbol 218 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
sLabel = "Name : ";
autoSize = "right";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip in Symbol 218 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
sLabel = "Score : ";
autoSize = "right";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "ok_btn" in Symbol 218 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
sLabel = "Submit";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (release) {
_parent.sendData();
}
Instance of Symbol 47 MovieClip in Symbol 218 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
sLabel = "Sending...";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip in Symbol 218 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
sLabel = "View Highscores";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (release) {
viewHighscore();
}
Instance of Symbol 47 MovieClip in Symbol 218 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
sLabel = "Highscore Received";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Symbol 219 MovieClip Frame 6
_x = 0;
_y = 0;
_global.gameName = "dodge_fishy";
stop();
var aButtons_id = new Array("btPlay", "btHelp", "btHighScore", "btDownload", "btMoreGame", "btAddGame", "btV", "btCredits", "btCopyright");
var aButtons_label = new Array(" Play Game ", " Instructions", " View Highscores ", " Download Games ", " More Online Games ", " Add This Game To Your Site ", " V.1.0 ", " Credits ", " Copyright 2007 freeworldgroup.com ");
var sAuto = "center";
var bAni = true;
var ndy = 5;
var nx = mPinButtons._x;
var ny = mPinButtons._y;
var i = 0;
while (i < aButtons_id.length) {
var mc = this[aButtons_id[i]];
mc.sLabel = aButtons_label[i];
if (i < (aButtons_id.length - 3)) {
mc.autoSize = sAuto;
mc.bAni = bAni;
mc.bAniVisible = false;
mc._x = nx;
mc._y = ny + (i * (mc.tLabel.textHeight + ndy));
}
i++;
}
btV._x = (btV._y = 0);
btCredits._x = Stage.width;
btCredits._y = Stage.height - btCredits._height;
btCopyright._x = 0;
btCopyright._y = Stage.height - btCopyright._height;
btMoreGame.onpress = (btCopyright.onpress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
});
btAddGame.onpress = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
btDownload.onpress = function () {
getURL ("http://www.ifungames.com", "_blank");
};
btHighScore.onpress = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + gameName, "_blank");
};
btCredits.onpress = function () {
gotoAndStop ("Credits");
};
btPlay.onrelease = function () {
gotoAndStop ("GameNow");
mGame.play();
};
btHelp.onrelease = function () {
gotoAndStop ("Help");
mGame.nGamestate = 3;
};
mGame.nGamestate = 0;
if (ground == undefined) {
attachMovie("ground_1", "ground", 10);
}
Mouse.show();
delete onMouseDown;
_alpha = 0;
Q.removeMovieClip();
Instance of Symbol 185 MovieClip "btCopyright" in Symbol 219 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
}
Instance of Symbol 185 MovieClip "btCredits" in Symbol 219 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "right";
}
Instance of Symbol 185 MovieClip "btV" in Symbol 219 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
}
Instance of Symbol 47 MovieClip "btPlay" in Symbol 219 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
bAni = true;
bAniVisible = true;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "btHelp" in Symbol 219 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
bAni = true;
bAniVisible = true;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "btMoreGame" in Symbol 219 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
bAni = true;
bAniVisible = true;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "btDownload" in Symbol 219 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
bAni = true;
bAniVisible = true;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "btAddGame" in Symbol 219 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
bAni = true;
bAniVisible = true;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "btHighScore" in Symbol 219 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
bAni = true;
bAniVisible = true;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 2 MovieClip "btLogo" in Symbol 219 MovieClip Frame 6
onClipEvent (load) {
_x = ((Stage.width / 2) - (_width / 2));
_y = 0;
}
Symbol 219 MovieClip Frame 11
_alpha = 0;
Instance of Symbol 47 MovieClip in Symbol 219 MovieClip Frame 11
//component parameters
onClipEvent (construct) {
sLabel = "Main Menu";
autoSize = "center";
bAni = true;
bAniVisible = true;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (release) {
_parent.gotoAndStop("Menu");
}
Symbol 219 MovieClip Frame 21
_alpha = 0;
Instance of Symbol 47 MovieClip in Symbol 219 MovieClip Frame 21
//component parameters
onClipEvent (construct) {
sLabel = "Music";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip in Symbol 219 MovieClip Frame 21
//component parameters
onClipEvent (construct) {
sLabel = "Insane (no vocals)";
autoSize = "left";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip in Symbol 219 MovieClip Frame 21
//component parameters
onClipEvent (construct) {
sLabel = "By Cheshyre";
autoSize = "right";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Symbol 219 MovieClip Frame 36
btMoreGame.onpress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
btAddGame.onpress = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
btDownload.onpress = function () {
getURL ("http://www.ifungames.com", "_blank");
};
btHighScore.onpress = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + gameName, "_blank");
};
var aButtons_id_2 = new Array("btTry", "btScore", "btHighScore", "btDownload", "btMoreGame", "btAddGame", "btMenu");
var aButtons_label_2 = new Array(" Try Again ? ", "", " View Highscores ", " Download Games ", " More Online Games ", " Add This Game To Your Site ", " Main Menu ");
var i = 0;
while (i < aButtons_id_2.length) {
var mc = this[aButtons_id_2[i]];
mc.sLabel = aButtons_label_2[i];
mc.autoSize = "center";
mc.bAni = bAni;
mc._x = this[aButtons_id_2[0]]._x;
mc._y = this[aButtons_id_2[0]]._y + (i * (mc._height + ndy));
i++;
}
score.sLabel = "Score : " + mGame.nScore;
_alpha = 0;
tTime_2.sLabel = "Survival Time : " + SFM.formatTime(mGame.nTime);
Mouse.show();
delete onMouseDown;
Q.removeMovieClip();
mGame.removeObj();
Instance of Symbol 47 MovieClip "score" in Symbol 219 MovieClip Frame 36
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip in Symbol 219 MovieClip Frame 36
//component parameters
onClipEvent (construct) {
sLabel = "Game Over";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "btMenu" in Symbol 219 MovieClip Frame 36
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (release) {
_parent.mGame.nGamestate = 0;
_parent.mGame.gotoAndStop(1);
_parent.gotoAndStop("Menu");
}
Instance of Symbol 47 MovieClip "btTry" in Symbol 219 MovieClip Frame 36
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (release) {
_parent.mGame.nGamestate = 1;
_parent.mGame.gotoAndPlay(1);
_parent.gotoAndStop("GameNow");
}
Instance of Symbol 47 MovieClip "btMoreGame" in Symbol 219 MovieClip Frame 36
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
bAni = true;
bAniVisible = true;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "btDownload" in Symbol 219 MovieClip Frame 36
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
bAni = true;
bAniVisible = true;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "btAddGame" in Symbol 219 MovieClip Frame 36
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
bAni = true;
bAniVisible = true;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "btHighScore" in Symbol 219 MovieClip Frame 36
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "left";
bAni = true;
bAniVisible = true;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "tTime_2" in Symbol 219 MovieClip Frame 36
//component parameters
onClipEvent (construct) {
sLabel = "";
autoSize = "center";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 218 MovieClip "btScore" in Symbol 219 MovieClip Frame 36
//component parameters
onClipEvent (construct) {
_game_name = "dodge_fishy";
score_var = "_parent.mGame.nScore";
}
Symbol 219 MovieClip Frame 51
_alpha = 0;
switch (_root._quality) {
case "LOW" :
tQ.sLabel = "Low";
break;
case "MEDIUM" :
tQ.sLabel = "Med";
break;
case "HIGH" :
tQ.sLabel = "High";
break;
case "BEST" :
tQ.sLabel = "Best";
}
S.bFlagOn = mGame.snd.getVolume() != 0;
M.bFlagOn = G.snd.getVolume() != 0;
SD.bFlagOn = mGame.SDM;
Instance of Symbol 47 MovieClip "tQ" in Symbol 219 MovieClip Frame 51
//component parameters
onClipEvent (construct) {
sLabel = "Med";
autoSize = "left";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "Quality";
x_tPop = 0;
y_tPop = -30;
}
on (press) {
if (_parent.mGame.nGamestate == 1) {
_parent.attachMovie("Q", "Q", 5, {_x:_x, _y:_y});
_parent.mGame.nGamestate = 3;
} else {
_parent.Q.removeMovieClip();
_parent.mGame.nGamestate = 1;
}
}
Instance of Symbol 47 MovieClip "tTime" in Symbol 219 MovieClip Frame 51
//component parameters
onClipEvent (construct) {
sLabel = "00:00:00";
autoSize = "left";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip in Symbol 219 MovieClip Frame 51
//component parameters
onClipEvent (construct) {
sLabel = "Menu";
autoSize = "right";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
on (release) {
if (_parent.mGame.nGamestate == 1) {
_parent.attachMovie("MM", "MM", 5, {_x:_x, _y:_y});
_parent.mGame.nGamestate = 3;
} else {
_parent.MM.removeMovieClip();
_parent.mGame.nGamestate = 1;
}
}
Instance of Symbol 47 MovieClip "M" in Symbol 219 MovieClip Frame 51
//component parameters
onClipEvent (construct) {
sLabel = " M ";
autoSize = "left";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "switch_0";
sPop = "Music";
x_tPop = 0;
y_tPop = -30;
}
on (press) {
if (bFlagOn) {
_parent.G.snd.setVolume(0);
} else {
_parent.G.snd.setVolume(40);
}
}
Instance of Symbol 47 MovieClip "S" in Symbol 219 MovieClip Frame 51
//component parameters
onClipEvent (construct) {
sLabel = " S ";
autoSize = "left";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "switch_0";
sPop = "Sound";
x_tPop = 0;
y_tPop = -30;
}
on (press) {
if (bFlagOn) {
_parent.mGame.snd.setVolume(0);
} else {
_parent.mGame.snd.setVolume(100);
}
}
Instance of Symbol 47 MovieClip "score_2" in Symbol 219 MovieClip Frame 51
//component parameters
onClipEvent (construct) {
sLabel = "Score : 0 ";
autoSize = "left";
bAni = false;
bAniVisible = false;
enabled = false;
bFlagOn = true;
sSwitch = "";
sPop = "";
x_tPop = 0;
y_tPop = -50;
}
Instance of Symbol 47 MovieClip "SD" in Symbol 219 MovieClip Frame 51
//component parameters
onClipEvent (construct) {
sLabel = "Shadow";
autoSize = "left";
bAni = false;
bAniVisible = false;
enabled = true;
bFlagOn = true;
sSwitch = "switch_1";
sPop = "";
x_tPop = 0;
y_tPop = -30;
}
on (press) {
if (bFlagOn) {
_parent.mGame.SDM = false;
_parent.mGame.removesdm();
} else {
_parent.mGame.SDM = true;
_parent.mGame.addsdm();
}
}