Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
MochiAd.showPreloaderAd({id:"f12b00e65d15062c", res:"650x350"});
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop ("loading");
}
Frame 5
stop();
Instance of Symbol 186 MovieClip in Frame 5
//component parameters
onClipEvent (construct) {
_game_name = "pathfinder";
score_var = "_root.score";
}
Frame 6
stop();
if (_root.soundManage == undefined) {
var soundManage = new SoundManage();
_root.soundManage.addSound("bigbang_s");
_root.soundManage.addSound("wing_s", 20);
_root.soundManage.addSound("money_s");
_root.soundManage.addSound("health_s");
_root.soundManage.addSound("c1_s", 15);
_root.soundManage.addSound("c2_s", 10);
_root.soundManage.addSound("life_s", 50);
}
if (_root.p_s == undefined) {
var p_s;
}
if (_root.isGo == undefined) {
var isGo = false;
}
Instance of Symbol 224 MovieClip in Frame 6
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Instance of Symbol 3 MovieClip in Frame 6
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Frame 8
stop();
car_mc.gotoAndStop(_root.p_s);
_root.p_s = car_mc._currentframe;
Frame 9
function createTool(mc) {
var _local8 = random(2);
var _local7 = true;
if (_local8 == 0) {
while (_local7 == true) {
var _local4 = random(980) + 10;
var _local3 = random(330) + 15;
if (!(((mc.hit_mc.hitTest((mc._x + _local4) + 20, mc._y + _local3, true) || (mc.hit_mc.hitTest((mc._x + _local4) - 20, mc._y + _local3, true))) || (mc.hit_mc.hitTest(mc._x + _local4, (mc._y + _local3) + 20, true))) || (mc.hit_mc.hitTest(mc._x + _local4, (mc._y + _local3) - 20, true)))) {
var _local6 = random(4) + 1;
var _local5 = _root.toolArray_mc.attachMovie("power" + _local6, ("power" + _root.ToolNo) + "_mc", _root.toolArray_mc.getNextHighestDepth());
_root.ToolNo++;
_local5._x = mc._x + _local4;
_local5._y = mc._y + _local3;
_local7 = false;
}
}
}
}
function gameInit() {
GameManage.isGameOver = true;
GameManage.score = 0;
GameManage.isPause = false;
GameManage.speed = 7;
GameManage.level = 1;
_root.ImageNo = 1;
_root.ToolNo = 1;
_root.UfoNo = 1;
_root.car_mc.init();
for (var _local2 in _root.wayArray_mc) {
removeMovieClip(_root.wayArray_mc[_local2]);
}
for (var _local2 in _root.toolArray_mc) {
removeMovieClip(_root.toolArray_mc[_local2]);
}
for (var _local2 in _root._root.ufoArray1_mc) {
removeMovieClip(_root._root.ufoArray1_mc[_local2]);
}
for (var _local2 in _root._root.ufoArray2_mc) {
removeMovieClip(_root._root.ufoArray2_mc[_local2]);
}
_root.startImage = _root.wayArray_mc.attachMovie("wayImage1", "wayimage0_mc", _root.wayArray_mc.getNextHighestDepth());
_root.startImage._y = -5;
_root.startImage._x = 0;
_root.restart_btn._visible = false;
_root.lifeview_mc.startgame_btn._visible = true;
_root.gameover_mc._visible = false;
_root.levelview_mc.play();
}
stop();
var ImageWidth = 1000;
var ImageNo;
var ToolNo;
var UfoNo;
var startImage;
var timer = 0;
gameInit();
_root._quality = "MEDIUM";
_root.car_mc.hit_mc.car_mc.gotoAndStop(_root.p_s);
_root.lifeview_mc.life_mc.setMask(_root.lifeview_mc.lifemask_mc);
_root.lifeview_mc.health_mc.setMask(_root.lifeview_mc.healthmask_mc);
_root.lifeview_mc.lifemask_mc._y = _root.lifeview_mc.life_mc._y;
_root.lifeview_mc.healthmask_mc._y = (_root.lifeview_mc.health_mc._y - _root.lifeview_mc.healthmask_mc._height) + _root.lifeview_mc.health_mc._height;
var lifeMy = _root.lifeview_mc.life_mc._y;
var healthMy = ((_root.lifeview_mc.health_mc._y - _root.lifeview_mc.healthmask_mc._height) + _root.lifeview_mc.health_mc._height);
_root.restart_btn._visible = false;
if (_root.isGo == false) {
_root.isGo_mc._visible = true;
} else {
_root.isGo_mc._visible = false;
}
_root.onEnterFrame = function () {
_root.level = GameManage.level;
_root.score = GameManage.score;
if (GameManage.isGameOver == false) {
if (GameManage.isPause == false) {
_root.timer++;
if ((_root.timer % 400) == 0) {
GameManage.nextLevel();
}
for (var _local5 in _root.wayArray_mc) {
_root.wayArray_mc[_local5]._x = _root.wayArray_mc[_local5]._x - GameManage.speed;
if ((_root.wayArray_mc[_local5]._x <= -310) && (_root.wayArray_mc[_local5].getIsCreateImage() == false)) {
var _local3 = random(14) + 2;
var _local2 = _root.wayArray_mc.attachMovie("wayImage" + _local3, ("wayimage" + _root.ImageNo) + "_mc", _root.wayArray_mc.getNextHighestDepth());
_local2._x = _root.wayArray_mc[_local5]._x + 998;
_local2._y = _root.wayArray_mc[_local5]._y;
_root.wayArray_mc[_local5].setIsCreateImage(true);
_root.ImageNo++;
_root.createTool(_local2);
}
if (_root.wayArray_mc[_local5]._x <= -1005) {
removeMovieClip(_root.wayArray_mc[_local5]);
}
}
for (var _local5 in _root.toolArray_mc) {
_root.toolArray_mc[_local5]._x = _root.toolArray_mc[_local5]._x - GameManage.speed;
if (_root.toolArray_mc[_local5]._x <= -70) {
removeMovieClip(_root.toolArray_mc[_local5]);
}
}
var _local6 = random(50);
if (_local6 == 0) {
var _local7 = random(11) + 1;
var _local4 = _root.ufoArray1_mc.attachMovie("ufo_" + _local7, ("ufo" + _root.UfoNo) + "_mc", _root.ufoArray1_mc.getNextHighestDepth());
_local4._x = 670;
_local4._y = random(330) + 10;
_local4._xscale = random(40) + 80;
_local4._yscale = _local4._xscale;
_root.UfoNo++;
}
_local6 = random(80);
if (_local6 == 79) {
var _local7 = random(11) + 1;
var _local4 = _root.ufoArray2_mc.attachMovie("ufo_" + _local7, ("ufo" + _root.UfoNo) + "_mc", _root.ufoArray2_mc.getNextHighestDepth());
_local4._x = 670;
_local4._y = random(330) + 10;
_local4._xscale = random(40) + 30;
_local4._yscale = _local4._xscale;
_root.UfoNo++;
}
for (var _local5 in _root.ufoArray1_mc) {
_root.ufoArray1_mc[_local5]._x = _root.ufoArray1_mc[_local5]._x - ((GameManage.speed - 2) - GameManage.level);
if (_root.ufoArray1_mc[_local5]._x <= -100) {
removeMovieClip(_root.ufoArray1_mc[_local5]);
}
}
for (var _local5 in _root.ufoArray2_mc) {
_root.ufoArray2_mc[_local5]._x = _root.ufoArray2_mc[_local5]._x - ((GameManage.speed - 5) - GameManage.level);
if (_root.ufoArray2_mc[_local5]._x <= -100) {
removeMovieClip(_root.ufoArray2_mc[_local5]);
}
}
var _local5 = 1;
while (_local5 <= 2) {
_root[("bgxingxing" + _local5) + "_mc"]._x = _root[("bgxingxing" + _local5) + "_mc"]._x - 0.5;
if (_root[("bgxingxing" + _local5) + "_mc"]._x <= -650) {
_root[("bgxingxing" + _local5) + "_mc"]._x = 660;
}
_local5++;
}
for (_local5 in _root.yan_mc) {
_root.yan_mc[_local5]._x = _root.yan_mc[_local5]._x - GameManage.speed;
}
if (_root.car_mc.life <= _root.car_mc.maxLife) {
_root.lifeview_mc.life_mc.gotoAndStop(1);
_root.lifeview_mc.lifemask_mc._y = (_root.lifeMy + _root.lifeview_mc.life_mc._height) - ((_root.car_mc.life * _root.lifeview_mc.life_mc._height) / _root.car_mc.maxLife);
} else if (_root.car_mc.life > _root.car_mc.maxLife) {
_root.lifeview_mc.life_mc.gotoAndStop(2);
_root.lifeview_mc.lifemask_mc._y = _root.lifeMy;
}
_root.lifeview_mc.healthmask_mc._y = _root.healthMy - (_root.lifeview_mc.health_mc._height - ((_root.car_mc.health * _root.lifeview_mc.health_mc._height) / _root.car_mc.healthmax));
}
}
};
_root.music_btn.onRelease = function () {
if (_root.soundManage.isMusicPlay == true) {
_root.soundManage.stopMusic();
_root.soundManage.isMusicPlay = false;
_root.music_mc.gotoAndStop(2);
} else {
_root.soundManage.returnMusic();
_root.soundManage.isMusicPlay = true;
_root.music_mc.gotoAndStop(1);
}
};
_root.sound_btn.onRelease = function () {
if (_root.soundManage.isSoundPlay == true) {
_root.soundManage.stopSound();
_root.soundManage.isSoundPlay = false;
_root.sound_mc.gotoAndStop(2);
} else {
_root.soundManage.returnSound();
_root.soundManage.isSoundPlay = true;
_root.sound_mc.gotoAndStop(1);
}
};
Instance of Symbol 356 MovieClip "q_mc" in Frame 9
/* no clip actions */
Frame 10
stop();
Symbol 2 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.freeworldgroup.com", "_blank");
};
Symbol 6 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 10 MovieClip Frame 1
this._visible = false;
Symbol 10 MovieClip Frame 2
this._visible = true;
Symbol 10 MovieClip Frame 39
stop();
Instance of Symbol 3 MovieClip in Symbol 10 MovieClip Frame 39
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 424 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(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 showTimedAd(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.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 _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 _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
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 _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
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) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
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 _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
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 _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_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 425 MovieClip [__Packages.Ufo] Frame 0
class Ufo extends MovieClip
{
var cacheAsBitmap;
function Ufo () {
super();
cacheAsBitmap = true;
}
}
Symbol 426 MovieClip [__Packages.PowerUp] Frame 0
class PowerUp extends MovieClip
{
var isUse, mc, cacheAsBitmap;
function PowerUp () {
super();
isUse = false;
mc = _root.car_mc;
cacheAsBitmap = true;
}
function booo() {
isUse = true;
}
}
Symbol 427 MovieClip [__Packages.PowerMoney] Frame 0
class PowerMoney extends PowerUp
{
var price, gotoAndStop;
function PowerMoney () {
super();
price = 100;
}
function setPrice(money) {
price = money;
}
function booo() {
super.booo();
GameManage.score = GameManage.score + (price * GameManage.level);
_root.soundManage.playSound("money_s", 1);
gotoAndStop(2);
}
}
Symbol 428 MovieClip [__Packages.GameManage] Frame 0
class GameManage
{
function GameManage () {
}
static function nextLevel() {
level++;
nextSpeed();
_root.levelview_mc.play();
}
static function nextSpeed() {
speed = speed + 2;
}
static var isGameOver = false;
static var isPause = false;
static var score = 0;
static var level = 1;
static var speed = 3;
}
Symbol 429 MovieClip [__Packages.PowerLife] Frame 0
class PowerLife extends PowerUp
{
var power, gotoAndStop;
function PowerLife () {
super();
power = 20;
}
function booo() {
super.booo();
_root.car_mc.life = _root.car_mc.life + power;
_root.soundManage.playSound("life_s");
gotoAndStop(2);
}
}
Symbol 430 MovieClip [__Packages.PowerHealth] Frame 0
class PowerHealth extends PowerUp
{
var mc, gotoAndStop;
function PowerHealth () {
super();
}
function booo() {
super.booo();
mc.health_mc._visible = true;
mc.isHealth = true;
mc.health = mc.healthmax;
_root.soundManage.playSound("health_s");
gotoAndStop(2);
}
}
Symbol 431 MovieClip [__Packages.PowerFly] Frame 0
class PowerFly extends PowerUp
{
var mc, gotoAndStop;
function PowerFly () {
super();
}
function booo() {
super.booo();
mc.isFly = true;
mc.flytime = mc.flytimemax;
_root.flyview_mc.play();
mc.gotoAndStop(2);
gotoAndStop(2);
}
}
Symbol 432 MovieClip [__Packages.WayImage] Frame 0
class WayImage extends MovieClip
{
var isCreateImage, cacheAsBitmap;
function WayImage () {
super();
isCreateImage = false;
cacheAsBitmap = true;
}
function getIsCreateImage() {
return(isCreateImage);
}
function setIsCreateImage(b) {
isCreateImage = b;
}
}
Symbol 433 MovieClip [__Packages.SoundManage] Frame 0
class 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) {
playMusic("main_s", 9999);
isMusicPlay = true;
}
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() {
var _local2 = 0;
while (_local2 <= soundArray[1].length) {
soundArray[1][_local2].setVolume(0);
_local2++;
}
}
function stopMusic() {
var _local2 = 0;
while (_local2 <= musicArray[1].length) {
musicArray[1][_local2].setVolume(0);
_local2++;
}
}
function returnSound() {
var _local2 = 0;
while (_local2 < soundArray[1].length) {
soundArray[1][_local2].setVolume(soundArray[2][_local2]);
_local2++;
}
}
function returnMusic() {
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() {
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;
for(;;){
if (_local3 > soundArray[0].length) {
break;
}
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].start(0, arguments[1]);
break;
}
_local3++;
};
}
}
function playMusic() {
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;
for(;;){
if (_local3 > musicArray[0].length) {
break;
}
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].start(0, arguments[1]);
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 434 MovieClip [__Packages.Car] Frame 0
class Car extends MovieClip
{
var maxLife, healthmax, flytimemax, gotoAndStop, life, defense, _x, _y, health_mc, huo_mc, _rotation, isHealth, health, isFly, flytime, mouseHit, yanTime, hit1_mc, hit2_mc, hit3_mc, hit4_mc, hit_mc;
function Car () {
super();
maxLife = 100;
healthmax = 30;
flytimemax = 210;
init();
}
function init() {
gotoAndStop(1);
life = maxLife;
defense = 6;
_x = 40;
_y = 185;
health_mc._visible = false;
huo_mc._visible = false;
_rotation = 0;
isHealth = false;
health = 0;
isFly = false;
flytime = 0;
mouseHit = false;
yanTime = 0;
}
function gameover() {
life = 0;
_root.soundManage.playSound("bigbang_s");
_root.soundManage.isTrueStopSound("c1_s");
_root.soundManage.isTrueStopSound("c2_s");
GameManage.isGameOver = true;
_root.restart_btn._visible = true;
_root.gameover_mc._visible = true;
_root.gameover_mc.submit_mc.gotoAndStop(1);
gotoAndStop(3);
Mouse.show();
}
function reduceLife() {
if (isHealth == false) {
life = life - defense;
} else {
health = health - defense;
if (health <= 0) {
health_mc._visible = false;
isHealth = false;
health = 0;
}
}
}
function hitWay() {
for (var _local3 in _root.wayArray_mc) {
if (_root.wayArray_mc[_local3].hit_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
Mouse.show();
mouseHit = true;
}
}
}
function moveCar() {
var _local4 = _root._xmouse - _x;
var _local3 = _root._ymouse - _y;
if (Math.sqrt((_local4 * _local4) + (_local3 * _local3)) >= 7) {
if (GameManage.level <= 6) {
_x = _x + (_local4 * 0.2);
_y = _y + (_local3 * 0.2);
} else if ((GameManage.level > 6) && (GameManage.level <= 12)) {
_x = _x + (_local4 * 0.3);
_y = _y + (_local3 * 0.3);
} else if (GameManage.level > 12) {
_x = _x + (_local4 * 0.5);
_y = _y + (_local3 * 0.5);
}
_rotation = ExtMath.angleOfLine(_x, _y, _root._xmouse, _root._ymouse);
if (_rotation < -90) {
_rotation = -1 * (180 + _rotation);
}
if (_rotation > 90) {
_rotation = 180 - _rotation;
}
if ((_rotation >= 30) && (_rotation <= 90)) {
_rotation = 30;
} else if ((_rotation <= -30) && (_rotation >= -90)) {
_rotation = -30;
}
} else {
_rotation = _rotation - (_rotation * 0.5);
}
if (_x < 0) {
_x = 0;
}
if (_x > 650) {
_x = 650;
}
if (_y < 0) {
_x = 0;
}
if (_y > 350) {
_x = 350;
}
}
function onEnterFrame() {
if (GameManage.isGameOver == false) {
if (GameManage.isPause == false) {
yanTime++;
if (yanTime == 45) {
_root.soundManage.playSound("c2_s", 999999);
}
if (yanTime == 50) {
_root.soundManage.playSound("c2_s", 999999);
}
GameManage.score = GameManage.score + GameManage.level;
if (isFly == true) {
flytime--;
_root.flyview_mc.flytime_mc.flytime_mc.flytime = Math.ceil(flytime / 35);
if ((flytime % 35) == 0) {
_root.flyview_mc.flytime_mc.gotoAndPlay(1);
}
if (flytime == 35) {
_root.car_mc.flycar_mc.wing_mc.gotoAndStop(2);
}
if (flytime <= 0) {
_root.car_mc.flycar_mc.play();
}
} else {
var _local5 = 5 - GameManage.level;
if (_local5 < 2) {
_local5 = 2;
}
if ((yanTime % _local5) == 0) {
var _local6 = _root.yan_mc.attachMovie("yan", ("yan" + _root.yan_mc.getNextHighestDepth()) + "_mc", _root.yan_mc.getNextHighestDepth());
var _local7 = _root.yan_mc.attachMovie("yan", ("yan" + _root.yan_mc.getNextHighestDepth()) + "_mc", _root.yan_mc.getNextHighestDepth());
_local6._x = _root.car_mc.hit3_mc._x + _root.car_mc._x;
_local6._y = _root.car_mc.hit3_mc._y + _root.car_mc._y;
_local7._x = _root.car_mc.hit4_mc._x + _root.car_mc._x;
_local7._y = _root.car_mc.hit4_mc._y + _root.car_mc._y;
}
}
moveCar();
if (isFly == false) {
for (var _local3 in _root.wayArray_mc) {
if (!(_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit1_mc._x, _y + hit1_mc._y, true) && (_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit2_mc._x, _y + hit2_mc._y, true)))) {
huo_mc._visible = false;
if (_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit1_mc._x, _y + hit1_mc._y, true)) {
reduceLife();
_root.hua_mc._yscale = 100;
_root.hua_mc._x = _x + hit1_mc._x;
_root.hua_mc._y = _y + hit1_mc._y;
_root.hua_mc.gotoAndPlay(1);
_y = _y + 15;
_root._ymouse = _root._ymouse + 15;
} else if (_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit2_mc._x, _y + hit2_mc._y, true)) {
reduceLife();
_root.hua_mc._yscale = -100;
_root.hua_mc._x = _x + hit2_mc._x;
_root.hua_mc._y = _y + hit2_mc._y;
_root.hua_mc.gotoAndPlay(1);
_y = _y - 15;
_root._ymouse = _root._ymouse - 15;
} else if (_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit3_mc._x, _y + hit3_mc._y, true)) {
reduceLife();
_root.hua_mc._yscale = 100;
_root.hua_mc._x = _x + hit1_mc._x;
_root.hua_mc._y = _y + hit1_mc._y;
_root.hua_mc.gotoAndPlay(1);
_y = _y + 15;
_root._ymouse = _root._ymouse + 15;
} else if (_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit4_mc._x, _y + hit4_mc._y, true)) {
reduceLife();
_root.hua_mc._yscale = -100;
_root.hua_mc._x = _x + hit2_mc._x;
_root.hua_mc._y = _y + hit2_mc._y;
_root.hua_mc.gotoAndPlay(1);
_y = _y - 15;
_root._ymouse = _root._ymouse - 15;
}
} else if (((_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit1_mc._x, _y + hit1_mc._y, true) || (_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit2_mc._x, _y + hit2_mc._y, true))) || (_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit3_mc._x, _y + hit3_mc._y, true))) || (_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit4_mc._x, _y + hit4_mc._y, true))) {
reduceLife();
}
}
if (((_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit1_mc._x, _y + hit1_mc._y, true) && (_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit2_mc._x, _y + hit2_mc._y, true))) && (_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit3_mc._x, _y + hit3_mc._y, true))) && (_root.wayArray_mc[_local3].hit_mc.hitTest(_x + hit4_mc._x, _y + hit4_mc._y, true))) {
huo_mc._visible = true;
}
if (life <= 0) {
gameover();
}
for (var _local4 in _root.toolArray_mc) {
if (hit_mc.hitTest(_root.toolArray_mc[_local4].hit_mc)) {
_root.toolArray_mc[_local4].booo();
}
}
}
}
}
}
}
Symbol 435 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, global_coord) {
global_coord = {x:target_x, y:target_y};
target.localToGlobal(global_coord);
return(global_coord);
}
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 13 MovieClip [ufo_3] Frame 1
#initclip 42
Object.registerClass("ufo_3", Ufo);
#endinitclip
Symbol 16 MovieClip [ufo_9] Frame 1
#initclip 13
Object.registerClass("ufo_9", Ufo);
#endinitclip
Symbol 19 MovieClip [ufo_11] Frame 1
#initclip 14
Object.registerClass("ufo_11", Ufo);
#endinitclip
Symbol 22 MovieClip [ufo_2] Frame 1
#initclip 15
Object.registerClass("ufo_2", Ufo);
#endinitclip
Symbol 25 MovieClip [ufo_8] Frame 1
#initclip 16
Object.registerClass("ufo_8", Ufo);
#endinitclip
Symbol 28 MovieClip [ufo_5] Frame 1
#initclip 17
Object.registerClass("ufo_5", Ufo);
#endinitclip
Symbol 31 MovieClip [ufo_1] Frame 1
#initclip 18
Object.registerClass("ufo_1", Ufo);
#endinitclip
Symbol 33 MovieClip [ufo_7] Frame 1
#initclip 19
Object.registerClass("ufo_7", Ufo);
#endinitclip
Symbol 35 MovieClip [ufo_4] Frame 1
#initclip 20
Object.registerClass("ufo_4", Ufo);
#endinitclip
Symbol 37 MovieClip [ufo_10] Frame 1
#initclip 21
Object.registerClass("ufo_10", Ufo);
#endinitclip
Symbol 39 MovieClip [ufo_6] Frame 1
#initclip 22
Object.registerClass("ufo_6", Ufo);
#endinitclip
Symbol 47 MovieClip Frame 7
stop();
removeMovieClip(this._parent);
Symbol 48 MovieClip [power4] Frame 1
#initclip 23
Object.registerClass("power4", PowerMoney);
#endinitclip
stop();
Symbol 48 MovieClip [power4] Frame 2
stop();
Symbol 51 MovieClip [power3] Frame 1
#initclip 24
Object.registerClass("power3", PowerLife);
#endinitclip
stop();
Symbol 51 MovieClip [power3] Frame 2
stop();
Symbol 54 MovieClip [power1] Frame 1
#initclip 25
Object.registerClass("power1", PowerHealth);
#endinitclip
stop();
Symbol 54 MovieClip [power1] Frame 2
stop();
Symbol 57 MovieClip [power2] Frame 1
#initclip 26
Object.registerClass("power2", PowerFly);
#endinitclip
stop();
Symbol 57 MovieClip [power2] Frame 2
stop();
Symbol 65 MovieClip [wayImage1] Frame 1
#initclip 27
Object.registerClass("wayImage1", WayImage);
#endinitclip
Symbol 69 MovieClip [wayImage2] Frame 1
#initclip 28
Object.registerClass("wayImage2", WayImage);
#endinitclip
Symbol 73 MovieClip [wayImage3] Frame 1
#initclip 29
Object.registerClass("wayImage3", WayImage);
#endinitclip
Symbol 77 MovieClip [wayImage4] Frame 1
#initclip 30
Object.registerClass("wayImage4", WayImage);
#endinitclip
Symbol 81 MovieClip [wayImage5] Frame 1
#initclip 31
Object.registerClass("wayImage5", WayImage);
#endinitclip
Symbol 85 MovieClip [wayImage6] Frame 1
#initclip 32
Object.registerClass("wayImage6", WayImage);
#endinitclip
Symbol 89 MovieClip [wayImage7] Frame 1
#initclip 33
Object.registerClass("wayImage7", WayImage);
#endinitclip
Symbol 93 MovieClip [wayImage8] Frame 1
#initclip 34
Object.registerClass("wayImage8", WayImage);
#endinitclip
Symbol 97 MovieClip [wayImage9] Frame 1
#initclip 35
Object.registerClass("wayImage9", WayImage);
#endinitclip
Symbol 101 MovieClip [wayImage10] Frame 1
#initclip 36
Object.registerClass("wayImage10", WayImage);
#endinitclip
Symbol 105 MovieClip [wayImage11] Frame 1
#initclip 37
Object.registerClass("wayImage11", WayImage);
#endinitclip
Symbol 109 MovieClip [wayImage12] Frame 1
#initclip 38
Object.registerClass("wayImage12", WayImage);
#endinitclip
Symbol 113 MovieClip [wayImage13] Frame 1
#initclip 39
Object.registerClass("wayImage13", WayImage);
#endinitclip
Symbol 117 MovieClip [wayImage14] Frame 1
#initclip 40
Object.registerClass("wayImage14", WayImage);
#endinitclip
Symbol 121 MovieClip [wayImage15] Frame 1
#initclip 41
Object.registerClass("wayImage15", WayImage);
#endinitclip
Symbol 125 MovieClip [yan] Frame 11
removeMovieClip(this);
Symbol 131 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 146
_root.nextFrame();
Symbol 157 Button
on (release) {
gotoAndStop ("frontPage");
}
Symbol 161 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 170 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 185 Button
on (release) {
viewHighscore();
}
Symbol 186 MovieClip Frame 1
stop();
_global.game_name = _game_name;
var highscore = eval (score_var);
_global.viewHighscore = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + game_name, "_blank");
};
if (highscore <= 0) {
this._visible = false;
}
Symbol 186 MovieClip Frame 3
function sendData() {
send_var.game = game_name;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
highscore = _root.score;
gold_txt.text = highscore;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 165 MovieClip in Symbol 186 MovieClip Frame 3
on (release) {
}
Instance of Symbol 167 MovieClip in Symbol 186 MovieClip Frame 3
on (release) {
}
Symbol 204 Button
on (release) {
play();
}
Symbol 209 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 211 Button
on (release) {
getURL ("http://www.ifungames.com", "_blank");
}
Symbol 214 Button
on (release) {
_root.gotoAndStop("Instructions");
}
Symbol 215 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 216 Button
on (release) {
_root.gotoAndStop("Instructions");
}
Symbol 217 Button
on (release) {
viewHighscore();
}
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 22
stop();
Symbol 223 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 226 Button
on (release) {
gotoAndStop ("credits");
}
Symbol 237 MovieClip Frame 16
stop();
Symbol 239 Button
on (release) {
gotoAndStop (2);
}
Symbol 240 Button
on (release) {
_root.gotoAndStop("mainmenu");
}
Symbol 241 Button
on (release) {
_root.gotoAndStop("selectcar");
}
Symbol 253 Button
on (release) {
gotoAndStop (1);
}
Symbol 258 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 2
stop();
Symbol 264 Button
on (release) {
_root.gotoAndStop("gamestart");
}
Symbol 270 Button
on (release) {
if (_root.car_mc._currentframe != _root.car_mc._totalframes) {
_root.car_mc.nextFrame();
_root.p_s = _root.car_mc._currentframe;
} else {
_root.car_mc.gotoAndStop(1);
_root.p_s = _root.car_mc._currentframe;
}
}
Symbol 271 Button
on (release) {
if (_root.car_mc._currentframe != 1) {
_root.car_mc.prevFrame();
_root.p_s = _root.car_mc._currentframe;
} else {
_root.car_mc.gotoAndStop(_root.car_mc._totalframes);
_root.p_s = _root.car_mc._currentframe;
}
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
Symbol 281 MovieClip Frame 3
stop();
Symbol 281 MovieClip Frame 4
stop();
Symbol 281 MovieClip Frame 5
stop();
Symbol 285 MovieClip Frame 4
stop();
this._x = -200;
this._y = -100;
Symbol 314 MovieClip Frame 7
_root.soundManage.playSound("wing_s");
Symbol 317 MovieClip Frame 35
stop();
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 2
stop();
Symbol 319 MovieClip Frame 10
stop();
Symbol 319 MovieClip Frame 11
_root.flyview_mc.play();
Symbol 319 MovieClip Frame 22
_root.car_mc.isFly = false;
_root.car_mc.flytime = 0;
_root.car_mc.gotoAndStop(1);
Symbol 325 MovieClip Frame 6
stop();
for (var i in _root.wayArray_mc) {
if (((_root.wayArray_mc[i].hit_mc.hitTest(_root.car_mc._x + _root.car_mc.hit1_mc._x, _root.car_mc._y + _root.car_mc.hit1_mc._y, true) && (_root.wayArray_mc[i].hit_mc.hitTest(_root.car_mc._x + _root.car_mc.hit2_mc._x, _root.car_mc._y + _root.car_mc.hit2_mc._y, true))) && (_root.wayArray_mc[i].hit_mc.hitTest(_root.car_mc._x + _root.car_mc.hit3_mc._x, _root.car_mc._y + _root.car_mc.hit3_mc._y, true))) && (_root.wayArray_mc[i].hit_mc.hitTest(_root.car_mc._x + _root.car_mc.hit4_mc._x, _root.car_mc._y + _root.car_mc.hit4_mc._y, true))) {
die_mc._visible = false;
}
}
Symbol 326 MovieClip [car] Frame 1
#initclip 43
Object.registerClass("car", Car);
#endinitclip
stop();
hit_mc.car_mc.gotoAndStop(_root.p_s);
if (this.isHealth == false) {
this.health_mc._visible = false;
} else {
this.health_mc._visible = true;
}
Symbol 326 MovieClip [car] Frame 2
stop();
flycar_mc.hit_mc.car_mc.gotoAndStop(_root.p_s);
if (this.isHealth == false) {
this.flycar_mc.health_mc._visible = false;
} else {
this.flycar_mc.health_mc._visible = true;
}
Symbol 326 MovieClip [car] Frame 3
stop();
Symbol 333 Button
on (release) {
_root.return_mc.play();
}
Symbol 346 Button
on (release) {
_root.q_mc.play();
}
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 16
stop();
b4_btn.onPress = function () {
_root._quality = "BEST";
};
b3_btn.onPress = function () {
_root._quality = "HIGH";
};
b2_btn.onPress = function () {
_root._quality = "MEDIUM";
};
b1_btn.onPress = function () {
_root._quality = "LOW";
};
Symbol 359 MovieClip Frame 1
stop();
stop();
Symbol 359 MovieClip Frame 2
stop();
Symbol 368 Button
on (release) {
GameManage.isGameOver = false;
Mouse.hide();
_root.q_mc.gotoAndStop(1);
_root.return_mc.gotoAndStop(1);
_root.soundManage.playSound("c1_s");
_root.isGo = true;
_root.isGo_mc._visible = false;
_root.lifeview_mc.startgame_btn._visible = false;
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 2
stop();
Symbol 382 Button
on (release) {
_root.gotoAndStop("mainmenu");
}
Symbol 383 Button
on (release) {
_root.return_mc.gotoAndStop(1);
}
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 15
stop();
Symbol 392 MovieClip Frame 10
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 10
stop();
Symbol 393 MovieClip Frame 19
gotoAndStop (1);
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 14
gotoAndStop (1);
Symbol 414 Button
on (release) {
_root.gotoAndStop("mainmenu");
}
Symbol 415 Button
on (release) {
_root.gameInit();
}
Instance of Symbol 186 MovieClip "submit_mc" in Symbol 419 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_game_name = "pathfinder";
score_var = "_root.score";
}