Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
MochiAd.showPreGameAd({id:"3f3bd4a23be81e0c", res:"600x450"});
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop ("Loading");
}
Frame 10
_global.ctn = mCtn;
stop();
Symbol 7 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 10 MovieClip Frame 1
this._visible = false;
Symbol 10 MovieClip Frame 2
this._visible = true;
Symbol 10 MovieClip Frame 39
stop();
Instance of Symbol 4 MovieClip in Symbol 10 MovieClip Frame 39
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 471 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.0");
}
static function showPreGameAd(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 showInterLevelAd(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.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 - 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 showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
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 _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
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 _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
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_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
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 _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
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 _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_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 472 MovieClip [__Packages.fish.Dfish] Frame 0
class fish.Dfish extends MovieClip
{
var floatMax, floatCnt, speed, floatDrct, gotoAndStop, _x;
function Dfish () {
super();
floatMax = 150;
floatCnt = 0;
speed = 0.5;
floatDrct = "left";
}
function setDrct(p) {
floatDrct = p;
}
function onEnterFrame() {
switch (floatDrct) {
case "left" :
gotoAndStop("left");
if (floatCnt < floatMax) {
floatCnt++;
_x = _x - speed;
} else {
floatDrct = "right";
floatCnt = 0;
}
break;
case "right" :
gotoAndStop("right");
if (floatCnt < floatMax) {
floatCnt++;
_x = _x + speed;
} else {
floatDrct = "left";
floatCnt = 0;
}
}
}
}
Symbol 473 MovieClip [__Packages.raft.stuff] Frame 0
class raft.stuff extends MovieClip
{
var tar, reboundMuti, hitTest, _parent;
function stuff () {
super();
}
function setTar(p) {
tar = p;
reboundMuti = 0.7;
}
function setMuti(p) {
reboundMuti = p;
}
function onEnterFrame() {
if (hitTest(tar.ctn.hitbox)) {
if (tar._state == "jump") {
tar.reboundX(_parent._name, reboundMuti);
}
}
}
}
Symbol 474 MovieClip [__Packages.prop.turner] Frame 0
class prop.turner extends MovieClip
{
var moveStr, cnt, tar, pointX, pointY, _y, _x, pointer, hitbox, _name;
function turner () {
super();
moveStr = "stop";
cnt = 0;
}
function setTar(p) {
tar = p;
}
function setMove(p) {
moveStr = p;
}
function setTarPos(px, py) {
pointX = px;
pointY = py;
var _local3 = Math.atan2(pointY - _y, pointX - _x);
var _local2 = (_local3 * 180) / Math.PI;
pointer._rotation = _local2;
}
function getPx() {
return(pointX);
}
function getPy() {
return(pointY);
}
function onEnterFrame() {
if (hitbox.hitTest(tar)) {
trace("turner hit diver");
if (tar.turnerBy != _name) {
if (((tar._state == "downWater") || (tar._state == "swimTo")) || (tar._state == "swimUp")) {
tar.setSwimTo(pointX, pointY, _name);
}
if (tar._state == "jump") {
trace("set jump angle !");
tar.setJumpAngle(pointX - _x, pointY - _y, _name);
}
tar.turnerBy = _name;
}
}
switch (moveStr) {
case "stop" :
break;
case "up" :
if (cnt < cntMax) {
cnt++;
_y = _y - speed;
} else {
moveStr = "down";
cnt = 0;
}
break;
case "down" :
if (cnt < cntMax) {
cnt++;
_y = _y + speed;
} else {
moveStr = "up";
cnt = 0;
}
break;
case "left" :
if (cnt < cntMax) {
cnt++;
_x = _x - speed;
} else {
moveStr = "right";
cnt = 0;
}
break;
case "right" :
if (cnt < cntMax) {
cnt++;
_x = _x + speed;
} else {
moveStr = "left";
cnt = 0;
}
}
}
var cntMax = 30;
var speed = 0.8;
}
Symbol 475 MovieClip [__Packages.stone.Stone] Frame 0
class stone.Stone extends MovieClip
{
var tar, hitbox;
function Stone () {
super();
}
function setTar(p) {
tar = p;
}
function onEnterFrame() {
if (hitbox.hitTest(tar.ctn.hitbox)) {
if (tar._state != "dizzy") {
tar.setDizzy();
}
}
}
}
Symbol 476 MovieClip [__Packages.raft.Raft] Frame 0
class raft.Raft extends MovieClip
{
var tar, reboundMuti, hitTest, _parent;
function Raft () {
super();
}
function setTar(p) {
tar = p;
reboundMuti = 0.7;
}
function setMuti(p) {
reboundMuti = p;
}
function onEnterFrame() {
if (hitTest(tar.ctn.hitbox)) {
if (tar._state == "jump") {
tar.reboundY(_parent._name, reboundMuti);
}
}
}
}
Symbol 477 MovieClip [__Packages.raft.floatWood] Frame 0
class raft.floatWood extends MovieClip
{
var floatMax, floatCnt, speed, floatDrct, _x;
function floatWood () {
super();
floatMax = 150;
floatCnt = 0;
speed = 0.3;
}
function setDrct(p) {
floatDrct = p;
}
function onEnterFrame() {
switch (floatDrct) {
case "left" :
if (floatCnt < floatMax) {
floatCnt++;
_x = _x + speed;
} else {
floatDrct = "right";
floatCnt = 0;
}
break;
case "right" :
if (floatCnt < floatMax) {
floatCnt++;
_x = _x - speed;
} else {
floatDrct = "left";
floatCnt = 0;
}
}
}
}
Symbol 478 MovieClip [__Packages.bird.Bird] Frame 0
class bird.Bird extends MovieClip
{
var area1, area2, speed, scareMuti, _x, _y, areaCnt, areaMax, _state, areaAt, tarX, tarY, gotoAndStop, tar, hitbox;
function Bird () {
super();
area1 = new Array();
area2 = new Array();
speed = 0.8;
scareMuti = 5;
_x = (Math.random() * 400) + 80;
_y = (Math.random() * 100) + 20;
areaCnt = 0;
areaMax = 3;
_state = "stop";
areaAt = "area1";
}
function getTar() {
trace("get tar now areaCnt " + areaCnt);
if (areaAt == "area1") {
if (areaCnt < areaMax) {
areaCnt++;
tarX = (Math.random() * 200) + area1[0];
tarY = (Math.random() * 100) + area1[1];
} else {
areaCnt = 0;
areaAt = "area2";
speed = 1.2;
}
} else if (areaAt == "area2") {
if (areaCnt < 1) {
areaCnt++;
tarX = (Math.random() * 200) + area2[0];
tarY = (Math.random() * 100) + area2[1];
} else {
areaCnt = 0;
areaAt = "area1";
speed = 0.8;
}
}
if (tarX > _x) {
gotoAndStop("right");
} else {
gotoAndStop("left");
}
}
function setTar(p) {
tar = p;
}
function setArea(p1, p2) {
area1 = p1.concat();
area2 = p2.concat();
getTar();
_state = "fly";
}
function onEnterFrame() {
switch (_state) {
case "fly" :
if (hitbox.hitTest(tar.ctn.hitbox)) {
if (tar._state != "dizzy") {
tar.aUp(-0.6);
getTar();
_state = "scare";
}
}
var _local3 = tarX - _x;
var _local2 = tarY - _y;
var _local6 = _local3 * _local3;
var _local5 = _local2 * _local2;
var _local7 = Math.sqrt(_local6 + _local5);
if (_local7 > speed) {
var _local4 = Math.atan2(_local2, _local3);
_x = _x + (speed * Math.cos(_local4));
_y = _y + (speed * Math.sin(_local4));
} else {
getTar();
}
break;
case "stop" :
break;
case "scare" :
_local3 = tarX - _x;
_local2 = tarY - _y;
_local6 = _local3 * _local3;
_local5 = _local2 * _local2;
_local7 = Math.sqrt(_local6 + _local5);
if (_local7 > (scareMuti * speed)) {
var _local4 = Math.atan2(_local2, _local3);
_x = _x + ((scareMuti * speed) * Math.cos(_local4));
_y = _y + ((scareMuti * speed) * Math.sin(_local4));
} else {
_state = "fly";
getTar();
}
}
}
}
Symbol 479 MovieClip [__Packages.fish.Fish] Frame 0
class fish.Fish extends MovieClip
{
var speed, scareMuti, _x, _y, _state, tarX, tarY, gotoAndStop, tar, hitbox;
function Fish () {
super();
speed = 0.5;
scareMuti = 4;
_x = (Math.random() * 400) + 80;
_y = (Math.random() * 100) + 280;
getTar();
_state = "swim";
}
function getTar() {
tarX = (Math.random() * 400) + 80;
tarY = (Math.random() * 100) + 280;
if (tarX > _x) {
gotoAndStop("right");
} else {
gotoAndStop("left");
}
}
function setTar(p) {
tar = p;
}
function onEnterFrame() {
switch (_state) {
case "swim" :
if (hitbox.hitTest(tar.ctn.hitbox)) {
if (tar._state != "dizzy") {
tar.setDizzy();
getTar();
_state = "scare";
}
}
var _local3 = tarX - _x;
var _local2 = tarY - _y;
var _local6 = _local3 * _local3;
var _local5 = _local2 * _local2;
var _local7 = Math.sqrt(_local6 + _local5);
if (_local7 > speed) {
var _local4 = Math.atan2(_local2, _local3);
_x = _x + (speed * Math.cos(_local4));
_y = _y + (speed * Math.sin(_local4));
} else {
getTar();
}
break;
case "stop" :
break;
case "scare" :
_local3 = tarX - _x;
_local2 = tarY - _y;
_local6 = _local3 * _local3;
_local5 = _local2 * _local2;
_local7 = Math.sqrt(_local6 + _local5);
if (_local7 > (scareMuti * speed)) {
var _local4 = Math.atan2(_local2, _local3);
_x = _x + ((scareMuti * speed) * Math.cos(_local4));
_y = _y + ((scareMuti * speed) * Math.sin(_local4));
} else {
_state = "swim";
getTar();
}
}
}
}
Symbol 480 MovieClip [__Packages.gemBox.GemBox] Frame 0
class gemBox.GemBox extends MovieClip
{
var floatMax, floatCnt, speed, _state, drct, hitbox, _y, onEnterFrame, _visible;
function GemBox () {
super();
floatMax = 25;
floatCnt = Math.round(Math.random() * floatMax);
speed = 0.1;
_state = "move";
drct = ((Math.random() > 0.5) ? "up" : "down");
OEFon();
}
function setDrct(p) {
drct = p;
}
function setState(p) {
_state = p;
}
function OEF() {
if (hitbox.hitTest(_global.scene.diver.ctn.hitbox)) {
_global.ctn.sndCtrl.playSound("sndGet");
_global.scene.diver.getGem(this);
OEFoff();
}
switch (_state) {
case "stop" :
break;
case "move" :
switch (drct) {
case "up" :
if (floatCnt < floatMax) {
floatCnt++;
_y = _y - speed;
} else {
drct = "down";
floatCnt = 0;
}
break;
case "down" :
if (floatCnt < floatMax) {
floatCnt++;
_y = _y + speed;
} else {
drct = "up";
floatCnt = 0;
}
}
}
}
function OEFon() {
onEnterFrame = OEF;
_visible = true;
}
function OEFoff() {
onEnterFrame = null;
_visible = false;
}
var _type = "gembox";
}
Symbol 481 MovieClip [__Packages.prop.Adown] Frame 0
class prop.Adown extends MovieClip
{
var moveStr, cnt, tar, _y, _x, hitbox, unloadMovie;
function Adown () {
super();
moveStr = "stop";
cnt = 0;
}
function setTar(p) {
tar = p;
}
function setMove(p) {
moveStr = p;
}
function onEnterFrame() {
switch (moveStr) {
case "stop" :
break;
case "up" :
if (cnt < cntMax) {
cnt++;
_y = _y - speed;
} else {
moveStr = "down";
cnt = 0;
}
break;
case "down" :
if (cnt < cntMax) {
cnt++;
_y = _y + speed;
} else {
moveStr = "up";
cnt = 0;
}
break;
case "left" :
if (cnt < cntMax) {
cnt++;
_x = _x - speed;
} else {
moveStr = "right";
cnt = 0;
}
break;
case "right" :
if (cnt < cntMax) {
cnt++;
_x = _x + speed;
} else {
moveStr = "left";
cnt = 0;
}
}
if (hitbox.hitTest(tar.ctn.hitbox)) {
tar.aUp(-0.6);
unloadMovie();
}
}
var cntMax = 40;
var speed = 0.5;
}
Symbol 482 MovieClip [__Packages.prop.Aup] Frame 0
class prop.Aup extends MovieClip
{
var cnt, moveStr, tar, _y, _x, hitbox, unloadMovie;
function Aup () {
super();
cnt = 0;
moveStr = "stop";
}
function setTar(p) {
tar = p;
}
function setMove(p) {
moveStr = p;
}
function onEnterFrame() {
switch (moveStr) {
case "stop" :
break;
case "up" :
if (cnt < cntMax) {
cnt++;
_y = _y - speed;
} else {
moveStr = "down";
cnt = 0;
}
break;
case "down" :
if (cnt < cntMax) {
cnt++;
_y = _y + speed;
} else {
moveStr = "up";
cnt = 0;
}
break;
case "left" :
if (cnt < cntMax) {
cnt++;
_x = _x - speed;
} else {
moveStr = "right";
cnt = 0;
}
break;
case "right" :
if (cnt < cntMax) {
cnt++;
_x = _x + speed;
} else {
moveStr = "left";
cnt = 0;
}
}
if (hitbox.hitTest(tar.ctn.hitbox)) {
tar.aUp(1);
unloadMovie();
}
}
var cntMax = 40;
var speed = 0.5;
}
Symbol 483 MovieClip [__Packages.goCtrl.GoCtrl] Frame 0
class goCtrl.GoCtrl extends MovieClip
{
var _v, moveArrow, numL, num, _state, angleRad, _ymouse, _xmouse, angleDeg, _arrow, shakeDrct, shakeCnt;
function GoCtrl () {
super();
_v._visible = false;
moveArrow._visible = false;
setAim();
numL = Math.sqrt((num._x * num._x) + (num._y * num._y));
}
function onEnterFrame() {
switch (_state) {
case "aim" :
angleRad = Math.atan2(_ymouse, _xmouse);
angleDeg = (angleRad * 180) / Math.PI;
_arrow._rotation = angleDeg;
break;
case "length" :
switch (shakeDrct) {
case "out" :
if (shakeCnt < shakeMax) {
shakeCnt++;
moveArrow.unit._xscale = 100 + (shakeCnt * 3);
} else {
shakeDrct = "in";
}
break;
case "in" :
if (shakeCnt > 0) {
shakeCnt--;
moveArrow.unit._xscale = 100 + (shakeCnt * 3);
} else {
shakeDrct = "out";
}
}
angleRad = Math.atan2(_ymouse, _xmouse);
angleDeg = (angleRad * 180) / Math.PI;
moveArrow._rotation = angleDeg;
setIdct();
var _local2 = calPercent();
num.text = Math.round(_local2 * 100) + "%";
num._x = (numL * (1 + _local2)) * Math.cos(angleRad);
num._y = (numL * (1 + _local2)) * Math.sin(angleRad);
break;
case "over" :
}
}
function setIdct() {
var _local2 = calPercent();
_v._x = (_vMax * Math.cos(angleRad)) * _local2;
_v._y = (_vMax * Math.sin(angleRad)) * _local2;
}
function setStateL() {
num._visible = true;
_arrow._visible = false;
moveArrow._visible = true;
_v._visible = true;
shakeCnt = 0;
shakeDrct = "out";
moveArrow._xscale = 100;
_state = "length";
}
function calPercent() {
var _local2 = shakeCnt / shakeMax;
var _local3 = ((_local2 > 0.01) ? (_local2) : 0.01);
return(_local3);
}
function setOver() {
var _local2 = new Array(calPercent() * _vMax, angleRad);
_state = "over";
moveArrow._visible = false;
_arrow._visible = false;
_v._visible = false;
num._visible = false;
return(_local2);
}
function setAim() {
_arrow._visible = true;
_state = "aim";
num._visible = false;
}
var shakeMax = 60;
var _vMax = 14;
}
Symbol 484 MovieClip [__Packages.diver.Diver] Frame 0
class diver.Diver extends MovieClip
{
var preX, _x, preY, _y, _state, _rotation, ctn, floatCnt, reboundBy, getGemCnt, getDimondCnt, temAry, swimUpCoef, dizzyMax, dizzyCnt, wantGem, wantDimond, vx, vy, ARad, turnerBy, ADeg, onEnterFrame, swimToX, swimToY, speed, deep, floatDrct;
function Diver () {
super();
preX = _x;
preY = _y;
_state = "over";
_rotation = -90;
ctn.gemCtn._visible = false;
ctn.gotoAndStop("wait");
floatCnt = 0;
reboundBy = "none";
getGemCnt = 0;
getDimondCnt = 0;
temAry = new Array();
swimUpCoef = 1;
dizzyMax = 15;
dizzyCnt = 0;
}
function setWantGem(p) {
wantGem = p;
}
function setWantDimond(p) {
wantDimond = p;
}
function reboundY(p, pMuti) {
if (reboundBy != p) {
vx = vx * pMuti;
vy = vy * (-pMuti);
_state = "jump";
reboundBy = p;
} else {
return(undefined);
}
}
function reboundX(p, pMuti) {
if (reboundBy != p) {
vx = vx * (-pMuti);
vy = vy * pMuti;
_state = "jump";
reboundBy = p;
} else {
return(undefined);
}
}
function setDiver(pAry) {
ARad = pAry[1];
vx = pAry[0] * Math.cos(ARad);
vy = pAry[0] * Math.sin(ARad);
temAry.splice(0);
launch(preX, preY);
}
function resetPos() {
_x = preX;
_y = preY;
_rotation = -90;
vx = (vy = 0);
temAry.splice(0);
ctn.gemCtn._visible = false;
ctn.gotoAndStop("wait");
floatCnt = 0;
reboundBy = "none";
turnerBy = "none";
_global.scene.btn._visible = true;
_global.scene.goCtrl.setAim();
}
function setDizzy() {
_state = "dizzy";
dizzyCnt = 0;
}
function aUp(p) {
vx = (1 + p) * vx;
vy = (1 + p) * vy;
}
function launch(px, py) {
_x = px;
_y = py;
ADeg = (ARad * 180) / Math.PI;
_state = "jump";
onEnterFrame = OEF;
}
function getGem(p) {
temAry.push(p);
ctn.gemCtn._visible = true;
}
function getDimond(p) {
temAry.push(p);
}
function setSwimTo(px, py, pname) {
swimToX = px;
swimToY = py;
turnerBy = pname;
_state = "swimTo";
ARad = Math.atan2(swimToY - _y, swimToX - _x);
speed = Math.sqrt((vx * vx) + (vy * vy));
vx = speed * Math.cos(ARad);
vy = speed * Math.sin(ARad);
ADeg = (ARad * 180) / Math.PI;
_rotation = ADeg;
}
function setJumpAngle(px, py, pname) {
ARad = Math.atan2(py, px);
speed = Math.sqrt((vx * vx) + (vy * vy));
vx = speed * Math.cos(ARad);
vy = speed * Math.sin(ARad);
ADeg = (ARad * 180) / Math.PI;
_rotation = ADeg;
}
function CheckJumpCnt() {
if (_global.scene.jumpCnt < _global.scene.jumpMax) {
_state = "over";
resetPos();
} else {
_global.ctn.game.lose();
}
}
function isLevelPass() {
if ((getDimondCnt == wantDimond) && (getGemCnt == wantGem)) {
var _local3 = Math.round((450 * (_global.scene.jumpMax - _global.scene.jumpCnt)) / _global.scene.jumpMax);
_global.ctn.game.addScore(_local3);
trace("prize of jump cnt --- " + _local3);
if (_global.ctn.game.crtLevel >= 15) {
_global.ctn.loadMV("win");
} else {
_global.ctn.game.levelComplete();
}
}
}
function removeProp() {
if (temAry.length <= 0) {
_global.scene["icon" + (_global.scene.jumpCnt + 1)].unloadMovie();
_global.scene.jumpCnt++;
} else {
var _local5 = temAry.length - 1;
var _local4 = _local5 * 222;
_global.ctn.game.addScore(_local4);
trace("additional prop'a prize " + _local4);
var _local3 = 0;
while (_local3 < temAry.length) {
_global.ctn.game.addScore(500);
if (temAry[_local3]._type == "gembox") {
getGemCnt++;
} else if (temAry[_local3]._type == "dimond") {
getDimondCnt++;
}
temAry[_local3].unloadMovie();
_local3++;
}
isLevelPass();
}
temAry.splice(0);
}
function resetProp() {
var _local3 = 0;
while (_local3 < temAry.length) {
temAry[_local3].OEFon();
_local3++;
}
temAry.splice(0);
_global.scene["icon" + (_global.scene.jumpCnt + 1)].unloadMovie();
_global.scene.jumpCnt++;
}
function swimUpSpeed(p) {
swimUpCoef = p;
}
function OEF() {
if ((_x < 0) || (_x > 620)) {
if (temAry.length <= 0) {
resetProp();
CheckJumpCnt();
} else {
removeProp();
CheckJumpCnt();
}
}
switch (_state) {
case "over" :
ctn.gotoAndStop("wait");
break;
case "downWater" :
ctn.gotoAndStop("swim");
vx = vx * k0;
vy = vy * k0;
_x = _x + vx;
_y = _y + vy;
_rotation = (Math.atan2(vy, vx) * 180) / Math.PI;
if (Math.sqrt((vx * vx) + (vy * vy)) < 1) {
deep = _y - waterLine;
vx = 0.75 * swimUpCoef;
vy = 1 * swimUpCoef;
_state = "swimUp";
}
break;
case "swimUp" :
ctn.gotoAndStop("swim");
if (_y > waterLine) {
_y = _y - vy;
_x = _x + (((_y - waterLine) / deep) * vx);
var _local3 = (Math.atan2(-vy, ((_y - waterLine) / deep) * vx) * 180) / Math.PI;
if (Math.abs(_rotation - _local3) > 7.5) {
_rotation = _rotation - 10;
} else {
_rotation = _local3;
}
} else {
_state = "waitWater";
floatDrct = "down";
}
break;
case "jump" :
ctn.gotoAndStop("jump");
vy = vy + gDivide;
_x = _x + vx;
_y = _y + vy;
_rotation = (Math.atan2(vy, vx) * 180) / Math.PI;
if (_y >= waterLine) {
_global.scene.waterEff._x = _x;
_global.scene.waterEff.gotoAndPlay("shake");
_state = "downWater";
}
break;
case "waitWater" :
removeProp();
CheckJumpCnt();
ctn.gotoAndStop("waitWater");
if (floatDrct == "down") {
if (floatCnt < 15) {
floatCnt++;
_y = _y + 0.2;
} else {
floatDrct = "up";
floatCnt = 0;
}
} else if (floatCnt < 15) {
floatCnt++;
_y = _y - 0.2;
} else {
floatDrct = "down";
floatCnt = 0;
}
break;
case "dizzy" :
ctn.gotoAndStop("dizzy");
_y = _y + 1;
dizzyCnt++;
if (dizzyCnt >= dizzyMax) {
resetProp();
CheckJumpCnt();
}
break;
case "swimTo" :
var _local5 = _x - swimToX;
var _local4 = _y - swimToY;
var _local6 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
if (_local6 > speed) {
_x = _x + vx;
_y = _y + vy;
}
if (!((_local6 <= speed) || (_y > 450))) {
break;
}
deep = _y - waterLine;
vx = 0.75 * swimUpCoef;
vy = 1 * swimUpCoef;
_state = "swimUp";
}
}
var gDivide = 0.326666666666667;
var waterLine = 270;
var k0 = 0.88;
}
Symbol 485 MovieClip [__Packages.gemBox.dimond] Frame 0
class gemBox.dimond extends MovieClip
{
var floatMax, floatCnt, speed, _state, drct, hitbox, _y, onEnterFrame, _visible;
function dimond () {
super();
floatMax = 25;
floatCnt = Math.round(Math.random() * floatMax);
speed = 0.1;
_state = "move";
drct = ((Math.random() > 0.5) ? "up" : "down");
OEFon();
}
function setDrct(p) {
drct = p;
}
function setState(p) {
_state = p;
}
function OEF() {
if (hitbox.hitTest(_global.scene.diver.ctn.hitbox)) {
_global.ctn.sndCtrl.playSound("sndGet");
_global.scene.diver.getDimond(this);
OEFoff();
}
switch (_state) {
case "stop" :
break;
case "move" :
switch (drct) {
case "up" :
if (floatCnt < floatMax) {
floatCnt++;
_y = _y - speed;
} else {
drct = "down";
floatCnt = 0;
}
break;
case "down" :
if (floatCnt < floatMax) {
floatCnt++;
_y = _y + speed;
} else {
drct = "up";
floatCnt = 0;
}
}
}
}
function OEFon() {
onEnterFrame = OEF;
_visible = true;
}
function OEFoff() {
onEnterFrame = null;
_visible = false;
}
var _type = "dimond";
}
Symbol 486 MovieClip [__Packages.stateBar.toolsBar] Frame 0
class stateBar.toolsBar extends MovieClip
{
var soundIsStop, musicIsStop, qltPanel, sndPath, confirmToMenu, attachMovie, getNextHighestDepth;
function toolsBar () {
super();
soundIsStop._visible = false;
musicIsStop._visible = false;
qltPanel._visible = false;
}
function setQlt(p_qlt) {
_global.ctn._quality = p_qlt;
}
function setSndPath(p_sndPath) {
sndPath = p_sndPath;
}
function stopSound() {
if (soundIsStop._visible == false) {
soundIsStop._visible = true;
sndPath.stopSound();
} else {
soundIsStop._visible = false;
sndPath.returnSound();
}
}
function stopMusic() {
if (musicIsStop._visible == false) {
musicIsStop._visible = true;
sndPath.stopMusic();
} else {
musicIsStop._visible = false;
sndPath.returnMusic();
}
}
function menuBtnEvt() {
confirmToMenu = attachMovie("confirmToMenu", "confirmToMenu", getNextHighestDepth());
}
function activateQltPanel() {
qltPanel._visible = true;
qltPanel.setLight(_global.ctn._quality);
}
function isStopVisible() {
if (sndPath.isSoundPlay == true) {
soundIsStop._visible = false;
} else {
soundIsStop._visible = true;
}
if (sndPath.isMusicPlay == true) {
musicIsStop._visible = false;
} else {
musicIsStop._visible = true;
}
}
}
Symbol 487 MovieClip [__Packages.levelCtn.LevelCtn] Frame 0
class levelCtn.LevelCtn extends MovieClip
{
var crtLevel, attachMovie, getNextHighestDepth, levelCtt, scoreStr, levelNum;
function LevelCtn () {
super();
_global.score = (_global.resetScore = 0);
crtLevel = 1;
loadLevel(crtLevel);
attachMovie("levelList", "levelList", getNextHighestDepth());
}
function loadLevel() {
levelCtt.attachMovie("level" + crtLevel, "gameLevel", 0);
levelCtt.tabChildren = false;
_global.score = _global.resetScore;
scoreStr.text = "SCORE: " + _global.score;
levelNum.text = "LEVEL: " + crtLevel;
_global.gameDat = SharedObject.getLocal("gameDat", "/");
if (crtLevel > _global.gameDat.data.levelNum) {
_global.gameDat.data.levelNum = crtLevel;
_global.gameDat.flush();
}
}
function lose() {
_global.resetScore = Math.round(_global.resetScore * 0.7);
attachMovie("lose", "lose", getNextHighestDepth());
}
function levelComplete() {
_global.resetScore = _global.score;
attachMovie("levelComplete", "levelComplete", getNextHighestDepth());
}
function addScore(addScore) {
_global.score = _global.score + addScore;
scoreStr.text = "SCORE: " + _global.score;
}
}
Symbol 488 MovieClip [__Packages.mainContainer.MainContainer] Frame 0
class mainContainer.MainContainer extends MovieClip
{
var crtTask, sndCtrl, _quality, attachMovie, getNextHighestDepth;
function MainContainer () {
super();
_global.score = 0;
_global.resetScore = 0;
crtTask = "mainPage";
loadMV("mainPage");
sndCtrl = new soundManage.SoundManage();
_quality = "HIGH";
}
function loadMV(MV) {
attachMovie(MV, MV, 0);
crtTask = MV;
}
function lose() {
attachMovie("lose", "lose", getNextHighestDepth());
}
}
Symbol 489 MovieClip [__Packages.soundManage.SoundManage] Frame 0
class soundManage.SoundManage
{
var isMusicPlay, isSoundPlay;
function SoundManage () {
_root.createEmptyMovieClip("mysound_mc", _root.getNextHighestDepth());
_root.createEmptyMovieClip("mymusic_mc", _root.getNextHighestDepth());
soundArray[0] = new Array();
soundArray[1] = new Array();
soundArray[2] = new Array();
musicArray[0] = new Array();
musicArray[1] = new Array();
musicArray[2] = new Array();
addMusic("main_s");
if (isMusicPlay == undefined) {
isMusicPlay = true;
playMusic("main_s", 9999);
}
if (isSoundPlay == undefined) {
isSoundPlay = true;
}
}
function addSound() {
switch (arguments.length) {
case 1 :
soundArray[0].push(arguments[0]);
_root.mysound_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mysound_mc.getNextHighestDepth());
var _local4 = new Sound(_root.mysound_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
soundArray[1].push(_local4);
soundArray[2].push(100);
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
soundArray[0].push(arguments[0]);
_root.mysound_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mysound_mc.getNextHighestDepth());
_local4 = new Sound(_root.mysound_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
_local4.setVolume(arguments[1]);
soundArray[1].push(_local4);
soundArray[2].push(arguments[1]);
}
}
function addMusic() {
switch (arguments.length) {
case 1 :
musicArray[0].push(arguments[0]);
_root.mymusic_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mymusic_mc.getNextHighestDepth());
var _local4 = new Sound(_root.mymusic_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
musicArray[1].push(_local4);
musicArray[2].push(100);
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
musicArray[0].push(arguments[0]);
_root.mymusic_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mymusic_mc.getNextHighestDepth());
_local4 = new Sound(_root.mymusic_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
_local4.setVolume(arguments[1]);
musicArray[1].push(_local4);
musicArray[2].push(arguments[1]);
}
}
function stopSound() {
isSoundPlay = false;
var _local2 = 0;
while (_local2 <= soundArray[1].length) {
soundArray[1][_local2].setVolume(0);
_local2++;
}
}
function stopMusic() {
isMusicPlay = false;
var _local2 = 0;
while (_local2 <= musicArray[1].length) {
musicArray[1][_local2].setVolume(0);
_local2++;
}
}
function returnSound() {
isSoundPlay = true;
var _local2 = 0;
while (_local2 < soundArray[1].length) {
soundArray[1][_local2].setVolume(soundArray[2][_local2]);
_local2++;
}
}
function returnMusic() {
isMusicPlay = true;
var _local2 = 0;
while (_local2 < musicArray[1].length) {
musicArray[1][_local2].setVolume(musicArray[2][_local2]);
_local2++;
}
}
function playSound() {
if (isSoundPlay == true) {
switch (arguments.length) {
case 1 :
var _local3 = 0;
while (_local3 <= soundArray[0].length) {
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].start(0, 1);
break;
}
_local3++;
}
break;
case 2 :
_local3 = 0;
while (_local3 <= soundArray[0].length) {
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].start(0, arguments[1]);
break;
}
_local3++;
}
break;
case 3 :
_local3 = 0;
for(;;){
if (_local3 > soundArray[0].length) {
break;
}
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].setVolume(arguments[2]);
soundArray[1][_local3].start(0, arguments[1]);
soundArray[1][_local3].setVolume(soundArray[2][_local3]);
break;
}
_local3++;
};
}
}
}
function playMusic() {
if (isMusicPlay == true) {
switch (arguments.length) {
case 1 :
var _local3 = 0;
while (_local3 <= musicArray[0].length) {
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].start(0, 1);
break;
}
_local3++;
}
break;
case 2 :
_local3 = 0;
while (_local3 <= musicArray[0].length) {
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].start(0, arguments[1]);
break;
}
_local3++;
}
break;
case 3 :
_local3 = 0;
for(;;){
if (_local3 > musicArray[0].length) {
break;
}
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].setVolume(arguments[2]);
musicArray[1][_local3].start(0, arguments[1]);
musicArray[1][_local3].setVolume(musicArray[2][_local3]);
break;
}
_local3++;
};
}
}
}
var soundArray = new Array();
var musicArray = new Array();
}
Symbol 490 MovieClip [__Packages.prop.starBonus] Frame 0
class prop.starBonus extends MovieClip
{
var tar, hitbox, unloadMovie;
function starBonus () {
super();
}
function setTar(p) {
tar = p;
}
function onEnterFrame() {
if (hitbox.hitTest(tar.ctn.hitbox)) {
_global.ctn.game.addScore(300);
unloadMovie();
}
}
}
Symbol 31 MovieClip Frame 1
onPress = function () {
FWGURL();
};
this.cacheAsBitmap = true;
Symbol 36 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
_root.stop();
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
Symbol 36 MovieClip Frame 146
_root.gotoAndStop("gamePage");
Symbol 41 MovieClip [dimond] Frame 1
#initclip 41
Object.registerClass("dimond", gemBox.dimond);
#endinitclip
Symbol 52 MovieClip [dFish] Frame 1
#initclip 21
Object.registerClass("dFish", fish.Dfish);
#endinitclip
dimond.setState("stop");
stop();
Symbol 54 MovieClip [stuff] Frame 1
#initclip 22
Object.registerClass("stuff", raft.stuff);
#endinitclip
Symbol 63 MovieClip [turner] Frame 1
#initclip 23
Object.registerClass("turner", prop.turner);
#endinitclip
Symbol 65 MovieClip [stoneBody] Frame 1
#initclip 24
Object.registerClass("stoneBody", stone.Stone);
#endinitclip
Symbol 202 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 209 Button
on (release) {
_global.ctn.loadMV("mainPage");
}
Symbol 214 MovieClip [levelList] Frame 1
_global.gameDat = SharedObject.getLocal("gameDat", "/");
if (!_global.gameDat.data.levelNum) {
_global.gameDat.data.levelNum = 1;
_global.gameDat.flush();
}
i = 1;
while (i <= 15) {
if (i <= _global.gameDat.data.levelNum) {
this["btn" + i].gotoAndStop("ok");
this["btn" + i].onPress = function () {
_global.ctn.game.crtLevel = Number(this._name.substr(3, 2));
_global.ctn.game.loadLevel();
_global.ctn.game.levelList.removeMovieClip();
};
this["btn" + i].useHandCursor = true;
} else {
this["btn" + i].gotoAndStop("no");
this["btn" + i].onPress = null;
this["btn" + i].useHandCursor = false;
}
this["btn" + i].ctt.gotoAndStop(i);
this["btn" + i].num.text = "LEVEL: " + i;
i++;
}
bg.onPress = function () {
};
bg.useHandCursor = false;
Symbol 216 MovieClip [raft] Frame 1
#initclip 25
Object.registerClass("raft", raft.Raft);
#endinitclip
Symbol 220 MovieClip [floatWood] Frame 1
#initclip 26
Object.registerClass("floatWood", raft.floatWood);
#endinitclip
raft0.setTar(_global.scene.diver);
Symbol 228 MovieClip [birdB] Frame 1
#initclip 27
Object.registerClass("birdB", bird.Bird);
#endinitclip
stop();
Symbol 229 Button
on (release) {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=seadiver", "_blank");
}
Symbol 240 Button
on (release) {
gotoAndStop ("submit");
}
on (rollOver) {
this._parent.icon._x = this._x - 50;
this._parent.icon._y = this._y;
}
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 25
stop();
Symbol 256 Button
on (press) {
gotoAndStop ("over");
}
Symbol 259 Button
on (release) {
viewHighscore();
}
Symbol 261 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;
}
Symbol 261 MovieClip Frame 3
function sendData() {
if (name_txt.text == "") {
tellEnterFrame.gotoAndPlay("shake");
return(undefined);
}
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;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
bg.onPress = function () {
};
bg.useHandCursor = false;
Symbol 264 MovieClip Frame 1
safeLine.unloadMovie();
Symbol 265 MovieClip [win] Frame 1
totalScore.text = "YOUR SCORE: " + _global.score;
var btnQtt = 3;
i = 2;
while (i <= btnQtt) {
this["btn" + i].onRollOver = function () {
icon._x = this._x - 50;
icon._y = this._y;
};
i++;
}
icon._x = this["btn" + btnQtt]._x - 50;
icon._y = this["btn" + btnQtt]._y;
stop();
Instance of Symbol 261 MovieClip "btn1" in Symbol 265 MovieClip [win] Frame 1
//component parameters
onClipEvent (construct) {
_game_name = "seadiver";
score_var = "_global.score";
}
Symbol 283 MovieClip [fish] Frame 1
#initclip 28
Object.registerClass("fish", fish.Fish);
#endinitclip
stop();
Symbol 286 MovieClip [gembox] Frame 1
#initclip 29
Object.registerClass("gembox", gemBox.GemBox);
#endinitclip
Symbol 289 MovieClip Frame 1
raft0.setTar(_global.scene.diver);
Symbol 290 MovieClip Frame 1
stuff.setTar(_global.scene.diver);
Symbol 293 MovieClip [aDown] Frame 1
#initclip 30
Object.registerClass("aDown", prop.Adown);
#endinitclip
Symbol 295 MovieClip [aUp] Frame 1
#initclip 31
Object.registerClass("aUp", prop.Aup);
#endinitclip
Symbol 304 MovieClip [goCtrl] Frame 1
#initclip 32
Object.registerClass("goCtrl", goCtrl.GoCtrl);
#endinitclip
Symbol 323 MovieClip Frame 1
stop();
Symbol 324 MovieClip [arrow] Frame 1
#initclip 33
Object.registerClass("arrow", diver.Diver);
#endinitclip
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 2
_global.ctn.sndCtrl.playSound("sndWater");
Symbol 332 MovieClip [level8] Frame 1
_global.scene = this;
diver.setWantGem(2);
diver.setWantDimond(2);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
fish2.setTar(this.diver);
aDown1.setTar(this.diver);
aDown1.setMove("left");
aDown2.setTar(this.diver);
aDown2.setMove("right");
aUp2.setTar(this.diver);
aUp2.setMove("left");
aUp1.setTar(this.diver);
aUp1.setMove("right");
Instance of Symbol 267 MovieClip "btn" in Symbol 332 MovieClip [level8] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 332 MovieClip [level8] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 332 MovieClip [level8] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 335 MovieClip [stone] Frame 1
#initclip 34
Object.registerClass("stone", stone.Stone);
#endinitclip
Symbol 336 MovieClip [level10] Frame 1
_global.scene = this;
diver.setWantGem(1);
diver.setWantDimond(2);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
fish2.setTar(this.diver);
stone1.setTar(this.diver);
stone2.setTar(this.diver);
aDown1.setTar(this.diver);
aDown2.setTar(this.diver);
aUp2.setTar(this.diver);
aUp1.setTar(this.diver);
dFish1.setDrct("left");
Instance of Symbol 267 MovieClip "btn" in Symbol 336 MovieClip [level10] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 336 MovieClip [level10] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 336 MovieClip [level10] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 337 MovieClip Frame 1
raft0.setTar(_global.scene.diver);
Symbol 338 MovieClip [level11] Frame 1
_global.scene = this;
diver.setWantGem(1);
diver.setWantDimond(2);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
stone1.setTar(this.diver);
stone2.setTar(this.diver);
aDown1.setTar(this.diver);
aDown2.setTar(this.diver);
aDown3.setTar(this.diver);
aUp1.setTar(this.diver);
floatWood1.setDrct("right");
Instance of Symbol 267 MovieClip "btn" in Symbol 338 MovieClip [level11] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 338 MovieClip [level11] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 338 MovieClip [level11] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 339 MovieClip [level12] Frame 1
_global.scene = this;
diver.setWantGem(2);
diver.setWantDimond(2);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
bird1.setTar(this.diver);
bird1.setArea([464, 55], [160, 80]);
stone1.setTar(this.diver);
stone2.setTar(this.diver);
aDown1.setTar(this.diver);
aDown2.setTar(this.diver);
aUp1.setTar(this.diver);
wood1.setTar(this.diver);
Instance of Symbol 267 MovieClip "btn" in Symbol 339 MovieClip [level12] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 339 MovieClip [level12] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 339 MovieClip [level12] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 349 MovieClip [gembox--2] Frame 1
#initclip 35
Object.registerClass("gembox--2", gemBox.dimond);
#endinitclip
Symbol 350 MovieClip [level13] Frame 1
_global.scene = this;
diver.setWantGem(1);
diver.setWantDimond(2);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
bird1.setTar(this.diver);
bird1.setArea([460, 50], [300, 100]);
stone1.setTar(this.diver);
stone2.setTar(this.diver);
stone3.setTar(this.diver);
aDown1.setTar(this.diver);
aDown2.setTar(this.diver);
aUp2.setTar(this.diver);
aUp1.setTar(this.diver);
floatWood1.setDrct("left");
dFish1.setDrct("left");
turner1.setTar(this.diver);
turner1.setTarPos(turner2._x, turner2._y);
turner1.setMove("left");
turner2.setTar(this.diver);
turner2.setTarPos(dimond1._x, dimond1._y);
dimond1.setState("stop");
Instance of Symbol 267 MovieClip "btn" in Symbol 350 MovieClip [level13] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 350 MovieClip [level13] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 350 MovieClip [level13] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 351 MovieClip [level14] Frame 1
_global.scene = this;
diver.setWantGem(2);
diver.setWantDimond(2);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
fish2.setTar(this.diver);
bird1.setTar(this.diver);
bird1.setArea([491, 50], [200, 100]);
stone1.setTar(this.diver);
stone2.setTar(this.diver);
aDown1.setTar(this.diver);
aDown2.setTar(this.diver);
aDown1.setMove("left");
aDown2.setMove("right");
aUp2.setTar(this.diver);
aUp1.setTar(this.diver);
aUp2.setMove("up");
aUp2.setMove("down");
turner1.setTar(this.diver);
turner1.setTarPos(turner1._x, turner1._y - 1);
Instance of Symbol 267 MovieClip "btn" in Symbol 351 MovieClip [level14] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 351 MovieClip [level14] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 351 MovieClip [level14] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 352 MovieClip [level15] Frame 1
_global.scene = this;
diver.setWantGem(0);
diver.setWantDimond(4);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
fish2.setTar(this.diver);
bird1.setTar(this.diver);
bird1.setArea([436, 50], [200, 100]);
aDown2.setTar(this.diver);
aDown2.setMove("right");
aUp1.setTar(this.diver);
aUp1.setMove("up");
aUp2.setTar(this.diver);
floatWood1.setDrct("left");
turner1.setTar(this.diver);
turner1.setTarPos(turner2._x, turner2._y);
turner1.setMove("left");
turner2.setTar(this.diver);
turner2.setTarPos(dimond3._x, dimond3._y);
turner3.setTar(this.diver);
turner3.setTarPos(turner3._x - 1, turner3._y);
dimond3.setState("stop");
Instance of Symbol 267 MovieClip "btn" in Symbol 352 MovieClip [level15] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 352 MovieClip [level15] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 352 MovieClip [level15] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 353 MovieClip [level9] Frame 1
_global.scene = this;
diver.setWantGem(1);
diver.setWantDimond(3);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
fish2.setTar(this.diver);
aDown1.setTar(this.diver);
aDown2.setTar(this.diver);
aUp1.setTar(this.diver);
aUp2.setTar(this.diver);
aUp3.setTar(this.diver);
Instance of Symbol 267 MovieClip "btn" in Symbol 353 MovieClip [level9] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 353 MovieClip [level9] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 353 MovieClip [level9] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 354 MovieClip [level6] Frame 1
_global.scene = this;
diver.setWantGem(1);
diver.setWantDimond(3);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
fish2.setTar(this.diver);
dFish1.setDrct("right");
dFish2.setDrct("left");
aUp1.setTar(this.diver);
aDown1.setTar(this.diver);
Instance of Symbol 267 MovieClip "btn" in Symbol 354 MovieClip [level6] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 354 MovieClip [level6] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 354 MovieClip [level6] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 355 MovieClip [level7] Frame 1
_global.scene = this;
diver.setWantGem(1);
diver.setWantDimond(3);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
dFish1.setDrct("right");
stone1.setTar(this.diver);
stone2.setTar(this.diver);
aUp1.setTar(this.diver);
aUp2.setTar(this.diver);
aDown2.setTar(this.diver);
aDown1.setTar(this.diver);
aDown3.setTar(this.diver);
aDown3.setMove("left");
turner3.setTar(this.diver);
turner3.setTarPos(dimond2._x, dimond2._y);
dimond2.setState("stop");
Instance of Symbol 267 MovieClip "btn" in Symbol 355 MovieClip [level7] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 355 MovieClip [level7] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 355 MovieClip [level7] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 356 MovieClip [level3] Frame 1
_global.scene = this;
diver.setWantGem(1);
diver.setWantDimond(2);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(2);
fish1.setTar(this.diver);
aUp1.setTar(this.diver);
aUp1.setMove("up");
aDown1.setTar(this.diver);
aDown1.setMove("left");
Instance of Symbol 267 MovieClip "btn" in Symbol 356 MovieClip [level3] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 356 MovieClip [level3] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 356 MovieClip [level3] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 358 MovieClip [stone2] Frame 1
#initclip 36
Object.registerClass("stone2", stone.Stone);
#endinitclip
Symbol 359 MovieClip [level4] Frame 1
_global.scene = this;
diver.setWantGem(1);
diver.setWantDimond(1);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
stone1.setTar(this.diver);
stone2.setTar(this.diver);
aUp1.setTar(this.diver);
aUp2.setTar(this.diver);
aUp3.setTar(this.diver);
aUp3.setMove("left");
aUp2.setMove("right");
aDown1.setTar(this.diver);
Instance of Symbol 267 MovieClip "btn" in Symbol 359 MovieClip [level4] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 359 MovieClip [level4] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 359 MovieClip [level4] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 360 MovieClip [level2] Frame 1
_global.scene = this;
diver.setWantGem(1);
diver.setWantDimond(1);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(2);
stone1.setTar(this.diver);
Instance of Symbol 267 MovieClip "btn" in Symbol 360 MovieClip [level2] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 360 MovieClip [level2] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 360 MovieClip [level2] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 361 MovieClip [level1] Frame 1
_global.scene = this;
diver.setWantGem(1);
diver.setWantDimond(1);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(2);
Instance of Symbol 267 MovieClip "btn" in Symbol 361 MovieClip [level1] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 361 MovieClip [level1] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 361 MovieClip [level1] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 303 MovieClip "p0" in Symbol 361 MovieClip [level1] Frame 1
on (press) {
this.startDrag();
}
on (release) {
this.stopDrag();
}
Symbol 362 MovieClip [level5] Frame 1
_global.scene = this;
diver.setWantGem(1);
diver.setWantDimond(2);
this.jumpMax = 4;
this.jumpCnt = 0;
diver.swimUpSpeed(1.5);
fish1.setTar(this.diver);
fish2.setTar(this.diver);
stone1.setTar(this.diver);
stone2.setTar(this.diver);
aUp2.setTar(this.diver);
aDown1.setTar(this.diver);
aDown2.setTar(this.diver);
aDown1.setMove("right");
aDown2.setMove("right");
dFish1.setDrct("right");
dFish2.setDrct("left");
floatWood1.setDrct("left");
Instance of Symbol 267 MovieClip "btn" in Symbol 362 MovieClip [level5] Frame 1
on (press) {
_parent.goCtrl.setStateL();
}
on (release) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
on (releaseOutside) {
_parent.diver.setDiver(_parent.goCtrl.setOver());
this._visible = false;
}
Instance of Symbol 271 MovieClip in Symbol 362 MovieClip [level5] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Instance of Symbol 271 MovieClip in Symbol 362 MovieClip [level5] Frame 1
onClipEvent (enterFrame) {
if (this._x < 604) {
this._x = this._x + 0.1;
} else {
this._x = -160;
}
}
Symbol 364 MovieClip Frame 1
_global.ctn.sndCtrl.addSound("sndWater", 100);
_global.ctn.sndCtrl.addSound("sndGet", 100);
_global.ctn.game.toolsBar.setSndPath(_global.ctn.sndCtrl);
_global.ctn.game.toolsBar.isStopVisible();
Symbol 365 Button
on (press) {
_global.resetScore = Math.round(_global.resetScore * 0.8);
_global.ctn.game.loadLevel();
}
Symbol 367 Button
on (release) {
menuBtnEvt();
}
Symbol 369 Button
on (release) {
stopMusic();
}
Symbol 372 Button
on (release) {
stopSound();
}
Symbol 375 Button
on (release) {
activateQltPanel();
}
Symbol 390 MovieClip Frame 1
function clearLight() {
trace("clear light");
bgLOW._alpha = 10;
bgMEDIUM._alpha = 10;
bgHIGH._alpha = 10;
bgBEST._alpha = 10;
}
function setLight(p_name) {
trace("setLight function " + p_name);
clearLight();
this["bg" + p_name]._alpha = 100;
}
var path = this._parent;
QLOW.onPress = function () {
path.setQlt("LOW");
this._parent._visible = false;
};
QMEDIUM.onPress = function () {
path.setQlt("MEDIUM");
this._parent._visible = false;
};
QHIGH.onPress = function () {
path.setQlt("HIGH");
this._parent._visible = false;
};
QBEST.onPress = function () {
path.setQlt("BEST");
this._parent._visible = false;
};
Symbol 393 MovieClip [toolsBar] Frame 1
#initclip 37
Object.registerClass("toolsBar", stateBar.toolsBar);
#endinitclip
Symbol 398 MovieClip [game] Frame 1
#initclip 38
Object.registerClass("game", levelCtn.LevelCtn);
#endinitclip
Instance of Symbol 397 MovieClip in Symbol 398 MovieClip [game] Frame 1
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 400 Button
on (release) {
_global.ctn.loadMV("game");
}
Symbol 402 Button
on (release) {
nextFrame();
}
Symbol 409 Button
on (release) {
prevFrame();
}
Symbol 416 MovieClip [instructions] Frame 1
stop();
Symbol 418 Button
on (release) {
_global.ctn.loadMV("mainPage");
}
Symbol 425 Button
on (release) {
_global.ctn.loadMV("credits");
}
Symbol 428 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 433 Button
on (release) {
if (_global.firstRun == undefined) {
_global.firstRun = "over";
_global.ctn.loadMV("instructions");
} else if (_global.firstRun == "over") {
_global.ctn.loadMV("game");
}
}
Symbol 434 Button
on (release) {
_global.firstRun = "over";
_global.ctn.loadMV("instructions");
}
Symbol 435 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 436 Button
on (release) {
getURL ("http://www.ifungames.com", "_blank");
}
Symbol 437 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 443 MovieClip [mainPage] Frame 1
var btnQtt = 6;
i = 1;
while (i <= btnQtt) {
this["btn" + i].onRollOver = function () {
icon._x = this._x - 50;
icon._y = this._y;
};
i++;
}
icon._x = this["btn" + btnQtt]._x - 50;
icon._y = this["btn" + btnQtt]._y;
Instance of Symbol 397 MovieClip in Symbol 443 MovieClip [mainPage] Frame 1
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 445 MovieClip [mCtn] Frame 1
#initclip 39
Object.registerClass("mCtn", mainContainer.MainContainer);
#endinitclip
Symbol 449 MovieClip [confirmToMenu] Frame 1
yesBtn.onPress = function () {
_global.gameClock.stopClock();
_global.ctn.loadMV("mainPage");
this._parent.removeMovieClip();
};
noBtn.onPress = function () {
this._parent.removeMovieClip();
};
back.onPress = function () {
};
back.useHandCursor = false;
stop();
Symbol 453 Button
on (release) {
viewHighscore();
}
Symbol 454 Button
on (press) {
_global.ctn.game.loadLevel();
this.removeMovieClip();
}
Symbol 457 MovieClip [lose] Frame 1
hideBtn.onPress = function () {
};
hideBtn.useHandCursor = false;
Symbol 457 MovieClip [lose] Frame 12
totalScore.text = "YOUR SCORE: " + _global.score;
var btnQtt = 4;
i = 2;
while (i <= btnQtt) {
this["btn" + i].onRollOver = function () {
icon._x = this._x - 50;
icon._y = this._y;
};
i++;
}
icon._x = this["btn" + btnQtt]._x - 50;
icon._y = this["btn" + btnQtt]._y;
stop();
Instance of Symbol 261 MovieClip "btn1" in Symbol 457 MovieClip [lose] Frame 12
//component parameters
onClipEvent (construct) {
_game_name = "seadiver";
score_var = "_global.score";
}
Symbol 461 Button
on (press) {
_global.ctn.game.crtLevel = _global.ctn.game.crtLevel + 1;
_global.ctn.game.loadLevel();
this.removeMovieClip();
}
Symbol 464 MovieClip [levelComplete] Frame 1
hideBtn.onPress = function () {
};
hideBtn.useHandCursor = false;
Symbol 464 MovieClip [levelComplete] Frame 12
totalScore.text = "YOUR SCORE: " + _global.score;
var btnQtt = 4;
i = 2;
while (i <= btnQtt) {
this["btn" + i].onRollOver = function () {
icon._x = this._x - 50;
icon._y = this._y;
};
i++;
}
icon._x = this["btn" + btnQtt]._x - 50;
icon._y = this["btn" + btnQtt]._y;
stop();
Instance of Symbol 261 MovieClip "btn1" in Symbol 464 MovieClip [levelComplete] Frame 12
//component parameters
onClipEvent (construct) {
_game_name = "seadiver";
score_var = "_global.score";
}
Symbol 466 MovieClip [starBonus] Frame 1
#initclip 40
Object.registerClass("starBonus", prop.starBonus);
#endinitclip
Symbol 470 MovieClip Frame 1
stop();