Frame 1
MochiAd.showPreGameAd({id:"ed6572cdcdf8e100", res:"620x550"});
Instance of Symbol 45 MovieClip in Frame 2
//component parameters
onClipEvent (construct) {
bOpen = false;
}
Instance of Symbol 68 MovieClip in Frame 3
//component parameters
onClipEvent (construct) {
bOpen = false;
}
Symbol 16 MovieClip [MDie] Frame 1
#initclip 18
Object.registerClass("MDie", Fwg.FlyMonkey);
#endinitclip
Symbol 35 MovieClip Frame 21
_root.game.soundManage.playSound("sdEat");
Symbol 35 MovieClip Frame 37
Global.GAME.gameOver();
this._parent.removeMovieClip();
Symbol 36 MovieClip [monkeyEat] Frame 1
stop();
Symbol 38 MovieClip [Logo] Frame 1
if (bUrl) {
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
}
this.cacheAsBitmap = true;
Symbol 42 MovieClip Frame 1
function flash_loading(x, T, r) {
var _local1 = T / 2;
var _local2 = (-r) / (_local1 * _local1);
return((_local2 * Math.pow((x % T) - _local1, 2)) + r);
}
_root.stop();
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
mLogo._alpha = 0;
mLoading._alpha = 0;
var nDownload;
var sDownload = "";
onEnterFrame = function () {
nDownload = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (nDownload == 100) {
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
delete this.onEnterFrame;
} else if (mLogo._alpha < 100) {
mLogo._alpha = mLogo._alpha + 5;
} else {
mLogo._alpha = 100;
sDownload = nDownload + " %";
mLoading._alpha = flash_loading(getTimer(), 800, 100);
}
};
Instance of Symbol 38 MovieClip [Logo] "mLogo" in Symbol 42 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
bUrl = true;
}
Symbol 419 MovieClip [__Packages.Global] Frame 0
class Global
{
function Global () {
}
static function playSound(_s) {
SOUND.attachSound(_s);
SOUND.start();
}
static function SUBMIT(_s, _n) {
if (_s.length > 0) {
var _local1 = new LoadVars();
var _local2 = new LoadVars();
_local1.game = GAMENAME;
trace((_s + "__________") + _n);
_local1.score = _n;
_local1.name = _s;
_local1.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", _local2, "POST");
_local2.onLoad = function () {
Global.SUBMITEND();
};
return(true);
}
return(false);
}
static function SUBMITEND() {
}
static function SAVE(_ob) {
var _local1 = SharedObject.getLocal(GAMENAME + "_data", "/");
_local1.data.game = _ob;
_local1.flush();
}
static function LOAD() {
var _local1 = SharedObject.getLocal(GAMENAME + "_data", "/");
return(_local1.data.game);
}
static function ISSAVE() {
var _local1 = SharedObject.getLocal(GAMENAME + "_data", "/");
return(_local1.data.game != undefined);
}
static function DEL() {
var _local1 = SharedObject.getLocal(GAMENAME + "_data", "/");
_local1.clear();
}
static function VIEWSCORE() {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + GAMENAME, "_blank");
}
static function FWGURL() {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
static function ADDGAME() {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
static function DOWNLOAD() {
getURL ("http://www.ifungames.com", "_blank");
}
static var MUSIC = new Sound();
static var SOUND = new Sound();
static var GAMENAME = "giraffe";
static var WIDTH = Stage.width;
static var HEIGHT = Stage.height;
}
Symbol 420 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 421 MovieClip [__Packages.Fwg.FlyMonkey] Frame 0
class Fwg.FlyMonkey extends MovieClip
{
var rx, ry, _x, _y, _xscale, _yscale, removeMovieClip;
function FlyMonkey () {
super();
rx = random(12) - 6;
ry = random(8) * -1;
}
function run() {
_x = _x + rx;
_y = _y + ry;
ry = ry + 0.4;
}
function onEnterFrame() {
_xscale = _xscale + 20;
_yscale = _xscale;
run();
if (_y >= 580) {
removeMovieClip();
}
}
}
Symbol 422 MovieClip [__Packages.Common] Frame 0
class Common
{
function Common () {
}
static function enabledFor(_b, _m, _mHit, _nDepth) {
(_m == undefined) && (_m = _root);
(_mHit == undefined) && (_mHit = _root);
(_nDepth == undefined) && (_nDepth = _m.getNextHighestDepth());
if (_b) {
_m.createEmptyMovieClip("mEnabled", _nDepth);
_m.mEnabled.enabled = false;
_m.mEnabled.hitArea = _mHit;
_m.mEnabled.onPress = function () {
};
updateAfterEvent();
} else {
_m.mEnabled.removeMovieClip();
updateAfterEvent();
}
}
static function changeQ() {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "BEST";
break;
case "BEST" :
_root._quality = "LOW";
}
return(_root._quality);
}
static function mask() {
var bmpRoot = (new flash.display.BitmapData(Stage.width, Stage.height, false, 0));
bmpRoot.draw(_root);
var _local3 = _root.createEmptyMovieClip("mClip_mask", _root.getNextHighestDepth());
var mClip_bmp = _root.createEmptyMovieClip("mClip_bmp", _root.getNextHighestDepth());
mClip_bmp.attachBitmap(bmpRoot, 0);
_local3.bmpRoot = bmpRoot;
_local3.mClip_bmp = mClip_bmp;
_local3.nTime = 0;
_local3.nT = 20;
_local3.ready = function () {
this.mClip_bmp.setMask(this);
Common.enabledFor(true);
};
_local3.finish = function () {
this.mClip_bmp.removeMovieClip();
this.bmpRoot.dispose();
Common.enabledFor(false);
this.removeMovieClip();
};
switch (random(4)) {
case 0 :
_local3.nRdm = random(2);
createClip("m_", _local3, 0, 0);
createClip("m_", _local3, 0, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
if (this.nTime == 0) {
this.ready();
}
this.nTime++;
this.nTemp = 50 - Common.unlinearCycle(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();
delete this.onEnterFrame;
}
};
break;
case 1 :
_local3.nRdm = random(3);
_local3.nRdm_2 = random(4);
createClip("m_", _local3, 1, 0, {_x:5, _y:5});
_local3.onEnterFrame = function () {
if (this.nTime == 0) {
this.ready();
}
this.nTime++;
this.nTemp = 100 - Common.unlinearCycle(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 - Common.unlinearCycle(this.nTime, this.nT, 180);
} else if (this.nRdm_2 == 2) {
this.m_0._rotation = Common.unlinearCycle(this.nTime, this.nT, 180);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
delete this.onEnterFrame;
}
};
break;
case 2 :
_local3.nRdm = random(5);
createClip("m_", _local3, 2, 0);
createClip("m_", _local3, 2, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
if (this.nTime == 0) {
this.ready();
}
this.nTime++;
this.nTemp = 100 - Common.unlinearCycle(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();
delete this.onEnterFrame;
}
};
break;
case 3 :
_local3.nRdm = random(2);
createClip("m_", _local3, 2, 0);
createClip("m_", _local3, 2, 1, {_x:10, _y:10, _rotation:180});
createClip("m_", _local3, 2, 2, {_x:0, _y:10, _rotation:-90});
createClip("m_", _local3, 2, 3, {_x:10, _y:0, _rotation:90});
_local3.onEnterFrame = function () {
if (this.nTime == 0) {
this.ready();
}
this.nTime++;
this.nTemp = 100 - Common.unlinearCycle(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();
delete this.onEnterFrame;
}
};
break;
}
(_local3._width = Stage.width);
(_local3._height = Stage.height);
}
static function createClip(_s, _m, _nType, _nDepth, _ob) {
(_nDepth == undefined) && (_nDepth = _m.getNextHighestDepth());
(_nType == undefined) && (_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 function addClip(_s, _m, oBject, _nDepth) {
(_nDepth == undefined) && (_nDepth = _m.getNextHighestDepth());
return(_m.attachMovie(_s, _s + _nDepth, _nDepth, oBject));
}
static function clearAllClip(_m, _bAll) {
for (var _local3 in _m) {
if (_bAll) {
_m[_local3].swapDepths(0);
}
_m[_local3].removeMovieClip();
}
}
static function drawRect() {
var _local3 = arguments[0];
var _local2 = arguments[1];
var _local4;
var _local5;
var _local6;
var _local7;
switch (_local2.constructor) {
case flash.geom.Rectangle :
_local4 = _local2.x;
_local5 = _local2.y;
_local6 = _local2.x + _local2.width;
_local7 = _local2.y + _local2.height;
break;
case Number :
_local4 = _local2;
_local5 = arguments[2];
_local6 = arguments[3];
_local7 = arguments[4];
break;
default :
_local4 = _local2.xMin;
_local5 = _local2.yMin;
_local6 = _local2.xMax;
_local7 = _local2.yMax;
}
_local3.moveTo(_local4, _local5);
_local3.lineTo(_local6, _local5);
_local3.lineTo(_local6, _local7);
_local3.lineTo(_local4, _local7);
_local3.lineTo(_local4, _local5);
}
static function getBmdHitRect(bg, obj) {
var _local2 = getContainBmd(bg, obj, 10, 10);
_root.attachBitmap(_local2, 0);
return(_local2.getColorBoundsRect(4294967295, 4278190080));
}
static function getContainBmd(bg, obj, bm1, bm2) {
var _local1 = obj.getBounds(obj);
var _local3 = new flash.geom.Rectangle(_local1.xMin, _local1.yMin, _local1.xMax - _local1.xMin, _local1.yMax - _local1.yMin);
var _local4 = new flash.display.BitmapData(_local3.width, _local3.height, true, 0);
var _local6 = bg.transform.concatenatedMatrix;
var _local2 = new flash.geom.Matrix(1, 0, 0, 1, -_local3.x, -_local3.y);
_local4.draw(obj, _local2, null, bm1);
_local2.tx = _local2.tx * -1;
_local2.ty = _local2.ty * -1;
var _local7 = obj.transform.concatenatedMatrix;
_local2.concat(_local7);
_local2.invert();
_local6.concat(_local2);
_local4.draw(bg, _local6, null, bm2);
return(_local4);
}
static function removeFixMc(mc) {
mc.swapDepths(mc._parent.getNextHighestDepth());
mc.removeMovieClip();
}
static function localToLocal(p, mc1, mc2) {
mc1.localToGlobal(p);
mc2.globalToLocal(p);
}
static function np(_n) {
isNaN(_n) && (_n = 1);
return(((random(2) > 0) ? (_n) : (-_n)));
}
static function rdm_2(a, b) {
return((Math.random() * (b - a)) + a);
}
static function rdm_0(a, l) {
return((a - (Math.random() * l)) + (l / 2));
}
static function rdm_a(a1, a2, A) {
var _local3 = 0;
var _local5 = Math.random();
var _local4 = 0;
var _local2 = A.concat();
for (var _local6 in _local2) {
var _local1 = 0;
while (_local1 < Number(_local6)) {
_local2[_local6] = _local2[_local6] + _local2[_local1];
_local1++;
}
(_local3 < _local2[_local6]) && (_local3 = _local2[_local6]);
_local2[_local6] = _local2[_local6] / _local3;
if (_local5 >= _local2[_local6]) {
_local4 = Number(_local6) + 1;
break;
}
}
return(a1 + ((_local4 * (a2 - a1)) / (_local2.length - 1)));
}
static function equal(_ob1, _ob2) {
for (var _local3 in _ob1) {
trace((((_local3 + "____") + _ob1[_local3]) + "____") + _ob2[_local3]);
if (_ob1[_local3] != _ob2[_local3]) {
return(false);
}
}
return(true);
}
static function formatNumber(_n, _d, _nMin, _nMax) {
_n = _n + _d;
if (_n < _nMin) {
_n = _nMin;
} else if (_n > _nMax) {
_n = _nMax;
}
return(_n);
}
static function removeArray(_a, _ai) {
for (var _local2 in _a) {
if (_a[_local2] == _ai) {
_a.splice(int(_local2), 1);
return(-1);
}
}
return(((_local2 == undefined) ? 0 : 1));
}
static function forIn(_a, _s, _b, _ob) {
var _local2 = [];
for (var _local3 in _a) {
if (((_a[_local3] == undefined) || (!_a[_local3][_s](_ob))) && (_b)) {
_local2.push(_local3);
}
}
if (_b) {
for (var _local3 in _local2) {
_a.splice(int(_local2[_local3]), 1);
}
return(-_local3);
}
return(((_local3 == undefined) ? 0 : 1));
}
static function evaUndf(_ob, _ob_new) {
if (_ob == undefined) {
return(_ob_new);
}
return(_ob);
}
static function distance(x0, y0, xt, yt) {
return(Math.sqrt(Math.pow(xt - x0, 2) + Math.pow(yt - y0, 2)));
}
static function side_min(x0, y0, xt, yt) {
return(Math.min(Math.abs(xt - x0), Math.abs(yt - y0)));
}
static function side_max(x0, y0, xt, yt) {
return(Math.max(Math.abs(xt - x0), Math.abs(yt - y0)));
}
static function rFloor(r) {
if (r >= Math.PI) {
r = r - (Math.PI*2);
}
if (r <= -3.14159265358979) {
r = r + (Math.PI*2);
}
return(r);
}
static function rFloor_n(r) {
if (r >= 180) {
r = r - 360;
}
if (r <= -180) {
r = r + 360;
}
return(r);
}
static function s_b(n, a, b) {
if ((a < n) && (n < b)) {
return(0);
}
if (n <= a) {
return(-1);
}
return(1);
}
static function vpNum(_n, _t) {
isNaN(_t) && (_t = 1);
if (_n == 0) {
return(0);
}
if (_n > 0) {
return(_t);
}
return(-_t);
}
static function formatTime(_n) {
var _local3;
var _local4;
var _local2;
if (_n < 60) {
_local3 = 0;
_local4 = _local3;
_local2 = _n;
} else if (_n < 3600) {
_local3 = 0;
_local4 = Math.floor(_n / 60);
_local2 = _n % 60;
} else {
_local3 = Math.floor(_n / 3600);
_local4 = Math.floor(_n / 60) % 60;
_local2 = _n % 60;
}
var _local5 = ((_local3 < 10) ? ("0" + _local3) : (_local3));
var _local7 = ((_local4 < 10) ? ("0" + _local4) : (_local4));
var _local6 = ((_local2 < 10) ? ("0" + _local2) : (_local2));
return((((_local5 + ":") + _local7) + ":") + _local6);
}
static function unlinearCycle(x, T, r) {
var _local1 = T / 2;
var _local2 = (-r) / (_local1 * _local1);
return((_local2 * Math.pow((x % T) - _local1, 2)) + r);
}
static function linearCycle(x, T, r) {
var _local1 = T / 2;
if ((x % T) > _local1) {
return((1 - ((x % _local1) / _local1)) * r);
}
if ((x % T) < _local1) {
return(((x % _local1) / _local1) * r);
}
return(r);
}
static function parabolaRot(x0, y0, xt, yt, nV, nG) {
var _local5 = xt - x0;
var _local7 = yt - y0;
var _local2 = ((nG * _local5) * _local5) / ((2 * nV) * nV);
var _local1 = _local5;
var _local6 = _local2 - _local7;
var _local4 = (_local1 * _local1) - ((4 * _local2) * _local6);
if (_local4 < 0) {
return(undefined);
}
var _local3 = new Object();
if (_local5 > 0) {
_local3.x1 = Math.atan(((-_local1) - Math.sqrt(_local4)) / (2 * _local2));
_local3.x2 = Math.atan(((-_local1) + Math.sqrt(_local4)) / (2 * _local2));
} else {
_local3.x1 = Math.atan(((-_local1) - Math.sqrt(_local4)) / (2 * _local2)) - Math.PI;
_local3.x2 = Math.atan(((-_local1) + Math.sqrt(_local4)) / (2 * _local2)) - Math.PI;
}
return(_local3);
}
static function deepObjectCopy(obj) {
if ((((typeof(obj) != "object") || (obj instanceof Button)) || (obj instanceof TextField)) || (obj instanceof MovieClip)) {
return(obj);
}
var _local3;
if (obj instanceof Boolean) {
_local3 = new Boolean(Boolean.prototype.valueOf.call(obj));
} else if (obj instanceof Number) {
_local3 = new Number(Number.prototype.valueOf.call(obj));
} else if (obj instanceof String) {
_local3 = new String(String.prototype.valueOf.call(obj));
} else if (obj.__constructor__) {
if (typeof(obj.clone) == "function") {
_local3 = obj.clone();
if (_local3.__proto__ == obj.__proto__) {
return(_local3);
}
}
_local3 = new obj.__constructor__();
} else if (obj instanceof Array) {
_local3 = [];
} else {
_local3 = {};
}
for (var _local4 in obj) {
if (obj.hasOwnProperty(_local4)) {
_local3[_local4] = arguments.callee(obj[_local4]);
}
}
return(_local3);
}
static var a2r = 57.2957795130823;
static var p0 = new flash.geom.Point();
static var bf = new flash.filters.BlurFilter();
static var cf = new flash.filters.ConvolutionFilter(3, 3, [1, 1, 1, 1, 30, 1, 1, 1, 1], 38);
static var dirArr = [[-1, 0], [0, -1], [1, 0], [0, 1]];
}
Symbol 423 MovieClip [__Packages.manage.SoundManage] Frame 0
class manage.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", 999999);
}
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);
trace((("\u52A0\u5165\u97F3\u6548\uFF1A" + arguments[0]) + "\u97F3\u91CF\u4E3A\uFF1A") + _local4.getVolume());
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]);
trace((("\u52A0\u5165\u97F3\u6548\uFF1A" + arguments[0]) + "\u97F3\u91CF\u4E3A\uFF1A") + _local4.getVolume());
}
}
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);
trace((("\u52A0\u5165\u97F3\u4E50\uFF1A" + arguments[0]) + "\u97F3\u91CF\u4E3A\uFF1A") + _local4.getVolume());
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]);
trace((("\u52A0\u5165\u97F3\u6548\uFF1A" + arguments[0]) + "\u97F3\u91CF\u4E3A\uFF1A") + _local4.getVolume());
}
}
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 setSoundVol() {
switch (arguments.length) {
case 1 :
if (arguments[0] > 100) {
arguments[0] = 100;
} else if (arguments[0] < 0) {
arguments[0] = 0;
}
var _local3 = 0;
while (_local3 < soundArray[1].length) {
soundArray[2][_local3] = arguments[0];
soundArray[1][_local3].setVolume(arguments[0]);
_local3++;
}
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
_local3 = 0;
for(;;){
if (_local3 >= soundArray[0].length) {
break;
}
if (soundArray[0][_local3] == arguments[0]) {
soundArray[2][_local3] = arguments[1];
soundArray[1][_local3].setVolume(arguments[1]);
break;
}
_local3++;
};
}
}
function setMusicVol() {
switch (arguments.length) {
case 1 :
if (arguments[0] > 100) {
arguments[0] = 100;
} else if (arguments[0] < 0) {
arguments[0] = 0;
}
var _local3 = 0;
while (_local3 < musicArray[1].length) {
musicArray[2][_local3] = arguments[0];
musicArray[1][_local3].setVolume(arguments[0]);
_local3++;
}
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
_local3 = 0;
for(;;){
if (_local3 >= musicArray[0].length) {
break;
}
if (musicArray[0][_local3] == arguments[0]) {
musicArray[2][_local3] = arguments[1];
musicArray[1][_local3].setVolume(arguments[1]);
break;
}
_local3++;
};
}
}
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);
trace("\u64AD\u653E\u97F3\u6548\uFF1A" + soundArray[1][_local3]);
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]);
trace("\u64AD\u653E\u97F3\u6548\uFF1A" + soundArray[1][_local3]);
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]);
trace((("\u64AD\u653E\u97F3\u6548\uFF1A" + soundArray[1][_local3]) + " \u97F3\u91CF\u4E3A\uFF1A") + soundArray[1][_local3].getVolume());
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);
trace("\u64AD\u653E\u97F3\u6548\uFF1A" + musicArray[1][_local3]);
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]);
trace("\u64AD\u653E\u97F3\u4E50\uFF1A" + musicArray[1][_local3]);
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]);
trace((("\u64AD\u653E\u97F3\u6548\uFF1A" + musicArray[1][_local3]) + " \u97F3\u91CF\u4E3A\uFF1A") + musicArray[1][_local3].getVolume());
musicArray[1][_local3].setVolume(musicArray[2][_local3]);
break;
}
_local3++;
};
}
}
}
function isTrueStopSound() {
switch (arguments.length) {
case 0 :
var _local3 = 0;
while (_local3 <= soundArray[1].length) {
soundArray[1][_local3].stop();
_local3++;
}
break;
case 1 :
_local3 = 0;
for(;;){
if (_local3 > soundArray[1].length) {
break;
}
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].stop();
}
_local3++;
};
}
}
function isTrueStopMusic() {
switch (arguments.length) {
case 0 :
var _local3 = 0;
while (_local3 <= musicArray[1].length) {
musicArray[1][_local3].stop();
_local3++;
}
break;
case 1 :
_local3 = 0;
for(;;){
if (_local3 > musicArray[1].length) {
break;
}
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].stop();
}
_local3++;
};
}
}
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);
soundArray = null;
musicArray = null;
delete soundArray;
delete musicArray;
}
var soundArray = new Array();
var musicArray = new Array();
}
Symbol 424 MovieClip [__Packages.Fwg.Pass] Frame 0
class Fwg.Pass extends MovieClip
{
var bOpen, gotoAndStop, _parent, _name, getDepth, _rotation, _y, _x, stop;
function Pass () {
super();
}
function init() {
Global.GAME.pPass = this;
if (bOpen) {
gotoAndStop(2);
} else if (_parent != Global.GAME.mGround.mBack) {
Global.GAME.mGround.mBack.attachMovie("Fwg.Pass", _name, getDepth(), {_x:Math.round(_x / 10) * 10, _y:Math.round(_y / 10) * 10, bOpen:bOpen, _rotation:_rotation});
Common.removeFixMc(this);
} else {
stop();
}
}
function hit(_m) {
}
function open() {
bOpen = true;
Global.GAME.mGround.mDown.attachMovie("Fwg.Pass", _name, getDepth(), {_x:Math.round(_x / 10) * 10, _y:Math.round(_y / 10) * 10, bOpen:bOpen, _rotation:_rotation});
Common.removeFixMc(this);
}
}
Symbol 425 MovieClip [__Packages.Fwg.Pipe] Frame 0
class Fwg.Pipe extends MovieClip
{
var bIn, _name, _parent, getDepth, _y, _x, gotoAndStop, pTwin;
function Pipe () {
super();
bIn = false;
}
function init() {
var _local2 = int(_name.split("_", 2)[1]);
if ((_local2 % 2) == 0) {
_local2++;
} else {
_local2--;
}
getTwin(_parent["mPipe_" + _local2]);
if (_parent != Global.GAME.mGround.mBack) {
Global.GAME.mGround.mBack.attachMovie("Fwg.Pipe", _name, getDepth(), {_x:Math.round(_x / Game.nTile_width) * Game.nTile_width, _y:Math.round(_y / Game.nTile_width) * Game.nTile_width});
Common.removeFixMc(this);
} else {
gotoAndStop(int(_local2 / 10));
}
}
function getTwin(_p) {
pTwin = _p;
_p.pTwin = this;
}
function hit(_m) {
if (!bIn) {
inPipe(_m);
return(true);
}
}
function inPipe(_m) {
bIn = true;
Global.GAME.pHead.addNeck(3);
pTwin.outPipe(_m);
}
function outPipe(_m) {
bIn = true;
_m._x = _x;
_m._y = _y;
_m.nSpeed = 0;
Common.addClip("mS", Global.GAME, {_x:_x, _y:_y});
}
}
Symbol 426 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip
{
var nInterval, __bPause, _x, _y, gotoAndStop, mPin, attachMovie, getNextHighestDepth, btMoreGame, btAddGame, btDownload, btHighScore, btPlay, btHelp, aScore, aRun_0, nPower, nTime, nScore, nScore_back, nLevel, mGround, pHead, btSumit, btTry, btBack, nLevel2, nTime_th, nTime_id, onEnterFrame;
function Game () {
super();
Global.GAME = this;
nInterval = 1000;
}
function get bPause() {
return(__bPause);
}
function set bPause(_bPause) {
if (bPause != _bPause) {
__bPause = _bPause;
if (__bPause) {
pause();
} else {
run();
}
}
//return(bPause);
}
function init() {
_root.stop();
Common.clearAllClip(_root);
Global.SOUND = new Sound(this);
(_x = 0);
(_y = 0);
Common.mask();
gotoAndStop("menu");
}
function inMenu() {
reset();
var _local3 = new Array("btPlay", "btHelp", "btHighScore", "btDownload", "btMoreGame", "btAddGame");
var _local8 = new Array("PLAY GAME", "INSTRUCTIONS", "VIEW HIGHSCORES", "DOWNLOAD GAMES", "MORE ONLINE GAMES", "ADD THIS GAME TO YOUR SITE");
var _local9 = "left";
var _local10 = 34;
var _local12 = mPin._x;
var _local11 = mPin._y;
var _local2 = 0;
while (_local2 < _local3.length) {
attachMovie("Btn", _local3[_local2], getNextHighestDepth(), {sTxt:_local8[_local2], autoSize:_local9, _x:_local12, _y:_local11 + (_local2 * _local10)});
_local2++;
}
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btHighScore.press = function () {
Global.VIEWSCORE();
};
btPlay.release = function () {
Common.mask();
if (Global.LOAD() != undefined) {
Global.GAME.gotoAndStop("setting");
} else {
Global.GAME.gotoAndStop("help");
}
};
btHelp.release = function () {
Common.mask();
Global.GAME.gotoAndStop("help");
};
}
function inCredits() {
Common.clearAllClip(this);
Common.addClip("Btn", this, {_x:310, _y:70, enabled:false, sTxt:"MUSIC CREDITS", _xscale:250, _yscale:250, autoSize:"center"});
}
function inHelp() {
Common.clearAllClip(this);
Common.addClip("Btn", this, {_x:310, _y:70, enabled:false, sTxt:"INSTRUCTIONS", _xscale:250, _yscale:250, autoSize:"center"});
}
function inSetting() {
Common.clearAllClip(this);
bPause = (true);
aScore = Global.LOAD().aScore;
Common.addClip("Btn", this, {_x:310, _y:100, enabled:false, sTxt:"SELECT LEVEL", _xscale:250, _yscale:250, autoSize:"center"});
var _local2 = 0;
while (_local2 < 12) {
Common.addClip("Btn", this, {_x:((_local2 < 6) ? 150 : 330), _y:200 + ((_local2 % 6) * 45), sTxt:"LEVEL " + (_local2 + 1), bGray:aScore[_local2 + 1] == undefined, nLevel:_local2 + 2, press:function () {
if (Global.GAME.aScore[this.nLevel - 1] != undefined) {
Global.GAME.nScore_back = 0;
Global.GAME.nLevel = this.nLevel;
Global.GAME.nLevel2 = Global.GAME.nLevel - 1;
Common.mask();
Global.GAME.gotoAndStop("loading");
}
}});
_local2++;
}
Common.addClip("Btn", this, {_x:490, _y:490, sTxt:"MENU", autoSize:"center", press:function () {
Common.mask();
Global.GAME.gotoAndStop("menu");
}});
}
function inLoading() {
Common.clearAllClip(this);
bPause = (true);
gotoAndStop("playing");
}
function inPlaying() {
Common.clearAllClip(this);
aRun_0 = new Array();
nPower = 0;
nTime = 0;
nScore = nScore_back;
mGround.timeBar.totalTime = aTime[nLevel - 2];
mGround.createEmptyMovieClip("mBack", 1);
mGround.createEmptyMovieClip("mMid", 2);
mGround.createEmptyMovieClip("mFore", 3);
mGround.createEmptyMovieClip("mBar", 4);
pHead = mGround.mFore.attachMovie("Fwg.Head", "mHead", 0, {_x:100, _y:440});
mGround.gotoAndStop(nLevel);
}
function inNext() {
bPause = (true);
Common.clearAllClip(this);
var _local11 = new Array("btSumit", "btTry", "btBack");
var _local6 = new Array("SUBMIT SCORE", "NEXT LEVEL", "MAIN MENU");
var _local8 = "center";
var _local9 = 50;
var _local15 = Global.WIDTH / 2;
var _local13 = 250;
Common.addClip("Btn", this, {_x:310, _y:100, enabled:false, sTxt:"LEVEL COMPLETE", _xscale:250, _yscale:250, autoSize:"center"});
Common.addClip("Btn", this, {_x:310, _y:190, enabled:false, sTxt:"SCORE: " + nScore, _xscale:150, _yscale:150, autoSize:"center"});
Common.addClip("Btn", this, {_x:310, _y:250, sTxt:"SUBMIT SCORE", autoSize:"center", press:function () {
Common.addClip("PopUp", _root, {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
}});
Common.addClip("Btn", this, {_x:310, _y:300, sTxt:"NEXT LEVEL", autoSize:"center", press:function () {
Common.mask();
Global.GAME.gotoAndStop("loading");
}});
Common.addClip("Btn", this, {_x:310, _y:380, sTxt:"MAIN MENU", autoSize:"center", press:function () {
Common.mask();
Global.GAME.gotoAndStop("menu");
}});
}
function inGameOver() {
bPause = (true);
Common.clearAllClip(this);
nScore_back = nScore_back * 0.9;
nScore_back = int(nScore_back);
var _local4 = new Array("btSumit", "btTry", "btBack", "btDownload", "btMoreGame", "btAddGame");
var _local5 = new Array("SUBMIT SCORE", "CONTINUE", "MAIN MENU", "DOWNLOAD GAMES", "MORE ONLINE GAMES", "ADD THIS GAME TO YOUR SITE");
var _local6 = "center";
var _local7 = 35;
var _local9 = Global.WIDTH / 2;
var _local8 = 200;
var _local3 = 0;
while (_local3 < _local4.length) {
attachMovie("Btn", _local4[_local3], getNextHighestDepth(), {sTxt:_local5[_local3], autoSize:_local6, _x:_local9, _y:(_local8 + (_local3 * ((_local3 > 2) ? (_local7) : 50))) + ((_local3 > 2) ? 45 : 0)});
_local3++;
}
Common.addClip("Btn", this, {_x:310, _y:70, enabled:false, sTxt:"GAME OVER", _xscale:250, _yscale:250, autoSize:"center"});
Common.addClip("Btn", this, {_x:310, _y:150, enabled:false, sTxt:"SCORE: " + nScore, _xscale:150, _yscale:150, autoSize:"center"});
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btSumit.press = function () {
Common.addClip("PopUp", _root, {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
};
btTry.release = function () {
Common.mask();
Global.GAME.gotoAndStop("loading");
};
btBack.release = function () {
Common.mask();
Global.GAME.gotoAndStop("menu");
};
}
function inGameWin() {
Common.clearAllClip(this);
var _local4 = new Array("btSumit", "btBack", "btDownload", "btMoreGame", "btAddGame");
var _local5 = new Array("SUBMIT SCORE", "MAIN MENU", "DOWNLOAD GAMES", "MORE ONLINE GAMES", "ADD THIS GAME TO YOUR SITE");
var _local6 = "left";
var _local7 = 35;
var _local9 = 30;
var _local8 = 250;
var _local3 = 0;
while (_local3 < _local4.length) {
attachMovie("Btn", _local4[_local3], getNextHighestDepth(), {sTxt:_local5[_local3], autoSize:_local6, _x:_local9, _y:_local8 + (_local3 * _local7)});
_local3++;
}
Common.addClip("Btn", this, {_x:175, _y:100, enabled:false, sTxt:"YOU WIN!", _xscale:250, _yscale:250, autoSize:"center"});
Common.addClip("Btn", this, {_x:30, _y:200, enabled:false, sTxt:"SCORE: " + nScore, _xscale:150, _yscale:150, autoSize:"left"});
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btSumit.press = function () {
Common.addClip("PopUp", _root, {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
};
btBack.release = function () {
Common.mask();
Global.GAME.gotoAndStop("menu");
};
}
function nextLevel() {
bPause = (true);
nLevel++;
nLevel2 = nLevel - 1;
nScore = nScore + int((aTime[nLevel - 2] - nTime) * 30);
nScore_back = nScore;
aScore[nLevel - 2] = nScore;
aScore[nLevel - 1] = 0;
Common.mask();
if (nLevel > 13) {
gotoAndStop("gamewin");
} else {
Global.SAVE({aScore:aScore});
gotoAndStop("nextlevel");
}
}
function gameOver() {
Common.mask();
gotoAndStop("gameover");
}
function reset() {
Common.clearAllClip(this);
nScore = 0;
nScore_back = 0;
nLevel = 2;
nLevel2 = nLevel - 1;
nTime_th = 1;
bPause = (true);
aScore = new Array();
}
function run() {
clearInterval(nTime_id);
nTime_id = setInterval(this, "step_time", nInterval);
mGround.timeBar.start();
onEnterFrame = function () {
Global.GAME.step();
};
}
function pause() {
clearInterval(nTime_id);
mGround.timeBar.stop();
delete onEnterFrame;
}
function step_time() {
nTime++;
mGround.mBar.mScore.sTxt = "SCORE : " + nScore;
mGround.mBar.mScore.replace();
mGround.timeBar.onTimeUp = function () {
Global.GAME.bPause = true;
Common.addClip("mB", Global.GAME);
Common.addClip("PopUp", Global.GAME, {sFrame:"ok", aSt:["Time's Up!", "OK"], rtFun:function () {
Global.GAME.gotoAndStop("gameover");
}});
};
}
function step() {
((nTime_th < 299) ? (nTime_th++) : ((nTime_th = 0)));
Common.forIn(aRun_0, "move");
}
static var nTile_width = 20;
var aTime = [100, 110, 120, 130, 140, 160, 170, 180, 180, 200, 200, 200, 200, 200, 190, 190, 190, 190, 190, 190];
}
Symbol 427 MovieClip [__Packages.Fwg.Mice] Frame 0
class Fwg.Mice extends MovieClip
{
var nSpeed, _parent, _name, getDepth, _rotation, _y, _x, vDir, vSpeed, stop, _currentframe, gotoAndStop;
function Mice () {
super();
nSpeed = 2;
}
function init(_m) {
if (_parent != Global.GAME.mGround.mBack) {
Global.GAME.mGround.mBack.attachMovie("Fwg.Mice", _name, getDepth(), {_x:Math.round(_x / Game.nTile_width) * Game.nTile_width, _y:Math.round(_y / Game.nTile_width) * Game.nTile_width, _rotation:_rotation});
Common.removeFixMc(this);
} else {
vDir = new Vector(0, 1);
vSpeed = vDir.multNew(nSpeed);
}
stop();
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
if (Global.GAME.pHead.hitTest(_x + (vDir.x * 10), _y + (vDir.y * 10), true)) {
hit(Global.GAME.pHead);
}
if (((_x % Game.nTile_width) == 0) && ((_y % Game.nTile_width) == 0)) {
if (!hitGround(Global.GAME.mGround.mDown, _x + (vDir.x * Game.nTile_width), _y + (vDir.y * Game.nTile_width))) {
nSpeed = 0;
var _local5 = random(4);
vDir.x = aV[_local5][0];
vDir.y = aV[_local5][1];
} else if (hitGround(Global.GAME.mGround.mMid, _x + (vDir.x * Game.nTile_width), _y + (vDir.y * Game.nTile_width))) {
Global.GAME.bPause = true;
var _local4 = _root.attachMovie("monkeyEat", ("monkeyEat" + _root.getNextHighestDepth()) + "_mc", _root.getNextHighestDepth(), {_x:_x, _y:_y, _xscale:48, _yscale:48});
switch (_currentframe) {
case 4 :
_local4._xscale = -48;
break;
case 5 :
_local4._rotation = 90;
break;
case 7 :
_local4._rotation = -90;
}
_x = -100;
_y = -100;
nSpeed = 0;
} else {
nSpeed = 2;
}
var _local3;
if (vDir.x != 0) {
_local3 = 3 + vDir.x;
if (_currentframe != _local3) {
gotoAndStop(_local3);
}
} else {
_local3 = 6 + vDir.y;
if (_currentframe != _local3) {
gotoAndStop(_local3);
}
}
if (nSpeed != 0) {
vSpeed = vDir.multNew(nSpeed);
}
}
if (nSpeed != 0) {
_x = _x + vSpeed.x;
_y = _y + vSpeed.y;
if (_x > Global.WIDTH) {
_x = _x - (Global.WIDTH + vSpeed.x);
} else if (_x < 0) {
_x = _x + (Global.WIDTH - vSpeed.x);
}
}
}
}
function hit(_m) {
Global.GAME.nScore = Global.GAME.nScore + 50;
_root.game.soundManage.playSound("monkey_s");
_root.attachMovie("MDie", ("MDie" + _root.getNextHighestDepth()) + "_mc", _root.getNextHighestDepth(), {_x:_x, _y:_y});
Common.removeArray(Global.GAME.aRun_0, this);
Common.removeFixMc(this);
}
function hitGround(_m, xt, yt) {
if (_m.hitTest(xt, yt, true)) {
return(true);
}
return(false);
}
static var aV = new Array([1, 0], [0, 1], [-1, 0], [0, -1]);
}
Symbol 428 MovieClip [__Packages.Vector] Frame 0
class Vector extends flash.geom.Point
{
var x, y;
function Vector (x1, y1) {
super();
x = x1;
y = y1;
if (isNaN(x)) {
x = 0;
}
if (isNaN(y)) {
y = 0;
}
}
function setTo(px, py) {
x = px;
y = py;
}
function copy(v) {
x = v.x;
y = v.y;
}
function plus(v) {
x = x + v.x;
y = y + v.y;
return(this);
}
function minus(v) {
x = x - v.x;
y = y - v.y;
return(this);
}
function mult(s) {
x = x * s;
y = y * s;
return(this);
}
function equal(xt, yt) {
if ((xt == x) && (yt == y)) {
return(true);
}
return(false);
}
function multNew(s) {
return(new Vector(x * s, y * s));
}
function magnitude() {
return(Math.sqrt(len_2));
}
function clone() {
return(new Vector(x, y));
}
function add(p) {
return(new Vector(x + p.x, y + p.y));
}
function subtract(p) {
return(new Vector(x - p.x, y - p.y));
}
function get len_2() {
return((x * x) + (y * y));
}
function simple(u) {
x = Math.round(x / u) * u;
y = Math.round(y / u) * u;
}
function rotate(a) {
var _local2 = Math.cos(a);
var _local3 = Math.sin(a);
var _local5 = x;
var _local4 = y;
x = (_local5 * _local2) - (_local4 * _local3);
y = (_local5 * _local3) + (_local4 * _local2);
}
function transform(m) {
var _local4 = x;
var _local3 = y;
x = ((_local4 * m.a) + (_local3 * m.c)) + m.tx;
y = ((_local4 * m.b) + (_local3 * m.d)) + m.ty;
}
function isRight(p) {
return(crossProduct(this, p) < 0);
}
function isInside(pArr) {
var _local4 = pArr.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = pArr[_local2];
if (!subtract(_local3).isRight(pArr[((_local2 == (_local4 - 1)) ? 0 : (_local2 + 1))].subtract(_local3))) {
return(false);
}
_local2++;
}
return(true);
}
function getMp() {
var _local2 = new Vector(y, -x);
_local2.normalize(1);
return(_local2);
}
function polar(len, angle) {
var _local2 = flash.geom.Point.polar(len, angle);
x = _local2.x;
y = _local2.y;
return(this);
}
static function polarNew(len, angle) {
var _local1 = flash.geom.Point.polar(len, angle);
return(new Vector(_local1.x, _local1.y));
}
static function interpolate(pt1, pt2, f) {
var _local1 = flash.geom.Point.interpolate(pt1, pt2, f);
return(new Vector(_local1.x, _local1.y));
}
static function getK(p, m, n) {
return(crossProduct(p, n) / crossProduct(m, n));
}
static function getHorizontal(p, p0) {
var _local1 = dotProduct(p, p0) / p0.__get__len_2();
return(new Vector(p0.x * _local1, p0.y * _local1));
}
static function getVertical(p, p0) {
var _local2 = p0.__get__len_2();
return(new Vector((p0.y * crossProduct(p, p0)) / _local2, (p0.x * crossProduct(p0, p)) / _local2));
}
static function dotProduct(p1, p2) {
return((p1.x * p2.x) + (p1.y * p2.y));
}
static function crossProduct(p1, p2) {
return((p1.x * p2.y) - (p2.x * p1.y));
}
static function intersects(p1, p2, p3, p4) {
var _local6 = p3.subtract(p1);
var _local5 = p2.subtract(p3);
var _local8 = crossProduct(_local6, _local5);
var _local3 = p4.subtract(p2);
var _local4 = crossProduct(_local5, _local3);
if ((_local8 * _local4) < 0) {
return(false);
}
var _local1 = p1.subtract(p4);
var _local2 = crossProduct(_local3, _local1);
if ((_local4 * _local2) < 0) {
return(false);
}
var _local7 = crossProduct(_local1, _local6);
if ((_local2 * _local7) < 0) {
return(false);
}
return(true);
}
static function intersection(p1, p2, p3, p4) {
var _local2 = crossProduct(p1, p3);
var _local5 = crossProduct(p2, p4);
var _local7 = crossProduct(p3, p2);
var _local1 = crossProduct(p4, p1);
var _local3 = crossProduct(p3, p4);
var _local10 = ((_local2 + _local3) + _local1) / (((_local2 + _local5) + _local7) + _local1);
return(interpolate(p2, p1, _local10));
}
}
Symbol 429 MovieClip [__Packages.Fwg.Power_0] Frame 0
class Fwg.Power_0 extends MovieClip
{
var _parent, _name, getDepth, _y, _x, stop, gotoAndStop, bT;
function Power_0 () {
super();
}
function init() {
if (_parent != Global.GAME.mGround.mBack) {
Global.GAME.mGround.mBack.attachMovie("Fwg.Power_0", _name, getDepth(), {_x:Math.round(_x / Game.nTile_width) * Game.nTile_width, _y:Math.round(_y / Game.nTile_width) * Game.nTile_width});
Common.removeFixMc(this);
} else {
Global.GAME.nPower++;
stop();
}
stop();
}
function hit(_m) {
Global.GAME.nPower--;
Global.GAME.nScore = Global.GAME.nScore + 80;
_root.game.soundManage.playSound("sdEat");
Global.GAME.pHead.addP();
Global.GAME.pHead.mC.gotoAndPlay(1);
if (Global.GAME.nPower == 0) {
Global.GAME.pPass.open();
}
Common.removeFixMc(this);
}
function over() {
gotoAndStop(2);
(bT == undefined) && ((bT = true));
return(!bT);
}
}
Symbol 430 MovieClip [__Packages.Fwg.Neck] Frame 0
class Fwg.Neck extends MovieClip
{
var vCurr, _rotation, vDir, gotoAndStop, vPrev, nFrame, _x, _y;
function Neck () {
super();
}
function init() {
if ((Math.abs(Global.GAME.pHead.aNeck[Global.GAME.pHead.aNeck.length - 2].vCurr.x - vCurr.x) + Math.abs(Global.GAME.pHead.aNeck[Global.GAME.pHead.aNeck.length - 2].vCurr.y - vCurr.y)) > 2) {
_rotation = ((vDir.x != 0) ? (90 + (vDir.x * 90)) : ((-vDir.y) * 90));
gotoAndStop(3);
} else if (vDir.equal(vPrev.x, vPrev.y)) {
_rotation = ((vDir.x != 0) ? (90 - (vDir.x * 90)) : (vDir.y * 90));
if (nFrame == undefined) {
gotoAndStop(1);
} else {
gotoAndStop(3);
}
} else {
_rotation = int((Math.atan2(vDir.y - vPrev.y, vDir.x - vPrev.x) * Common.a2r) + 45);
gotoAndStop(2);
}
_x = vCurr.x * Game.nTile_width;
_y = vCurr.y * Game.nTile_width;
}
}
Symbol 431 MovieClip [__Packages.ui.TimeBar] Frame 0
class ui.TimeBar extends MovieClip
{
var t0, onEnterFrame, pause, time, onTimeUp, onTimer, __totalTime;
function TimeBar () {
super();
}
function start() {
t0 = getTimer();
onEnterFrame = function () {
this.run();
};
}
function stop() {
delete onEnterFrame;
}
function run() {
if (pause) {
t0 = getTimer();
return(undefined);
}
time = time - ((getTimer() - t0) / 1000);
if (time <= 0) {
time = 0;
stop();
onTimeUp();
}
onTimer(time, __totalTime);
t0 = getTimer();
}
function get totalTime() {
return(__totalTime);
}
function set totalTime(_totalTime) {
time = (__totalTime = _totalTime);
//return(totalTime);
}
function timeUp() {
stop();
onTimeUp();
}
}
Symbol 432 MovieClip [__Packages.PopUp] Frame 0
class PopUp extends MovieClip
{
var _y, _x, sFrame, attachMovie, aSt, gotoAndStop, nWidth, bt_N, bt_Y, bt_X, tT_0, nHeight, tT_2, tT_1, mBar, stop, removeMovieClip;
function PopUp () {
super();
}
function init() {
if (_y == 0) {
_x = Global.WIDTH / 2;
_y = Global.HEIGHT / 2;
}
if (bScreen) {
Common.enabledFor(true, this, _root, -16384);
} else {
Common.enabledFor(true, this, this, -16384);
}
switch (sFrame) {
case "y_n" :
attachMovie("Btn", "bt_X", 10, {sTxt:"X", autoSize:"right"});
attachMovie("Btn", "bt_Y", 9, {sTxt:((aSt[1] == undefined) ? "YES" : (aSt[1]))});
attachMovie("Btn", "bt_N", 8, {sTxt:((aSt[2] == undefined) ? "NO" : (aSt[2])), autoSize:"right"});
attachMovie("Txt", "tT_0", 7, {sTxt:((aSt[0] == undefined) ? "TXT" : (aSt[0])), autoSize:"center", bCustom:true, obCustom:{multiline:true, wordWrap:true}});
break;
case "ok" :
attachMovie("Btn", "bt_X", 10, {sTxt:"X", autoSize:"right"});
attachMovie("Btn", "bt_Y", 9, {sTxt:((aSt[1] == undefined) ? "OK" : (aSt[1])), autoSize:"center"});
attachMovie("Txt", "tT_0", 7, {sTxt:((aSt[0] == undefined) ? "TXT" : (aSt[0])), autoSize:"center", bCustom:true, obCustom:{multiline:true, wordWrap:true}});
break;
case "submit" :
attachMovie("Btn", "bt_X", 10, {sTxt:"X", autoSize:"right"});
attachMovie("Btn", "bt_Y", 9, {sTxt:"SUBMIT", autoSize:"center"});
attachMovie("Txt", "tT_0", 8, {sTxt:"NAME :"});
attachMovie("Txt", "tT_1", 7, {sTxt:"SCORE :" + ((aSt[1] == undefined) ? 0 : (aSt[1]))});
attachMovie("Txt", "tT_2", 6, {sTxt:((aSt[0] == undefined) ? "YOUR NAME" : (aSt[0])), bCustom:true, obCustom:{type:"input", selectable:true, maxChars:9, restrict:"^ ", border:true, borderColor:16777215}});
break;
case "message" :
attachMovie("Txt", "tT_0", 10, {sTxt:((aSt[0] == undefined) ? "TXT" : (aSt[0])), autoSize:"center"});
break;
}
gotoAndStop(2);
}
function inFrame() {
switch (sFrame) {
case "y_n" :
nWidth = int(Math.max(220, (bt_Y._width + bt_N._width) + (nOffset_x * 3)));
bt_X._x = int(((nWidth / 2) - nBorder) - Btn.nBorder);
bt_Y._x = int(((-nWidth) / 2) + nOffset_x);
tT_0._x = 0;
tT_0.obCustom._width = nWidth - (nOffset_x * 2);
tT_0.replace();
nHeight = int(Math.max(150, tT_0.tTxt.textHeight + (nOffset_x * 3)));
bt_X._y = int((-nHeight) / 2);
bt_Y._y = (bt_N._y = int((nHeight / 2) - nOffset_x));
tT_0._y = -int((nOffset_x / 2) + (tT_0.tTxt.textHeight / 2));
bt_Y.release = function () {
if (this._parent.rtFun(true)) {
this._parent.remove();
}
};
bt_N.release = function () {
if (this._parent.rtFun(false)) {
this._parent.remove();
}
};
break;
case "ok" :
nWidth = 380;
bt_X._x = int(((nWidth / 2) - nBorder) - Btn.nBorder);
bt_Y._x = 0;
tT_0._x = 0;
tT_0.obCustom._width = nWidth - (nOffset_x * 2);
tT_0.replace();
nHeight = int(Math.max(140, tT_0.tTxt.textHeight + (nOffset_x * 3)));
bt_X._y = int((-nHeight) / 2);
bt_Y._y = int((nHeight / 2) - (nOffset_x * 1.5));
tT_0._y = -int((nOffset_x / 2) + (tT_0.tTxt.textHeight / 2));
bt_Y.release = function () {
if (this._parent.rtFun(true)) {
this._parent.remove();
}
};
break;
case "submit" :
nWidth = int(Math.max(320, (tT_1.tTxt.textWidth + tT_2.tTxt.textWidth) + (nOffset_x * 2)));
bt_X._x = int(((nWidth / 2) - nBorder) - Btn.nBorder);
tT_0._x = (tT_1._x = int(((-nWidth) / 2) + nOffset_x));
tT_2._x = (tT_0._x + tT_0.tTxt.textWidth) + nBorder;
nHeight = int(nOffset_x * 5);
bt_X._y = int((-nHeight) / 2);
bt_Y._y = int((nHeight / 2) - (nOffset_x * 1.5));
tT_0._y = int(((-nHeight) / 2) + nOffset_x);
tT_1._y = int(((-nHeight) / 2) + (nOffset_x * 2));
tT_2._y = int(((-nHeight) / 2) + nOffset_x);
bt_Y.release = function () {
var _local3 = this._parent.tT_2.getTxt();
if (_local3.length > 0) {
Global.SUBMIT(_local3, this._parent.aSt[1]);
Global.mTemp = Common.addClip("PopUp", _root, {sFrame:"message", aSt:["Sending..."]});
Global.SUBMITEND = function () {
Global.mTemp.remove();
var _local2 = Common.addClip("PopUp", _root, {sFrame:"ok", aSt:["Highscore Received!\nView Highscore?"]});
_local2.rtFun = function (_b) {
if (_b) {
Global.VIEWSCORE();
}
return(true);
};
};
this._parent.remove();
} else {
Common.addClip("PopUp", _root, {sFrame:"ok", aSt:["Enter a name please!"]});
}
};
break;
case "message" :
nWidth = 320;
tT_0._x = 0;
tT_0.obCustom._width = nWidth - (nOffset_x * 2);
tT_0.replace();
nHeight = int(Math.max(150, tT_0.tTxt.textHeight + (nOffset_x * 2)));
tT_0._y = -int((nOffset_x / 2) + (tT_0.tTxt.textHeight / 2));
break;
}
bt_X.release = function () {
this._parent.rtFun(false);
this._parent.remove();
};
mBar._width = nWidth;
mBar._height = nHeight;
mBar._x = (-nWidth) / 2;
mBar._y = (-nHeight) / 2;
stop();
}
function rtFun(_b) {
return(true);
}
function remove() {
removeMovieClip();
}
static var nBorder = 10;
static var nOffset_x = 40;
var bScreen = true;
}
Symbol 433 MovieClip [__Packages.Btn] Frame 0
class Btn extends MovieClip
{
var onRollOver, onDragOut, onRollOut, onPress, onReleaseOutside, onRelease, __bGray, sTxt, hitArea, tTxt, bIn, bDown, gotoAndStop, mAni, _xscale;
function Btn () {
super();
onRollOver = function () {
this.bIn = true;
this.replace();
this.rollOver(this.bGray);
};
onDragOut = (onRollOut = function () {
this.bIn = false;
this.replace();
});
onPress = function () {
this.bDown = true;
this.replace();
this.press(this.bGray);
};
onReleaseOutside = (onRelease = function () {
this.bDown = false;
this.replace();
this.release(this.bGray);
});
}
function get bGray() {
return(__bGray);
}
function set bGray(_bGray) {
if (__bGray != _bGray) {
__bGray = _bGray;
gray(this, __bGray);
}
//return(bGray);
}
function init(_sTxt) {
if (_sTxt != "undefined") {
sTxt = _sTxt;
}
hitArea = tTxt;
replace();
}
function replace() {
var _local2;
if (bIn && (bDown)) {
_local2 = "Down";
} else if (bIn || (bDown)) {
_local2 = "Over";
} else {
_local2 = "Up";
}
gotoAndStop(_local2);
mAni.gotoAndStop(_local2);
tTxt.autoSize = autoSize;
if (autoSize == "right") {
tTxt._x = -Math.floor(tTxt._width);
} else if (autoSize == "center") {
tTxt._x = -Math.floor(tTxt._width / 2);
} else {
tTxt._x = 0;
}
if (!bAni) {
mAni._visible = false;
} else {
mAni._width = tTxt._width + (nBorder * 2);
mAni._height = Math.round(tTxt._height);
mAni._x = tTxt._x - nBorder;
if (bMask) {
mAni.setMask(tTxt);
}
if (_xscale > 200) {
mAni.gotoAndStop(1);
}
}
}
static function gray(_m, _b) {
if (_b) {
_m.filters = [new flash.filters.ColorMatrixFilter([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0, 0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0, 0.308600008487701, 0.609399974346161, 0.0820000246167183, 0, 0, 0, 0, 0, 1, 0])];
} else {
_m.filters = [];
}
}
function press(_b) {
}
function release(_b) {
}
function rollOver(_b) {
}
static var nBorder = 0;
var autoSize = "left";
var bAni = true;
var bMask = true;
}
Symbol 434 MovieClip [__Packages.Txt] Frame 0
class Txt extends MovieClip
{
var sTxt, bCustom, obCustom, tTxt, sVariable, nColor;
function Txt () {
super();
}
function init(_sTxt) {
if (_sTxt != "undefined") {
sTxt = _sTxt;
}
replace();
}
function replace() {
if (bCustom) {
for (var _local2 in obCustom) {
if (obCustom[_local2] != undefined) {
tTxt[_local2] = obCustom[_local2];
}
}
if (tTxt.type == "input") {
Selection.setFocus(tTxt);
}
}
if (sVariable.length != 0) {
tTxt.variable = sVariable;
}
tTxt.autoSize = autoSize;
if (autoSize == "right") {
tTxt._x = -Math.floor(tTxt._width);
} else if (autoSize == "center") {
tTxt._x = -Math.floor(tTxt._width / 2);
} else {
tTxt._x = 0;
}
tTxt.text = sTxt;
if (!isNaN(nColor)) {
tTxt.textColor = nColor;
}
}
function getTxt() {
return(tTxt.text);
}
var autoSize = "left";
}
Symbol 435 MovieClip [__Packages.Fwg.Head] Frame 0
class Fwg.Head extends MovieClip
{
var dingNo, nSpeed, vDir, vPrev, vSpeed, vV, aNeck, vCurr, aP, _visible, mHead, mM, _x, _y, _rotation, _yscale, bSp, bKey, gotoAndStop;
function Head () {
super();
dingNo = 0;
nSpeed = 0;
vDir = new Vector(1, 0);
vPrev = new Vector(0, -1);
vSpeed = new Vector();
vV = new Vector();
aNeck = new Array();
vCurr = new Vector();
aP = new Array();
}
function init() {
_visible = false;
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
if (random(100) > 96) {
mHead.play();
}
if (aP[0] != undefined) {
for (var _local4 in aP) {
var _local3 = aP[_local4];
_local3.nTime--;
if ((_local3.nTime % 3) == 0) {
aNeck[_local3.nNeck].mC.gotoAndStop(1);
_local3.nNeck--;
aNeck[_local3.nNeck].mC.gotoAndStop(2);
}
if (_local3.nNeck <= 0) {
aNeck[_local3.nNeck].mC.gotoAndStop(1);
aP.splice(_local4, 1);
}
}
}
if (nSpeed != 0) {
mM.play();
_x = _x + vSpeed.x;
_y = _y + vSpeed.y;
if (_x > Global.WIDTH) {
_x = _x - (Global.WIDTH + vSpeed.x);
} else if (_x < 0) {
_x = _x + (Global.WIDTH - vSpeed.x);
} else if (_y > 460) {
Global.GAME.nextLevel();
}
}
key();
if (((_x % Game.nTile_width) == 0) && ((_y % Game.nTile_width) == 0)) {
var _local5 = int(((vDir.x != 0) ? (90 - (vDir.x * 90)) : (vDir.y * 90)));
if (_rotation != _local5) {
_rotation = _local5;
_yscale = ((vDir.x != 0) ? (vDir.x * 100) : 100);
}
vCurr.setTo(Math.round(_x / Game.nTile_width), Math.round(_y / Game.nTile_width));
bSp = false;
if (!hitGround(Global.GAME.mGround.mDown, _x + (vDir.x * Game.nTile_width), _y + (vDir.y * Game.nTile_width))) {
bKey = false;
dingNo++;
} else if (hitGround(Global.GAME.mGround.mMid, _x + (vDir.x * Game.nTile_width), _y + (vDir.y * Game.nTile_width))) {
bKey = false;
bSp = true;
dingNo++;
}
if (!hitGround(Global.GAME.mGround.mDown, _x + (vDir.y * Game.nTile_width), _y + (vDir.x * Game.nTile_width))) {
dingNo++;
} else if (hitGround(Global.GAME.mGround.mMid, _x + (vDir.y * Game.nTile_width), _y + (vDir.x * Game.nTile_width))) {
dingNo++;
}
if (!hitGround(Global.GAME.mGround.mDown, _x - (vDir.y * Game.nTile_width), _y - (vDir.x * Game.nTile_width))) {
dingNo++;
} else if (hitGround(Global.GAME.mGround.mMid, _x - (vDir.y * Game.nTile_width), _y - (vDir.x * Game.nTile_width))) {
dingNo++;
}
if (!hitGround(Global.GAME.mGround.mDown, _x - (vDir.x * Game.nTile_width), _y - (vDir.y * Game.nTile_width))) {
dingNo++;
} else if (hitGround(Global.GAME.mGround.mMid, _x - (vDir.x * Game.nTile_width), _y - (vDir.y * Game.nTile_width))) {
dingNo++;
}
if (hitGround(Global.GAME.mGround.mBack, _x, _y)) {
if (ckHit(Global.GAME.mGround.mBack)) {
dingNo = 0;
return(undefined);
}
}
if (dingNo == 4) {
gotoAndStop(2);
_root.game.reset_mc._visible = true;
onEnterFrame = null;
} else {
dingNo = 0;
}
if (!bKey) {
nSpeed = 0;
} else {
addNeck();
vSpeed = vDir.multNew(nSpeed);
}
}
}
}
function addP() {
aP.push({nTime:300, nNeck:aNeck.length - 1});
}
function key() {
if (((Key.isDown(38) || (Key.isDown(40))) || (Key.isDown(37))) || (Key.isDown(39))) {
if (Key.isDown(38)) {
vDir.setTo(0, -1);
} else if (Key.isDown(40)) {
vDir.setTo(0, 1);
} else if (Key.isDown(37)) {
vDir.setTo(-1, 0);
} else if (Key.isDown(39)) {
vDir.setTo(1, 0);
}
nSpeed = 4;
bKey = true;
} else {
bKey = false;
}
}
function hitGround(_m, xt, yt) {
if (_m.hitTest(xt, yt, true)) {
return(true);
}
return(false);
}
function ckHit(_m) {
var _local3 = false;
for (var _local4 in _m) {
if (_m[_local4].hitTest(_x, _y, true)) {
if (_m[_local4].hit(this)) {
_local3 = true;
}
}
}
return(_local3);
}
function addNeck(_n) {
var _local2 = Global.GAME.mGround.mMid.getNextHighestDepth();
aNeck.push(Global.GAME.mGround.mMid.attachMovie("Fwg.Neck", "mNeck" + _local2, _local2, {_x:_x, _y:_y, vDir:vDir.clone(), vPrev:vPrev.clone(), vCurr:vCurr.clone(), nFrame:_n}));
vPrev.copy(vDir);
}
function removeNeck() {
for (var _local2 in aNeck) {
if ((aNeck[_local2].vCurr.x != (vCurr.x + vDir.x)) || (aNeck[_local2].vCurr.y != (vCurr.y + vDir.y))) {
aNeck[_local2].removeMovieClip();
aNeck.splice(_local2, 1);
} else {
break;
}
}
aNeck[_local2].vDir = vDir.multNew(-1);
aNeck[_local2].init();
vPrev.copy(aNeck[_local2].vDir);
}
}
Symbol 45 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 68 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
if (bOpen) {
_root.stop();
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
} else {
this._visible = false;
}
Symbol 68 MovieClip Frame 114
stop();
onEnterFrame = function () {
if (_alpha <= 0) {
_parent.play();
delete onEnterFrame;
} else {
_alpha = (_alpha - 5);
}
};
Symbol 71 MovieClip [mS] Frame 20
stop();
this.removeMovieClip();
Symbol 72 MovieClip [mB] Frame 1
onEnterFrame = function () {
do {
if ((in Global.GAME.mGround.mBack) == null) {
break;
}
var _local1 = in Global.GAME.mGround.mBack;
} while (!Global.GAME.mGround.mBack[_local1].over());
do {
} while ("onEnterFrame" != null);
};
Symbol 75 MovieClip Frame 2
stop();
Symbol 79 MovieClip [Btn] Frame 1
#initclip 29
Object.registerClass("Btn", Btn);
#endinitclip
var sTemp;
sTemp = typeof(eval (_sTxt));
if (sTemp == "function") {
_sTxt = eval (_sTxt)();
} else if ((sTemp == "string") || (sTemp == "number")) {
_sTxt = eval (_sTxt);
} else {
_sTxt = String(_sTxt);
}
delete sTemp;
init(_sTxt);
Instance of Symbol 79 MovieClip [Btn] in Symbol 80 MovieClip [mSet] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "MUSIC";
autoSize = "right";
bAni = true;
bMask = true;
}
onClipEvent (load) {
bGray = Global.MUSIC.getVolume() != 100;
}
on (press) {
if (Global.MUSIC.getVolume() != 100) {
Global.MUSIC.setVolume(100);
} else {
Global.MUSIC.setVolume(0);
}
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 80 MovieClip [mSet] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "SOUND";
autoSize = "right";
bAni = true;
bMask = true;
}
onClipEvent (load) {
bGray = Global.SOUND.getVolume() != 100;
}
on (press) {
if (Global.SOUND.getVolume() != 100) {
bGray = false;
Global.SOUND.setVolume(100);
} else {
bGray = true;
Global.SOUND.setVolume(0);
}
Global.GAME.bPause = false;
Global.GAME.mSet.removeMovieClip();
Global.GAME.mSet = undefined;
delete Global.GAME.mSet;
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 80 MovieClip [mSet] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "_root._quality";
autoSize = "right";
bAni = true;
bMask = true;
}
on (press) {
sTxt = Common.changeQ();
Global.GAME.bPause = false;
Global.GAME.mSet.removeMovieClip();
Global.GAME.mSet = undefined;
delete Global.GAME.mSet;
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 80 MovieClip [mSet] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "QUIT GAME";
autoSize = "right";
bAni = true;
bMask = true;
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("menu");
Global.GAME.bPause = false;
Global.GAME.mSet.removeMovieClip();
Global.GAME.mSet = undefined;
delete Global.GAME.mSet;
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 81 MovieClip [Fwg.Bar] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "MENU";
autoSize = "left";
bAni = true;
bMask = false;
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("menu");
}
Symbol 99 MovieClip Frame 50
stop();
Symbol 102 MovieClip Frame 25
stop();
Symbol 106 MovieClip [Fwg.Pass] Frame 1
#initclip 19
Object.registerClass("Fwg.Pass", Fwg.Pass);
#endinitclip
init();
Symbol 116 MovieClip [Fwg.Pipe] Frame 1
#initclip 20
Object.registerClass("Fwg.Pipe", Fwg.Pipe);
#endinitclip
init();
Symbol 135 MovieClip Frame 1
stop();
Symbol 136 MovieClip [Fwg.Mice] Frame 1
#initclip 21
Object.registerClass("Fwg.Mice", Fwg.Mice);
#endinitclip
init();
Symbol 150 MovieClip Frame 22
Global.playSound("sdEgg");
Common.removeFixMc(_parent);
Symbol 151 MovieClip [Fwg.Power_0] Frame 1
#initclip 22
Object.registerClass("Fwg.Power_0", Fwg.Power_0);
#endinitclip
init();
Symbol 151 MovieClip [Fwg.Power_0] Frame 2
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 164 MovieClip [Fwg.Neck] Frame 1
#initclip 23
Object.registerClass("Fwg.Neck", Fwg.Neck);
#endinitclip
init();
Symbol 191 MovieClip Frame 1
function replace() {
var _local1;
if (bIn && (bDown)) {
_local1 = "Down";
} else if (bIn || (bDown)) {
_local1 = "Over";
} else {
_local1 = "Up";
}
gotoAndStop(_local1);
tTxt.autoSize = (bLeft ? "left" : "right");
if (tTxt.autoSize == "right") {
tTxt._x = -Math.floor(tTxt._width);
} else {
tTxt._x = 0;
}
}
var aWord = new Array("", "Copyright 2008 freeworldgroup.com V 1.0", "Credits");
var sTxt;
var bTop;
var bLeft;
var bIn = false;
var bDown = false;
switch (sSelect) {
case "visonNumber" :
sTxt = aWord[0];
break;
case "copyright" :
sTxt = aWord[1];
break;
case "credits" :
sTxt = aWord[2];
}
if (bTop) {
_y = 0;
} else {
_y = ((Global.HEIGHT - tTxt.textHeight) - 5);
}
if (bLeft) {
_x = 0;
} else {
_x = Global.WIDTH;
}
onRollOver = function () {
bIn = true;
replace();
};
onDragOut = (onRollOut = function () {
bIn = false;
replace();
});
onPress = function () {
bDown = true;
replace();
};
onReleaseOutside = (onRelease = function () {
bDown = false;
replace();
});
replace();
hitArea = tTxt;
Symbol 192 MovieClip Frame 1
nextFrame();
Symbol 192 MovieClip Frame 2
_y = 0;
_x = 0;
Instance of Symbol 191 MovieClip in Symbol 192 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
sSelect = "visonNumber";
bTop = true;
bLeft = true;
}
Instance of Symbol 191 MovieClip in Symbol 192 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
sSelect = "credits";
bTop = false;
bLeft = false;
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("credits");
}
Instance of Symbol 191 MovieClip in Symbol 192 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
sSelect = "copyright";
bTop = false;
bLeft = true;
}
on (press) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 202 MovieClip Frame 66
stop();
Symbol 209 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games6/gameindex/ostrich-underground.htm", "_blank");
}
Symbol 244 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 264 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games6/gameindex/ostrich-underground.htm", "_blank");
}
Symbol 293 MovieClip Frame 1
stop();
Instance of Symbol 79 MovieClip [Btn] in Symbol 293 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "MENU";
autoSize = "left";
bAni = true;
bMask = true;
}
on (release) {
Common.mask();
Global.GAME.gotoAndStop("menu");
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 293 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "left";
bAni = true;
bMask = true;
}
on (release) {
_parent.nextFrame();
trace(this);
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 293 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "SKIP";
autoSize = "left";
bAni = true;
bMask = true;
}
on (release) {
Common.mask();
Global.GAME.gotoAndStop("playing");
}
Symbol 293 MovieClip Frame 2
stop();
Instance of Symbol 79 MovieClip [Btn] in Symbol 293 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "left";
bAni = true;
bMask = true;
}
on (release) {
_parent.prevFrame();
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 293 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "left";
bAni = true;
bMask = true;
}
on (release) {
_parent.nextFrame();
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 293 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_sTxt = "SKIP";
autoSize = "left";
bAni = true;
bMask = true;
}
on (release) {
Common.mask();
Global.GAME.gotoAndStop("playing");
}
Symbol 293 MovieClip Frame 3
stop();
Instance of Symbol 244 MovieClip in Symbol 293 MovieClip Frame 3
onClipEvent (enterFrame) {
if (random(100) > 97) {
play();
}
}
Instance of Symbol 253 MovieClip in Symbol 293 MovieClip Frame 3
onClipEvent (enterFrame) {
if (random(100) > 97) {
play();
}
}
Symbol 293 MovieClip Frame 4
stop();
Symbol 293 MovieClip Frame 5
stop();
Symbol 293 MovieClip Frame 6
stop();
Instance of Symbol 79 MovieClip [Btn] in Symbol 293 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
_sTxt = "PLAY";
autoSize = "left";
bAni = true;
bMask = true;
}
on (release) {
Common.mask();
Global.GAME.gotoAndStop("playing");
}
Symbol 300 MovieClip [ui.TimeBar] Frame 1
#initclip 24
Object.registerClass("ui.TimeBar", ui.TimeBar);
#endinitclip
onTimer = function (time, totalTime) {
if (time == 0) {
hand._rotation = 0;
} else {
hand._rotation = (1 - (time / totalTime)) * 360;
}
};
Symbol 304 MovieClip Frame 2
Global.GAME.pHead._visible = true;
Global.GAME.bPause = false;
stop();
Symbol 305 MovieClip Frame 1
stop();
this.gotoAndStop(random(3) + 1);
Symbol 316 MovieClip Frame 1
stop();
Symbol 359 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;
}
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 360 Button
on (release) {
Global.GAME.nScore_back = Global.GAME.nScore_back * 0.75;
Global.GAME.nScore_back = int(Global.GAME.nScore_back);
Common.mask();
Global.GAME.gotoAndStop("loading");
}
Symbol 361 Button
on (release) {
if (_root.game.return_mc._visible == false) {
_root.game.return_mc._visible = true;
Global.GAME.bPause = true;
} else {
_root.game.return_mc._visible = false;
Global.GAME.bPause = false;
}
}
Symbol 372 Button
on (release) {
Global.GAME.bPause = false;
Common.mask();
Global.GAME.gotoAndStop("menu");
}
Symbol 374 Button
on (release) {
Global.GAME.bPause = false;
this._visible = false;
}
Symbol 402 MovieClip [Game] Frame 1
#initclip 25
Object.registerClass("Game", Game);
#endinitclip
init();
Symbol 402 MovieClip [Game] Frame 5
inMenu();
_root.game = this;
stop();
clearInterval(this.intervalID);
if (_root.game.soundManage == undefined) {
var soundManage = (new manage.SoundManage());
_root.game.soundManage.addSound("sdEat");
_root.game.soundManage.addSound("monkey_s");
}
var isPopup;
var isIn;
Instance of Symbol 38 MovieClip [Logo] in Symbol 402 MovieClip [Game] Frame 5
//component parameters
onClipEvent (construct) {
bUrl = true;
}
Symbol 402 MovieClip [Game] Frame 13
inCredits();
Instance of Symbol 79 MovieClip [Btn] in Symbol 402 MovieClip [Game] Frame 13
//component parameters
onClipEvent (construct) {
_sTxt = "MENU";
autoSize = "left";
bAni = true;
bMask = true;
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("menu");
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 402 MovieClip [Game] Frame 13
//component parameters
onClipEvent (construct) {
_sTxt = "By Bad Atom";
autoSize = "center";
bAni = true;
bMask = true;
}
onClipEvent (load) {
enabled = false;
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 402 MovieClip [Game] Frame 13
//component parameters
onClipEvent (construct) {
_sTxt = "TFA";
autoSize = "center";
bAni = true;
bMask = true;
}
onClipEvent (load) {
enabled = false;
}
Instance of Symbol 38 MovieClip [Logo] in Symbol 402 MovieClip [Game] Frame 13
//component parameters
onClipEvent (construct) {
bUrl = true;
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 402 MovieClip [Game] Frame 13
//component parameters
onClipEvent (construct) {
_sTxt = "By Bad Atom";
autoSize = "center";
bAni = true;
bMask = true;
}
onClipEvent (load) {
enabled = false;
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 402 MovieClip [Game] Frame 13
//component parameters
onClipEvent (construct) {
_sTxt = "Shuffling";
autoSize = "center";
bAni = true;
bMask = true;
}
onClipEvent (load) {
enabled = false;
}
Symbol 402 MovieClip [Game] Frame 17
inHelp();
Symbol 402 MovieClip [Game] Frame 21
inGameOver();
Symbol 402 MovieClip [Game] Frame 25
inNext();
Instance of Symbol 38 MovieClip [Logo] in Symbol 402 MovieClip [Game] Frame 25
//component parameters
onClipEvent (construct) {
bUrl = true;
}
on (keyPress "<Space>") {
Common.mask();
Global.GAME.gotoAndStop("loading");
}
Symbol 402 MovieClip [Game] Frame 29
inSetting();
Instance of Symbol 38 MovieClip [Logo] in Symbol 402 MovieClip [Game] Frame 29
//component parameters
onClipEvent (construct) {
bUrl = true;
}
Symbol 402 MovieClip [Game] Frame 33
inLoading();
Symbol 402 MovieClip [Game] Frame 37
inPlaying();
return_mc._visible = false;
reset_mc._visible = false;
Instance of Symbol 38 MovieClip [Logo] in Symbol 402 MovieClip [Game] Frame 37
//component parameters
onClipEvent (construct) {
bUrl = true;
}
Symbol 402 MovieClip [Game] Frame 41
inGameWin();
Symbol 404 MovieClip Frame 1
onPress = function () {
};
useHandCursor = false;
Symbol 405 MovieClip [PopUp] Frame 1
#initclip 26
Object.registerClass("PopUp", PopUp);
#endinitclip
init();
Symbol 405 MovieClip [PopUp] Frame 2
inFrame();
Symbol 407 MovieClip [Txt] Frame 1
#initclip 27
Object.registerClass("Txt", Txt);
#endinitclip
var a = [];
a.push(new flash.filters.GlowFilter(0, 1, 2, 2, 4, 1, false, false));
this.filters = a;
var sTemp = typeof(eval (_sTxt));
if (sTemp == "function") {
_sTxt = eval (_sTxt)();
} else if ((sTemp == "string") || (sTemp == "number")) {
_sTxt = eval (_sTxt);
} else {
_sTxt = String(_sTxt);
}
init(_sTxt);
Symbol 411 MovieClip Frame 1
stop();
Symbol 415 MovieClip [Fwg.Head] Frame 1
#initclip 28
Object.registerClass("Fwg.Head", Fwg.Head);
#endinitclip
stop();
init();
Symbol 415 MovieClip [Fwg.Head] Frame 2
stop();
Symbol 417 MovieClip Frame 1
stop();
Instance of Symbol 38 MovieClip [Logo] in Symbol 417 MovieClip Frame 13
//component parameters
onClipEvent (construct) {
bUrl = true;
}
Instance of Symbol 79 MovieClip [Btn] in Symbol 417 MovieClip Frame 14
//component parameters
onClipEvent (construct) {
_sTxt = "BUTTON";
autoSize = "left";
bAni = true;
bMask = false;
}
Instance of Symbol 407 MovieClip [Txt] in Symbol 417 MovieClip Frame 15
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
nColor = 16777215 /* 0xFFFFFF */;
autoSize = "left";
bCustom = false;
obCustom = {};
obCustom._width = 100;
obCustom.multiline = false;
obCustom.wordWrap = false;
obCustom.type = "input";
obCustom.maxChars = 6;
obCustom.restrict = "^ ";
obCustom.selectable = true;
obCustom.border = true;
obCustom.borderColor = "0xffffff";
obCustom.background = true;
obCustom.backgroundColor = "0x000000";
obCustom.html = false;
}
Symbol 418 MovieClip Frame 1
stopAllSounds();
Global.MUSIC = new Sound(this);
this._visible = false;
Symbol 418 MovieClip Frame 2
stop();