Frame 1
MochiAd.showPreGameAd({id:"72de628116ef063b", res:"640x480"});
Instance of Symbol 29 MovieClip in Frame 3
//component parameters
onClipEvent (construct) {
bOpen = true;
}
Instance of Symbol 4 MovieClip in Frame 4
//component parameters
onClipEvent (construct) {
bUrl = 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 379 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 380 MovieClip [__Packages.Global] Frame 0
class Global
{
function Global () {
}
static function playSound(_s) {
SOUND.attachSound(_s);
SOUND.start();
}
static function playMusic(_s, _n1, _n2) {
MUSIC.stop();
MUSIC.attachSound(_s);
MUSIC.start(_n1, _n2);
}
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 = "fwgknightgame";
static var WIDTH = Stage.width;
static var HEIGHT = Stage.height;
}
Symbol 381 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 coordinateConvert(mc1, mc2, x, y) {
var _local2 = new Object({x:((x != undefined) ? (x) : 0), y:((y != undefined) ? (y) : 0)});
mc1.localToGlobal(_local2);
if ((mc2 != undefined) && (mc2 != _root)) {
mc2.globalToLocal(_local2);
}
return(_local2);
}
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;
x = x % T;
if (x > _local1) {
return((1 - ((x % _local1) / _local1)) * r);
}
if (x < _local1) {
return(((x % _local1) / _local1) * r);
}
return(r);
}
static function getAngle(_m1, _m2) {
if (_m1._parent == _m2._parent) {
return(Math.atan2(_m1._y - _m2._y, _m1._x - _m2._x));
}
}
static function parabolaSpeed(x0, y0, xt, yt, nR, nG) {
var _local1 = xt - x0;
var _local2 = yt - y0;
return(Math.sqrt((((nG * _local1) / (Math.tan(nR) - (_local2 / _local1))) / Math.pow(Math.cos(nR), 2)) / 2));
}
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;
}
Symbol 382 MovieClip [__Packages.fwg.Human] Frame 0
class fwg.Human
{
var kUp, kDown, kLeft, kRight, kA, kB;
function Human () {
kUp = new Mkey(aKey[0]);
kDown = new Mkey(aKey[1]);
kLeft = new Mkey(aKey[2]);
kRight = new Mkey(aKey[3]);
kA = new Mkey(aKey[4]);
kB = new Mkey(aKey[5]);
setCtrl();
}
function move() {
kLeft.move();
kRight.move();
kUp.move();
kDown.move();
kA.move();
kB.move();
}
function setCtrl() {
kUp.down = function () {
Global.GAME.pKnight.jump();
};
kLeft.hold = function () {
Global.GAME.pKnight.walk(-1);
};
kRight.hold = function () {
Global.GAME.pKnight.walk(1);
};
kDown.down = function () {
Global.GAME.pKnight.changeWeapon();
};
kA.down = function () {
Global.GAME.pKnight.attack_0();
};
kB.down = function () {
Global.GAME.pKnight.attack_2();
};
kRight.up = (kLeft.up = function () {
Global.GAME.pKnight.stand();
});
}
static var aKey = new Array(87, 83, 65, 68, 74, 75);
}
Symbol 383 MovieClip [__Packages.Mkey] Frame 0
class Mkey
{
var nTime, nDelay, bHold, bDouble, nKey, sKey;
function Mkey (_nKey) {
nTime = 0;
nDelay = 400;
bHold = false;
bDouble = false;
nKey = _nKey;
sKey = String.fromCharCode(nKey).toUpperCase();
}
function up() {
}
function down() {
}
function hold() {
}
function unHold() {
}
function double() {
}
function move() {
if (Key.isDown(nKey)) {
if (bHold) {
hold();
} else {
bHold = true;
down();
if ((getTimer() - nTime) < nDelay) {
double();
bDouble = true;
}
nTime = getTimer();
}
} else if (bHold) {
bHold = false;
if (bDouble) {
nTime = 0;
bDouble = false;
}
up();
} else {
unHold();
}
}
}
Symbol 384 MovieClip [__Packages.fwg.Enemy] Frame 0
class fwg.Enemy extends MovieClip
{
var nR, nSpeed_x, nSpeed_y, nMoment, bFall, nDir, pTarget, __nHealth, mHealth, nHealth_max, _y, _x, _parent;
function Enemy () {
super();
nR = 0;
nSpeed_x = 0;
nSpeed_y = 0;
nMoment = 0;
bFall = true;
nDir = 1;
pTarget = Global.GAME.pKnight;
Global.GAME.aEnemy.push(this);
}
function init() {
}
function get nHealth() {
return(__nHealth);
}
function set nHealth(_nHealth) {
__nHealth = _nHealth;
if (__nHealth <= 0) {
mHealth._visible = false;
} else {
mHealth.mClip._xscale = (__nHealth / nHealth_max) * 100;
}
//return(nHealth);
}
function setPos_0() {
_y = ((Game.getBetween(_x, _y, _parent, Global.GAME.mClip.mMid) + _y) / 2) - 1;
}
function setPos_2(_n) {
var _local3 = Game.getBetween(_x - _n, _y, _parent, Global.GAME.mClip.mMid);
var _local2 = Game.getBetween(_x + _n, _y, _parent, Global.GAME.mClip.mMid);
_y = ((Game.getBetween(_x, _y, _parent, Global.GAME.mClip.mMid) + _y) / 2) - 1;
nR = (Math.atan2(_local3 - _local2, _n * 2) + nR) / 2;
}
function falling() {
if (bFall) {
nSpeed_y = nSpeed_y + Game.nG;
if (Game.hitGround(_x, _y + nSpeed_y, _parent, Global.GAME.mClip.mMid)) {
bFall = false;
nSpeed_y = 0;
fallEnd();
} else {
_y = _y + nSpeed_y;
}
}
}
function fallEnd() {
}
function remove() {
Common.removeArray(Global.GAME.aEnemy, this);
}
}
Symbol 385 MovieClip [__Packages.math.Vector] Frame 0
class math.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 sum() {
return(x + y);
}
function setTo(px, py) {
x = px;
y = py;
}
function copy(v) {
x = v.x;
y = v.y;
}
function dot(v) {
return((x * v.x) + (y * v.y));
}
function cross(v) {
return((x * v.y) - (y * v.x));
}
function plus(v) {
x = x + v.x;
y = y + v.y;
}
function minus(v) {
x = x - v.x;
y = y - v.y;
}
function mult(s) {
x = x * s;
y = y * s;
}
function plusNew(v) {
return(new math.Vector(x + v.x, y + v.y));
}
function minusNew(v) {
return(new math.Vector(x - v.x, y - v.y));
}
function multNew(s) {
return(new math.Vector(x * s, y * s));
}
static function equal(v1, v2) {
return((v1.x == v2.x) && (v1.y == v2.y));
}
function clone() {
return(new math.Vector(x, y));
}
function add(p) {
return(new math.Vector(x + p.x, y + p.y));
}
function subtract(p) {
return(new math.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 math.Vector(y, -x);
_local2.normalize(1);
return(_local2);
}
static function polar(len, angle) {
var _local1 = flash.geom.Point.polar(len, angle);
return(new math.Vector(_local1.x, _local1.y));
}
static function interpolate(pt1, pt2, f) {
var _local1 = flash.geom.Point.interpolate(pt1, pt2, f);
return(new math.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 math.Vector(p0.x * _local1, p0.y * _local1));
}
static function getVertical(p, p0) {
var _local2 = p0.__get__len_2();
return(new math.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 386 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip
{
var __nScore, mScore, __bPause, _x, _y, gotoAndStop, attachMovie, getNextHighestDepth, btMoreGame, btAddGame, btDownload, btHighScore, btPlay, btHelp, pKnight, mMid, mClip, nTime_id, nKill, nDays, aEnemy, onEnterFrame, mGround, mDay, _currentframe;
function Game () {
super();
stopAllSounds();
Common.clearAllClip(_root);
Common.clearAllClip(this);
Global.MUSIC = new Sound(_root.createEmptyMovieClip("mMusic", _root.getNextHighestDepth()));
Global.SOUND = new Sound(this);
Global.GAME = this;
}
function get nScore() {
return(__nScore);
}
function set nScore(_nScore) {
__nScore = int(_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() {
Global.playMusic("sdMusic", 0, 999);
_root.stop();
_x = (_y = 0);
Common.mask();
gotoAndStop("menu");
}
function inMenu() {
bPause = (false);
Common.clearAllClip(this);
var _local3 = new Array("btPlay", "btHelp", "btHighScore", "btDownload", "btMoreGame", "btAddGame");
var _local6 = new Array("PLAY GAME", "INSTRUCTIONS", "VIEW HIGHSCORES", "DOWNLOAD GAMES", "MORE ONLINE GAMES", "ADD THIS GAME TO YOUR SITE");
var _local7 = "left";
var _local8 = 30;
var _local10 = 50;
var _local9 = 250;
var _local2 = 0;
while (_local2 < _local3.length) {
attachMovie("Btn", _local3[_local2], getNextHighestDepth(), {sTxt:_local6[_local2], autoSize:_local7, _x:_local10, _y:_local9 + (_local2 * _local8)});
_local2++;
}
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) {
fwg.Human.aKey = Global.LOAD();
Common.mask();
Global.GAME.gotoAndStop("loading");
} else {
Global.SAVE(fwg.Human.aKey);
Common.mask();
Global.GAME.gotoAndStop("help");
}
};
btHelp.release = function () {
if (Global.LOAD() != undefined) {
fwg.Human.aKey = Global.LOAD().concat();
}
Common.mask();
Global.GAME.gotoAndStop("help");
};
if (pKnight._x == undefined) {
mMid._x = 0;
pKnight = Common.addClip("fwg.Knight", "mKnight", mClip, {_x:320, _y:350}, -1);
}
pKnight.walk(1);
clearInterval(nTime_id);
nTime_id = setInterval(this, "step_time", nInterval);
}
function inCredits() {
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 - 30, sTxt:"MENU", autoSize:"right", press:function () {
Common.mask();
Global.GAME.gotoAndStop("menu");
}});
pKnight.walk(1);
}
function inHelp() {
Common.clearAllClip(this);
Common.addClip("Txt", null, this, {_x:Global.WIDTH / 2, _y:80, sTxt:"INSTRUCTIONS", _obFormat:{align:"center", size:60}});
pKnight.stand();
}
function inSetting() {
Common.clearAllClip(this);
Common.addClip("Txt", null, this, {_x:Global.WIDTH / 2, _y:80, sTxt:"KEY SETTINGS", _obFormat:{align:"center", size:60}});
Common.addClip("Btn", null, this, {_x:50, _y:Global.HEIGHT - 30, sTxt:"BACK", press:function () {
Global.SAVE(fwg.Human.aKey);
Common.mask();
Global.GAME.gotoAndStop("help");
}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH - 50, _y:Global.HEIGHT - 30, sTxt:"MENU", autoSize:"right", press:function () {
Global.SAVE(fwg.Human.aKey);
Common.mask();
Global.GAME.gotoAndStop("menu");
}});
pKnight.walk(1);
}
function inLoading() {
bPause = (true);
var _local2 = Global.LOAD();
for (var _local3 in _local2) {
if (_local2[_local3] != fwg.Human.aKey[_local3]) {
Global.SAVE(fwg.Human.aKey);
break;
}
}
Common.clearAllClip(this);
gotoAndStop("playing");
}
function inPlaying() {
Common.clearAllClip(this);
mClip._x = 0;
mClip._y = 0;
nTime = 0;
nScore = (0);
nKill = 0;
nDays = 1;
mMid._x = 0;
aEnemy = new Array();
pKnight = Common.addClip("fwg.Knight", "mKnight", mClip, {_x:300, _y:200});
pKnight.pCtrl = new fwg.Human();
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() {
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("Txt", null, this, {_x:Global.WIDTH / 2, _y:185, sTxt:"DAYS: " + nDays, _obFormat:{align:"center"}});
Common.addClip("Txt", null, this, {_x:Global.WIDTH / 2, _y:220, sTxt:"KILLS: " + nKill, _obFormat:{align:"center"}});
Common.addClip("Btn", null, this, {_x:Global.WIDTH / 2, _y:255, 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:290, sTxt:"TRY AGAIN", autoSize:"center", press:function () {
Global.GAME.nScore = 0;
Common.mask();
Global.GAME.gotoAndStop("loading");
}});
Common.addClip("Btn", null, this, {_x:50, _y:350, sTxt:"MENU", autoSize:"left", press:function () {
Common.mask();
Global.GAME.gotoAndStop("menu");
}});
Common.addClip("Btn", null, this, {_x:50, _y:380, sTxt:"DOWNLOAD GAMES", autoSize:"left", press:function () {
Global.DOWNLOAD();
}});
Common.addClip("Btn", null, this, {_x:50, _y:410, sTxt:"MORE ONLINE GAMES", autoSize:"left", press:function () {
Global.FWGURL();
}});
Common.addClip("Btn", null, this, {_x:50, _y:440, sTxt:"ADD THIS GAME TO YOUR SITE", autoSize:"left", press:function () {
Global.ADDGAME();
}});
if (pKnight._x == undefined) {
mMid._x = 0;
pKnight = Common.addClip("fwg.Knight", "mKnight", mClip, {_x:320, _y:350}, -1);
pKnight.walk(1);
}
clearInterval(nTime_id);
nTime_id = setInterval(this, "step_time", nInterval);
}
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++;
if ((nTime % 30) == 0) {
mGround.cacheAsBitmap = false;
mGround.play();
mMid.cacheAsBitmap = false;
for (var _local2 in mMid) {
mMid[_local2].play();
}
nDays = nDays + 0.25;
nDays = int(nDays * 10) / 10;
mDay.sTxt = "DAYS: " + int(nDays);
}
}
function step() {
if (_currentframe == 46) {
((nTime_th > 100000) ? ((nTime_th = 1)) : (nTime_th++));
if ((nTime_th % 30) == 0) {
if (aEnemy.length < (5 + int(nTime / 30))) {
Common.addClip("fwg.Enemy_0", "Enemy_0", mClip, {_x:(-mClip._x) - 50, _y:300});
Common.addClip("fwg.Enemy_0", "Enemy_0", mClip, {_x:((-mClip._x) + Global.WIDTH) + 50, _y:300});
if (random(100) > 90) {
Common.addClip("fwg.Enemy_1", "Enemy_1", mClip, {_x:((random(2) > 0) ? (((-mClip._x) + Global.WIDTH) + 300) : ((-mClip._x) - 300)), _y:200});
}
}
}
}
}
static function hitGround(x, y, _m1, _m2) {
var _local1 = {x:x, y:y};
_m1.localToGlobal(_local1);
return(_m2.hitTest(_local1.x, _local1.y, true));
}
static function getYhit(x, y, _m1, _m2) {
var _local1 = {x:x, y:y};
_m1.localToGlobal(_local1);
y = _local1.y;
var _local3 = false;
var _local2 = 0;
while (_local2 < 300) {
if (_local3) {
if (_m2.hitTest(_local1.x, _local1.y, true)) {
_local1.y = _local1.y - 0.5;
} else {
break;
}
} else if (_m2.hitTest(_local1.x, _local1.y, true)) {
_local3 = true;
} else {
_local1.y = _local1.y + 0.5;
}
_local2++;
}
return(_local1.y - y);
}
static function getBetween(x, y, _m1, _m2) {
var _local1 = {x:x, y:y};
_m1.localToGlobal(_local1);
y = _local1.y;
var _local3;
var _local2 = 20;
while (_local2 > 1) {
if (_m2.hitTest(_local1.x, _local1.y, true)) {
_local3 = -1;
} else {
_local3 = 1;
}
_local1.y = _local1.y + (_local2 * _local3);
_local2 = _local2 / 2;
}
return(_local1.y);
}
var nTime = 0;
var nTime_th = 0;
static var nInterval = 1000;
static var nG = 2;
}
Symbol 387 MovieClip [__Packages.fwg.Enemy_0] Frame 0
class fwg.Enemy_0 extends fwg.Enemy
{
var nId, nRange_atk, nTime, nRadius, vHit, nY_mClip, mClip, __set__nHealth, nHealth_max, nDir, nSpeed_x, _xscale, nMoment, _x, pTarget, bFall, nSpeed_y, setPos_0, bHit, nHealth, remove, __get__nHealth, removeMovieClip, falling, _y;
function Enemy_0 () {
super();
nId = random(3);
nRange_atk = aRange_atk[nId] + random(aOffset[nId]);
nTime = 0;
nRadius = 30;
vHit = new math.Vector(0, -30);
nY_mClip = mClip._y;
__set__nHealth((nHealth_max = 100));
}
function init() {
mClip.mArm_0.gotoAndStop((nId * 3) + 1);
mClip.mHead.gotoAndStop(random(mClip.mHead._totalframes) + 1);
}
function walk(_n) {
if ((nDir != _n) || (nSpeed_x == 0)) {
mClip.mArm_0.mClip.gotoAndStop(1);
nDir = _n;
_xscale = nDir * 100;
mClip._rotation = 0;
nMoment = 1;
nSpeed_x = _n * 5;
}
}
function stand() {
mClip._y = nY_mClip;
nMoment = 0;
nSpeed_x = 0;
mClip.mArm_0.mClip.gotoAndStop(1);
nDir = Common.vpNum(pTarget._x - _x);
_xscale = nDir * 100;
mClip.mHead._rotation = (mClip._rotation = 0);
mClip.mLeg_0._rotation = 0;
mClip.mLeg_1._rotation = 0;
mClip.mLeg_0._x = 5;
mClip.mLeg_1._x = -5;
}
function bow(_m, x, y) {
var _local2 = {x:x, y:y};
var _local3 = Common.getAngle(Global.GAME.pKnight, this);
_m.localToGlobal(_local2);
Global.GAME.mClip.globalToLocal(_local2);
Common.addClip("fwg.Arrow", "mArrow", Global.GAME.mClip, {_x:_local2.x, _y:_local2.y, _rotation:((Math.abs(_local3) < (Math.PI/2)) ? (((_local3 * Common.a2r) - random(20)) - 10) : (((_local3 * Common.a2r) + random(20)) + 10)), nDir:nDir});
}
function fallEnd() {
bFall = false;
nSpeed_y = 0;
mClip._y = nY_mClip;
setPos_0();
if (bHit) {
nMoment = 6;
mClip._rotation = -90;
} else {
stand();
}
mClip.mArm_0.mClip.gotoAndStop(1);
}
function beHit(_l, _r) {
mClip.mArm_0.mClip.gotoAndStop(1);
nHealth = nHealth - 10;
mClip._y = nY_mClip;
var _local2 = math.Vector.polar(_l, _r);
nSpeed_x = int(_local2.x);
nSpeed_y = int(_local2.y);
if (((nSpeed_y < 0) || (nMoment == 6)) || (bFall)) {
if (bHit) {
if (nSpeed_y > -8) {
nSpeed_y = -8;
}
}
bFall = true;
nMoment = 5;
} else {
nMoment = 4;
mClip._rotation = Common.rdm_2(-20, 20);
mClip.mHead._rotation = Common.rdm_2(-30, 30);
}
bHit = true;
mClip.mHead.mEye.gotoAndPlay(2);
nTime = 30;
}
function ckHit(_m) {
var _local2 = {x:0, y:0};
var _local3 = new Object();
_m.localToGlobal(_local2);
_local3.x = Global.GAME.pKnight.vHit.x;
_local3.y = Global.GAME.pKnight.vHit.y;
Global.GAME.pKnight.localToGlobal(_local3);
var _local5 = Common.distance(_local2.x, _local2.y, _local3.x, _local3.y);
if (_local5 < (_m.nRadius + Global.GAME.pKnight.nRadius)) {
Global.GAME.pKnight.beHit();
_local2.x = (_local2.x + _local3.x) / 2;
_local2.y = (_local2.y + _local3.y) / 2;
Global.GAME.pKnight.globalToLocal(_local2);
Common.addClip("mBlood", null, Global.GAME.pKnight, {_x:_local2.x, _y:_local2.y, _rotation:_m._rotation + Common.rdm_2(-60, 60), _xscale:((-nDir) / Global.GAME.pKnight.nDir) * 100});
}
}
function death() {
remove();
Global.playSound("sdDeath_" + random(8));
Global.GAME.pKnight.nKill++;
}
function movement() {
var _local2 = getTimer();
if (bHit) {
switch (nMoment) {
case 4 :
if (__get__nHealth() > 0) {
if (nTime <= 0) {
nTime = 0;
bHit = false;
stand();
} else {
nTime--;
}
} else {
death();
delete onEnterFrame;
onEnterFrame = null;
new Exp(mClip, Global.GAME.mClip.mMid);
}
break;
case 5 :
mClip._rotation = ((-nSpeed_y) * 3) - 90;
break;
case 6 :
nTime--;
if (__get__nHealth() > 0) {
if (nTime <= 0) {
bHit = false;
stand();
} else if (nTime < 20) {
mClip._rotation = (-nTime) * 4;
}
} else {
if (mClip._alpha > 99) {
if (random(3)) {
death();
} else {
nMoment = 4;
break;
}
}
mClip._alpha = mClip._alpha - 10;
if (mClip._alpha < 0) {
removeMovieClip();
}
}
break;
case 7 :
}
} else {
switch (nMoment) {
case 0 :
mClip.mHead._y = (-Common.linearCycle(_local2, 800, 2)) - 7;
break;
case 1 :
mClip.mHead._y = (-Common.linearCycle(_local2, 800, 2)) - 7;
mClip.mLeg_0._rotation = 100 - Common.linearCycle(_local2, 800, 180);
mClip.mLeg_1._rotation = 100 - Common.linearCycle(_local2 + 400, 800, 180);
mClip.mArm_0._rotation = mClip.mLeg_0._rotation + 90;
mClip.mArm_1._rotation = mClip.mLeg_1._rotation + 90;
mClip.mArm_0._x = (mClip.mLeg_0._x = Common.linearCycle(_local2, 800, 10) - 5);
mClip.mArm_1._x = (mClip.mLeg_1._x = Common.linearCycle(_local2 + 400, 800, 10) - 5);
mClip._y = (-Common.linearCycle(_local2 + 200, 400, 20)) - 10;
break;
case 2 :
break;
case 3 :
}
}
}
function moving() {
if (nSpeed_x) {
_x = _x + nSpeed_x;
if (!bFall) {
if (bHit) {
nSpeed_x = nSpeed_x / 2;
nSpeed_x = int(nSpeed_x);
}
setPos_0();
}
}
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
ctrl();
falling();
moving();
movement();
if (_y > 480) {
remove();
removeMovieClip();
}
}
}
function ctrl() {
if (!bHit) {
var _local2 = pTarget._x - _x;
if (Math.abs(_local2) > nRange_atk) {
if (nTime <= 0) {
nTime = 0;
walk(Common.vpNum(_local2));
} else {
nTime = nTime - 10;
}
} else {
if (nTime == 0) {
stand();
nTime = 120;
mClip.mArm_0._rotation = 0;
} else if (nTime < 100) {
mClip.mArm_0.mClip.play();
}
nTime--;
}
}
}
static var aRange_atk = new Array(70, 100, 200);
static var aOffset = new Array(20, 40, 100);
}
Symbol 388 MovieClip [__Packages.Exp] Frame 0
class Exp
{
var mc, mHit, totalPiece, onFinish;
function Exp (_mc, _m2) {
mc = _mc;
mHit = _m2;
mc.filters = null;
mc.exp = this;
mc._rotation = 0;
totalPiece = 0;
mc.stop();
mc.onEnterFrame = function () {
delete this.onEnterFrame;
this.exp.init();
};
}
function init(Void) {
var _local2;
var _local4 = 1;
for (var _local5 in mc) {
_local2 = mc[_local5];
if (_local2._parent != mc) {
continue;
}
totalPiece++;
_local2.swapDepths(_local4++);
_local2.x = (0.1 * _local2._y) + ((Math.random() - 0.5) * 7);
_local2.y = (0.1 * _local2._x) + ((Math.random() - 0.5) * 7);
_local2.z = 0;
_local2.vx = _local2.x;
_local2.vy = _local2.y;
_local2.vz = 20 * (Math.random() + 0.5);
_local2.va = 10 - (Math.random() * 21);
_local2.g = -2;
_local2.onEnterFrame = function () {
this._rotation = this._rotation + this.va;
this.vx = this.vx * 0.95;
this.vy = this.vy * 0.95;
this.x = this.x + this.vx;
this.y = this.y + this.vy;
this.vz = this.vz + this.g;
this.z = this.z + this.vz;
var _local2 = {x:_x, y:_y};
this.localToGlobal(_local2);
if (this._parent.exp.mHit.hitTest(_local2.x, _local2.y, true)) {
this.z = 0;
this.vz = this.vz * -0.2;
this._alpha = this._alpha - 40;
if (this._alpha <= 0) {
this._parent.exp.delPiece();
this.removeMovieClip();
}
}
this.xyObj = Exp.getXY(this.x, this.y, this.z);
this._x = this.xyObj._x;
this._y = this.xyObj._y;
};
}
}
function delPiece(Void) {
if ((--totalPiece) <= 0) {
mc.swapDepths(0);
mc._parent.removeMovieClip();
onFinish();
}
}
static function getXY(x, y, z) {
return({_x:x, _y:-z});
}
}
Symbol 389 MovieClip [__Packages.fwg.Enemy_1] Frame 0
class fwg.Enemy_1 extends MovieClip
{
var _y, nY, nR, nSpeed_x, nSpeed_y, nMoment, bFall, nDir, pTarget, nRange_atk, nTime, nRadius, vHit, nHealth_max, mClip, __nHealth, mHealth, _xscale, bHit, removeMovieClip, _x;
function Enemy_1 () {
super();
_y = _y + Common.rdm_2(-50, 20);
nY = _y;
nR = 0;
nSpeed_x = 0;
nSpeed_y = 0;
nMoment = 0;
bFall = true;
nDir = 1;
pTarget = Global.GAME.pKnight;
Global.GAME.aEnemy.push(this);
nRange_atk = 250 + random(100);
nTime = 0;
nRadius = 40;
vHit = new math.Vector(0, 0);
nHealth = ((nHealth_max = 200));
}
function init() {
mClip.mHead.gotoAndStop(random(mClip.mHead._totalframes) + 1);
}
function get nHealth() {
return(__nHealth);
}
function set nHealth(_nHealth) {
__nHealth = _nHealth;
mHealth.mClip._xscale = (__nHealth / nHealth_max) * 100;
//return(nHealth);
}
function walk(_n) {
if ((nDir != _n) || (nSpeed_x == 0)) {
mClip.mArm_0.mClip.gotoAndStop(1);
nDir = _n;
_xscale = nDir * 100;
mClip._rotation = 0;
nMoment = 1;
nSpeed_x = _n * 9;
}
}
function bow(_m, x, y) {
var _local2 = {x:x, y:y};
_m.localToGlobal(_local2);
Global.GAME.mClip.globalToLocal(_local2);
var _local3 = Common.getAngle(Global.GAME.pKnight, this);
Common.addClip("fwg.Arrow_2", "mArrow_2", Global.GAME.mClip, {_x:_local2.x, _y:_local2.y, _rotation:((Math.abs(_local3) < (Math.PI/2)) ? (((_local3 * Common.a2r) - random(40)) - 10) : (((_local3 * Common.a2r) + random(40)) + 10)), nDir:nDir});
}
function fallEnd() {
}
function beHit(_l, _r) {
nMoment = 4;
mClip.mHead.mEye.gotoAndPlay(2);
bHit = true;
nHealth = nHealth - 10;
nTime = 30;
}
function movement() {
var _local2 = getTimer();
if (bHit) {
switch (nMoment) {
case 4 :
if (nHealth > 0) {
mClip.mArm._rotation = -Common.linearCycle(_local2, 800, 30);
mClip.mArm._yscale = 100 - Common.linearCycle(_local2, 800, 200);
mClip.mHead._rotation = Common.linearCycle(_local2 + 100, 800, 30);
mClip._y = -Common.linearCycle(_local2, 800, 20);
mClip._rotation = -Common.linearCycle(_local2 + 100, 800, 30);
mClip.mLeg._rotation = -Common.linearCycle(_local2, 800, 60);
if (nTime <= 0) {
nTime = 0;
bHit = false;
nMoment = 0;
} else {
nTime--;
}
} else {
nSpeed_x = 0;
nMoment = 6;
remove();
}
break;
case 5 :
break;
case 6 :
if (mClip._alpha > 90) {
remove();
}
mClip._alpha = mClip._alpha - 10;
if (mClip._alpha < 0) {
Global.GAME.pKnight.nKill++;
Global.GAME.nScore = Global.GAME.nScore + 5;
Global.playSound("sdDeath_d");
removeMovieClip();
}
break;
case 7 :
}
} else {
switch (nMoment) {
case 0 :
case 1 :
mClip.mArm._rotation = -Common.linearCycle(_local2, 800, 30);
mClip.mArm._yscale = 100 - Common.linearCycle(_local2, 800, 200);
mClip.mHead._rotation = Common.linearCycle(_local2 + 100, 800, 30);
mClip._y = -Common.linearCycle(_local2, 800, 20);
mClip._rotation = -Common.linearCycle(_local2 + 100, 800, 30);
mClip.mLeg._rotation = -Common.linearCycle(_local2, 800, 60);
break;
case 2 :
break;
case 3 :
}
}
}
function moving() {
var _local2 = getTimer();
_x = _x + nSpeed_x;
_y = _y + nSpeed_y;
if (Math.abs(_y - nY) > 50) {
nSpeed_y = Common.vpNum(nY - _y);
} else {
(nSpeed_y == 0) && ((nSpeed_y = -1));
}
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
ctrl();
moving();
movement();
}
}
function ctrl() {
if (!bHit) {
var _local2 = pTarget._x - _x;
if (Math.abs(_local2) > nRange_atk) {
walk(Common.vpNum(_local2));
} else if (nTime == 0) {
if (Common.vpNum(_local2) == nDir) {
bow(mClip.mHead, 50, 10);
nTime = 60;
}
} else {
nTime--;
}
}
}
function remove() {
Common.removeArray(Global.GAME.aEnemy, this);
}
}
Symbol 390 MovieClip [__Packages.fwg.Knight] Frame 0
class fwg.Knight extends MovieClip
{
var nTime_hit, nGn, bRun, nW_h, nSpeed_x, nSpeed_y, nY_p1, nY_p2, nR, nR_weapon, nMoment, nMode, bChain, nMode_skill, nTime_0, nTime_hold, bFall, nDir, nRadius, nSuper_max, nHealth_max, vHit, nCombo, sdHit, sdRun, nY_house, mHouse, nY_hero, mHero, __nHealth, pCtrl, __nSuper, __nKill, _xscale, _x, _y, _parent;
function Knight () {
super();
nTime_hit = 0;
nGn = 0;
bRun = true;
nW_h = 20;
nSpeed_x = 0;
nSpeed_y = 0;
nY_p1 = 0;
nY_p2 = 0;
nR = 0;
nR_weapon = 0;
nMoment = 0;
nMode = 0;
bChain = false;
nMode_skill = 0;
nTime_0 = 0;
nTime_hold = 0;
bFall = true;
nDir = 1;
nRadius = 40;
nSuper = ((nSuper_max = 200));
nHealth = ((nHealth_max = 100));
vHit = new math.Vector(0, -30);
nKill = (0);
nCombo = 0;
sdHit = new Sound(this);
sdRun = new Sound(this);
sdRun.attachSound("sdHorse_run");
sdHit.attachSound("sdHit_" + random(3));
}
function init() {
nY_house = mHouse._y;
nY_hero = mHero._y;
}
function get nHealth() {
return(__nHealth);
}
function set nHealth(_nHealth) {
__nHealth = _nHealth;
if (__nHealth < 0) {
Global.GAME.nKill = nKill;
Global.GAME.gotoAndStop("gameover");
}
Global.GAME.mHealth.mClip._xscale = (__nHealth / nHealth_max) * 100;
//return(nHealth);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
pCtrl.move();
falling();
moving();
movement();
}
}
function get nSuper() {
return(__nSuper);
}
function set nSuper(_nSuper) {
__nSuper = _nSuper;
Global.GAME.mSuper.mClip._xscale = (__nSuper / nSuper_max) * 100;
//return(nSuper);
}
function get nKill() {
return(__nKill);
}
function set nKill(_nKill) {
__nKill = _nKill;
Global.GAME.mKill.sTxt = "KILLS: " + __nKill;
if (__nKill > 0) {
nCombo++;
Global.GAME.nScore = Global.GAME.nScore + nCombo;
Global.GAME.mCombo.removeMovieClip();
Global.GAME.mCombo = Global.GAME.attachMovie("mCombo", "mCombo", Global.GAME.getNextHighestDepth(), {_x:Global.WIDTH - 10, _y:350, sTxt:"SLAUGHTER\nBONUS " + nCombo, nTime:120 - (nCombo * 2), rtFun:function () {
Global.GAME.pKnight.nCombo = 0;
}});
}
//return(nKill);
}
function beHit(_l, _r) {
if ((getTimer() - nTime_hit) > 50) {
nTime_hit = getTimer();
sdHit.attachSound("sdHit_" + random(3));
sdHit.start();
}
nHealth = nHealth - 2;
}
function walk(_n) {
if ((nDir != _n) || (nSpeed_x == 0)) {
nDir = _n;
_xscale = nDir * 100;
(bRun ? ((nSpeed_x = _n * 7)) : ((nSpeed_x = _n * 4)));
if (!bFall) {
if (bRun) {
nMoment = 2;
} else {
nMoment = 1;
mHouse._y = nY_house;
mHero._y = nY_hero;
mHouse.mTail._rotation = 0;
}
}
}
}
function stand() {
nSpeed_x = 0;
bRun = true;
if (!bFall) {
nMoment = 0;
mHouse._y = nY_house;
mHero._y = nY_hero;
mHouse.mTail._rotation = 0;
mHouse.mLeg_0._rotation = 0;
mHouse.mLeg_2._rotation = 0;
mHouse.mLeg_1._rotation = 0;
mHouse.mLeg_3._rotation = 0;
setPos();
}
}
function jump() {
if (!bFall) {
Global.playSound("sdJp");
nMoment = 3;
nSpeed_y = -24;
bFall = true;
mHouse._y = nY_house;
mHero._y = nY_hero;
mHouse.mTail._rotation = 90;
mHouse.mLeg_0._rotation = -90;
mHouse.mLeg_2._rotation = -90;
mHouse.mLeg_1._rotation = 60;
mHouse.mLeg_3._rotation = 60;
}
}
function fallEnd() {
bFall = false;
nSpeed_y = 0;
setPos();
if (nSpeed_x != 0) {
nMoment = 2;
} else {
sdRun.start();
stand();
}
}
function houseAtk() {
}
function attacking() {
nTime_hold++;
}
function attack_2() {
if (nSuper > 160) {
nSuper = nSuper - 160;
mHero.mArm_0.gotoAndStop((nMode * 10) + 2);
}
}
function isStop() {
var _local2 = !bChain;
bChain = false;
return(_local2);
}
function atkReady() {
nTime_0 = 0;
bChain = false;
}
function attack_0() {
if (nMode_skill == 0) {
if ((getTimer() - nTime_0) < 300) {
bChain = true;
}
nTime_0 = getTimer();
mHero.mArm_0.mClip.play();
}
}
function ckHit(_m) {
var _local4 = {x:0, y:0};
var _local2 = new Object();
_m.localToGlobal(_local4);
for (var _local9 in Global.GAME.aEnemy) {
_local2.x = Global.GAME.aEnemy[_local9].vHit.x;
_local2.y = Global.GAME.aEnemy[_local9].vHit.y;
Global.GAME.aEnemy[_local9].localToGlobal(_local2);
var _local5 = Common.distance(_local4.x, _local4.y, _local2.x, _local2.y);
if (_local5 < (_m.nRadius + Global.GAME.aEnemy[_local9].nRadius)) {
if ((getTimer() - nTime_hit) > 50) {
nTime_hit = getTimer();
sdHit.attachSound("sdHit_" + random(3));
sdHit.start();
}
(nSuper < 200) && (nSuper = ((nSuper+1))nSuper);
Global.GAME.aEnemy[_local9].beHit(_m.nPower, ((nDir > 0) ? (_m._rotation / Common.a2r) : (Math.PI - (_m._rotation / Common.a2r))));
_local2.x = (_local4.x + _local2.x) / 2;
_local2.y = (_local4.y + _local2.y) / 2;
Global.GAME.aEnemy[_local9].globalToLocal(_local2);
Common.addClip("mBlood", null, Global.GAME.aEnemy[_local9], {_x:_local2.x, _y:_local2.y, _rotation:_m._rotation + Common.rdm_2(-60, 60)});
}
}
}
function changeWeapon(_n) {
if (_n == undefined) {
((nMode == 1) ? ((nMode = 0)) : ((nMode = 1)));
} else {
nMode = _n;
}
Global.playSound("sdCh");
mHero.mArm_0.gotoAndStop((nMode * 10) + 1);
}
function movement() {
var _local2 = getTimer();
switch (nMoment) {
case 0 :
mHero.mHead._y = (-Common.linearCycle(_local2, 800, 2)) - 10;
mHouse.mHead._rotation = Common.linearCycle(_local2, 800, 15);
break;
case 1 :
mHero.mHead._y = (-Common.linearCycle(_local2, 800, 2)) - 10;
mHouse.mHead._rotation = Common.linearCycle(_local2, 800, 15);
mHouse.mLeg_0._rotation = 45 - Common.linearCycle(_local2, 800, 90);
mHouse.mLeg_2._rotation = 45 - Common.linearCycle(_local2 + 400, 800, 90);
mHouse.mLeg_1._rotation = 45 - Common.linearCycle(_local2 + 100, 800, 90);
mHouse.mLeg_3._rotation = 45 - Common.linearCycle(_local2 + 500, 800, 90);
break;
case 2 :
mHero.mHead._y = (-Common.unlinearCycle(_local2, 500, 2)) - 10;
mHouse.mHead._rotation = Common.unlinearCycle(_local2, 500, 15);
mHouse.mTail._rotation = Common.linearCycle(_local2 - 100, 500, 60);
mHouse.mLeg_0._rotation = 60 - Common.unlinearCycle(_local2, 500, 120);
mHouse.mLeg_2._rotation = 60 - Common.unlinearCycle(_local2 + 50, 500, 120);
mHouse.mLeg_1._rotation = Common.unlinearCycle(_local2, 500, 120) - 60;
mHouse.mLeg_3._rotation = Common.unlinearCycle(_local2 + 50, 500, 120) - 60;
mHouse._y = ((-Common.linearCycle(_local2 + 50, 500, 20)) + nY_house) + 5;
mHero._y = ((-Common.linearCycle(_local2 + 25, 500, 20)) + nY_hero) + 5;
if ((mHero._y > -27) && (sdRun.position > 300)) {
sdRun.start();
}
break;
case 3 :
mHero._rotation = (mHouse._rotation = nSpeed_y);
break;
case 4 :
break;
case 5 :
break;
case 6 :
}
}
function moving() {
if (nSpeed_x) {
_x = _x + nSpeed_x;
ground();
(!bFall) && (setPos());
}
}
function falling() {
if (bFall) {
nSpeed_y = nSpeed_y + Game.nG;
if (Game.hitGround(_x, _y + nSpeed_y, _parent, Global.GAME.mClip.mMid)) {
fallEnd();
} else {
_y = _y + nSpeed_y;
}
}
}
function setPos() {
nY_p1 = Game.getBetween(_x - nW_h, _y, _parent, Global.GAME.mClip.mMid);
nY_p2 = Game.getBetween(_x + nW_h, _y, _parent, Global.GAME.mClip.mMid);
_y = ((Game.getBetween(_x, _y, _parent, Global.GAME.mClip.mMid) + _y) / 2) - 1;
nR = (Math.atan2(nY_p1 - nY_p2, nW_h * 2) + nR) / 2;
mHero._rotation = (mHouse._rotation = ((-nR) * Common.a2r) * nDir);
}
function ground() {
var _local3 = _x + _parent._x;
if (nSpeed_x > 0) {
if (_local3 > 400) {
if ((Global.GAME.mMid.mShape_0._x + Global.GAME.mMid._x) < -320) {
Global.GAME.mMid.mShape_0._x = Global.GAME.mMid.mShape_0._x + ((Global.WIDTH * 2) - 20);
Global.GAME.mMid.mShape_0.mClip.gotoAndStop(random(6) + 1);
Global.GAME.mMid.mShape_0._name = "mShape_0_";
Global.GAME.mMid.mShape_1._name = "mShape_0";
Global.GAME.mMid.mShape_2._name = "mShape_1";
Global.GAME.mMid.mShape_0_._name = "mShape_2";
}
_parent._x = _parent._x - nSpeed_x;
_parent._parent.mMid._x = _parent._x * 0.5;
var _local2 = (Math.abs(_parent._x) + (Global.WIDTH / 2)) / Global.WIDTH;
if (nGn != int(_local2)) {
nGn = int(_local2);
Global.GAME.mClip.mMid.mShape_0.gotoAndStop(random(9) + 1);
Global.GAME.mClip.mMid.mShape_0._x = Global.GAME.mClip.mMid.mShape_0._x + (Global.WIDTH * 3);
Global.GAME.mClip.mMid.mShape_0._name = "mShape_0_";
Global.GAME.mClip.mMid.mShape_1._name = "mShape_0";
Global.GAME.mClip.mMid.mShape_2._name = "mShape_1";
Global.GAME.mClip.mMid.mShape_0_._name = "mShape_2";
}
}
} else if (_local3 < 240) {
if ((Global.GAME.mMid.mShape_2._x + Global.GAME.mMid._x) > 960) {
Global.GAME.mMid.mShape_2._x = Global.GAME.mMid.mShape_2._x - ((Global.WIDTH * 2) - 20);
Global.GAME.mMid.mShape_2.mClip.gotoAndStop(random(6) + 1);
Global.GAME.mMid.mShape_2._name = "mShape_2_";
Global.GAME.mMid.mShape_1._name = "mShape_2";
Global.GAME.mMid.mShape_0._name = "mShape_1";
Global.GAME.mMid.mShape_2_._name = "mShape_0";
}
_parent._x = _parent._x - nSpeed_x;
_parent._parent.mMid._x = _parent._x * 0.5;
var _local2 = (Math.abs(_parent._x) + (Global.WIDTH / 2)) / Global.WIDTH;
if (nGn != int(_local2)) {
nGn = int(_local2);
Global.GAME.mClip.mMid.mShape_2.gotoAndStop(random(9) + 1);
Global.GAME.mClip.mMid.mShape_2._x = Global.GAME.mClip.mMid.mShape_2._x - (Global.WIDTH * 3);
Global.GAME.mClip.mMid.mShape_2._name = "mShape_2_";
Global.GAME.mClip.mMid.mShape_1._name = "mShape_2";
Global.GAME.mClip.mMid.mShape_0._name = "mShape_1";
Global.GAME.mClip.mMid.mShape_2_._name = "mShape_0";
}
}
}
}
Symbol 391 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 392 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);
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 393 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);
}
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();
}
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 394 MovieClip [__Packages.fwg.Arrow] Frame 0
class fwg.Arrow extends MovieClip
{
var nR, _rotation, nSpeed, _x, _y, vSpeed, localToGlobal, removeMovieClip, nDir;
function Arrow () {
super();
nR = _rotation / Common.a2r;
}
function init() {
trace(nR);
nSpeed = Common.parabolaSpeed(Global.GAME.pKnight._x, (Global.GAME.pKnight._y - random(30)) - 30, _x, _y, nR, 1);
trace(nSpeed + "____________");
if (isNaN(nSpeed)) {
nSpeed = 20;
}
vSpeed = math.Vector.polar(nSpeed, nR);
}
function onEnterFrame() {
if (!Global.GAME.bPause) {
vSpeed.y++;
_x = _x + vSpeed.x;
_y = _y + vSpeed.y;
_rotation = Math.atan2(vSpeed.y, vSpeed.x) * Common.a2r;
var _local2 = {x:20, y:0};
localToGlobal(_local2);
if (Global.GAME.mClip.mMid.hitTest(_local2.x, _local2.y, true)) {
removeMovieClip();
} else if (_y > 480) {
removeMovieClip();
}
}
}
function ckHit(_m) {
var _local2 = {x:0, y:0};
var _local3 = new Object();
_m.localToGlobal(_local2);
_local3.x = Global.GAME.pKnight.vHit.x;
_local3.y = Global.GAME.pKnight.vHit.y;
Global.GAME.pKnight.localToGlobal(_local3);
var _local5 = Common.distance(_local2.x, _local2.y, _local3.x, _local3.y);
if (_local5 < (_m.nRadius + Global.GAME.pKnight.nRadius)) {
Global.GAME.pKnight.beHit();
_local2.x = (_local2.x + _local3.x) / 2;
_local2.y = (_local2.y + _local3.y) / 2;
Global.GAME.pKnight.globalToLocal(_local2);
Common.addClip("mBlood", null, Global.GAME.pKnight, {_x:_local2.x, _y:_local2.y, _rotation:_m._rotation + Common.rdm_2(-60, 60), _xscale:((-nDir) / Global.GAME.pKnight.nDir) * 100});
removeMovieClip();
}
}
}
Symbol 395 MovieClip [__Packages.fwg.Arrow_2] Frame 0
class fwg.Arrow_2 extends fwg.Arrow
{
function Arrow_2 () {
super();
}
}
Symbol 396 MovieClip [__Packages.fwg.HitPoint] Frame 0
class fwg.HitPoint extends MovieClip
{
var _visible, nRadius, _xscale, pChar;
function HitPoint () {
super();
_visible = false;
nRadius = Math.ceil(_xscale / 20);
}
function init() {
pChar.ckHit(this);
}
}
Symbol 29 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
if (bOpen) {
_root.stop();
onPress = function () {
Global.FWGURL();
};
} else {
this._visible = false;
}
Symbol 29 MovieClip Frame 114
stop();
onEnterFrame = function () {
if (_alpha <= 0) {
_parent.play();
delete onEnterFrame;
} else {
_alpha = (_alpha - 5);
}
};
Symbol 38 MovieClip [mBlood] Frame 1
gotoAndPlay((random(3) * 10) + 2);
Symbol 38 MovieClip [mBlood] Frame 11
this.removeMovieClip();
Symbol 38 MovieClip [mBlood] Frame 21
this.removeMovieClip();
Symbol 38 MovieClip [mBlood] Frame 31
this.removeMovieClip();
Symbol 40 MovieClip [fwg.HitPoint] Frame 1
#initclip 28
Object.registerClass("fwg.HitPoint", fwg.HitPoint);
#endinitclip
var sTemp = typeof(eval (pChar));
if (sTemp == "function") {
pChar = eval (pChar)();
} else {
pChar = eval (pChar);
}
delete sTemp;
this.init();
Symbol 48 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
_parent._parent._parent.nTime = 0;
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 74 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 74 MovieClip Frame 13
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Symbol 79 MovieClip Frame 1
stop();
_parent._parent._parent.nTime = 0;
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 79 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Symbol 86 MovieClip Frame 1
stop();
_parent._parent._parent.nTime = 0;
Symbol 86 MovieClip Frame 13
_parent._parent._parent.bow(this, 15, 0);
Symbol 94 MovieClip [fwg.Enemy_0] Frame 1
#initclip 19
Object.registerClass("fwg.Enemy_0", fwg.Enemy_0);
#endinitclip
this.init();
Symbol 94 MovieClip [fwg.Enemy_0] Frame 2
stop();
Symbol 111 MovieClip [fwg.Enemy_1] Frame 1
#initclip 20
Object.registerClass("fwg.Enemy_1", fwg.Enemy_1);
#endinitclip
this.init();
Symbol 111 MovieClip [fwg.Enemy_1] Frame 2
stop();
Symbol 153 MovieClip Frame 1
stop();
_parent._parent._parent.atkReady();
Symbol 153 MovieClip Frame 5
Global.playSound("sd_" + random(6));
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Symbol 153 MovieClip Frame 11
if (_parent._parent._parent.isStop()) {
gotoAndStop (1);
}
Symbol 153 MovieClip Frame 15
Global.playSound("sd_" + random(6));
Instance of Symbol 40 MovieClip [fwg.HitPoint] "h3" in Symbol 153 MovieClip Frame 17
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] "h2" in Symbol 153 MovieClip Frame 17
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 15;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 17
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 17
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 17
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Symbol 153 MovieClip Frame 21
if (_parent._parent._parent.isStop()) {
gotoAndPlay (61);
}
Symbol 153 MovieClip Frame 25
Global.playSound("sd_" + random(6));
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 27
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 27
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 27
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 10;
}
Symbol 153 MovieClip Frame 31
if (_parent._parent._parent.isStop()) {
gotoAndPlay (70);
}
Symbol 153 MovieClip Frame 33
Global.playSound("sd_" + random(6));
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 35
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 15;
}
Symbol 153 MovieClip Frame 41
if (_parent._parent._parent.isStop()) {
gotoAndStop (1);
}
Symbol 153 MovieClip Frame 44
Global.playSound("sd_" + random(6));
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 47
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 20;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 47
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 20;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 47
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 20;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 153 MovieClip Frame 47
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 20;
}
Symbol 153 MovieClip Frame 62
gotoAndStop (1);
Symbol 153 MovieClip Frame 71
gotoAndStop (1);
Symbol 153 MovieClip Frame 80
gotoAndStop (1);
Symbol 155 MovieClip Frame 1
Global.playSound("sd_" + random(6));
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 155 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 155 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 155 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 155 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 155 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent._parent";
nPower = 10;
}
Symbol 155 MovieClip Frame 6
gotoAndPlay (1);
Symbol 156 MovieClip Frame 86
_parent.gotoAndStop(1);
Symbol 159 MovieClip Frame 1
stop();
_parent._parent._parent.atkReady();
Symbol 159 MovieClip Frame 7
Global.playSound("sd_" + random(6));
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 159 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 14;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 159 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 14;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 159 MovieClip Frame 8
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 14;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 159 MovieClip Frame 8
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 14;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 159 MovieClip Frame 9
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 14;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 159 MovieClip Frame 9
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 14;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 159 MovieClip Frame 10
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 14;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 159 MovieClip Frame 10
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 14;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 159 MovieClip Frame 11
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 14;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 159 MovieClip Frame 11
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent";
nPower = 14;
}
Symbol 161 MovieClip Frame 1
Global.playSound("sd_" + random(6));
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 161 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 161 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent._parent";
nPower = 10;
}
Symbol 161 MovieClip Frame 3
Global.playSound("sd_" + random(6));
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 161 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 161 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent._parent";
nPower = 10;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 161 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent._parent._parent._parent";
nPower = 10;
}
Symbol 162 MovieClip Frame 71
_parent.gotoAndStop(11);
Symbol 163 MovieClip Frame 1
stop();
Global.GAME.pKnight.nMode_skill = 0;
Symbol 163 MovieClip Frame 2
Global.GAME.pKnight.nMode_skill = 2;
Symbol 163 MovieClip Frame 11
stop();
Global.GAME.pKnight.nMode_skill = 0;
Symbol 163 MovieClip Frame 12
Global.GAME.pKnight.nMode_skill = 2;
Symbol 165 MovieClip [fwg.Knight] Frame 1
#initclip 21
Object.registerClass("fwg.Knight", fwg.Knight);
#endinitclip
this.init();
Symbol 165 MovieClip [fwg.Knight] Frame 2
stop();
Symbol 174 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 174 MovieClip Frame 6
stop();
this.cacheAsBitmap = true;
Symbol 174 MovieClip Frame 11
stop();
this.cacheAsBitmap = true;
Symbol 174 MovieClip Frame 16
stop();
this.cacheAsBitmap = true;
Symbol 181 MovieClip Frame 1
gotoAndStop(random(6) + 1);
Symbol 182 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 182 MovieClip Frame 6
stop();
this.cacheAsBitmap = true;
Symbol 182 MovieClip Frame 11
stop();
this.cacheAsBitmap = true;
Symbol 182 MovieClip Frame 16
stop();
this.cacheAsBitmap = true;
Symbol 193 MovieClip Frame 1
stop();
Symbol 199 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.01", "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 200 MovieClip Frame 1
_y = 0;
_x = 0;
Instance of Symbol 199 MovieClip in Symbol 200 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sSelect = "visonNumber";
bTop = true;
bLeft = true;
}
Instance of Symbol 199 MovieClip in Symbol 200 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sSelect = "credits";
bTop = false;
bLeft = false;
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("credits");
}
Instance of Symbol 199 MovieClip in Symbol 200 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sSelect = "copyright";
bTop = false;
bLeft = true;
}
on (press) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 208 MovieClip [Txt] Frame 1
#initclip 22
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 217 MovieClip [Btn] Frame 1
#initclip 23
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 249 MovieClip Frame 2
stop();
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "left";
}
on (press) {
_parent.gotoAndStop("i");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_sTxt = "SKIP";
autoSize = "left";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("loading");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "left";
}
on (press) {
_parent.gotoAndStop("i_0");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "left";
}
on (press) {
_parent.gotoAndStop("i0");
}
Symbol 249 MovieClip Frame 4
Global.GAME.pKnight.stand();
for (var i in fwg.Human.aKey) {
this["s_" + int(i)] = _global.getCodev(fwg.Human.aKey[i]);
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "left";
}
on (press) {
_parent.gotoAndStop("i");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "left";
}
on (press) {
_parent.gotoAndPlay("i_1");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_sTxt = "SKIP";
autoSize = "left";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("loading");
}
Instance of Symbol 208 MovieClip [Txt] in Symbol 249 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "_parent.s_1";
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;
}
onClipEvent (load) {
tTxt.filters = null;
}
Instance of Symbol 208 MovieClip [Txt] in Symbol 249 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "_parent.s_2";
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;
}
onClipEvent (load) {
tTxt.filters = null;
}
Instance of Symbol 208 MovieClip [Txt] in Symbol 249 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "_parent.s_3";
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;
}
onClipEvent (load) {
tTxt.filters = null;
}
Instance of Symbol 208 MovieClip [Txt] in Symbol 249 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "_parent.s_5";
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;
}
onClipEvent (load) {
tTxt.filters = null;
}
Instance of Symbol 208 MovieClip [Txt] in Symbol 249 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "_parent.s_4";
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;
}
onClipEvent (load) {
tTxt.filters = null;
}
Instance of Symbol 208 MovieClip [Txt] in Symbol 249 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_sTxt = "";
sVariable = "_parent.s_0";
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;
}
onClipEvent (load) {
tTxt.filters = null;
}
Symbol 249 MovieClip Frame 6
Global.GAME.pKnight.walk(1);
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "left";
}
on (press) {
_parent.gotoAndStop("i_0");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "left";
}
on (press) {
_parent.gotoAndPlay("i_2");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
_sTxt = "SKIP";
autoSize = "left";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("loading");
}
Symbol 249 MovieClip Frame 66
Global.GAME.pKnight.walk(-1);
Symbol 249 MovieClip Frame 126
gotoAndPlay ("i_1");
Symbol 249 MovieClip Frame 127
Global.GAME.pKnight.walk(1);
Global.GAME.pKnight.jump();
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 127
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "left";
}
on (press) {
_parent.gotoAndPlay("i_1");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 127
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "left";
}
on (press) {
_parent.gotoAndPlay("i_3");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 127
//component parameters
onClipEvent (construct) {
_sTxt = "SKIP";
autoSize = "left";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("loading");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 127
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "left";
}
on (press) {
_parent.gotoAndStop("i_1");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 127
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "left";
}
on (press) {
_parent.gotoAndPlay("i_3");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 127
//component parameters
onClipEvent (construct) {
_sTxt = "SKIP";
autoSize = "left";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("loading");
}
Symbol 249 MovieClip Frame 203
gotoAndPlay ("i_2");
Symbol 249 MovieClip Frame 204
Global.GAME.pKnight.changeWeapon();
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 204
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "left";
}
on (press) {
_parent.gotoAndPlay("i_2");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 204
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "left";
}
on (press) {
_parent.gotoAndPlay("i_4");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 204
//component parameters
onClipEvent (construct) {
_sTxt = "SKIP";
autoSize = "left";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("loading");
}
Symbol 249 MovieClip Frame 253
gotoAndPlay ("i_3");
Symbol 249 MovieClip Frame 254
Global.GAME.pKnight.changeWeapon(0);
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 254
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "left";
}
on (press) {
_parent.gotoAndPlay("i_3");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 254
//component parameters
onClipEvent (construct) {
_sTxt = "NEXT";
autoSize = "left";
}
on (press) {
_parent.gotoAndPlay("i_5");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 254
//component parameters
onClipEvent (construct) {
_sTxt = "SKIP";
autoSize = "left";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("loading");
}
Symbol 249 MovieClip Frame 263
Global.GAME.pKnight.attack_0();
Symbol 249 MovieClip Frame 272
Global.GAME.pKnight.attack_0();
Symbol 249 MovieClip Frame 281
Global.GAME.pKnight.attack_0();
Symbol 249 MovieClip Frame 290
Global.GAME.pKnight.attack_0();
Symbol 249 MovieClip Frame 299
Global.GAME.pKnight.attack_0();
Symbol 249 MovieClip Frame 344
Global.GAME.pKnight.changeWeapon(1);
Symbol 249 MovieClip Frame 353
Global.GAME.pKnight.attack_0();
Symbol 249 MovieClip Frame 403
gotoAndPlay ("i_4");
Symbol 249 MovieClip Frame 404
Global.GAME.pKnight.changeWeapon(0);
Global.GAME.pKnight.nSuper = 200;
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 404
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "left";
}
on (press) {
_parent.gotoAndPlay("i_4");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 249 MovieClip Frame 404
//component parameters
onClipEvent (construct) {
_sTxt = "PLAY";
autoSize = "left";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("loading");
}
Symbol 249 MovieClip Frame 413
Global.GAME.pKnight.attack_2();
Symbol 249 MovieClip Frame 534
Global.GAME.pKnight.changeWeapon(1);
Global.GAME.pKnight.nSuper = 200;
Symbol 249 MovieClip Frame 543
Global.GAME.pKnight.attack_2();
Symbol 249 MovieClip Frame 653
gotoAndPlay ("i_5");
Symbol 303 MovieClip Frame 1
function movTo(mc) {
this._x = mc._x + 10;
this.clear();
this.lineStyle(1, 16777215);
this.moveTo(0, 0);
this.lineTo(0, mc._y - this._y);
}
Symbol 304 MovieClip Frame 1
function getCode(id) {
return(keyCodeArr[id]);
}
function setKey(key_mc) {
key_mc.isUsed = true;
key_mc.info = currentKey.info;
currentKey.prevFrame();
key_mc.nextFrame();
popup_mc.movTo(key_mc);
popup_mc.txt = key_mc.info;
save(currentKey.code, key_mc.code);
var _local2 = 0;
while (_local2 < 256) {
key_mc = keyBoard["key_mc" + _local2];
if (typeof(key_mc) == "movieclip") {
key_mc.enabled = key_mc.isUsed;
if (!key_mc.enabled) {
key_mc.prevFrame();
}
}
_local2++;
}
}
function save(oldCode, newCode) {
var _local1 = 0;
while (_local1 < 11) {
if (keyCodeArr[_local1] == oldCode) {
keyCodeArr[_local1] = newCode;
fwg.Human.aKey[_local1] = newCode;
}
_local1++;
}
}
_global.getCodev = function (code) {
return(eval ("key_mc" + code).str);
};
key_mc27.str = "Esc";
key_mc32.str = "Sp";
key_mc37.str = "\u2190";
key_mc38.str = "\u2191";
key_mc39.str = "\u2192";
key_mc40.str = "\u2193";
key_mc47.str = "";
key_mc48.str = "0";
key_mc49.str = "1";
key_mc50.str = "2";
key_mc51.str = "3";
key_mc52.str = "4";
key_mc53.str = "5";
key_mc54.str = "6";
key_mc55.str = "7";
key_mc56.str = "8";
key_mc57.str = "9";
key_mc65.str = "A";
key_mc66.str = "B";
key_mc67.str = "C";
key_mc68.str = "D";
key_mc69.str = "E";
key_mc70.str = "F";
key_mc71.str = "G";
key_mc72.str = "H";
key_mc73.str = "I";
key_mc74.str = "J";
key_mc75.str = "K";
key_mc76.str = "L";
key_mc77.str = "M";
key_mc78.str = "N";
key_mc79.str = "O";
key_mc80.str = "P";
key_mc81.str = "Q";
key_mc82.str = "R";
key_mc83.str = "S";
key_mc84.str = "T";
key_mc85.str = "U";
key_mc86.str = "V";
key_mc87.str = "W";
key_mc88.str = "X";
key_mc89.str = "Y";
key_mc90.str = "Z";
key_mc96.str = "N0";
key_mc97.str = "N1";
key_mc98.str = "N2";
key_mc99.str = "N3";
key_mc100.str = "N4";
key_mc101.str = "N5";
key_mc102.str = "N6";
key_mc103.str = "N7";
key_mc104.str = "N";
key_mc105.str = "N9";
key_mc106.str = "*";
key_mc107.str = "+";
key_mc108.str = "";
key_mc109.str = "-";
key_mc110.str = ".";
key_mc111.str = "/";
key_mc112.str = "F1";
key_mc113.str = "F2";
key_mc114.str = "F3";
key_mc115.str = "F4";
key_mc116.str = "F5";
key_mc117.str = "F6";
key_mc118.str = "F7";
key_mc119.str = "F8";
key_mc120.str = "F9";
key_mc122.str = "F11";
key_mc123.str = "F12";
key_mc186.str = ";";
key_mc187.str = "=";
key_mc188.str = ",";
key_mc189.str = "-";
key_mc190.str = ".";
key_mc191.str = "/";
key_mc192.str = "`";
key_mc219.str = "[";
key_mc220.str = "\\";
key_mc221.str = "]";
key_mc222.str = "'";
var keyCodeArr = new Array();
keyCodeArr = fwg.Human.aKey;
var keyArr = [[getCode(0), "JUMP"], [getCode(1), "TOGGLE WEAPON"], [getCode(2), "LEFT"], [getCode(3), "RIGHT"], [getCode(4), "ATTACK"], [getCode(5), "SPECIAL ATTACK"]];
var totalCtrl = keyArr.length;
var keyBoard = this;
var currentKey;
popup_mc._visible = false;
var i = 0;
while (i < 256) {
var key_mc = this["key_mc" + i];
if (typeof(key_mc) == "movieclip") {
key_mc.gotoAndStop(1);
key_mc.code = i;
key_mc.isUsed = false;
key_mc.enabled = false;
key_mc.onRollOver = function () {
this.nextFrame();
if (this.isUsed) {
popup_mc.movTo(this);
popup_mc._visible = true;
popup_mc.txt = this.info;
}
_root.userMouse.rollOver();
};
key_mc.onRollOut = function () {
if (this.isUsed) {
popup_mc._visible = false;
} else {
this.prevFrame();
}
_root.userMouse.rollOut();
};
key_mc.onPress = function () {
if (this.isUsed) {
currentKey = this;
currentKey.isUsed = false;
popup_mc.txt = "Select Any Key To Change";
var _local2 = 0;
while (_local2 < 256) {
var _local3 = keyBoard["key_mc" + _local2];
if (typeof(_local3) == "movieclip") {
_local3.enabled = !_local3.isUsed;
}
_local2++;
}
} else {
setKey(this);
}
};
}
i++;
}
var i = 0;
while (i < totalCtrl) {
var key_mc = keyBoard["key_mc" + keyArr[i][0]];
key_mc.info = keyArr[i][1];
key_mc.isUsed = true;
key_mc.enabled = true;
key_mc.nextFrame();
i++;
}
Symbol 304 MovieClip Frame 2
stop();
Symbol 315 MovieClip Frame 1
hit_mc.useHandCursor = false;
hit_mc.onRelease = function () {
};
Symbol 323 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 (Global.MUSIC.getVolume() > 0) {
notmusic_mc._visible = false;
}
if (Global.SOUND.getVolume() > 0) {
notsound_mc._visible = false;
}
music_btn.onRelease = function () {
trace("\u4F60\u70B9\u51FB\u4E86\u97F3\u4E50\u6309\u94AE\uFF01");
if (Global.MUSIC.getVolume() > 0) {
Global.MUSIC.setVolume(0);
notmusic_mc._visible = true;
} else {
Global.MUSIC.setVolume(100);
notmusic_mc._visible = false;
}
};
sound_btn.onRelease = function () {
trace("\u4F60\u70B9\u51FB\u4E86\u97F3\u6548\u6309\u94AE\uFF01");
if (Global.SOUND.getVolume() > 0) {
Global.SOUND.setVolume(0);
notsound_mc._visible = true;
} else {
Global.SOUND.setVolume(100);
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 324 MovieClip [Game] Frame 1
#initclip 24
Object.registerClass("Game", Game);
#endinitclip
this.init();
Symbol 324 MovieClip [Game] Frame 6
this.inMenu();
Symbol 324 MovieClip [Game] Frame 11
this.inCredits();
Instance of Symbol 208 MovieClip [Txt] in Symbol 324 MovieClip [Game] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "Eternal Clash";
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 = 30;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 208 MovieClip [Txt] in Symbol 324 MovieClip [Game] Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "By WinterWind";
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 = 30;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Symbol 324 MovieClip [Game] Frame 16
this.inHelp();
Instance of Symbol 217 MovieClip [Btn] in Symbol 324 MovieClip [Game] Frame 16
//component parameters
onClipEvent (construct) {
_sTxt = "MENU";
autoSize = "left";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("menu");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 324 MovieClip [Game] Frame 16
//component parameters
onClipEvent (construct) {
_sTxt = "KEY SETTINGS";
autoSize = "right";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("setting");
}
Symbol 324 MovieClip [Game] Frame 21
this.inSetting();
Symbol 324 MovieClip [Game] Frame 26
this.inNextLevel();
Symbol 324 MovieClip [Game] Frame 31
this.inGameWin();
Symbol 324 MovieClip [Game] Frame 36
this.inGameOver();
Symbol 324 MovieClip [Game] Frame 41
this.inLoading();
Symbol 324 MovieClip [Game] Frame 46
this.inPlaying();
Instance of Symbol 208 MovieClip [Txt] "mKill" in Symbol 324 MovieClip [Game] Frame 46
//component parameters
onClipEvent (construct) {
_sTxt = "KILLS: 0";
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 = 18;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 324 MovieClip [Game] Frame 46
//component parameters
onClipEvent (construct) {
_sTxt = "MENU";
autoSize = "right";
}
on (press, keyPress "p") {
if (Global.GAME.mMenu == undefined) {
Global.GAME.bPause = true;
Global.GAME.attachMovie("mMenu", "mMenu", Global.GAME.getNextHighestDepth(), {_x:Global.WIDTH / 2, _y:Global.HEIGHT / 2});
} else {
Global.GAME.bPause = false;
Global.GAME.mMenu.removeMovieClip();
}
}
Instance of Symbol 208 MovieClip [Txt] "mScore" in Symbol 324 MovieClip [Game] Frame 46
//component parameters
onClipEvent (construct) {
_sTxt = "SCORE: 0";
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 = 30;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Instance of Symbol 208 MovieClip [Txt] "mDay" in Symbol 324 MovieClip [Game] Frame 46
//component parameters
onClipEvent (construct) {
_sTxt = "DAYS: 1";
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 = 18;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Symbol 326 MovieClip [PopUp] Frame 1
#initclip 25
Object.registerClass("PopUp", PopUp);
#endinitclip
this.init();
Instance of Symbol 325 MovieClip "mBar" in Symbol 326 MovieClip [PopUp] Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (keyPress "<Space>") {
_parent.rtFun();
_parent.remove();
}
Symbol 326 MovieClip [PopUp] Frame 2
this.inFrame();
Symbol 341 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 345 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 346 MovieClip [mMenu] Frame 1
Common.enabledFor(true, this, _root, -16384);
Instance of Symbol 341 MovieClip in Symbol 346 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 345 MovieClip in Symbol 346 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 217 MovieClip [Btn] in Symbol 346 MovieClip [mMenu] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "BACK";
autoSize = "center";
}
on (press) {
Global.GAME.bPause = false;
_parent.removeMovieClip();
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 346 MovieClip [mMenu] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "QUIT GAME";
autoSize = "center";
}
on (press) {
Common.mask();
Global.GAME.gotoAndStop("menu");
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 346 MovieClip [mMenu] Frame 1
//component parameters
onClipEvent (construct) {
_sTxt = "_root._quality";
autoSize = "center";
}
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;
}
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 348 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent";
nPower = 10;
}
Symbol 349 MovieClip [fwg.Arrow] Frame 1
#initclip 26
Object.registerClass("fwg.Arrow", fwg.Arrow);
#endinitclip
this.init();
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 353 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
pChar = "_parent._parent";
nPower = 10;
}
Symbol 354 MovieClip [fwg.Arrow_2] Frame 1
#initclip 27
Object.registerClass("fwg.Arrow_2", fwg.Arrow_2);
#endinitclip
this.init();
Symbol 355 MovieClip [mCombo] Frame 1
var sTxt;
var nTime;
if (nTime == undefined) {
nTime = 50;
}
onEnterFrame = function () {
if (nTime == 0) {
play();
delete onEnterFrame;
} else {
nTime--;
}
};
Instance of Symbol 208 MovieClip [Txt] in Symbol 355 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 = "right";
_obFormat.size = 25;
_obFormat.color = "0x000000";
_obFormat.underline = false;
_obFormat.italic = false;
_obFormat.bold = false;
}
Symbol 355 MovieClip [mCombo] Frame 7
stop();
Symbol 355 MovieClip [mCombo] Frame 10
rtFun();
this.removeMovieClip();
Symbol 378 MovieClip Frame 1
stop();
Instance of Symbol 40 MovieClip [fwg.HitPoint] in Symbol 378 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
pChar = "defaultValue";
nPower = 10;
}
Instance of Symbol 208 MovieClip [Txt] in Symbol 378 MovieClip Frame 9
//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;
}
Instance of Symbol 217 MovieClip [Btn] in Symbol 378 MovieClip Frame 11
//component parameters
onClipEvent (construct) {
_sTxt = "BUTTON";
autoSize = "left";
}