Frame 1
MochiAd.showPreGameAd({id:"fbaf7b49970ad019", res:"450x600", background:6845841, color:788068, outline:12695210, no_bg:false});
Instance of Symbol 24 MovieClip in Frame 2
//component parameters
onClipEvent (construct) {
bOpen = false;
}
Instance of Symbol 46 MovieClip in Frame 3
//component parameters
onClipEvent (construct) {
bOpen = true;
}
Instance of Symbol 5 MovieClip [ToolTipControl] in Frame 4
//component parameters
onClipEvent (construct) {
alpha = 100;
backgroudColor = 16777166 /* 0xFFFFCE */;
borderColor = 16777166 /* 0xFFFFCE */;
borderSize = 0;
color = 3355443 /* 0x333333 */;
curve = 4;
enabled = true;
errBackgroundColor = 13315630 /* 0xCB2E2E */;
errBorderColor = 13315630 /* 0xCB2E2E */;
errColor = 16777215 /* 0xFFFFFF */;
errFontSize = 12;
fontSize = 12;
isFollow = true;
isHtml = false;
isMouseDrag = false;
paddingBottom = 2;
paddingLeft = 5;
paddingRight = 5;
paddingTop = 2;
parent = "root";
shadowAlpha = 0.5;
shadowAngle = 80;
shadowBlurX = 7;
shadowBlurY = 5;
shadowColor = 3355443 /* 0x333333 */;
shadowDistance = 3;
shadowStrength = 1;
showTime = 0;
}
Frame 5
stop();
Symbol 5 MovieClip [ToolTipControl] Frame 1
#initclip 20
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0001\u0002() {
return(2686);
}
var \x01 = (-1902 + \x01\x02());
// swfAction0x03 // Unknown action
#endinitclip
Symbol 19 MovieClip Frame 1
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
Symbol 21 MovieClip Frame 1
function flash_loading(x, T, A) {
var _local1 = (Math.PI / T) * x;
return(A * Math.sin(_local1));
}
_level0.reserved.swapDepths(100);
_root.stop();
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
_alpha = 0;
mLoading._alpha = 0;
var nDownload = 0;
var _nDownload = 0;
var nTimeIn = 0;
onEnterFrame = function () {
_nDownload = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_alpha < 100) {
_alpha = (_alpha + 5);
nTimeIn = getTimer();
} else {
if (nDownload < _nDownload) {
nDownload = nDownload + (random(5) + 1);
(nDownload > _nDownload) && ((nDownload = _nDownload));
}
_alpha = 100;
tTxt.text = nDownload + " %";
mLoading._alpha = Math.abs(flash_loading(getTimer() - nTimeIn, 800, 100));
}
if (nDownload == 100) {
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 376 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
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 _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.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 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_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 _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
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.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_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 showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
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();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
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_failed();
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 = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
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) {
options.ad_failed();
_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 showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(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 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);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
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++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 377 MovieClip [__Packages.manage.SoundManage] Frame 0
class manage.SoundManage
{
var soundList, musicList, isMusicPlay, isSoundPlay;
function SoundManage () {
_root.createEmptyMovieClip("mysound_mc", _root.getNextHighestDepth());
_root.createEmptyMovieClip("mymusic_mc", _root.getNextHighestDepth());
soundList = new Object();
musicList = new Object();
addMusic("main_s");
if (isMusicPlay == undefined) {
isMusicPlay = true;
playMusic("main_s", 999999);
}
if (isSoundPlay == undefined) {
isSoundPlay = true;
}
}
function addMusicOverTime(str, timeNo, frameNo) {
var _local2 = musicList[str];
if (_local2) {
_local2.sound.soundManage = this;
_local2.sound.soundMc = _local2.mc;
_local2.sound.soundMc.soundTimeMax = frameNo;
_local2.sound.onSoundComplete = function () {
this.soundMc.soundObject = this;
this.soundMc.soundTime = 0;
this.soundMc.onEnterFrame = function () {
this.soundTime++;
if (this.soundTime >= this.soundTimeMax) {
this.soundObject.start(0, 1);
delete this.onEnterFrame;
}
};
};
}
}
function addSound() {
addSound2(soundList, arguments);
}
function addMusic() {
addSound2(musicList, arguments);
}
function addSound2(list, args) {
var _local10 = args.length;
var _local6 = -1;
while (_local6++ , _local6 < _local10) {
var _local4 = args[_local6];
if (typeof(_local4) == "string") {
var _local3 = (list[_local4] = {});
var _local5;
if (list == musicList) {
_local5 = _root.mymusic_mc;
} else {
_local5 = _root.mysound_mc;
}
_local3.mc = _local5.createEmptyMovieClip(_local4 + "_sound", _local5.getNextHighestDepth());
_local3.sound = new Sound(_local3.mc);
_local3.name = _local4;
_local3.sound.attachSound(_local3.name);
var _local7 = args[_local6 + 1];
if (typeof(_local7) == "number") {
_local3.vol = adjustVolume(_local7);
_local3.sound.setVolume(_local3.vol);
_local6++;
} else {
_local3.vol = 100;
}
trace((("\u52A0\u5165\u97F3\u6548\uFF1A" + _local4) + "\u97F3\u91CF\u4E3A\uFF1A") + _local3.sound.getVolume());
}
}
}
function stopSound() {
stopSound2(soundList, "stop", arguments);
}
function stopMusic() {
stopSound2(musicList, "volume", arguments);
}
function stopMusic2() {
stopSound2(musicList, "stop", arguments);
}
function stopSound2(list, action, args) {
switch (action) {
case "stop" :
if (args.length > 0) {
for (var _local3 in args) {
list[args[_local3]].sound.stop();
}
} else {
for (var _local3 in list) {
list[_local3].sound.stop();
}
}
break;
default :
if (args.length > 0) {
for (var _local3 in args) {
list[args[_local3]].sound.setVolume(0);
}
} else {
for (var _local3 in list) {
list[_local3].sound.setVolume(0);
}
}
}
}
function returnSound() {
isSoundPlay = true;
for (var _local2 in soundList) {
soundList[_local2].sound.setVolume(soundList[_local2].vol);
}
}
function returnMusic() {
isMusicPlay = true;
for (var _local2 in musicList) {
musicList[_local2].sound.setVolume(musicList[_local2].vol);
}
}
function adjustVolume(vol) {
if (isNaN(vol)) {
return(100);
}
if (vol > 100) {
return(100);
}
if (vol < 0) {
return(0);
}
return(vol);
}
function setSoundVol() {
setSoundVol2(soundList, arguments);
}
function setMusicVol() {
setSoundVol2(musicList, arguments);
}
function setSoundVol2(list, args) {
var _local9 = args.length;
if (_local9 > 0) {
if (_local9 == 1) {
var _local7 = adjustVolume(args[0]);
for (var _local4 in list) {
list[_local4].vol = _local7;
list[_local4].sound.setVolume(_local7);
}
} else {
var _local4 = -1;
while (_local4++ , _local4 < _local9) {
var _local3 = args[_local4];
if (typeof(_local3) == "string") {
var _local2 = list[_local3];
var _local6 = args[_local4 + 1];
if (typeof(_local6) == "number") {
_local2.vol = adjustVolume(_local6);
_local4++;
} else {
_local2.vol = 100;
}
_local2.sound.setVolume(_local2.vol);
}
trace((("\u8BBE\u7F6E\u97F3\u6548\uFF1A" + _local3) + "\u97F3\u91CF\u4E3A\uFF1A") + _local2.sound.getVolume());
}
}
}
}
function playSound() {
if (isSoundPlay == true) {
playSound2(soundList, arguments);
}
}
function playMusic() {
if (isMusicPlay == true) {
playSound2(musicList, arguments);
}
}
function playSound2(list, args) {
var _local5 = args[0];
var _local2 = args[1];
if (isNaN(_local2)) {
_local2 = 1;
}
var _local3 = args[2];
var _local4 = list[_local5];
_local4.sound.start(0, _local2);
if (!isNaN(_local3)) {
_local4.setVolume(adjustVolume(_local3));
}
}
function isTrueStopSound() {
stopSound2(soundList, "stop", arguments);
}
function isTrueStopMusic() {
stopSound2(musicList, "stop", arguments);
}
function clearSoundAndMusic() {
for (var _local3 in _root.mymusic_mc) {
removeMovieClip(_root.mymusic_mc[_local3]);
}
for (var _local3 in _root.mysound_mc) {
removeMovieClip(_root.mysound_mc[_local3]);
}
removeMovieClip(_root.mysound_mc);
removeMovieClip(_root.mymusic_mc);
soundList = null;
musicList = null;
delete soundList;
delete musicList;
}
}
Symbol 378 MovieClip [__Packages.Fade] Frame 0
class Fade
{
function Fade () {
}
static function start(_ob) {
var _local11 = false;
var _local9 = Stage.width;
var _local10 = Stage.height;
var _local13 = 0;
var _local12 = 0;
for (var _local6 in _ob) {
Fade[_local6] = _ob[_local6];
}
var _local7 = new flash.display.BitmapData(_local9, _local10, false, nColor);
_local7.draw(_root);
var _local3 = _root.createEmptyMovieClip("mClip_root" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var _local4 = _local3.createEmptyMovieClip("mClip_mask", 0);
var _local8 = _local3.createEmptyMovieClip("mClip_bmp", 1);
_local8.attachBitmap(_local7, 0);
_local3.nT = nInterval;
_local11 && (disableBtn(_local3));
_local3.bmpRoot = _local7;
_local3.nTime = 0;
_local3.finish = function () {
this.bmpRoot.dispose();
this.removeMovieClip();
};
_local3.switchDepth = function () {
if (this.getDepth() != (_root.getNextHighestDepth() - 1)) {
this.swapDepths(_root.getNextHighestDepth() - 1);
}
};
switch (random(4)) {
case 0 :
_local3.nRdm = random(2);
_local3.m_0 = createClip("m_", _local4, 0, 0);
_local3.m_1 = createClip("m_", _local4, 0, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 50 - Fade.trigonometric(this.nTime, this.nT, 50);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
} else {
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 1 :
_local3.nRdm = random(3);
_local3.nRdm_2 = random(4);
_local3.m_0 = createClip("m_", _local4, 1, 0, {_x:5, _y:5});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - Fade.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
(this.m_0._xscale = 150);
(this.m_0._yscale = this.nTemp);
break;
case 1 :
(this.m_0._xscale = this.nTemp);
(this.m_0._yscale = 150);
break;
case 2 :
this.m_0._xscale = (this.m_0._yscale = this.nTemp);
}
if (this.nRdm_2 == 3) {
this.m_0._rotation = 180 - Fade.trigonometric(this.nTime, this.nT, 180);
} else if (this.nRdm_2 == 2) {
this.m_0._rotation = Fade.trigonometric(this.nTime, this.nT, 180);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 2 :
_local3.nRdm = random(5);
_local3.m_0 = createClip("m_", _local4, 2, 0);
_local3.m_1 = createClip("m_", _local4, 2, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - Fade.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
break;
case 1 :
this.m_0._xscale = (this.m_1._yscale = this.nTemp);
break;
case 2 :
this.m_0._yscale = (this.m_1._xscale = this.nTemp);
break;
case 3 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
break;
case 4 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 3 :
_local3.nRdm = random(2);
_local3.m_0 = createClip("m_", _local4, 2, 0);
_local3.m_1 = createClip("m_", _local4, 2, 1, {_x:10, _y:10, _rotation:180});
_local3.m_2 = createClip("m_", _local4, 2, 2, {_x:0, _y:10, _rotation:-90});
_local3.m_3 = createClip("m_", _local4, 2, 3, {_x:10, _y:0, _rotation:90});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - Fade.trigonometric(this.nTime, this.nT, 100);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = (this.m_2._yscale = (this.m_3._yscale = this.nTemp)));
} else {
this.m_0._xscale = (this.m_1._xscale = (this.m_2._xscale = (this.m_3._xscale = this.nTemp)));
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
}
(_local4._width = _local9);
(_local4._height = _local10);
(_local4._x = _local13);
(_local4._y = _local12);
_local8.setMask(_local4);
}
static function disableBtn(_m) {
_m.onPress = null;
_m.enabled = false;
_m.hitArea = _root;
}
static function trigonometric(x, T, A, P) {
var _local2 = 0;
var _local1 = (Math.PI / T) * x;
if (!isNaN(P)) {
_local2 = P - _local1;
}
return(A * Math.sin(_local1 + _local2));
}
static function createClip(_s, _m, _nType, _nDepth, _ob) {
isNaN(_nDepth) && (_nDepth = _m.getNextHighestDepth());
isNaN(_nType) && (_nType = 0);
_m.createEmptyMovieClip(_s + _nDepth, _nDepth);
_m[_s + _nDepth].beginFill(0);
switch (_nType) {
case 0 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(10, 10);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
case 1 :
_m[_s + _nDepth].moveTo(-5, -5);
_m[_s + _nDepth].lineTo(-5, 5);
_m[_s + _nDepth].lineTo(5, 5);
_m[_s + _nDepth].lineTo(5, -5);
_m[_s + _nDepth].lineTo(-5, -5);
break;
case 2 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
}
_m[_s + _nDepth].endFill();
for (var _local5 in _ob) {
_m[_s + _nDepth][_local5] = _ob[_local5];
}
return(_m[_s + _nDepth]);
}
static var nColor = 0;
static var nInterval = 20;
}
Symbol 379 MovieClip [__Packages.manage.CommonManage] Frame 0
class manage.CommonManage
{
function CommonManage () {
}
static function startGame() {
if (_root.game.isIn == true) {
Fade.start();
if (_root.game.isSelectLevel == false) {
_root.game.gotoAndStop("gamestart");
} else {
_root.game.gotoAndStop("selectlevel");
}
} else {
Fade.start();
_root.game.gotoAndStop("Instructions");
}
}
static function pressInSkip() {
Fade.start();
if (_root.game.isSelectLevel == false) {
_root.game.gotoAndStop("gamestart");
} else {
_root.game.gotoAndStop("selectlevel");
}
}
static function pressIn() {
Fade.start();
_root.game.gotoAndStop("Instructions");
}
static function pressDown() {
getURL ("http://www.ifungames.com", "_blank");
}
static function pressAdd() {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
static function pressMore() {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
static function pressMainMenu() {
Fade.start();
_root.game.gotoAndStop("mainmenu");
}
static function viewHighscore() {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + manage.GameManage.gameName, "_blank");
}
}
Symbol 380 MovieClip [__Packages.manage.GameManage] Frame 0
class manage.GameManage extends MovieClip
{
var keyManage, score, levelMax, level, level_l, runTime, gotoAndStop, money;
function GameManage () {
super();
isSelectLevel = false;
isPause = true;
}
function init() {
keyManage = new manage.KeyManage();
isGameOver = false;
score = 0;
levelMax = 15;
level = 0;
level_l = 1;
runTime = 0;
nextLevel();
}
function onEnterFrame() {
if (isGameOver == false) {
if (isPause == false) {
}
}
}
function nextLevel() {
isPause = false;
clearAll();
addNextLevelScore();
level = level + 1;
if (level > levelMax) {
win();
return(undefined);
}
trace(("\u8FDB\u5165\u7B2C " + level) + " \u5173\uFF01");
}
function addNextLevelScore() {
}
function clearAll() {
}
function getLevel() {
return(level);
}
function win() {
trace("\u80DC\u5229\u4E86\uFF01");
isGameOver = true;
runTime = 0;
Fade.start();
gotoAndStop("win");
}
function gameOver() {
trace("gameover");
isGameOver = true;
runTime = 0;
Fade.start();
gotoAndStop("gameover");
}
function isAllOver() {
}
function addScore(no) {
if (!isNaN(no)) {
score = score + no;
if (score < 0) {
score = 0;
} else {
score = int(score);
}
flashUpdateScore(no);
}
}
function reduceScore(no) {
addScore(no * -1);
}
function clearScore() {
score = 0;
}
function flashUpdateScore(no) {
}
function addMoney(no) {
if (!isNaN(no)) {
money = money + no;
if (money < 0) {
money = 0;
} else {
money = int(money);
}
flashUpdateMoney(no);
}
}
function reduceMoney(no) {
addMoney(no * -1);
}
function flashUpdateMoney(no) {
}
function clearMoney() {
money = 0;
}
static var gameName = "monkey";
static var frameSpeed = 32;
var isGameOver = false;
var isPause = false;
var isSelectLevel = false;
static var levelScoreArray = new Array(0, 800, 1600, 2300, 3500, 4800, 5500, 6800, 8000, 10000);
static var levelMoneyArray = new Array(250, 260, 300, 340, 380, 430, 500, 580, 650, 720);
}
Symbol 381 MovieClip [__Packages.manage.KeyManage] Frame 0
class manage.KeyManage
{
var isRun, player;
function KeyManage () {
isRun = false;
setListener();
}
function setPlayer(player) {
this.player = player;
}
function getPlayer() {
return(player);
}
function setListener() {
if (_root.game.myListener == undefined) {
trace("\u6DFB\u52A0\u76D1\u542C\u5BF9\u8C61");
_root.game.myListener = new Object();
_root.game.myListener.onKeyDown = function () {
trace("keyDown");
if (_root.game.isGameOver == false) {
if (Key.isDown(80)) {
_root.game.menu_mc.p_btn.onRelease();
}
}
};
Key.addListener(_root.game.myListener);
}
}
function detectKeys() {
isRun = false;
if ((Key.isDown(39) || (Key.isDown(68))) || (Key.isDown(100))) {
player.moveRight();
} else if ((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(97))) {
player.moveLeft();
}
if ((Key.isDown(38) || (Key.isDown(87))) || (Key.isDown(119))) {
player.moveUp();
} else if ((Key.isDown(40) || (Key.isDown(83))) || (Key.isDown(115))) {
player.moveDown();
}
}
}
Symbol 382 MovieClip [__Packages.Monkey] Frame 0
class Monkey extends MovieClip
{
var t_time, _xscale, s_strong, r_rotate, yStep, allTime, _y, xStep, xShould, _x, g_speed, gotoAndStop, intervalId;
function Monkey () {
super();
}
function doJump() {
t_time = 0.2;
var _local3;
_local3 = (_xscale / 10) - 4;
s_strong = s_strong / _local3;
r_rotate = (r_rotate * Math.PI) / 180;
yStep = (-s_strong) * Math.sin(r_rotate);
trace("y0:" + yStep);
allTime = countAllTime(yStep, _y);
xStep = ((10 * Math.cos(r_rotate)) * 15) / allTime;
xShould = _x + ((10 * Math.cos(r_rotate)) * 15);
_root.game.jump_x = xShould;
_root.game.v_speed = Math.sqrt((yStep * yStep) + ((2 * g_speed) * 60));
gotoAndStop("jump");
intervalId = setInterval(this, "doMove", 30);
}
function countAllTime(num, numY) {
var _local4 = 0;
while ((numY + num) <= 540) {
numY = numY + num;
num = num + (g_speed * t_time);
_local4++;
}
return(_local4);
}
function doMove() {
if (_root.game.isPause == false) {
_x = _x + xStep;
_y = _y + yStep;
if ((_y + yStep) > 540) {
clearInterval(intervalId);
var _local4;
var _local3;
_local3 = _root.game.board._width / 2;
_local4 = _root.game.board._x - _x;
_y = 540 - (20 * (1 - (_local4 / _local3)));
_root.game.testJump();
}
yStep = yStep + ((g_speed + 2) * t_time);
}
updateAfterEvent();
}
function changeNum(num) {
var _local2;
_local2 = Math.floor(num);
if ((num - _local2) >= 0.5) {
num = _local2 + 1;
} else {
num = _local2;
}
return(num);
}
}
Symbol 383 MovieClip [__Packages.LittleMonkey] Frame 0
class LittleMonkey extends MovieClip
{
var t_time, back_y, isTestOver, isDelay, s_height, isShowMess, gotoAndStop, monkey_y, intervalId, yStep, _y, g_speed, s_heightMax, _rotation, onEnterFrame, foot, delayId, _x;
function LittleMonkey () {
super();
}
function doJump() {
t_time = 0.2;
back_y = _root.game.back._y;
isTestOver = false;
isDelay = false;
s_height = 0;
isShowMess = false;
_root.game.height_txt.text = s_height;
gotoAndStop("jump");
monkey_y = _root.game.monkey._y;
intervalId = setInterval(this, "doMove", 50);
}
function doMove() {
if (((_root.game.isGameOver == false) && (_root.game.isPause == false)) && (!isDelay)) {
if (yStep < 0) {
doMoveUp();
} else {
doMoveDown();
}
(((s_height - yStep) < 0) ? ((s_height = 0)) : ((s_height = s_height - yStep)));
_root.game.height_txt.text = Math.floor(s_height);
_root.game.height_txt._y = _y - 80;
if ((yStep < 0) && ((yStep + (g_speed * t_time)) >= 0)) {
yStep = 0;
s_heightMax = s_height;
} else {
yStep = yStep + (g_speed * t_time);
}
if (yStep > -15) {
((_rotation >= 170) ? ((_rotation = 180)) : ((_rotation = _rotation + 10)));
}
if ((yStep >= 0) && (yStep <= 15)) {
((!isTestOver) ? (testHit()) : 1);
} else if (yStep > 20) {
(((!isTestOver) && (!isShowMess)) ? (showMess()) : 1);
}
updateAfterEvent();
}
}
function doMoveUp() {
_root.game.back.cat.gotoAndStop(1);
if ((_y + yStep) <= 120) {
_y = 120;
_root.game.back._y = _root.game.back._y - yStep;
_root.game.board._y = _root.game.board._y - yStep;
_root.game.monkey._y = _root.game.monkey._y - yStep;
} else {
_y = _y + yStep;
}
}
function doMoveDown() {
_root.game.back.cat.gotoAndStop(2);
if ((_root.game.back._y - yStep) < back_y) {
_root.game.back._y = back_y;
_root.game.monkey._y = monkey_y;
_root.game.board._y = _root.game.all_xy.board.yNum;
if ((_y + yStep) < 550) {
_y = _y + yStep;
} else {
_y = 550;
if (_rotation == 180) {
gotoAndStop("fault");
doPlay();
}
clearInterval(intervalId);
if (!isTestOver) {
_root.game.back.animal.gotoAndPlay("bad");
_root.game.winTime = 0;
} else {
_root.game.back.animal.gotoAndPlay("good");
testLevel();
}
_root.game.doFade(_root.game.monkey);
}
} else {
_root.game.back._y = _root.game.back._y - yStep;
_root.game.board._y = _root.game.board._y - yStep;
_root.game.monkey._y = _root.game.monkey._y - yStep;
}
}
function doPlay() {
onEnterFrame = function () {
if ((_root.game.isGameOver == false) && (_root.game.isPause == false)) {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this.gotoAndStop(this._totalframes);
delete this.onEnterFrame;
}
}
};
}
function testHit() {
if (foot.hitTest(_root.game.back["lMonkey_" + _root.game.monkeyNum])) {
_root.game.soundManage.playSound("get_s");
_root.game.height_txt._visible = false;
_root.game.playTime = 0;
_root.game.monkeyNum++;
_root.game.winTime++;
var _local3 = _root.game.monkeyNum;
var _local4 = _root.game.monkey_style;
_root.game.back.attachMovie("lMonkey_" + _local4, "lMonkey_" + _local3, _local3);
_root.game.back["lMonkey_" + _local3]._x = _root.game.back.lMonkey_0._x;
_root.game.back["lMonkey_" + _local3]._y = (_root.game.back["lMonkey_" + (_local3 - 1)]._y + _root.game.back.lMonkey_0._height) - 5;
_root.game.back["lMonkey_" + _local3].gotoAndStop(2);
isTestOver = true;
isDelay = true;
delayId = setInterval(this, "delayOver", 2000);
_x = _x + 300;
if (_root.game.winTime >= 2) {
_root.game.score = _root.game.score + 50;
_root.game.show_mc.gotoAndPlay("jumpbonus");
_root.game.show_mc.winTime_txt.text = _root.game.winTime;
} else {
_root.game.score = _root.game.score + 20;
_root.game.show_mc.gotoAndPlay("greatjump");
}
_root.game.score_txt.text = _root.game.score;
}
}
function delayOver() {
isDelay = false;
clearInterval(delayId);
}
function testLevel() {
if (_root.game.monkeyNum == _root.game.levelList[_root.game.levelNum]) {
_root.game.levelUp();
}
}
function showMess() {
var _local3 = 590 - _root.game.back["lMonkey_" + _root.game.monkeyNum]._y;
if (s_heightMax > _local3) {
_root.game.show_mc.gotoAndPlay("toohigh");
} else if (s_heightMax < _local3) {
_root.game.show_mc.gotoAndPlay("toolow");
}
isShowMess = true;
}
}
Symbol 1 MovieClip [__Packages.hjw.view.controls.ToolTipControl] Frame 0
!!!ERROR
Symbol 6 MovieClip [__Packages.hjw.lang.Runnable] Frame 0
!!!ERROR
Symbol 7 MovieClip [__Packages.hjw.lang.Thread] Frame 0
!!!ERROR
Symbol 8 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
!!!ERROR
Symbol 9 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
!!!ERROR
Symbol 10 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
!!!ERROR
Symbol 11 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
!!!ERROR
Symbol 12 MovieClip [__Packages.mx.core.UIObject] Frame 0
!!!ERROR
Symbol 13 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
!!!ERROR
Symbol 14 MovieClip [__Packages.hjw.view.controls.ToolTip] Frame 0
!!!ERROR
Symbol 15 MovieClip [__Packages.hjw.view.controls.ToolTipManager] Frame 0
!!!ERROR
Symbol 24 MovieClip Frame 1
function isIn(domainName) {
return(((isInUrlFront(domainName) || (isInUrlFront("http://" + domainName))) || (isInUrlFront("http://www." + domainName))) || (isInUrlFront("www." + domainName)));
}
function isInUrlFront(str) {
var _local1 = _url;
_local1.toLowerCase();
str.toLowerCase();
return(_local1.indexOf(str) == 0);
}
_x = (Stage.width / 2);
_y = (Stage.height / 2);
this._visible = false;
if (((!bOpen) || (isIn("freeworldgroup.com"))) || (isIn("ifungames.com"))) {
_root.play();
} else {
this._visible = true;
_root.stop();
}
Symbol 46 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
if (bOpen) {
_root.stop();
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
} else {
_visible = false;
}
Symbol 46 MovieClip Frame 114
stop();
onEnterFrame = function () {
if (_alpha <= 0) {
_parent.play();
delete onEnterFrame;
} else {
_alpha = (_alpha - 5);
}
};
Symbol 83 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.freeworldgroup.com", "_blank");
};
Symbol 86 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 89 Button
on (release) {
Fade.start();
gotoAndStop ("credits");
}
Symbol 126 MovieClip Frame 22
stop();
Symbol 127 MovieClip [lMonkey_1] Frame 1
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 60
gotoAndStop (1);
Symbol 142 MovieClip Frame 90
gotoAndStop (1);
Symbol 151 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
var tempR;
var tempL;
var tempRO;
var tempX;
var tempY;
this.onEnterFrame = function () {
if (_parent.isGameOver == false) {
if (_parent.isPause == false) {
if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) {
tempX = Math.abs(_parent._xmouse - this._x);
tempY = Math.abs(_parent._ymouse - this._y);
tempR = Math.atan(tempY / tempX);
tempRO = Math.floor((Math.atan(tempY / tempX) * 180) / Math.PI);
tempL = Math.floor(tempY / Math.sin(tempR));
this.redArrow._rotation = 0;
this.redArrow._width = tempL;
this.redArrow._rotation = -tempRO;
this._parent.ro_txt.text = tempRO;
this._parent.stren_txt.text = tempL;
}
}
}
};
Symbol 155 MovieClip Frame 1
stop();
Symbol 179 MovieClip [LittleMonkey_1] Frame 1
#initclip 28
Object.registerClass("LittleMonkey_1", LittleMonkey);
#endinitclip
stop();
Symbol 179 MovieClip [LittleMonkey_1] Frame 65
_parent.gameStart();
stop();
Symbol 198 MovieClip [jumpMonkey_3] Frame 1
#initclip 21
Object.registerClass("jumpMonkey_3", Monkey);
#endinitclip
stop();
Symbol 198 MovieClip [jumpMonkey_3] Frame 34
_parent.gameStart();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 31
gotoAndStop (1);
Symbol 216 MovieClip Frame 61
gotoAndStop (1);
Symbol 216 MovieClip Frame 91
gotoAndStop (1);
Symbol 216 MovieClip Frame 123
gotoAndStop (1);
Symbol 216 MovieClip Frame 155
gotoAndStop (1);
Symbol 216 MovieClip Frame 188
gotoAndStop (1);
Symbol 237 Button
on (release) {
_root.game.isPause = false;
Fade.start();
_root.game.gotoAndStop("mainmenu");
}
Symbol 238 Button
on (release) {
_root.game.isPause = false;
this.gotoAndStop(1);
}
Symbol 241 MovieClip Frame 1
view_mc._visible = false;
stop();
Symbol 241 MovieClip Frame 2
stop();
Symbol 241 MovieClip Frame 3
stop();
Symbol 246 MovieClip Frame 1
function viewQ() {
switch (_root._quality) {
case "LOW" :
qView_mc.b1_mc._visible = true;
qView_mc.b2_mc._visible = false;
qView_mc.b3_mc._visible = false;
qView_mc.b4_mc._visible = false;
break;
case "MEDIUM" :
qView_mc.b2_mc._visible = true;
qView_mc.b1_mc._visible = false;
qView_mc.b3_mc._visible = false;
qView_mc.b4_mc._visible = false;
break;
case "HIGH" :
qView_mc.b3_mc._visible = true;
qView_mc.b2_mc._visible = false;
qView_mc.b1_mc._visible = false;
qView_mc.b4_mc._visible = false;
break;
case "BEST" :
qView_mc.b4_mc._visible = true;
qView_mc.b2_mc._visible = false;
qView_mc.b3_mc._visible = false;
qView_mc.b1_mc._visible = false;
}
}
qView_mc._visible = false;
if (_root.game.soundManage.isMusicPlay == true) {
notmusic_mc._visible = false;
}
if (_root.game.soundManage.isSoundPlay == true) {
notsound_mc._visible = false;
}
main_btn.onRelease = function () {
if (return_mc._currentframe == 1) {
return_mc.gotoAndStop(2);
_root.game.isPause = true;
} else if (return_mc._currentframe == 2) {
return_mc.gotoAndStop(1);
_root.game.isPause = false;
}
};
p_btn.onRelease = function () {
if (return_mc._currentframe == 1) {
return_mc.gotoAndStop(3);
_root.game.isPause = true;
} else if (return_mc._currentframe == 3) {
return_mc.gotoAndStop(1);
_root.game.isPause = false;
}
};
music_btn.onRelease = function () {
trace("\u4F60\u70B9\u51FB\u4E86\u97F3\u4E50\u6309\u94AE\uFF01");
if (_root.game.soundManage.isMusicPlay == true) {
_root.game.soundManage.stopMusic();
_root.game.soundManage.isMusicPlay = false;
notmusic_mc._visible = true;
} else {
_root.game.soundManage.returnMusic();
_root.game.soundManage.isMusicPlay = true;
notmusic_mc._visible = false;
}
};
sound_btn.onRelease = function () {
trace("\u4F60\u70B9\u51FB\u4E86\u97F3\u6548\u6309\u94AE\uFF01");
if (_root.game.soundManage.isSoundPlay == true) {
_root.game.soundManage.soundManage.stopSound();
_root.game.soundManage.isSoundPlay = false;
notsound_mc._visible = true;
} else {
_root.game.soundManage.soundManage.returnSound();
_root.game.soundManage.isSoundPlay = true;
notsound_mc._visible = false;
}
};
q_btn.onRelease = function () {
if (qView_mc._visible == false) {
qView_mc._visible = true;
qView_mc.onEnterFrame = function () {
if (!this.hit_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
this._visible = false;
this.onEnterFrame = null;
}
};
viewQ();
} else {
qView_mc._visible = false;
}
};
qView_mc.b1_btn.onRelease = function () {
_root._quality = "LOW";
viewQ();
};
qView_mc.b2_btn.onRelease = function () {
_root._quality = "MEDIUM";
viewQ();
};
qView_mc.b3_btn.onRelease = function () {
_root._quality = "HIGH";
viewQ();
};
qView_mc.b4_btn.onRelease = function () {
_root._quality = "BEST";
viewQ();
};
Symbol 262 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 79
gotoAndStop (1);
Symbol 279 MovieClip Frame 1
stop();
var highscore = _parent.score;
if (highscore <= 0) {
this._visible = false;
}
submit_btn.onRelease = function () {
gotoAndStop ("submit");
};
trace(highscore);
trace("http://www.freeworldgroup.com/score/index.asp?game=" + manage.GameManage.gameName);
Symbol 279 MovieClip Frame 3
function sendData() {
send_var.game = manage.GameManage.gameName;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
noname_mc.gotoAndPlay(2);
return(undefined);
}
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");
};
Symbol 279 MovieClip Frame 5
view_btn.onRelease = function () {
manage.CommonManage.viewHighscore();
};
Symbol 286 MovieClip Frame 68
stop();
Symbol 295 MovieClip [gameManage] Frame 1
#initclip 22
Object.registerClass("gameManage", manage.GameManage);
#endinitclip
_root.game = this;
if (_root.game.soundManage == undefined) {
var soundManage = (new manage.SoundManage());
_root.game.soundManage.addMusic("bgMusic", 30);
_root.game.soundManage.addSound("jump1_s");
_root.game.soundManage.addSound("jump_s");
_root.game.soundManage.addSound("get_s");
_root.game.soundManage.addSound("clock_s");
}
_root.game.soundManage.playMusic("bgMusic", 9999);
Instance of Symbol 87 MovieClip in Symbol 295 MovieClip [gameManage] Frame 1
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 295 MovieClip [gameManage] Frame 3
removeMovieClip(monkey);
removeMovieClip(littleMonkey);
var isPopup;
var isIn;
play_bt.onRelease = function () {
manage.CommonManage.startGame();
};
instr_bt.onRelease = function () {
manage.CommonManage.pressIn();
};
more_bt.onRelease = function () {
manage.CommonManage.pressMore();
};
downLoad_bt.onRelease = function () {
manage.CommonManage.pressDown();
};
add_bt.onRelease = function () {
manage.CommonManage.pressAdd();
};
view_bt.onRelease = function () {
manage.CommonManage.viewHighscore();
};
stop();
Symbol 295 MovieClip [gameManage] Frame 4
stop();
isIn = true;
skip_bt.onRelease = function () {
manage.CommonManage.pressInSkip();
};
menu_bt.onRelease = function () {
manage.CommonManage.pressMainMenu();
};
Symbol 295 MovieClip [gameManage] Frame 5
stop();
Symbol 295 MovieClip [gameManage] Frame 6
function gameInit() {
trace(_root.game.winTime);
if (playTime == 0) {
oldScale = oldScale + ((random(4) + 1) * 10);
((oldScale > 120) ? ((oldScale = (oldScale - 120) + 70)) : 1);
this.weight_txt.text = oldScale;
}
playTime++;
allMonkey--;
monkey_txt.text = allMonkey;
height_txt._visible = true;
var _local3 = (oldScale / 10) - 8;
this.attachMovie("jumpMonkey_" + _local3, "monkey", 1);
this.monkey._xscale = (this.monkey._yscale = oldScale);
this.monkey._x = all_xy.monkey.xNum;
this.monkey._y = all_xy.monkey.yNum;
this.monkey.gotoAndStop(1);
this.monkey._alpha = 0;
doFade(monkey);
monkey_style = random(2) + 1;
this.attachMovie("LittleMonkey_" + monkey_style, "littleMonkey", 2);
this.littleMonkey._x = all_xy.lMonkey.xNum;
this.littleMonkey._y = all_xy.lMonkey.yNum;
this.littleMonkey._rotation = all_xy.lMonkey.rNum;
this.littleMonkey.gotoAndStop(1);
this.littleMonkey._visible = true;
this.littleMonkey._alpha = 0;
doFade(littleMonkey);
this.board._x = all_xy.board.xNum;
this.board._y = all_xy.board.yNum;
this.board.gotoAndStop(1);
this.arrowBar.onRelease = function () {
monkey.s_strong = this.tempL;
monkey.r_rotate = this.tempRO;
monkey.g_speed = g_speed;
monkey.doJump();
_root.game.soundManage.playSound("jump_s");
delete this.onRelease;
};
}
function changeNum(num) {
var _local2;
_local2 = Math.floor(num);
if ((num - _local2) >= 0.5) {
num = _local2 + 1;
} else {
num = _local2;
}
return(num);
}
function testJump() {
var _local2;
var _local4;
var _local3;
_local2 = all_xy.board.xNum - jump_x;
_local3 = 3 * (littleMonkey._x - all_xy.board.xNum);
if (_local2 > (board._width / 2)) {
monkey._x = all_xy.board.xNum - (board._width / 2);
}
monkey.gotoAndStop("down");
board.gotoAndStop("afterJump");
((_local2 > (board._width / 2)) ? (_local2 = board._width / 2) : 1);
_local4 = (monkey._xscale / 10) - 4;
littleMonkey.yStep = (((-_local4) * v_speed) * _local2) / _local3;
trace((((((("L=" + _local3) + "tempD=") + _local2) + "speed=") + v_speed) + "____V=") + littleMonkey.yStep);
littleMonkey.g_speed = g_speed;
littleMonkey.doJump();
_root.game.soundManage.playSound("jump1_s");
initFruits("stop_str");
}
function gameStart() {
if (allMonkey == 0) {
_root.game.isGameOver = true;
}
if (_root.game.isGameOver == false) {
if (_root.game.isPause == false) {
gameInit();
}
} else {
Fade.start();
this.gotoAndStop("gameover");
}
}
function levelUp() {
score = score + (second + (10 * allMonkey));
score_txt.text = score;
second = second + 120;
allMonkey = allMonkey + 10;
show_mc.gotoAndPlay("levelup");
levelNum++;
if (levelNum >= 6) {
Fade.start();
this.gotoAndStop("win");
}
}
function timeControl() {
if (_root.game.isPause == false) {
if (second > 0) {
second--;
back.time_txt.text = second;
} else {
if (second == 0) {
show_mc.gotoAndPlay("timesup");
_root.game.isGameOver = true;
_root.game.soundManage.playSound("clock_s");
}
second--;
if (second <= -3) {
clearInterval(timeId);
Fade.start();
this.gotoAndStop("gameover");
}
}
}
}
function doFade(mc) {
var tempSpeed;
((mc._alpha == 0) ? ((tempSpeed = 5)) : ((tempSpeed = -5)));
mc.onEnterFrame = function () {
this._alpha = this._alpha + tempSpeed;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
} else if (this._alpha <= 0) {
this._alpha = 0;
delete this.onEnterFrame;
}
};
}
this.init();
var g_speed = 6;
var jump_x;
var v_speed;
var monkeyNum = 0;
var oldScale = 80;
var playTime = 0;
var second = 120;
var timeId;
var allMonkey = 10;
var monkey_style;
var levelList = [1, 4, 9, 16, 25, 35];
var levelNum = 0;
var winTime = 0;
this.score = 0;
this.score_txt.text = this.score;
var all_xy = new Object();
all_xy.board = {xNum:this.board._x, yNum:this.board._y};
all_xy.monkey = {xNum:this.station_monkey._x, yNum:this.station_monkey._y};
all_xy.lMonkey = {xNum:this.sMonkey._x, yNum:this.sMonkey._y, rNum:this.sMonkey._rotation};
clearInterval(timeId);
timeId = setInterval(this, "timeControl", 1000);
gameStart();
stop();
Symbol 295 MovieClip [gameManage] Frame 7
stop();
removeMovieClip(monkey);
removeMovieClip(littleMonkey);
score_txt.text = score;
monkeyNum_txt.text = monkeyNum;
menu_bt.onRelease = function () {
manage.CommonManage.pressMainMenu();
};
more_bt.onRelease = function () {
manage.CommonManage.pressMore();
};
downLoad_bt.onRelease = function () {
manage.CommonManage.pressDown();
};
add_bt.onRelease = function () {
manage.CommonManage.pressAdd();
};
view_bt.onRelease = function () {
manage.CommonManage.viewHighscore();
};
Instance of Symbol 279 MovieClip in Symbol 295 MovieClip [gameManage] Frame 7
//component parameters
onClipEvent (construct) {
_game_name = "dfinder2";
score_var = "_root.game.score";
}
Symbol 295 MovieClip [gameManage] Frame 8
stop();
removeMovieClip(monkey);
removeMovieClip(littleMonkey);
score_txt.text = score;
monkeyNum_txt.text = monkeyNum;
stop();
menu_bt.onRelease = function () {
manage.CommonManage.pressMainMenu();
};
more_bt.onRelease = function () {
manage.CommonManage.pressMore();
};
downLoad_bt.onRelease = function () {
manage.CommonManage.pressDown();
};
add_bt.onRelease = function () {
manage.CommonManage.pressAdd();
};
view_bt.onRelease = function () {
manage.CommonManage.viewHighscore();
};
Symbol 295 MovieClip [gameManage] Frame 9
stop();
menu_bt.onRelease = function () {
manage.CommonManage.pressMainMenu();
};
Symbol 299 MovieClip Frame 22
stop();
Symbol 300 MovieClip [lMonkey_2] Frame 1
stop();
Symbol 317 MovieClip [LittleMonkey_2] Frame 1
#initclip 23
Object.registerClass("LittleMonkey_2", LittleMonkey);
#endinitclip
stop();
Symbol 317 MovieClip [LittleMonkey_2] Frame 65
_parent.gameStart();
stop();
Symbol 330 MovieClip [jumpMonkey_2] Frame 1
#initclip 24
Object.registerClass("jumpMonkey_2", Monkey);
#endinitclip
stop();
Symbol 330 MovieClip [jumpMonkey_2] Frame 33
_parent.gameStart();
Symbol 339 MovieClip [jumpMonkey_0] Frame 1
#initclip 25
Object.registerClass("jumpMonkey_0", Monkey);
#endinitclip
stop();
Symbol 339 MovieClip [jumpMonkey_0] Frame 32
_parent.gameStart();
Symbol 357 MovieClip [jumpMonkey_1] Frame 1
#initclip 26
Object.registerClass("jumpMonkey_1", Monkey);
#endinitclip
stop();
Symbol 357 MovieClip [jumpMonkey_1] Frame 32
_parent.gameStart();
Symbol 369 MovieClip [jumpMonkey_4] Frame 1
#initclip 27
Object.registerClass("jumpMonkey_4", Monkey);
#endinitclip
stop();
Symbol 369 MovieClip [jumpMonkey_4] Frame 33
_parent.gameStart();
Symbol 375 MovieClip Frame 1
stop();