Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
MochiAd.showPreGameAd({id:"1c84149acafc3d57", res:"700x400"});
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop ("Loading");
}
Frame 8
stop();
Symbol 2 MovieClip Frame 1
onPress = function () {
FWGURL();
};
this.cacheAsBitmap = true;
Symbol 5 MovieClip Frame 1
onEnterFrame = function () {
var _local4 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
var _local5 = int((_local4 / _local3) * 100);
num_txt.text = _local5 + "%";
if (_local4 == _local3) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 9 MovieClip Frame 1
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
Symbol 9 MovieClip Frame 39
stop();
var rate;
var all = _root.getBytesTotal();
onEnterFrame = function () {
var _local3 = _root.getBytesLoaded();
rate = int((_local3 / all) * 100) + "%";
mLoading._alpha = Math.round(SFM.linearCycle(getTimer(), 1000, 100));
if (_local3 == all) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 330 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
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 331 MovieClip [__Packages.Fade] Frame 0
class Fade
{
function Fade () {
}
static function start() {
var _local4 = Stage.width;
var _local5 = Stage.height;
var bmpRoot = (new flash.display.BitmapData(_local4, _local5, 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);
Fade.enabledFor(true);
};
_local3.finish = function () {
this.mClip_bmp.removeMovieClip();
this.bmpRoot.dispose();
Fade.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 - Fade.nolinearCycle(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 - Fade.nolinearCycle(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
this.m_0._xscale = 150;
this.m_0._yscale = this.nTemp;
break;
case 1 :
this.m_0._xscale = this.nTemp;
this.m_0._yscale = 150;
break;
case 2 :
this.m_0._xscale = (this.m_0._yscale = this.nTemp);
}
if (this.nRdm_2 == 3) {
this.m_0._rotation = 180 - Fade.nolinearCycle(this.nTime, this.nT, 180);
} else if (this.nRdm_2 == 2) {
this.m_0._rotation = Fade.nolinearCycle(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 - Fade.nolinearCycle(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 - Fade.nolinearCycle(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 = _local4);
(_local3._height = _local5);
}
static function enabledFor(_b, _m, _nDepth) {
(_m == undefined) && (_m = _root);
(_nDepth == undefined) && (_nDepth = _m.getNextHighestDepth());
if (_b) {
_m.createEmptyMovieClip("mEnabled", _nDepth);
_m.mEnabled.enabled = false;
_m.mEnabled.hitArea = _root;
_m.mEnabled.onPress = function () {
};
updateAfterEvent();
} else {
_m.mEnabled.removeMovieClip();
updateAfterEvent();
}
}
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(16711680);
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 nolinearCycle(x, T, r) {
var _local1 = T / 2;
var _local2 = (-r) / (_local1 * _local1);
return((_local2 * Math.pow((x % T) - _local1, 2)) + r);
}
static function linearCycle(x, T, r) {
var _local1 = T / 2;
if ((x % T) > _local1) {
return((1 - ((x % _local1) / _local1)) * r);
}
if ((x % T) < _local1) {
return(((x % _local1) / _local1) * r);
}
return(r);
}
}
Symbol 332 MovieClip [__Packages.manage.SoundManage] Frame 0
class manage.SoundManage
{
var isMusicPlay, isSoundPlay;
function SoundManage () {
_root.createEmptyMovieClip("mysound_mc", _root.getNextHighestDepth());
_root.createEmptyMovieClip("mymusic_mc", _root.getNextHighestDepth());
soundArray[0] = new Array();
soundArray[1] = new Array();
soundArray[2] = new Array();
musicArray[0] = new Array();
musicArray[1] = new Array();
musicArray[2] = new Array();
addMusic("main_s");
if (isMusicPlay == undefined) {
isMusicPlay = true;
playMusic("main_s", 999999);
}
if (isSoundPlay == undefined) {
isSoundPlay = true;
}
}
function addSound() {
switch (arguments.length) {
case 1 :
soundArray[0].push(arguments[0]);
_root.mysound_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mysound_mc.getNextHighestDepth());
var _local4 = new Sound(_root.mysound_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
soundArray[1].push(_local4);
soundArray[2].push(100);
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
soundArray[0].push(arguments[0]);
_root.mysound_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mysound_mc.getNextHighestDepth());
_local4 = new Sound(_root.mysound_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
_local4.setVolume(arguments[1]);
soundArray[1].push(_local4);
soundArray[2].push(arguments[1]);
}
}
function addMusic() {
switch (arguments.length) {
case 1 :
musicArray[0].push(arguments[0]);
_root.mymusic_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mymusic_mc.getNextHighestDepth());
var _local4 = new Sound(_root.mymusic_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
musicArray[1].push(_local4);
musicArray[2].push(100);
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
musicArray[0].push(arguments[0]);
_root.mymusic_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mymusic_mc.getNextHighestDepth());
_local4 = new Sound(_root.mymusic_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
_local4.setVolume(arguments[1]);
musicArray[1].push(_local4);
musicArray[2].push(arguments[1]);
}
}
function stopSound() {
isSoundPlay = false;
var _local2 = 0;
while (_local2 <= soundArray[1].length) {
soundArray[1][_local2].setVolume(0);
_local2++;
}
}
function stopMusic() {
isMusicPlay = false;
var _local2 = 0;
while (_local2 <= musicArray[1].length) {
musicArray[1][_local2].setVolume(0);
_local2++;
}
}
function returnSound() {
isSoundPlay = true;
var _local2 = 0;
while (_local2 < soundArray[1].length) {
soundArray[1][_local2].setVolume(soundArray[2][_local2]);
_local2++;
}
}
function returnMusic() {
isMusicPlay = true;
var _local2 = 0;
while (_local2 < musicArray[1].length) {
musicArray[1][_local2].setVolume(musicArray[2][_local2]);
_local2++;
}
}
function setSoundVol() {
switch (arguments.length) {
case 1 :
if (arguments[0] > 100) {
arguments[0] = 100;
} else if (arguments[0] < 0) {
arguments[0] = 0;
}
var _local3 = 0;
while (_local3 < soundArray[1].length) {
soundArray[2][_local3] = arguments[0];
soundArray[1][_local3].setVolume(arguments[0]);
_local3++;
}
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
_local3 = 0;
for(;;){
if (_local3 >= soundArray[0].length) {
break;
}
if (soundArray[0][_local3] == arguments[0]) {
soundArray[2][_local3] = arguments[1];
soundArray[1][_local3].setVolume(arguments[1]);
break;
}
_local3++;
};
}
}
function setMusicVol() {
switch (arguments.length) {
case 1 :
if (arguments[0] > 100) {
arguments[0] = 100;
} else if (arguments[0] < 0) {
arguments[0] = 0;
}
var _local3 = 0;
while (_local3 < musicArray[1].length) {
musicArray[2][_local3] = arguments[0];
musicArray[1][_local3].setVolume(arguments[0]);
_local3++;
}
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
_local3 = 0;
for(;;){
if (_local3 >= musicArray[0].length) {
break;
}
if (musicArray[0][_local3] == arguments[0]) {
musicArray[2][_local3] = arguments[1];
musicArray[1][_local3].setVolume(arguments[1]);
break;
}
_local3++;
};
}
}
function playSound() {
if (isSoundPlay == true) {
switch (arguments.length) {
case 1 :
var _local3 = 0;
while (_local3 <= soundArray[0].length) {
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].start(0, 1);
break;
}
_local3++;
}
break;
case 2 :
_local3 = 0;
while (_local3 <= soundArray[0].length) {
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].start(0, arguments[1]);
break;
}
_local3++;
}
break;
case 3 :
_local3 = 0;
for(;;){
if (_local3 > soundArray[0].length) {
break;
}
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].setVolume(arguments[2]);
soundArray[1][_local3].start(0, arguments[1]);
soundArray[1][_local3].setVolume(soundArray[2][_local3]);
break;
}
_local3++;
};
}
}
}
function playMusic() {
if (isMusicPlay == true) {
switch (arguments.length) {
case 1 :
var _local3 = 0;
while (_local3 <= musicArray[0].length) {
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].start(0, 1);
break;
}
_local3++;
}
break;
case 2 :
_local3 = 0;
while (_local3 <= musicArray[0].length) {
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].start(0, arguments[1]);
break;
}
_local3++;
}
break;
case 3 :
_local3 = 0;
for(;;){
if (_local3 > musicArray[0].length) {
break;
}
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].setVolume(arguments[2]);
musicArray[1][_local3].start(0, arguments[1]);
musicArray[1][_local3].setVolume(musicArray[2][_local3]);
break;
}
_local3++;
};
}
}
}
function isTrueStopSound() {
switch (arguments.length) {
case 0 :
var _local3 = 0;
while (_local3 <= soundArray[1].length) {
soundArray[1][_local3].stop();
_local3++;
}
break;
case 1 :
_local3 = 0;
for(;;){
if (_local3 > soundArray[1].length) {
break;
}
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].stop();
}
_local3++;
};
}
}
function isTrueStopMusic() {
switch (arguments.length) {
case 0 :
var _local3 = 0;
while (_local3 <= musicArray[1].length) {
musicArray[1][_local3].stop();
_local3++;
}
break;
case 1 :
_local3 = 0;
for(;;){
if (_local3 > musicArray[1].length) {
break;
}
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].stop();
}
_local3++;
};
}
}
function clearSoundAndMusic() {
for (var _local3 in _root.mymusic_mc) {
removeMovieClip(_root.mymusic_mc[_local3]);
}
for (var _local3 in _root.mysound_mc) {
removeMovieClip(_root.mysound_mc[_local3]);
}
removeMovieClip(_root.mysound_mc);
removeMovieClip(_root.mymusic_mc);
soundArray = null;
musicArray = null;
delete soundArray;
delete musicArray;
}
var soundArray = new Array();
var musicArray = new Array();
}
Symbol 333 MovieClip [__Packages.manage.CommonManage] Frame 0
class manage.CommonManage
{
function CommonManage () {
}
static function movTo(dspObj, dspObjCtn, id, newName, obj) {
var _local3 = dspObj.transform.concatenatedMatrix;
var _local2 = dspObjCtn.transform.concatenatedMatrix;
_local2.invert();
_local3.concat(_local2);
dspObj.swapDepths(dspObj._parent.getNextHighestDepth());
dspObj.removeMovieClip();
dspObj = dspObjCtn.attachMovie(id, newName, dspObjCtn.getNextHighestDepth(), obj);
dspObj.transform.matrix = _local3;
return(dspObj);
}
static function calOfPoint(x1, x2, y1, l, b) {
var _local4;
if (b == false) {
_local4 = ((2 * y1) - Math.sqrt(((4 * y1) * y1) - (4 * (((((x1 * x1) + (x2 * x2)) - ((2 * x1) * x2)) + (y1 * y1)) - (l * l))))) / 2;
} else {
_local4 = ((2 * y1) + Math.sqrt(((4 * y1) * y1) - (4 * (((((x1 * x1) + (x2 * x2)) - ((2 * x1) * x2)) + (y1 * y1)) - (l * l))))) / 2;
}
return(_local4);
}
static function random100(no) {
if (no > 100) {
no = 100;
}
var _local2 = random(100) + 1;
if (_local2 <= no) {
return(true);
}
return(false);
}
static function toFormatPoint(num, u) {
return(Math.round(num / u) * u);
}
static function randomAtoB(a, b) {
return(random((b - a) + 1) + a);
}
static function drawLine(mc, id, x1, y1, x2, y2) {
var _local1 = mc.attachMovie(id, id, 0);
_local1._x = x1;
_local1._y = y1;
var _local2 = new flash.geom.Point(x2 - x1, y2 - y1);
_local1._xscale = _local2.length;
_local1._rotation = (Math.atan2(_local2.y, _local2.x) * 180) / Math.PI;
}
static function drawLineMC(mc, x1, y1, x2, y2) {
mc._x = x1;
mc._y = y1;
var _local1 = new flash.geom.Point(x2 - x1, y2 - y1);
mc._xscale = _local1.length;
mc._rotation = (Math.atan2(_local1.y, _local1.x) * 180) / Math.PI;
}
static function drawLineMCto(mc, x2, y2) {
var _local1 = new flash.geom.Point(x2 - mc._x, y2 - mc._y);
mc._xscale = _local1.length;
mc._rotation = (Math.atan2(_local1.y, _local1.x) * 180) / Math.PI;
}
static function frameToTime(no, str) {
var _local4;
var _local2;
var _local1;
_local4 = int(no / 115200);
_local2 = int(no / 1920) % 60;
_local1 = int(no / 32) % 60;
if (str == "h:m:s") {
return((((_local4 + ":") + _local2) + ":") + _local1);
}
return((_local2 + ":") + _local1);
}
static function frameToSeconds(no) {
var _local1 = int(no / 32);
return(_local1);
}
static function deleteAllMC(mc) {
for (var _local2 in mc) {
mc[_local2].removeMovieClip();
}
}
static function removeArrayOneVar(arr) {
arr.splice(random(arr.length), 1);
return(arr);
}
static function startGame() {
if (_root.game.isIn == true) {
Fade.start();
if (_root.game.isSelectLevel == false) {
_root.game.gotoAndStop("gamestart");
} else {
_root.game.gotoAndStop("selectlevel");
}
} else {
Fade.start();
_root.game.gotoAndStop("Instructions");
}
}
static function pressInSkip() {
Fade.start();
if (_root.game.isSelectLevel == false) {
_root.game.gotoAndStop("gamestart");
} else {
_root.game.gotoAndStop("selectlevel");
}
}
static function pressIn() {
Fade.start();
_root.game.gotoAndStop("Instructions");
}
static function pressDown() {
getURL ("http://www.ifungames.com", "_blank");
}
static function pressAdd() {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
static function pressMore() {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
static function pressMainMenu() {
Fade.start();
_root.game.gotoAndStop("mainmenu");
}
static function viewHighscore() {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + manage.GameManage.gameName, "_blank");
}
}
Symbol 334 MovieClip [__Packages.manage.GameManage] Frame 0
class manage.GameManage extends MovieClip
{
var keyManage, mapSpeed, score, levelMax, level, level_l, runTime, levelTimer, isNextMapTime, nowMapNo, barHigh, thisMap, nextMap, gotoAndStop, money;
function GameManage () {
super();
isPause = true;
}
function init() {
keyManage = new manage.KeyManage();
keyManage.setPlayer(_root.game.player_mc);
isGameOver = false;
mapSpeed = 7;
score = 0;
levelMax = 15;
level = 0;
level_l = 1;
runTime = 100;
levelTimer = 0;
isNextMapTime = false;
nowMapNo = 3;
barHigh = 300;
nextLevel();
thisMap = _root.game.mapArray_mc.attachMovie("map3", ("map" + _root.game.mapArray_mc.getNextHighestDepth()) + "_mc", _root.game.mapArray_mc.getNextHighestDepth(), {_x:0, _y:410, getZu:null, myHigh:300});
nextMap = _root.game.mapArray_mc.attachMovie("map3", ("map" + _root.game.mapArray_mc.getNextHighestDepth()) + "_mc", _root.game.mapArray_mc.getNextHighestDepth(), {_x:1000, _y:410, myHigh:300});
var _local3 = _root.game.backArray_mc.attachMovie("backM_mc", ("backM_mc" + _root.game.backArray_mc.getNextHighestDepth()) + "_mc", _root.game.backArray_mc.getNextHighestDepth(), {_x:1000, _y:400});
_local3.gotoAndStop(random(4) + 1);
_local3 = _root.game.backArray_mc.attachMovie("backM_mc", ("backM_mc" + _root.game.backArray_mc.getNextHighestDepth()) + "_mc", _root.game.backArray_mc.getNextHighestDepth(), {_x:2000, _y:400});
_local3.gotoAndStop(random(4) + 1);
_root.game.backBArray_mc.attachMovie("beijing_mc", "beijing_mc", _root.game.backBArray_mc.getNextHighestDepth(), {_x:0, _y:400});
_root.game.backYArray_mc.attachMovie("yun_mc", "yun_mc", _root.game.backYArray_mc.getNextHighestDepth(), {_x:0, _y:400});
}
function onEnterFrame() {
if (isGameOver == false) {
if (isPause == false) {
keyManage.detectKeys();
levelTimer++;
if ((levelTimer % 550) == 0) {
if (mapSpeed < 12) {
mapSpeed = mapSpeed + 1;
}
level++;
_root.game.flyview_mc.play();
}
addScore(level * (int(_root.game.player_mc._x / 100) + 1));
for (var _local11 in _root.game.mapArray_mc) {
_root.game.mapArray_mc[_local11]._x = _root.game.mapArray_mc[_local11]._x - mapSpeed;
if (_root.game.mapArray_mc[_local11]._x < -1100) {
_root.game.mapArray_mc[_local11].removeMovieClip();
}
}
for (var _local10 in _root.game.barhitArray_mc) {
var _local3 = _root.game.barhitArray_mc[_local10];
_local3._x = _local3._x - mapSpeed;
if (_local3._x < -1000) {
_local3.removeMovieClip();
}
}
for (var _local8 in _root.game.lineArray_mc) {
var _local3 = _root.game.lineArray_mc[_local8];
_local3._x = _local3._x - mapSpeed;
if (_local3._x < -500) {
_local3.removeMovieClip();
}
}
for (var _local9 in _root.game.barArray_mc) {
var _local4 = _root.game.barArray_mc[_local9];
_local4._x = _local4._x - mapSpeed;
if (_local4._x < -1100) {
_local4.removeMovieClip();
}
}
for (var _local8 in _root.game.backArray_mc) {
var _local5 = _root.game.backArray_mc[_local8];
_local5._x = _local5._x - (mapSpeed / 3);
if (_local5._x < -1100) {
_local5.removeMovieClip();
var _local6 = _root.game.backArray_mc.attachMovie("backM_mc", ("backM_mc" + _root.game.backArray_mc.getNextHighestDepth()) + "_mc", _root.game.backArray_mc.getNextHighestDepth(), {_x:1000, _y:400, cacheAsBitmap:true});
_local6.gotoAndStop(random(4) + 1);
}
}
_root.game.backBArray_mc.beijing_mc._x = _root.game.backBArray_mc.beijing_mc._x - (mapSpeed / 5);
if (_root.game.backBArray_mc.beijing_mc._x < -1000) {
_root.game.backBArray_mc.beijing_mc._x = _root.game.backBArray_mc.beijing_mc._x + 1000;
}
_root.game.backYArray_mc.yun_mc._x = _root.game.backYArray_mc.yun_mc._x - (mapSpeed / 10);
if (_root.game.backYArray_mc.yun_mc._x < -1000) {
_root.game.backYArray_mc.yun_mc._x = _root.game.backYArray_mc.yun_mc._x + 1000;
}
if (thisMap._x < -1000) {
thisMap.removeMovieClip();
thisMap = nextMap;
nowMapNo = (nowMapNo + random(3)) - 1;
while ((nowMapNo > 4) || (nowMapNo < 1)) {
nowMapNo = (nowMapNo + random(3)) - 1;
}
nextMap = _root.game.mapArray_mc.attachMovie("map" + nowMapNo, ("map" + _root.game.mapArray_mc.getNextHighestDepth()) + "_mc", _root.game.mapArray_mc.getNextHighestDepth(), {_x:thisMap._x + 1000, _y:410, myHigh:150 + (nowMapNo * 50)});
isNextMapTime = false;
}
}
}
}
function nextLevel() {
isPause = false;
clearAll();
addNextLevelScore();
level = level + 1;
if (level > levelMax) {
win();
return(undefined);
}
}
function addNextLevelScore() {
}
function clearAll() {
}
function getLevel() {
return(level);
}
function win() {
isGameOver = true;
runTime = 0;
Fade.start();
gotoAndStop("win");
}
function gameOver() {
isGameOver = true;
runTime = 0;
Fade.start();
gotoAndStop("gameover");
}
function isAllOver() {
}
function addScore(no) {
if (!isNaN(no)) {
score = score + no;
if (score < 0) {
score = 0;
} else {
score = int(score);
}
flashUpdateScore(no);
}
}
function reduceScore(no) {
addScore(no * -1);
}
function clearScore() {
score = 0;
}
function flashUpdateScore(no) {
}
function addMoney(no) {
if (!isNaN(no)) {
money = money + no;
if (money < 0) {
money = 0;
} else {
money = int(money);
}
flashUpdateMoney(no);
}
}
function reduceMoney(no) {
addMoney(no * -1);
}
function flashUpdateMoney(no) {
}
function clearMoney() {
money = 0;
}
static var gameName = "sprintster";
static var frameSpeed = 32;
var isGameOver = false;
var isPause = false;
static var levelScoreArray = new Array(0, 800, 1600, 2300, 3500, 4800, 5500, 6800, 8000, 10000);
static var levelMoneyArray = new Array(250, 260, 300, 340, 380, 430, 500, 580, 650, 720);
}
Symbol 335 MovieClip [__Packages.manage.KeyManage] Frame 0
class manage.KeyManage
{
var isRun, player;
function KeyManage () {
isRun = false;
setListener();
}
function setListener() {
if (_root.game.myListener == undefined) {
_root.game.myListener = new Object();
_root.game.myListener.onKeyUp = function () {
if (_root.game.isGameOver == false) {
if (_root.game.isPause == false) {
if (Key.getCode(38) && (!Key.isDown(38))) {
if (_root.game.player_mc.isJump == true) {
_root.game.player_mc.isCanLine = true;
}
}
}
}
};
_root.game.myListener.onKeyDown = function () {
if (_root.game.isGameOver == false) {
if (Key.isDown(80)) {
_root.game.menu_mc.p_btn.onRelease();
}
}
};
Key.addListener(_root.game.myListener);
}
}
function setPlayer(player) {
this.player = player;
}
function getPlayer() {
return(player);
}
function huan() {
}
function detectKeys() {
isRun = false;
if (Key.isDown(39)) {
player.moveRight();
} else if (Key.isDown(37)) {
player.moveLeft();
}
if (Key.isDown(38)) {
player.turnDown();
player.moveUp();
} else if (Key.isDown(40)) {
player.moveDown();
} else {
player.turnDown();
}
}
}
Symbol 336 MovieClip [__Packages.Father] Frame 0
class Father extends MovieClip
{
function Father () {
super();
}
function onEnterFrame() {
if (_root.game.isGameOver == false) {
if (_root.game.isPause == false) {
run();
}
}
}
function run() {
}
}
Symbol 337 MovieClip [__Packages.StoneBar] Frame 0
class StoneBar extends Father
{
var onEnterFrame, myState;
function StoneBar () {
super();
init();
delete onEnterFrame;
}
function init() {
manage.CommonManage.movTo(this, _root.game.mapArray_mc, "sHit" + myState, ("sHit1" + _root.game.mapArray_mc.getNextHighestDepth()) + "_mc", {init:function () {
this.cacheAsBitmap = true;
delete this.onEnterFrame;
}});
}
}
Symbol 338 MovieClip [__Packages.Zu] Frame 0
class Zu extends MovieClip
{
var gotoAndStop, h1_mc;
function Zu () {
super();
getFrame();
}
function getFrame() {
var _local3;
switch (_root.game.level) {
case 1 :
_local3 = random(3) + 1;
break;
case 2 :
_local3 = random(3) + 3;
break;
case 3 :
_local3 = random(4) + 5;
break;
case 4 :
_local3 = random(4) + 7;
break;
case 5 :
_local3 = random(4) + 9;
break;
case 6 :
_local3 = random(5) + 11;
break;
default :
_local3 = random(9) + 7;
}
gotoAndStop(_local3);
switch (_local3) {
case 1 :
break;
case 2 :
break;
case 9 :
h1_mc.myState = 1;
break;
case 10 :
h1_mc.myState = 2;
break;
case 12 :
h1_mc.myState = 3;
break;
case 13 :
h1_mc.myState = 4;
}
}
}
Symbol 339 MovieClip [__Packages.Map] Frame 0
class Map extends Father
{
var cacheAsBitmap, onEnterFrame, myHigh, _x;
function Map () {
super();
getZu();
cacheAsBitmap = true;
delete onEnterFrame;
}
function getZu() {
_root.game.barhitArray_mc.attachMovie("zu", ("zu" + _root.game.barhitArray_mc.getNextHighestDepth()) + "_mc", _root.game.barhitArray_mc.getNextHighestDepth(), {_x:_x, _y:myHigh});
}
}
Symbol 340 MovieClip [__Packages.JumpPeople] Frame 0
class JumpPeople extends Father
{
var lineObj, isJump, isPress2, isDown, g, upWait, jumpState, isUpLin, isLineOver, isCanLine, upSpeed, gotoAndStop, _y, line_mc, _x, lineLeg, body_mc;
function JumpPeople () {
super();
lineObj = {x:0, y:0};
isJump = false;
isPress2 = false;
isDown = false;
g = 1;
upWait = 0;
jumpState = 0;
isUpLin = false;
isLineOver = false;
isCanLine = false;
}
function run() {
var _local4 = ExtMath.to_global(_root.game.player_mc.body_mc, _root.game.player_mc.body_mc.hit1_mc._x, _root.game.player_mc.body_mc.hit1_mc._y);
var _local3 = ExtMath.to_global(_root.game.player_mc.body_mc, _root.game.player_mc.body_mc.hit2_mc._x, _root.game.player_mc.body_mc.hit2_mc._y);
var _local5 = ExtMath.to_global(_root.game.player_mc.body_mc, _root.game.player_mc.body_mc.hit3_mc._x, _root.game.player_mc.body_mc.hit3_mc._y);
var _local9 = ExtMath.to_global(_root.game.player_mc.body_mc, _root.game.player_mc.body_mc.hit4_mc._x, _root.game.player_mc.body_mc.hit4_mc._y);
if (((_root.game.barhitArray_mc.hitTest(_local4.x, _local4.y, true) || (_root.game.barhitArray_mc.hitTest(_local3.x, _local3.y, true))) || (_root.game.barhitArray_mc.hitTest(_local5.x, _local5.y, true))) || (_root.game.barhitArray_mc.hitTest(_local9.x, _local9.y, true))) {
_root.game.soundManage.playSound("hit_s");
die();
}
if (_root.game.mapArray_mc.hitTest(_local4.x, _local4.y, true) || (_root.game.mapArray_mc.hitTest(_local3.x, _local3.y, true))) {
_root.game.soundManage.playSound("hit_s");
die();
}
if (isJump == true) {
if (isUpLin == false) {
if (upSpeed == 0) {
upWait--;
if (upWait <= 0) {
gotoAndStop(3);
}
}
if (upWait <= 0) {
jumpState = 2;
_y = _y + upSpeed;
upSpeed = upSpeed + g;
var _local10 = ExtMath.to_global(_root.game.player_mc, _root.game.player_mc.foot1_mc._x, _root.game.player_mc.foot1_mc._y);
var _local8 = ExtMath.to_global(_root.game.player_mc, _root.game.player_mc.foot2_mc._x, _root.game.player_mc.foot2_mc._y);
if (_root.game.mapArray_mc.hitTest(_local10.x, _local10.y, true) || (_root.game.mapArray_mc.hitTest(_local8.x, _local8.y, true))) {
isPress2 = false;
jumpState = 0;
upSpeed = 0;
isJump = false;
gotoAndStop(1);
turnDown();
isLineOver = false;
isCanLine = false;
fen();
}
} else if (upSpeed != 0) {
_y = _y + upSpeed;
upSpeed = upSpeed + g;
}
} else {
lineObj.x = lineObj.x - _root.game.mapSpeed;
var _local13 = line_mc._rotation;
_y = manage.CommonManage.calOfPoint(_x, lineObj.x, lineObj.y, lineLeg, true) + 25;
line_mc._rotation = _local13;
drawLine(lineObj.x, lineObj.y, _x, _y - 25);
var _local12 = Math.abs(_x - lineObj.x);
var _local11 = Math.abs((_y - 25) - lineObj.y);
if (((_local11 / _local12) < 1) && (lineObj.x < _x)) {
line_mc.removeMovieClip();
jumpState = 2;
isUpLin = false;
upWait = 0;
upSpeed = 0;
upWait = 8;
}
}
} else {
var _local7 = ExtMath.to_global(_root.game.player_mc, _root.game.player_mc.foot1_mc._x, _root.game.player_mc.foot1_mc._y);
var _local6 = ExtMath.to_global(_root.game.player_mc, _root.game.player_mc.foot2_mc._x, _root.game.player_mc.foot2_mc._y);
if (!(_root.game.mapArray_mc.hitTest(_local7.x, _local7.y, true) || (_root.game.mapArray_mc.hitTest(_local6.x, _local6.y, true)))) {
jumpState = 2;
upSpeed = 0;
upWait = 0;
isPress2 = true;
isJump = true;
}
}
}
function fen() {
var _local5 = ExtMath.to_global(_root.game.player_mc, _root.game.player_mc.foot2_mc._x, _root.game.player_mc.foot2_mc._y);
for (var _local6 in _root.game.mapArray_mc) {
if (_root.game.mapArray_mc[_local6].hitTest(_local5.x, _local5.y, true)) {
if (_root.game.mapArray_mc[_local6].myHigh) {
_y = _root.game.mapArray_mc[_local6].myHigh;
} else {
var _local4 = _y - 4;
var _local3 = 1;
while (_local3 <= 3) {
if (_root.game.mapArray_mc.hitTest(_x, (_local4 + _y) / 2, true)) {
_y = (_local4 + _y) / 2;
} else {
break;
}
_local3++;
}
}
break;
}
}
}
function drawLine(x1, y1, x2, y2) {
line_mc._x = x1;
line_mc._y = y1;
var _local2 = new flash.geom.Point(x2 - x1, y2 - y1);
line_mc._xscale = _local2.length;
line_mc._rotation = (Math.atan2(_local2.y, _local2.x) * 180) / Math.PI;
}
function die() {
_root.game.gameOver();
}
function moveRight() {
if (isJump == true) {
if (isPress2 == false) {
if (jumpState == 1) {
isPress2 = true;
}
}
}
if (_x < 690) {
_x = _x + 3;
}
}
function moveLeft() {
if (isJump == true) {
if (isPress2 == false) {
if (jumpState == 1) {
isPress2 = true;
}
}
}
if (_x > 10) {
_x = _x - 4;
}
}
function moveUp() {
if ((isJump == false) && (jumpState != 2)) {
isJump = true;
upSpeed = -10;
upWait = 5;
jumpState = 1;
gotoAndStop(2);
} else if ((isCanLine == true) && (isLineOver == false)) {
var _local5 = false;
var _local3;
for (var _local6 in _root.game.lineArray_mc) {
_local3 = _root.game.lineArray_mc[_local6]._y;
if (_root.game.lineArray_mc[_local6].hitTest((_x + Math.abs(_local3 - _y)) - 25, _local3, true)) {
lineObj.x = (_x + Math.abs(_local3 - _y)) - 25;
lineObj.y = _local3;
isUpLin = true;
_local5 = true;
line_mc = _root.game.line_mc.attachMovie("line_mc", "line_mc", _root.game.line_mc.getNextHighestDepth());
_root.game.addScore(_root.game.level * 100);
drawLine(lineObj.x, lineObj.y, _x, _y - 25);
var _local4 = line_mc._rotation;
lineLeg = line_mc._width;
line_mc._rotation = _local4;
break;
}
}
if (_local5 == false) {
var _local7 = _root.game.line_mc.attachMovie("lineOver", ("lineOver" + _root.game.line_mc.getNextHighestDepth()) + "_mc", _root.game.line_mc.getNextHighestDepth(), {_x:_x, _y:_y - 25});
}
isLineOver = true;
}
}
function moveDown() {
if (isDown == false) {
isDown = true;
body_mc.gotoAndStop(2);
if (upWait > 0) {
upWait = upWait + 4;
}
}
}
function turnDown() {
if ((isDown == true) && (isJump == false)) {
isDown = false;
body_mc.gotoAndStop(1);
}
}
}
Symbol 341 MovieClip [__Packages.ExtMath] Frame 0
class ExtMath extends Math
{
function ExtMath () {
super();
}
static function distance(x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
static function distance2(x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
return((_local2 * _local2) + (_local1 * _local1));
}
static function degreesToRadians(angle) {
return(angle * 0.017453);
}
static function radiansToDegrees(radian) {
return(radian * 57.29578);
}
static function sinD(angle) {
return(Math.sin((angle * 3.141593) / 180));
}
static function asinD(ratio) {
return(Math.asin(ratio) * 57.29578);
}
static function cosD(angle) {
return(Math.cos((angle * 3.141593) / 180));
}
static function acosD(ratio) {
return(Math.acos(ratio) * 57.29578);
}
static function tanD(angle) {
return(Math.tan((angle * 3.141593) / 180));
}
static function atan2D(y, x) {
return(Math.atan2(y, x) * 57.29578);
}
static function angleOfLine(x1, y1, x2, y2) {
return(atan2D(y2 - y1, x2 - x1));
}
static function fixAngle(angle) {
var _local1 = angle % 360;
return((((_local1 % 360) < 0) ? (_local1 + 360) : (_local1)));
}
static function to_global(target, target_x, target_y) {
var _local1 = {x:target_x, y:target_y};
target.localToGlobal(_local1);
return(_local1);
}
static function to_local(target, target_x, target_y, local_coord) {
local_coord = {x:target_x, y:target_y};
target.globalToLocal(local_coord);
return(local_coord);
}
}
Symbol 342 MovieClip [__Packages.LineBar] Frame 0
class LineBar extends Father
{
function LineBar () {
super();
init();
}
function init() {
manage.CommonManage.movTo(this, _root.game.lineArray_mc, "lineBar", ("sHit1" + _root.game.lineArray_mc.getNextHighestDepth()) + "_mc", {init:function () {
this.cacheAsBitmap = true;
delete this.onEnterFrame;
}});
}
}
Symbol 33 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
_root.stop();
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
Symbol 33 MovieClip Frame 145
Fade.start();
_root.gotoAndStop("game");
Symbol 44 MovieClip [lineOver] Frame 6
this.removeMovieClip();
Symbol 48 MovieClip [lineBar] Frame 1
#initclip 25
Object.registerClass("lineBar", LineBar);
#endinitclip
Symbol 50 MovieClip [sHit4] Frame 1
#initclip 14
Object.registerClass("sHit4", StoneBar);
#endinitclip
Symbol 52 MovieClip [sHit3] Frame 1
#initclip 15
Object.registerClass("sHit3", StoneBar);
#endinitclip
Symbol 54 MovieClip [sHit2] Frame 1
#initclip 16
Object.registerClass("sHit2", StoneBar);
#endinitclip
Symbol 56 MovieClip [sHit1] Frame 1
#initclip 17
Object.registerClass("sHit1", StoneBar);
#endinitclip
Symbol 60 MovieClip Frame 1
stop();
gotoAndStop(random(3) + 1);
Symbol 62 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 1
stop();
gotoAndStop(random(2) + 1);
Symbol 67 MovieClip Frame 1
stop();
gotoAndStop(random(2) + 1);
Symbol 72 MovieClip Frame 1
stop();
gotoAndStop(random(3) + 1);
Symbol 73 MovieClip [zu] Frame 1
#initclip 18
Object.registerClass("zu", Zu);
#endinitclip
stop();
Symbol 73 MovieClip [zu] Frame 2
stop();
Symbol 73 MovieClip [zu] Frame 3
stop();
Symbol 73 MovieClip [zu] Frame 4
stop();
Symbol 73 MovieClip [zu] Frame 5
stop();
Symbol 73 MovieClip [zu] Frame 6
stop();
Symbol 73 MovieClip [zu] Frame 7
stop();
Symbol 73 MovieClip [zu] Frame 8
stop();
Symbol 73 MovieClip [zu] Frame 9
stop();
Symbol 73 MovieClip [zu] Frame 10
stop();
Symbol 73 MovieClip [zu] Frame 11
stop();
Symbol 73 MovieClip [zu] Frame 12
stop();
Symbol 73 MovieClip [zu] Frame 13
stop();
Symbol 73 MovieClip [zu] Frame 14
stop();
Symbol 73 MovieClip [zu] Frame 15
stop();
Symbol 73 MovieClip [zu] Frame 16
stop();
Symbol 73 MovieClip [zu] Frame 17
stop();
Symbol 73 MovieClip [zu] Frame 18
stop();
Symbol 75 MovieClip [map4] Frame 1
#initclip 19
Object.registerClass("map4", Map);
#endinitclip
Symbol 77 MovieClip [map3] Frame 1
#initclip 20
Object.registerClass("map3", Map);
#endinitclip
Symbol 79 MovieClip [map2] Frame 1
#initclip 21
Object.registerClass("map2", Map);
#endinitclip
Symbol 81 MovieClip [map1] Frame 1
#initclip 22
Object.registerClass("map1", Map);
#endinitclip
Symbol 100 Button
on (release) {
this.gotoAndStop(2);
}
Symbol 103 Button
on (release) {
_root.game.startgame();
}
Symbol 104 Button
on (release) {
Fade.start();
_root.game.gotoAndStop("Instructions");
}
Symbol 106 Button
on (release) {
getURL ("http://www.ifungames.com", "_blank");
}
Symbol 108 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 110 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 112 Button
on (release) {
manage.CommonManage.viewHighscore();
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 119 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.freeworldgroup.com", "_blank");
};
Symbol 123 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 126 Button
on (release) {
Fade.start();
gotoAndStop ("credits");
}
Symbol 129 Button
on (release) {
_root.game.isPause = false;
Fade.start();
_root.game.gotoAndStop("mainmenu");
}
Symbol 131 Button
on (release) {
this.nextFrame();
}
Symbol 133 Button
on (release) {
Fade.start();
_root.game.gotoAndStop("gamestart");
}
Symbol 138 Button
on (release) {
this.prevFrame();
}
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 2
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 198 MovieClip Frame 3
stop();
Symbol 201 MovieClip Frame 3
_root.game.soundManage.playSound("foot_s");
Symbol 201 MovieClip Frame 7
_root.game.soundManage.playSound("foot_s");
Symbol 210 MovieClip Frame 3
_root.game.soundManage.playSound("foot_s");
Symbol 210 MovieClip Frame 7
_root.game.soundManage.playSound("foot_s");
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
stop();
Symbol 212 MovieClip [JumpPeople] Frame 1
#initclip 23
Object.registerClass("JumpPeople", JumpPeople);
#endinitclip
stop();
Symbol 212 MovieClip [JumpPeople] Frame 2
stop();
Symbol 212 MovieClip [JumpPeople] Frame 3
stop();
Symbol 213 MovieClip Frame 40
man_mc.body_mc.gotoAndStop(2);
Symbol 213 MovieClip Frame 75
man_mc.body_mc.gotoAndStop(1);
Symbol 213 MovieClip Frame 105
man_mc.gotoAndStop(2);
Symbol 213 MovieClip Frame 123
man_mc.gotoAndStop(3);
Symbol 213 MovieClip Frame 135
man_mc.gotoAndStop(1);
Symbol 219 MovieClip Frame 26
man_mc.gotoAndStop(2);
Symbol 219 MovieClip Frame 64
man_mc.gotoAndStop(3);
Symbol 219 MovieClip Frame 78
man_mc.gotoAndStop(1);
Symbol 222 MovieClip Frame 29
man_mc.gotoAndStop(2);
Symbol 222 MovieClip Frame 42
man_mc.body_mc.gotoAndStop(2);
Symbol 222 MovieClip Frame 52
man_mc.gotoAndStop(3);
Symbol 222 MovieClip Frame 66
man_mc.gotoAndStop(1);
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stop();
Symbol 223 MovieClip Frame 3
stop();
Symbol 223 MovieClip Frame 4
stop();
Symbol 223 MovieClip Frame 5
stop();
Symbol 244 Button
on (release) {
_root.game.isPause = false;
this.gotoAndStop(1);
}
Symbol 248 MovieClip Frame 1
view_mc._visible = false;
stop();
Symbol 248 MovieClip Frame 2
stop();
Symbol 248 MovieClip Frame 3
stop();
Symbol 252 MovieClip Frame 1
function viewQ() {
switch (_root._quality) {
case "LOW" :
qView_mc.b1_mc._visible = true;
qView_mc.b2_mc._visible = false;
qView_mc.b3_mc._visible = false;
qView_mc.b4_mc._visible = false;
break;
case "MEDIUM" :
qView_mc.b2_mc._visible = true;
qView_mc.b1_mc._visible = false;
qView_mc.b3_mc._visible = false;
qView_mc.b4_mc._visible = false;
break;
case "HIGH" :
qView_mc.b3_mc._visible = true;
qView_mc.b2_mc._visible = false;
qView_mc.b1_mc._visible = false;
qView_mc.b4_mc._visible = false;
break;
case "BEST" :
qView_mc.b4_mc._visible = true;
qView_mc.b2_mc._visible = false;
qView_mc.b3_mc._visible = false;
qView_mc.b1_mc._visible = false;
}
}
qView_mc._visible = false;
if (_root.game.soundManage.isMusicPlay == true) {
notmusic_mc._visible = false;
}
if (_root.game.soundManage.isSoundPlay == true) {
notsound_mc._visible = false;
}
main_btn.onRelease = function () {
if (return_mc._currentframe == 1) {
return_mc.gotoAndStop(2);
_root.game.isPause = true;
} else if (return_mc._currentframe == 2) {
return_mc.gotoAndStop(1);
_root.game.isPause = false;
}
};
p_btn.onRelease = function () {
if (return_mc._currentframe == 1) {
return_mc.gotoAndStop(3);
_root.game.isPause = true;
} else if (return_mc._currentframe == 3) {
return_mc.gotoAndStop(1);
_root.game.isPause = false;
}
};
music_btn.onRelease = function () {
if (_root.game.soundManage.isMusicPlay == true) {
_root.game.soundManage.stopMusic();
_root.game.soundManage.isMusicPlay = false;
notmusic_mc._visible = true;
} else {
_root.game.soundManage.returnMusic();
_root.game.soundManage.isMusicPlay = true;
notmusic_mc._visible = false;
}
};
sound_btn.onRelease = function () {
if (_root.game.soundManage.isSoundPlay == true) {
_root.game.soundManage.soundManage.stopSound();
_root.game.soundManage.isSoundPlay = false;
notsound_mc._visible = true;
} else {
_root.game.soundManage.soundManage.returnSound();
_root.game.soundManage.isSoundPlay = true;
notsound_mc._visible = false;
}
};
q_btn.onRelease = function () {
if (qView_mc._visible == false) {
qView_mc._visible = true;
qView_mc.onEnterFrame = function () {
if (!this.hit_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
this._visible = false;
this.onEnterFrame = null;
}
};
viewQ();
} else {
qView_mc._visible = false;
}
};
qView_mc.b1_btn.onRelease = function () {
_root._quality = "LOW";
viewQ();
};
qView_mc.b2_btn.onRelease = function () {
_root._quality = "MEDIUM";
viewQ();
};
qView_mc.b3_btn.onRelease = function () {
_root._quality = "HIGH";
viewQ();
};
qView_mc.b4_btn.onRelease = function () {
_root._quality = "BEST";
viewQ();
};
Symbol 259 MovieClip Frame 34
stop();
this._parent.play();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 10
stop();
flytime_mc.flytime_mc.flytime = _root.game.level;
Symbol 260 MovieClip Frame 19
gotoAndStop (1);
Symbol 275 Button
on (release) {
Fade.start();
_root.game.gotoAndStop("mainmenu");
}
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 79
gotoAndStop (1);
Symbol 285 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 292 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 300 Button
on (release) {
viewHighscore();
}
Symbol 301 MovieClip Frame 1
stop();
var highscore = eval (score_var);
if (highscore <= 0) {
this._visible = false;
}
submit_btn.onRelease = function () {
gotoAndStop ("submit");
};
Symbol 301 MovieClip Frame 3
function sendData() {
send_var.game = manage.GameManage.gameName;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
noname_mc.gotoAndPlay(2);
return(undefined);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = highscore;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Symbol 301 MovieClip Frame 5
view_btn.onRelease = function () {
manage.CommonManage.viewHighscore();
};
Symbol 307 MovieClip Frame 79
stop();
score = _root.game.score;
level = _root.game.level;
Instance of Symbol 301 MovieClip in Symbol 307 MovieClip Frame 79
//component parameters
onClipEvent (construct) {
_game_name = "sprintster";
score_var = "_root.game.score";
}
Symbol 313 MovieClip [gameManage] Frame 1
#initclip 24
Object.registerClass("gameManage", manage.GameManage);
#endinitclip
function startgame() {
if (_root.game.isIn == true) {
Fade.start();
_root.game.gotoAndStop("gamestart");
} else {
Fade.start();
_root.game.gotoAndStop("Instructions");
}
}
_root.game = this;
stop();
if (_root.game.soundManage == undefined) {
var soundManage = (new manage.SoundManage());
_root.game.soundManage.addSound("hit_s");
_root.game.soundManage.addSound("foot_s", 50);
}
var isPopup;
var isIn;
Instance of Symbol 124 MovieClip in Symbol 313 MovieClip [gameManage] Frame 1
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 313 MovieClip [gameManage] Frame 2
stop();
isIn = true;
Symbol 313 MovieClip [gameManage] Frame 3
stop();
this.init();
if (_root.game.myListener == undefined) {
}
Symbol 313 MovieClip [gameManage] Frame 4
stop();
Instance of Symbol 271 MovieClip in Symbol 313 MovieClip [gameManage] Frame 4
on (release) {
_root.game.gotoAndStop("gamestart");
}
Symbol 313 MovieClip [gameManage] Frame 5
stop();
Symbol 313 MovieClip [gameManage] Frame 6
stop();
Symbol 325 MovieClip [backM_mc] Frame 1
stop();
Symbol 329 MovieClip Frame 1
stop();