Frame 1
MochiAd.showPreGameAd({id:"1a62a3521c7d2ac2", res:"500x600"});
Instance of Symbol 9 MovieClip in Frame 2
//component parameters
onClipEvent (construct) {
bOpen = false;
}
Instance of Symbol 32 MovieClip in Frame 3
//component parameters
onClipEvent (construct) {
bOpen = true;
}
Symbol 4 MovieClip Frame 1
if (bUrl) {
onPress = function () {
Global.FWGURL();
};
}
this.cacheAsBitmap = true;
Symbol 6 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();
}
}
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 4 MovieClip "mLogo" in Symbol 6 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
bUrl = true;
}
Symbol 224 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 225 MovieClip [__Packages.Global] Frame 0
class Global
{
function Global () {
}
static function playSound(_s) {
SOUND.attachSound(_s);
SOUND.start();
}
static function playMusic(_s) {
MUSIC.stop();
MUSIC.attachSound(_s);
MUSIC.start();
}
static function volumeMusic() {
if (MUSIC.getVolume() != 100) {
MUSIC.setVolume(100);
return(true);
}
MUSIC.setVolume(0);
return(false);
}
static function volumeSound() {
if (SOUND.getVolume() != 100) {
SOUND.setVolume(100);
return(true);
}
SOUND.setVolume(0);
return(false);
}
static function SUBMIT(_s, _n) {
if (_s.length > 0) {
var _local1 = new LoadVars();
var _local2 = new LoadVars();
_local1.game = GAMENAME;
trace((("\u7528\u6237\uFF1A" + _s) + " \u4E0A\u4F20\u5206\u6570\uFF1A") + _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 = "bird_frenzy";
static var WIDTH = Stage.width;
static var HEIGHT = Stage.height;
}
Symbol 226 MovieClip [__Packages.casJump] Frame 0
class casJump
{
var t, a, v, mcTarget, numLastY, isStop, numStarJump;
function casJump (t, a, v, mcTarget, numStarJump) {
this.t = t;
this.a = a;
this.v = v;
this.mcTarget = mcTarget;
numLastY = this.mcTarget._y;
isStop = false;
this.numStarJump = numStarJump;
}
function jump() {
if (numStarJump == 0) {
if (!isStop) {
mcTarget._y = mcTarget._y + ((a * t) - v);
t++;
if (mcTarget._y >= numLastY) {
isStop = true;
t = 0;
}
}
} else {
numStarJump--;
}
}
}
Symbol 227 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";
return("MED");
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 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 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 wink(_m, _T, _n) {
_m.nTemp_time = 0;
_m.nT = _T;
_m.nN = _n;
_m.onEnterFrame = function () {
this.nTemp_time++;
this._alpha = 100 - Common.unlinearCycle(this.nTemp_time, this.nT, 100);
if (this.nTemp_time >= (this.nN * this.nT)) {
this._alpha = 100;
delete this.onEnterFrame;
delete this.nTemp_time;
delete this.nN;
delete this.nT;
}
};
}
static function addClip(_sId, _sName, _m, oBject, _nDepth) {
(_nDepth == undefined) && (_nDepth = _m.getNextHighestDepth());
(_sName == undefined) && (_sName = _sId);
return(_m.attachMovie(_sId, _sName + _nDepth, _nDepth, oBject));
}
static function clearAllClip(_m, _bAll) {
for (var _local3 in _m) {
if (_bAll) {
_m[_local3].swapDepths(0);
}
_m[_local3].removeMovieClip();
}
}
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) {
(_n == undefined) && (_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) {
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 disorder(arr) {
var _local5 = arr.length;
var _local1 = 0;
while (_local1 < _local5) {
var _local3 = random(_local5);
var _local4 = arr[_local1];
arr[_local1] = arr[_local3];
arr[_local3] = _local4;
_local1++;
}
}
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 _local5 in _a) {
if (((_a[_local5] == undefined) || (!_a[_local5][_s](_ob))) && (_b)) {
_local2.push(_local5);
}
}
if (_b) {
for (var _local5 in _local2) {
_a.splice(int(_local2[_local5]), 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) {
(_t == undefined) && (_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 RPI = 57.2957795130823;
}
Symbol 228 MovieClip [__Packages.Btn] Frame 0
class Btn extends MovieClip
{
static var nDw;
var onRollOver, onDragOut, onRollOut, onPress, onReleaseOutside, onRelease, __bGray, __sTxt, hitArea, tTxt, bIn, bDown, gotoAndStop, mAni;
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 get sTxt() {
return(__sTxt);
}
function set sTxt(_sTxt) {
__sTxt = _sTxt;
replace();
//return(sTxt);
}
function init(_sTxt) {
bGray = (bGray);
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));// not popped
mAni.gotoAndStop(_local2);
tTxt.autoSize = true;
if (autoSize == "right") {
tTxt._x = -int(tTxt._width);
} else if (autoSize == "center") {
tTxt._x = -int(tTxt._width / 2);
} else {
tTxt._x = 0;
}
if (!bAni) {
mAni._visible = false;
} else {
if (isNaN(nDw)) {
nDw = int(tTxt._width - tTxt.textWidth);
}
mAni._x = (tTxt._x + nDw) - nBorder;
if (bMask) {
mAni.setMask(tTxt);
}
}
}
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 = 10;
var autoSize = "left";
var bAni = true;
var bMask = false;
}
Symbol 229 MovieClip [__Packages.Fwg.Fish] Frame 0
class Fwg.Fish extends MovieClip
{
var _x, nId, bBad, mClip, nAdd, _y;
function Fish () {
super();
}
function init() {
_x = (nId * Game.nDx) + Game.nDx;
if (bBad && (random(100) > 96)) {
mClip.gotoAndStop(10);
nAdd = -40;
} else {
if ((((nId == 0) || (nId == 2)) || (nId == 4)) || (nId == 6)) {
mClip.gotoAndStop(random(4) + 1);
} else if ((nId == 1) || (nId == 5)) {
mClip.gotoAndStop(random(3) + 5);
} else {
mClip.gotoAndStop(random(2) + 8);
}
nAdd = 80;
}
Global.GAME["Bird" + nId].aFish.push(this);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
_y = _y + Global.GAME.nFall;
if (_y >= 600) {
if (nAdd > 0) {
Global.GAME.nCombo = 0;
Global.GAME.nHealth = Global.GAME.nHealth - 10;
}
remove();
}
}
}
function remove() {
var _local2 = nAdd;
Common.removeArray(Global.GAME["Bird" + nId].aFish, this);
Common.removeFixMc(this);
return(_local2);
}
}
Symbol 230 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip
{
var _x, _y, gotoAndStop, __nScore, mScore, __bPause, __nHealth, mHealth, mOver, __nCombo, Combo, attachMovie, getNextHighestDepth, btMoreGame, btAddGame, btDownload, btHighScore, btPlay, btHelp, nLevel, nPi, nBird, nPi_n, pMelody, nTime_id, onEnterFrame, mMother, _currentframe, nTime_music, Bird3;
function Game () {
super();
_root.stop();
_x = (_y = 0);
Global.GAME = this;
Global.SOUND = new Sound(this);
Common.clearAllClip(_root);
Common.clearAllClip(this);
Common.mask();
gotoAndStop("menu");
}
function get nScore() {
return(__nScore);
}
function set nScore(_nScore) {
__nScore = _nScore;
(__nScore < 0) && ((__nScore = 0));
mScore.sTxt = "SCORE: " + __nScore;
//return(nScore);
}
function get bPause() {
return(__bPause);
}
function set bPause(_bPause) {
if (__bPause != _bPause) {
__bPause = _bPause;
(__bPause ? (pause()) : (run()));
}
//return(bPause);
}
function init() {
}
function get nHealth() {
return(__nHealth);
}
function set nHealth(_nHealth) {
__nHealth = int(_nHealth);
__nHealth = Common.formatNumber(__nHealth, 0, 1, 360);
mHealth.setR(int(360 - __nHealth));
if (__nHealth <= 1) {
bPause = (true);
__nHealth = 2;
mOver.play();
}
//return(nHealth);
}
function get nCombo() {
return(__nCombo);
}
function set nCombo(_nCombo) {
__nCombo = int(_nCombo);
Combo.removeMovieClip();
attachMovie("mCombo", "Combo", getNextHighestDepth(), {_x:(Global.WIDTH / 2) - 50, _y:(Global.HEIGHT / 2) + 50, sTxt:((__nCombo == 0) ? "MISS" : ("COMBO " + __nCombo))});
//return(nCombo);
}
function inMenu() {
_root._quality = "HIGH";
nDif = 1;
nFall = 10;
bPause = (true);
Common.clearAllClip(this);
var _local4 = new Array("btPlay", "btHelp", "btHighScore", "btDownload", "btMoreGame", "btAddGame");
var _local9 = new Array("PLAY GAME", "INSTRUCTIONS", "VIEW HIGHSCORES", "DOWNLOAD GAMES", "MORE ONLINE GAMES", "ADD THIS GAME TO YOUR SITE");
var _local10 = "right";
var _local11 = 40;
var _local13 = Global.WIDTH - 20;
var _local12 = 300;
var _local3 = 0;
while (_local3 < _local4.length) {
attachMovie("Btn", _local4[_local3], getNextHighestDepth(), {sTxt:_local9[_local3], autoSize:_local10, _x:_local13, _y:_local12 + (_local3 * _local11)});
_local3++;
}
btMoreGame.press = function () {
Global.FWGURL();
};
btAddGame.press = function () {
Global.ADDGAME();
};
btDownload.press = function () {
Global.DOWNLOAD();
};
btHighScore.press = function () {
Global.VIEWSCORE();
};
btPlay.release = function () {
if (Global.LOAD() != undefined) {
Common.mask();
Global.GAME.gotoAndStop("setting");
} else {
Global.SAVE(true);
Common.mask();
Global.GAME.gotoAndStop("help");
}
};
btHelp.release = function () {
Common.mask();
Global.GAME.gotoAndStop("help");
};
}
function inCredits() {
bPause = (true);
Common.clearAllClip(this);
Common.addClip("Txt", null, this, {_x:Global.WIDTH / 2, _y:80, sTxt:"MUSIC CREDITS", _obFormat:{align:"center", size:60}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH - 60, _y:Global.HEIGHT - 50, sTxt:"MENU", autoSize:"right", press:function () {
Common.mask();
Global.GAME.gotoAndStop("menu");
}});
}
function inHelp() {
bPause = (true);
Common.clearAllClip(this);
Common.addClip("Txt", null, this, {_x:Global.WIDTH / 2, _y:80, sTxt:"INSTRUCTIONS", _obFormat:{align:"center", size:60}});
}
function inSetting() {
bPause = (true);
Common.clearAllClip(this);
Common.addClip("Txt", null, this, {_x:Global.WIDTH / 2, _y:80, sTxt:"SETTINGS", _obFormat:{align:"center", size:60}});
Common.addClip("Txt", null, this, {_x:120, _y:200, sTxt:"SPEED", _obFormat:{align:"center", size:35}});
Common.addClip("mSpeed", null, this, {_x:120, _y:250});
Common.addClip("Txt", null, this, {_x:Global.WIDTH - 120, _y:200, sTxt:"DIFFICULTY", _obFormat:{align:"center", size:35}});
Common.addClip("mDif", null, this, {_x:Global.WIDTH - 120, _y:250});
Common.addClip("Btn", null, this, {_x:Global.WIDTH - 60, _y:Global.HEIGHT - 50, sTxt:"PLAY", autoSize:"right", press:function () {
Common.mask();
Global.GAME.gotoAndStop("loading");
}});
Common.addClip("Btn", null, this, {_x:60, _y:Global.HEIGHT - 50, sTxt:"MENU", press:function () {
Common.mask();
Global.GAME.gotoAndStop("menu");
}});
}
function inLoading() {
nScore = (0);
bPause = (true);
Common.clearAllClip(this);
gotoAndStop("playing");
}
function inPlaying() {
_root._quality = "MEDIUM";
Common.clearAllClip(this);
attachMovie("Txt", "mScore", getNextHighestDepth(), {_x:10, _y:10, sTxt:"SCORE: 0"});
nLevel = 0;
nPi = 20;
nBird = 3;
nHealth = (360);
nCombo = (0);
nTime_th = 0;
nPi_n = 0;
pMelody = new Fwg.Melody();
Global.playMusic("sd_0");
var _local4;
var _local3 = 0;
while (_local3 < nBird) {
_local4 = aKeyUse[nBird][_local3];
attachMovie("Fwg.Bird", "Bird" + _local4, getNextHighestDepth(), {nId:_local4});
_local3++;
}
_local3 = 0;
while (_local3 < 7) {
if (this["Bird" + _local3] == undefined) {
if (_local3 == 3) {
} else {
attachMovie("mDan", "Dan" + _local3, getNextHighestDepth(), {_x:(_local3 * nDx) + nDx, _y:Fwg.Bird.nY, nId:_local3});
}
}
_local3++;
}
attachMovie("mWo", "Wo", getNextHighestDepth(), {_y:600});
mHealth = Common.addClip("mCmask", null, this, {_x:440, _y:540, _xscale:250, _yscale:250, sTxt:"HP"});
bPause = (false);
}
function inNextLevel() {
bPause = (true);
Common.clearAllClip(this);
Common.addClip("Txt", null, this, {_x:Global.WIDTH / 2, _y:80, sTxt:"LEVEL COMPLETE", _obFormat:{align:"center", size:60}});
Common.addClip("Txt", null, this, {_x:Global.WIDTH / 2, _y:150, sTxt:"SCORE: " + nScore, _obFormat:{align:"center", size:50}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH / 2, _y:200, sTxt:"SUBMIT SCORE", autoSize:"center", press:function () {
Common.addClip("PopUp", null, _root, {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH / 2, _y:250, sTxt:"NEXT LEVEL", autoSize:"center", press:function () {
Common.mask();
Global.GAME.gotoAndStop("loading");
}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH / 2, _y:350, sTxt:"MENU", autoSize:"center", press:function () {
Common.mask();
Global.GAME.gotoAndStop("menu");
}});
}
function inGameOver() {
_root._quality = "HIGH";
bPause = (true);
Common.clearAllClip(this);
Common.addClip("Txt", null, this, {_x:Global.WIDTH / 2, _y:80, sTxt:"GAME OVER", _obFormat:{align:"center", size:60}});
Common.addClip("Txt", null, this, {_x:Global.WIDTH / 2, _y:150, sTxt:"SCORE: " + nScore, _obFormat:{align:"center", size:30}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH / 2, _y:200, sTxt:"SUBMIT SCORE", autoSize:"center", press:function () {
Common.addClip("PopUp", null, _root, {sFrame:"submit", aSt:["", Global.GAME.nScore]});
this._visible = false;
}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH / 2, _y:250, sTxt:"TRY AGAIN", autoSize:"center", press:function () {
Common.mask();
Global.GAME.gotoAndStop("loading");
}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH - 20, _y:400, sTxt:"MENU", autoSize:"right", press:function () {
Common.mask();
Global.GAME.gotoAndStop("menu");
}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH - 20, _y:450, sTxt:"DOWNLOAD GAMES", autoSize:"right", press:function () {
Global.DOWNLOAD();
}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH - 20, _y:500, sTxt:"MORE ONLINE GAMES", autoSize:"right", press:function () {
Global.FWGURL();
}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH - 20, _y:550, sTxt:"ADD THIS GAME TO YOUR SITE", autoSize:"right", press:function () {
Global.ADDGAME();
}});
}
function inGameWin() {
bPause = (true);
Common.clearAllClip(this);
}
function run() {
clearInterval(nTime_id);
nTime_id = setInterval(this, "step_time", nInterval);
onEnterFrame = function () {
Global.GAME.step();
};
}
function pause() {
clearInterval(nTime_id);
delete onEnterFrame;
}
function step_time() {
nTime++;
}
function step() {
if (nTime_th == 1) {
Combo.removeMovieClip();
attachMovie("mCombo", "Combo", getNextHighestDepth(), {_x:(Global.WIDTH / 2) - 50, _y:(Global.HEIGHT / 2) + 50, _xscale:150, _yscale:150, sTxt:"GET READY...", nTime:100});
}
nTime_th++;
if (nTime_th > 200) {
var _local2 = Global.MUSIC.position / aPi[nLevel % 4];
if ((int(_local2) > nPi_n) && (Global.MUSIC.position < (Global.MUSIC.duration - 1500))) {
mMother.gotoAndPlay(2);
nPi_n = int(_local2);
if (pMelody.isRdm()) {
var _local3 = Common.rdm_a(0, nBird, aFall[nBird][nDif]);
var _local4 = pMelody.getAry_2(_local3);
addFish(_local4, true);
} else {
addFish(pMelody.getAry(), false);
}
}
}
}
function addFish(_a, _b) {
for (var _local6 in _a) {
if (_a[_local6]) {
var _local3 = aKeyUse[nBird][int(_local6)];
Common.addClip("Fwg.Fish", "Fish", this, {nId:_local3, bBad:_b});
}
}
}
function addBird(_m) {
var _local3 = _m.getDepth();
_m.swapDepths(_m._parent.getNextHighestDepth());
attachMovie("Fwg.Bird", "Bird" + _m.nId, _local3, {nId:_m.nId});
}
function musicEnd() {
nLevel++;
Global.playMusic("sd_" + (nLevel % 4));
pMelody.reset();
nTime_th = 0;
nPi_n = 0;
for (var _local5 in aKeyUse[nBird]) {
for (var _local6 in this["Bird" + aKeyUse[nBird][_local5]].aFish) {
this["Bird" + aKeyUse[nBird][_local5]].aFish[_local6].remove();
}
}
if ((nBird < 7) && (_currentframe == 46)) {
nBird++;
bPause = (true);
var _local4 = "";
var _local6 = 0;
while (_local6 < aKeyUse[nBird].length) {
_local4 = _local4 + (String.fromCharCode(aKeyCode[aKeyUse[nBird][_local6]]).toUpperCase() + ", ");
_local6++;
}
nTime_music = Global.MUSIC.position;
Global.MUSIC.stop();
Common.addClip("PopUp", null, _root, {sFrame:"ok", aSt:[" STAGE COMPLETE!\n\n MORE CHICKS TO FEED!\n\n NEW KEYS:\n\n " + _local4, "CONTINUE"], rtFun:function () {
Global.GAME.bPause = false;
Global.MUSIC.start(this.nTime_music / 1000);
return(true);
}});
for (_local6 in aBorn[nBird]) {
var _local3 = aBorn[nBird][_local6];
if (_local3 == 3) {
Bird3.bSleep = !Bird3.bSleep;
} else {
this["Dan" + _local3].play();
}
}
} else {
for (var _local6 in aFall_n) {
if (nFall == aFall_n[_local6]) {
nFall = aFall_n[int(_local6) + 1];
break;
}
}
if (nFall == undefined) {
nDif++;
}
}
}
var nTime = 0;
var nTime_th = 0;
static var nInterval = 1000;
static var nDx = 50;
var nG = 2;
var nFall = 10;
var nDif = 1;
var aPi = new Array(857, 780, 713.5, 646);
var aFall_n = new Array(6, 10, 14, 18, 22, 26, 30, 34, 38, 40, 42, 44, 46, 48, 50);
var aKeyCode = new Array(65, 83, 68, 70, 74, 75, 76);
var aKeyUse = new Array(null, null, null, [2, 3, 4], [1, 2, 4, 5], [1, 2, 3, 4, 5], [0, 1, 2, 4, 5, 6], [0, 1, 2, 3, 4, 5, 6]);
var aBorn = new Array(null, null, null, null, [1, 3, 5], [3], [0, 3, 6], [3]);
var aFall = new Array(null, null, null, [[5, 11, 6, 1], [4, 9, 5, 1], [3, 7, 4, 1], [2, 3, 2, 1], [1, 2, 1, 1]], [[7, 16, 11, 6, 1], [6, 13, 9, 5, 1], [5, 10, 7, 4, 1], [2, 4, 3, 2, 1], [1, 2, 1, 1, 1]], [[7, 16, 11, 6, 1, 0], [6, 13, 9, 5, 1, 0], [5, 10, 7, 4, 1, 0], [2, 4, 3, 2, 1, 0], [1, 2, 1, 1, 1, 0]], [[7, 16, 11, 6, 1, 0, 0], [6, 13, 9, 5, 1, 0, 0], [5, 10, 7, 4, 1, 0, 0], [2, 4, 3, 2, 1, 0, 0], [1, 2, 1, 1, 1, 0, 0]], [[7, 16, 11, 6, 1, 0, 0, 0], [6, 13, 9, 5, 1, 0, 0, 0], [5, 10, 7, 4, 1, 0, 0, 0], [2, 4, 3, 2, 1, 0, 0, 0], [1, 2, 1, 1, 1, 0, 0, 0]]);
}
Symbol 231 MovieClip [__Packages.Fwg.Melody] Frame 0
class Fwg.Melody
{
var aNow, bRdm, __nTime;
function Melody () {
score();
aNow = new Array();
bRdm = true;
nTime = (random(14) + 6);
}
function get nTime() {
return(__nTime);
}
function set nTime(_nTime) {
__nTime = _nTime;
if (__nTime <= 0) {
bRdm = random(3) > 0;
if (bRdm) {
__nTime = random(14) + 6;
} else {
aNow[0] = aS[Global.GAME.nBird][random(aS[Global.GAME.nBird].length)];
aNow[1] = 0;
__nTime = random(3) + 2;
}
}
//return(nTime);
}
function reset() {
aNow = new Array();
bRdm = true;
nTime = (random(14) + 6);
}
function score() {
aS[3] = new Array();
aS[3][0] = [4, 2, 1, 2];
aS[3][1] = [7, 5, 2, 7, 5, 2];
aS[3][2] = [6, 3, 6, 3, 6, 3];
aS[4] = new Array();
aS[4][0] = [8, 4, 2, 1, 2, 4];
aS[4][1] = [12, 6, 3, 6];
aS[4][2] = [12, 3, 12, 3];
aS[4][3] = [9, 6, 9, 6, 9, 6];
aS[4][4] = [10, 5, 10, 5];
aS[5] = new Array();
aS[5][0] = [16, 8, 4, 2, 1, 2, 4, 8];
aS[5][1] = [24, 12, 6, 3, 6, 12];
aS[5][2] = [24, 12, 6, 3, 17];
aS[5][3] = [28, 14, 7, 14];
aS[5][4] = [28, 14, 7, 19, 25];
aS[5][5] = [20, 10, 5, 10];
aS[5][6] = [20, 10, 5, 18, 9];
aS[5][7] = [4, 10, 14, 27, 31, 27, 14, 10];
aS[5][8] = [4, 10, 21, 10, 21, 10, 1];
aS[5][9] = [17, 10, 4, 10, 17];
aS[6] = new Array();
aS[6][0] = [32, 16, 8, 4, 2, 1, 2, 4, 8, 16];
aS[6][1] = [48, 24, 12, 6, 3, 6, 12, 24];
aS[6][2] = [48, 24, 12, 6, 3, 33];
aS[6][3] = [40, 20, 10, 5, 34, 17];
aS[6][4] = [56, 28, 14, 7, 35, 49];
aS[6][5] = [33, 18, 12, 63, 12, 18];
aS[6][6] = [33, 18, 12, 18];
aS[6][7] = [36, 18, 9, 18];
aS[6][8] = [48, 12, 3, 12];
aS[6][9] = [12, 30, 51, 33];
aS[6][10] = [40, 20, 10, 5, 10, 20];
aS[7] = new Array();
aS[7][0] = [64, 32, 16, 8, 4, 2, 65, 2, 4, 8, 16, 32];
aS[7][1] = [96, 48, 24, 12, 6, 3, 6, 12, 24, 48];
aS[7][2] = [96, 48, 24, 12, 6, 3, 65];
aS[7][3] = [80, 40, 20, 10, 5, 10, 20, 40];
aS[7][4] = [112, 56, 28, 14, 7, 67, 97];
aS[7][5] = [72, 36, 18, 9, 68, 34, 17];
aS[7][6] = [65, 34, 20, 8, 20, 34];
aS[7][7] = [73, 42, 28, 8, 28, 42];
aS[7][8] = [68, 34, 17, 34];
aS[7][9] = [96, 24, 6, 65, 48, 12, 3];
aS[7][10] = [99, 54, 38, 8, 38, 54];
aS[7][11] = [80, 40, 20, 10, 5, 66, 33];
}
function getAry() {
var _local2 = get10_2(aNow[0][aNow[1]]);
aNow[1]++;
if (aNow[1] >= aNow[0].length) {
aNow[1] = 0;
nTime = ((nTime-1));
}
return(_local2);
}
function get10_2(_n) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < Global.GAME.nBird) {
_local3.unshift(_n % 2);
_n = int(_n / 2);
_local1++;
}
return(_local3);
}
function isRdm() {
return(bRdm);
}
function getAry_2(_n) {
var _local3 = Global.GAME.nBird - _n;
if (_local3 != 0) {
var _local2 = aSize_1[_n].concat(aSize_0[_local3]);
} else {
var _local2 = aSize_1[_n].concat();
}
Common.disorder(_local2);
nTime = ((nTime-1));
return(_local2);
}
var aMax = new Array(null, null, null, 8, 16, 32, 64, 128);
var aS = new Array();
var aSize_0 = new Array([], [0], [0, 0], [0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]);
var aSize_1 = new Array([], [1], [1, 1], [1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1]);
}
Symbol 232 MovieClip [__Packages.Fwg.Bird] Frame 0
class Fwg.Bird extends MovieClip
{
var bMove, bEat, bKey, nSpeed, aFish, nKey, nId, sKey, _x, _y, gotoAndStop, pBar, _parent, __nPower, __bSleep;
function Bird () {
super();
bMove = false;
bEat = true;
bKey = false;
bSleep = (false);
nSpeed = 0;
aFish = new Array();
nPower = (360);
nKey = Global.GAME.aKeyCode[nId];
sKey = String.fromCharCode(nKey).toUpperCase();
}
function init() {
_x = (nId * Game.nDx) + Game.nDx;
_y = nY;
gotoAndStop(2);
pBar = _parent.attachMovie("mCmask", "Mask" + nId, _parent.getNextHighestDepth(), {_x:_x, _y:_y + 50, sTxt:sKey});
}
function get nPower() {
return(__nPower);
}
function set nPower(_nPower) {
__nPower = _nPower;
__nPower = Common.formatNumber(__nPower, 0, 1, 360);
pBar.setR(int(360 - __nPower));
//return(nPower);
}
function get bSleep() {
return(__bSleep);
}
function set bSleep(_bSleep) {
__bSleep = _bSleep;
if (__bSleep) {
gotoAndStop(7);
pBar._visible = false;
} else {
gotoAndStop(2);
pBar._visible = true;
}
//return(bSleep);
}
function isKeyDown() {
if (Key.isDown(nKey)) {
if (bKey) {
return(2);
}
bKey = true;
return(1);
}
if (bKey) {
bKey = false;
return(3);
}
return(0);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
if (((isKeyDown() == 1) && (nPower > 80)) && (!bSleep)) {
Global.playSound("s_" + (Global.GAME.nLevel % 4));
bMove = true;
bEat = false;
var _local3 = 2 * int(Math.sqrt(_y - (nY - 70)));
nSpeed = -_local3;
gotoAndStop(3);
nPower = nPower - 80;
}
if (bMove) {
_y = _y + nSpeed;
nSpeed = nSpeed + Global.GAME.nG;
if (nSpeed > 0) {
if (nSpeed == 2) {
if (!bEat) {
Global.GAME.nCombo = 0;
gotoAndStop(6);
} else {
Global.GAME.nCombo++;
gotoAndStop(5);
}
}
} else if (!bEat) {
for (var _local2 in aFish) {
if (Math.abs(aFish[_local2]._y - _y) < 20) {
bEat = true;
nPower = nPower + aFish[_local2].remove();
Global.GAME.nScore = Global.GAME.nScore + ((int(Global.GAME.nCombo / 10) + int(Global.GAME.nDif)) + 1);
Global.GAME.nHealth++;
pBar.attachMovie("mFlash", "Flash", 0);
break;
}
}
}
if (_y >= nY) {
_y = nY;
nSpeed = 0;
bEat = false;
bMove = false;
bSleep = (bSleep);
}
} else {
nPower = ((nPower+1));
}
}
}
static var nY = 510;
}
Symbol 233 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])), autoSize:"right"});
attachMovie("Btn", "bt_N", 8, {sTxt:((aSt[2] == undefined) ? "NO" : (aSt[2]))});
attachMovie("Txt", "tT_0", 7, {sTxt:((aSt[0] == undefined) ? "TXT" : (aSt[0])), _obFormat:{align:"center"}, obCustom:{bCustom:true, 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])), _obFormat:{align:"center"}, obCustom:{bCustom:true, 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])), obCustom:{bCustom:true, type:"input", selectable:true, maxChars:9, restrict:"^ ", border:true, borderColor:0}});
break;
case "message" :
attachMovie("Txt", "tT_0", 10, {sTxt:((aSt[0] == undefined) ? "TXT" : (aSt[0])), _obFormat:{align:"center"}});
break;
}
(gotoAndStop(2));// not popped
}
function inFrame() {
switch (sFrame) {
case "y_n" :
nWidth = int(Math.max(nWidth_s, (bt_Y._width + bt_N._width) + (nOffset_x * 3)));
bt_X._x = int(((nWidth / 2) - nBorder) - Btn.nBorder);
bt_Y._x = int(-nOffset_x);
bt_N._x = int(nOffset_x);
tT_0._x = 0;
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
nHeight = int(Math.max(nHeight_s, tT_0.tTxt.textHeight + (nOffset_x * 3)));
bt_X._y = int(((-nHeight) / 2) + nBorder);
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 = nWidth_s;
bt_X._x = int(((nWidth / 2) - nBorder) - Btn.nBorder);
bt_Y._x = 0;
tT_0._x = 0;
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
nHeight = int(Math.max(nHeight_s, tT_0.tTxt.textHeight + (nOffset_x * 3)));
bt_X._y = int(((-nHeight) / 2) + nBorder);
bt_Y._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();
}
};
break;
case "submit" :
nWidth = int(Math.max(nWidth_s, (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) + 15;
nHeight = int(nOffset_x * 5);
bt_X._y = int(((-nHeight) / 2) + nBorder);
bt_Y._y = int(((-nHeight) / 2) + (nOffset_x * 4));
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.tTxt.text;
if (_local3.length > 0) {
Global.SUBMIT(_local3, this._parent.aSt[1]);
Global.mTemp = _root.attachMovie("PopUp", "PopUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {sFrame:"message", aSt:["SENDING..."]});
Global.SUBMITEND = function () {
Global.mTemp.remove();
_root.attachMovie("PopUp", "PopUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {sFrame:"ok", aSt:["VIEW HIGHSCORE?"], rtFun:function (_b) {
if (_b) {
Global.VIEWSCORE();
}
return(true);
}});
};
this._parent.remove();
} else {
_root.attachMovie("PopUp", "PopUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {sFrame:"ok", aSt:["ENTER A NAME PLEASE!"]});
}
};
break;
case "message" :
nWidth = nWidth_s;
tT_0._x = 0;
tT_0.tTxt._width = nWidth - nOffset_x;
tT_0.replace();
nHeight = int(Math.max(nHeight_s, 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());// not popped
}
function rtFun(_b) {
return(true);
}
function remove() {
removeMovieClip();
}
static var nBorder = 4;
static var nOffset_x = 40;
static var nWidth_s = 340;
static var nHeight_s = 180;
var bScreen = true;
}
Symbol 234 MovieClip [__Packages.Txt] Frame 0
class Txt extends MovieClip
{
var obFormat, mAni, filters, tTxt, obCustom, sVariable, __sTxt, _obFormat;
function Txt () {
super();
obFormat = new TextFormat();
obFormat.align = "left";
}
function init(_sTxt) {
if (_sTxt != "undefined") {
sTxt = (_sTxt);
}
if (mAni == undefined) {
filters = tTxt.filters;
tTxt.filters = null;
delete tTxt.filters;
} else {
mAni.setMask(tTxt);
}
if (obCustom.bCustom) {
for (var _local2 in obCustom) {
if ((_local2 != "bCustom") && (obCustom[_local2] != undefined)) {
tTxt[_local2] = obCustom[_local2];
}
}
if (tTxt.type == "input") {
Selection.setFocus(tTxt);
tTxt.owner = this;
tTxt.onChanged = function () {
this.owner.sTxt = this.text;
};
}
}
(sVariable.length > 0) && ((tTxt.variable = sVariable));
replace();
}
function get sTxt() {
return(__sTxt);
}
function set sTxt(_sTxt) {
__sTxt = _sTxt;
replace();
//return(sTxt);
}
function replace() {
for (var _local2 in _obFormat) {
obFormat[_local2] = _obFormat[_local2];
}
tTxt.autoSize = obFormat.align;
if (obFormat.align == "right") {
tTxt._x = -Math.floor(tTxt._width);
} else if (obFormat.align == "center") {
tTxt._x = -Math.floor(tTxt._width / 2);
} else {
tTxt._x = 0;
}
tTxt.setTextFormat(obFormat);
if (mAni != undefined) {
mAni._width = tTxt._width + 5;
mAni._height = int(tTxt._height) + 5;
mAni._x = tTxt._x;
}
}
}
Symbol 9 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 32 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
if (bOpen) {
_root.stop();
onPress = function () {
Global.FWGURL();
};
} else {
this._visible = false;
}
Symbol 32 MovieClip Frame 114
stop();
onEnterFrame = function () {
if (_alpha <= 0) {
_parent.play();
delete onEnterFrame;
} else {
_alpha = (_alpha - 5);
}
};
Symbol 34 MovieClip [Txt] Frame 1
#initclip 17
Object.registerClass("Txt", Txt);
#endinitclip
var 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;
this.init(_sTxt);
Symbol 35 MovieClip [mCombo] Frame 1
var sTxt;
var nTime;
if (nTime == undefined) {
nTime = 20;
}
onEnterFrame = function () {
if (nTime == 0) {
play();
delete onEnterFrame;
} else {
nTime--;
}
};
Instance of Symbol 34 MovieClip [Txt] in Symbol 35 MovieClip [mCombo] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "_parent.sTxt";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "center";
_obFormat.size = 25;
_obFormat.color = "0xffffff";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Symbol 35 MovieClip [mCombo] Frame 11
stop();
Symbol 35 MovieClip [mCombo] Frame 14
rtFun();
this.removeMovieClip();
Symbol 42 MovieClip Frame 1
stop();
this.gotoAndStop(_parent._parent.nId + 1);
Symbol 52 MovieClip Frame 1
stop();
this.gotoAndStop(_parent._parent.nId + 1);
Symbol 56 MovieClip Frame 1
stop();
this.gotoAndStop(_parent._parent.nId + 1);
Symbol 60 MovieClip Frame 1
stop();
this.gotoAndStop(_parent._parent.nId + 1);
Symbol 63 MovieClip [Btn] Frame 1
#initclip 12
Object.registerClass("Btn", Btn);
#endinitclip
var 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;
this.init(_sTxt);
Symbol 67 MovieClip [mSpeed] Frame 1
function setGray() {
var _local2 = 0;
while (_local2 < 5) {
if (Global.GAME.nFall == this["bt_" + _local2].nFall) {
mS._y = this["bt_" + _local2]._y + 10;
mS._x = (this["bt_" + _local2]._x + (this["bt_" + _local2].tTxt._width / 2)) + 20;
break;
}
_local2++;
}
}
Instance of Symbol 63 MovieClip [Btn] "bt_0" in Symbol 67 MovieClip [mSpeed] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "SLOW";
autoSize = "center";
}
Instance of Symbol 63 MovieClip [Btn] "bt_1" in Symbol 67 MovieClip [mSpeed] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "NORMAL";
autoSize = "center";
}
Instance of Symbol 63 MovieClip [Btn] "bt_2" in Symbol 67 MovieClip [mSpeed] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "FAST";
autoSize = "center";
}
Instance of Symbol 63 MovieClip [Btn] "bt_3" in Symbol 67 MovieClip [mSpeed] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "VERY FAST";
autoSize = "center";
}
Instance of Symbol 63 MovieClip [Btn] "bt_4" in Symbol 67 MovieClip [mSpeed] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "CRAZY FAST";
autoSize = "center";
}
Symbol 67 MovieClip [mSpeed] Frame 2
bt_0.nFall = Global.GAME.aFall_n[0];
bt_1.nFall = Global.GAME.aFall_n[1];
bt_2.nFall = Global.GAME.aFall_n[2];
bt_3.nFall = Global.GAME.aFall_n[3];
bt_4.nFall = Global.GAME.aFall_n[4];
setGray();
bt_0.press = (bt_1.press = (bt_2.press = (bt_3.press = (bt_4.press = function () {
Global.GAME.nFall = this.nFall;
setGray();
}))));
stop();
Symbol 68 MovieClip [mDif] Frame 1
function setGray() {
var _local2 = 0;
while (_local2 < 5) {
if (Global.GAME.nDif == this["bt_" + _local2].nDif) {
mS._y = this["bt_" + _local2]._y + 10;
mS._x = (this["bt_" + _local2]._x + (this["bt_" + _local2].tTxt._width / 2)) + 20;
break;
}
_local2++;
}
}
Instance of Symbol 63 MovieClip [Btn] "bt_0" in Symbol 68 MovieClip [mDif] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "EASY";
autoSize = "center";
}
Instance of Symbol 63 MovieClip [Btn] "bt_1" in Symbol 68 MovieClip [mDif] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "NORMAL";
autoSize = "center";
}
Instance of Symbol 63 MovieClip [Btn] "bt_2" in Symbol 68 MovieClip [mDif] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "HARD";
autoSize = "center";
}
Instance of Symbol 63 MovieClip [Btn] "bt_3" in Symbol 68 MovieClip [mDif] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "VERY HARD";
autoSize = "center";
}
Instance of Symbol 63 MovieClip [Btn] "bt_4" in Symbol 68 MovieClip [mDif] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "CRAZY HARD";
autoSize = "center";
}
Symbol 68 MovieClip [mDif] Frame 2
bt_0.nDif = 0;
bt_1.nDif = 1;
bt_2.nDif = 2;
bt_3.nDif = 3;
bt_4.nDif = 4;
setGray();
bt_0.press = (bt_1.press = (bt_2.press = (bt_3.press = (bt_4.press = function () {
Global.GAME.nDif = this.nDif;
setGray();
}))));
stop();
Symbol 77 MovieClip Frame 31
Global.GAME.addBird(_parent);
Symbol 77 MovieClip Frame 35
_parent.removeMovieClip();
Symbol 78 MovieClip [mDan] Frame 1
stop();
Symbol 78 MovieClip [mDan] Frame 2
stop();
Symbol 90 MovieClip [Fwg.Fish] Frame 1
#initclip 13
Object.registerClass("Fwg.Fish", Fwg.Fish);
#endinitclip
this.init();
Symbol 107 MovieClip [Fwg.Bird] Frame 1
#initclip 14
Object.registerClass("Fwg.Bird", Fwg.Bird);
#endinitclip
this.init();
Symbol 120 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("V 1.00", "Copyright 2008 freeworldgroup.com", "Credits");
var sTxt;
var bTop;
var bLeft;
var bIn = false;
var bDown = false;
var onpress;
var onrelease;
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();
onpress();
};
onReleaseOutside = (onRelease = function () {
bDown = false;
replace();
onrelease();
});
replace();
hitArea = tTxt;
Symbol 121 MovieClip Frame 1
_y = 0;
_x = 0;
Instance of Symbol 120 MovieClip in Symbol 121 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sSelect = "visonNumber";
bTop = true;
bLeft = true;
}
Instance of Symbol 120 MovieClip in Symbol 121 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sSelect = "credits";
bTop = false;
bLeft = false;
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("credits");
}
Instance of Symbol 120 MovieClip in Symbol 121 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sSelect = "copyright";
bTop = false;
bLeft = true;
}
on (press) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 157 MovieClip Frame 1
stop();
Instance of Symbol 63 MovieClip [Btn] in Symbol 157 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "MENU";
autoSize = "left";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("menu");
}
Instance of Symbol 63 MovieClip [Btn] in Symbol 157 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "SKIP";
autoSize = "right";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("setting");
}
Instance of Symbol 63 MovieClip [Btn] in Symbol 157 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "center";
}
on (press) {
_parent.nextFrame();
}
Instance of Symbol 63 MovieClip [Btn] in Symbol 157 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "center";
}
on (press) {
_parent.prevFrame();
}
Instance of Symbol 63 MovieClip [Btn] in Symbol 157 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_sTxt = "PLAY";
autoSize = "right";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("setting");
}
Instance of Symbol 63 MovieClip [Btn] in Symbol 157 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "center";
}
on (press) {
_parent.prevFrame();
}
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 50
Common.mask();
Global.GAME.gotoAndStop("gameover");
Symbol 174 Button
on (press, keyPress "p") {
if (Global.GAME.mMenu == undefined) {
Global.GAME.nTime_music = Global.MUSIC.position;
Global.MUSIC.stop();
Global.GAME.bPause = true;
Global.GAME.attachMovie("mMenu", "mMenu", Global.GAME.getNextHighestDepth(), {_x:Global.WIDTH / 2, _y:Global.HEIGHT / 2});
} else {
Global.MUSIC.start(Global.GAME.nTime_music / 1000);
Global.GAME.bPause = false;
Global.GAME.mMenu.removeMovieClip();
}
}
Symbol 175 Button
on (press) {
Global.GAME.Wo.mG._visible = !Global.GAME.Wo.mG._visible;
}
Symbol 177 MovieClip [Game] Frame 1
#initclip 15
Object.registerClass("Game", Game);
#endinitclip
this.init();
Symbol 177 MovieClip [Game] Frame 6
this.inMenu();
Instance of Symbol 114 MovieClip in Symbol 177 MovieClip [Game] Frame 6
onClipEvent (load) {
var obj1 = new casJump(0, 1, 10, _parent.m_0, 0);
var obj2 = new casJump(0, 1, 10, _parent.m_1, 1);
var obj3 = new casJump(0, 1, 10, _parent.m_2, 2);
var obj4 = new casJump(0, 1, 10, _parent.m_3, 3);
var obj5 = new casJump(0, 1, 10, _parent.m_4, 4);
var obj6 = new casJump(0, 1, 10, _parent.m_5, 5);
}
onClipEvent (enterFrame) {
obj1.isStop = false;
obj1.jump();
obj2.isStop = false;
obj2.jump();
obj3.isStop = false;
obj3.jump();
obj4.isStop = false;
obj4.jump();
obj5.isStop = false;
obj5.jump();
obj6.isStop = false;
obj6.jump();
}
Instance of Symbol 4 MovieClip in Symbol 177 MovieClip [Game] Frame 6
//component parameters
onClipEvent (construct) {
bUrl = true;
}
Instance of Symbol 34 MovieClip [Txt] "m_0" in Symbol 177 MovieClip [Game] Frame 6
//component parameters
onClipEvent (construct) {
_sTxt = "F";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "center";
_obFormat.size = 85;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] "m_1" in Symbol 177 MovieClip [Game] Frame 6
//component parameters
onClipEvent (construct) {
_sTxt = "R";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "center";
_obFormat.size = 80;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] "m_2" in Symbol 177 MovieClip [Game] Frame 6
//component parameters
onClipEvent (construct) {
_sTxt = "E";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "center";
_obFormat.size = 75;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] "m_3" in Symbol 177 MovieClip [Game] Frame 6
//component parameters
onClipEvent (construct) {
_sTxt = "N";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "center";
_obFormat.size = 70;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] "m_4" in Symbol 177 MovieClip [Game] Frame 6
//component parameters
onClipEvent (construct) {
_sTxt = "Z";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "center";
_obFormat.size = 65;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] "m_5" in Symbol 177 MovieClip [Game] Frame 6
//component parameters
onClipEvent (construct) {
_sTxt = "Y";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "center";
_obFormat.size = 60;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Symbol 177 MovieClip [Game] Frame 11
this.inCredits();
Instance of Symbol 34 MovieClip [Txt] in Symbol 177 MovieClip [Game] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "NYLON AT 140";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] in Symbol 177 MovieClip [Game] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "BY YAGRU";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] in Symbol 177 MovieClip [Game] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "JUST SOME SPERIMENTATION";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] in Symbol 177 MovieClip [Game] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "BY CODINH91";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] in Symbol 177 MovieClip [Game] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "BY DJ-RIPPA";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] in Symbol 177 MovieClip [Game] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "JUMPAROUND";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] in Symbol 177 MovieClip [Game] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "BY RIGAUDIO";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 34 MovieClip [Txt] in Symbol 177 MovieClip [Game] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "RIG - DANCING AND-DROID";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Symbol 177 MovieClip [Game] Frame 16
this.inHelp();
Symbol 177 MovieClip [Game] Frame 21
this.inSetting();
Symbol 177 MovieClip [Game] Frame 26
this.inNextLevel();
Symbol 177 MovieClip [Game] Frame 31
this.inGameWin();
Symbol 177 MovieClip [Game] Frame 36
this.inGameOver();
Symbol 177 MovieClip [Game] Frame 41
this.inLoading();
Symbol 177 MovieClip [Game] Frame 46
this.inPlaying();
Instance of Symbol 34 MovieClip [Txt] in Symbol 177 MovieClip [Game] Frame 46
//component parameters
onClipEvent (construct) {
_sTxt = "MENU";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "center";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 4 MovieClip in Symbol 177 MovieClip [Game] Frame 46
//component parameters
onClipEvent (construct) {
bUrl = true;
}
Symbol 180 MovieClip [PopUp] Frame 1
#initclip 16
Object.registerClass("PopUp", PopUp);
#endinitclip
this.init();
Instance of Symbol 179 MovieClip "mBar" in Symbol 180 MovieClip [PopUp] Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (keyPress "<Space>") {
_parent.rtFun();
_parent.remove();
}
Symbol 180 MovieClip [PopUp] Frame 2
this.inFrame();
Symbol 194 MovieClip Frame 1
function reset() {
_rotation = (90 * (!horizontal));
btMid._x = nNow;
btLeft._x = (-btMid._width) / 2;
btRight._x = (btMid._width / 2) + nMax;
btBack._x = (-btMid._width) / 2;
btBack._width = nMax + btMid._width;
btMid._y = (btBack._y = (btRight._y = (btLeft._y = 0)));
}
function dir_hold(vx) {
if ((nTimeNow == 0) || (nTimeNow == nTimeMax)) {
if (vx != 0) {
btMid._x = btMid._x + (nPer * vx);
} else {
btMid._x = btMid._x - (Common.vpNum(btMid._x - _xmouse) * btMid._width);
}
if (btMid._x < 0) {
btMid._x = 0;
} else if (btMid._x > nMax) {
btMid._x = nMax;
}
nNow = btMid._x;
}
(nTimeNow < nTimeMax) && (nTimeNow++);
}
function getTop() {
return(btLeft._width + (btMid._width / 2));
}
function getSide() {
return(btMid._height / 2);
}
function getValue() {
return(int(nNow));
}
function setValue(n) {
nNow = n;
reset();
}
if (typeof(eval (nNow)) == "function") {
nNow = eval (nNow)();
} else if (typeof(eval (nNow)) == "number") {
nNow = eval (nNow);
} else {
nNow = Number(nNow);
}
var nMax;
var horizontal;
var nPer;
var bAutoSiza;
var nTimeMax = 15;
var nTimeNow = 0;
var bRoll = false;
btMid.onPress = function () {
startDrag (this, false, 0, 0, this._parent.nMax, 0);
with (this._parent) {
bRoll = true;
onEnterFrame = function () {
nNow = btMid._x;
onhold(0);
};
}
};
btBack.onPress = function () {
with (this._parent) {
bRoll = true;
onEnterFrame = function () {
dir_hold(0);
onhold(2);
};
}
};
btRight.onPress = function () {
with (this._parent) {
bRoll = true;
onEnterFrame = function () {
dir_hold(1);
onhold(1);
};
}
};
btLeft.onPress = function () {
with (this._parent) {
bRoll = true;
onEnterFrame = function () {
dir_hold(-1);
onhold(-1);
};
}
};
btMid.onReleaseOutside = (btMid.onRelease = function () {
stopDrag();
with (this._parent) {
bRoll = false;
delete onEnterFrame;
onreleas(0);
}
});
btBack.onDragOut = (btBack.onRelease = function () {
with (this._parent) {
bRoll = false;
delete onEnterFrame;
onreleas(2);
nTimeNow = 0;
}
});
btLeft.onReleaseOutside = (btLeft.onRelease = (btRight.onReleaseOutside = (btRight.onRelease = function () {
with (this._parent) {
bRoll = false;
delete onEnterFrame;
onreleas(1);
nTimeNow = 0;
}
})));
reset();
Symbol 197 MovieClip Frame 1
function reset() {
_rotation = (90 * (!horizontal));
btMid._x = nNow;
btLeft._x = (-btMid._width) / 2;
btRight._x = (btMid._width / 2) + nMax;
btBack._x = (-btMid._width) / 2;
btBack._width = nMax + btMid._width;
btMid._y = (btBack._y = (btRight._y = (btLeft._y = 0)));
}
function dir_hold(vx) {
if ((nTimeNow == 0) || (nTimeNow == nTimeMax)) {
if (vx != 0) {
btMid._x = btMid._x + (nPer * vx);
} else {
btMid._x = btMid._x - (Common.vpNum(btMid._x - _xmouse) * btMid._width);
}
if (btMid._x < 0) {
btMid._x = 0;
} else if (btMid._x > nMax) {
btMid._x = nMax;
}
nNow = btMid._x;
}
(nTimeNow < nTimeMax) && (nTimeNow++);
}
function getTop() {
return(btLeft._width + (btMid._width / 2));
}
function getSide() {
return(btMid._height / 2);
}
function getValue() {
return(int(nNow));
}
function setValue(n) {
nNow = n;
reset();
}
if (typeof(eval (nNow)) == "function") {
nNow = eval (nNow)();
} else if (typeof(eval (nNow)) == "number") {
nNow = eval (nNow);
} else {
nNow = Number(nNow);
}
var nMax;
var horizontal;
var nPer;
var bAutoSiza;
var nTimeMax = 15;
var nTimeNow = 0;
var bRoll = false;
btMid.onPress = function () {
startDrag (this, false, 0, 0, this._parent.nMax, 0);
with (this._parent) {
bRoll = true;
onEnterFrame = function () {
nNow = btMid._x;
onhold(0);
};
}
};
btBack.onPress = function () {
with (this._parent) {
bRoll = true;
onEnterFrame = function () {
dir_hold(0);
onhold(2);
};
}
};
btRight.onPress = function () {
with (this._parent) {
bRoll = true;
onEnterFrame = function () {
dir_hold(1);
onhold(1);
};
}
};
btLeft.onPress = function () {
with (this._parent) {
bRoll = true;
onEnterFrame = function () {
dir_hold(-1);
onhold(-1);
};
}
};
btMid.onReleaseOutside = (btMid.onRelease = function () {
stopDrag();
with (this._parent) {
bRoll = false;
delete onEnterFrame;
onreleas(0);
}
});
btBack.onDragOut = (btBack.onRelease = function () {
with (this._parent) {
bRoll = false;
delete onEnterFrame;
onreleas(2);
nTimeNow = 0;
}
});
btLeft.onReleaseOutside = (btLeft.onRelease = (btRight.onReleaseOutside = (btRight.onRelease = function () {
with (this._parent) {
bRoll = false;
delete onEnterFrame;
onreleas(1);
nTimeNow = 0;
}
})));
reset();
Symbol 198 MovieClip [mMenu] Frame 1
Common.enabledFor(true, this, _root, -16384);
Instance of Symbol 194 MovieClip in Symbol 198 MovieClip [mMenu] Frame 1
//component parameters
onClipEvent (construct) {
nMax = 100;
nNow = "Global.SOUND.getVolume";
horizontal = true;
nPer = 1;
}
onClipEvent (load) {
onhold = function () {
Global.SOUND.setVolume(this.nNow);
};
}
Instance of Symbol 197 MovieClip in Symbol 198 MovieClip [mMenu] Frame 1
//component parameters
onClipEvent (construct) {
nMax = 100;
nNow = "Global.MUSIC.getVolume";
horizontal = true;
nPer = 1;
}
onClipEvent (load) {
onhold = function () {
Global.MUSIC.setVolume(this.nNow);
};
}
Instance of Symbol 63 MovieClip [Btn] in Symbol 198 MovieClip [mMenu] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "center";
}
on (press) {
Global.GAME.bPause = false;
Global.MUSIC.start(Global.GAME.nTime_music / 1000);
_parent.removeMovieClip();
}
Instance of Symbol 63 MovieClip [Btn] in Symbol 198 MovieClip [mMenu] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "QUIT GAME";
autoSize = "center";
}
on (press) {
Global.MUSIC.start();
Common.mask();
Global.GAME.gotoAndStop("menu");
}
Instance of Symbol 63 MovieClip [Btn] in Symbol 198 MovieClip [mMenu] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "_root._quality";
autoSize = "center";
}
onClipEvent (load) {
}
on (release) {
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";
}
sTxt = _root._quality;
}
Symbol 205 MovieClip [mCmask] Frame 1
function setR(_n) {
nR = _n;
if (nR >= 180) {
nR = nR - 360;
}
if (nR <= -180) {
nR = nR + 360;
}
if (nR >= 0) {
nR_1 = nR;
nR_2 = 180;
} else {
nR_1 = 180;
nR_2 = nR;
}
(m1._rotation != nR_1) && ((m1._rotation = nR_1));
(m2._rotation != nR_2) && ((m2._rotation = nR_2));
}
var nR = 0;
var nR_1 = 0;
var nR_2 = 180;
m1.setMask(ms1);
m2.setMask(ms2);
Instance of Symbol 34 MovieClip [Txt] in Symbol 205 MovieClip [mCmask] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "_parent.sTxt";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "center";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Symbol 215 MovieClip [mFlash] Frame 10
this.removeMovieClip();
Symbol 222 MovieClip Frame 1
stop();
Instance of Symbol 63 MovieClip [Btn] in Symbol 222 MovieClip Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "BUTTON";
autoSize = "left";
}
Instance of Symbol 34 MovieClip [Txt] in Symbol 222 MovieClip Frame 12
//component parameters
onClipEvent (construct) {
_sTxt = "TXT";
sVariable = "";
obCustom = {};
obCustom.bCustom = false;
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;
_obFormat = {};
_obFormat.align = "left";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Symbol 223 MovieClip Frame 1
stopAllSounds();
Global.MUSIC = new Sound(this);
this._visible = false;
Global.playMusic("sd_0");
Global.MUSIC.onSoundComplete = function () {
Global.GAME.musicEnd();
};