Frame 1
var MochiAd = {getVersion:function () {
return("1.5");
}, showPreloaderAd:function (options) {
var _local1 = this;
var DEFAULTS = {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 = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
var _local1 = this;
var DEFAULTS = {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 = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, _allowDomains:function (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);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb) {
cb = parseInt(cb);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
if (clip._url.indexOf("http") != 0) {
_local1.no_page = true;
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[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]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
return(_local3);
}, _:null};
MochiAd.showPreloaderAd({id:"19497e6be1a0f19c", res:"550x500"});
Frame 2
stop();
Stage.scaleMode = "noScale";
Stage.showMenu = false;
Stage.align = "TL";
System.useCodepage = true;
secureMovie = new Object();
secureMovie.auth_ret = true;
Frame 3
this.stop();
P3 = 0;
level = 1;
xrot = 5 + (level * 0.5);
score = 0;
mission = 1;
pertime = 24;
timeNum = 1;
time_i = 0;
Instance of Symbol 52 MovieClip in Frame 3
on (rollOver) {
this.nextFrame();
}
on (rollOut) {
this.prevFrame();
}
on (press) {
stopAllSounds();
_parent.gotoAndStop("game");
}
Instance of Symbol 56 MovieClip in Frame 3
on (rollOver) {
this.nextFrame();
}
on (rollOut) {
this.prevFrame();
}
on (press) {
_parent.gotoAndStop("help");
}
Instance of Symbol 62 MovieClip in Frame 3
on (rollOver) {
this.nextFrame();
}
on (rollOut) {
this.prevFrame();
}
on (press) {
getURL ("http://www.9mine.com/score_rank.php?title=Nail%20It", "_blank");
}
Frame 4
if (false) {
}
Frame 5
function soundOn() {
SoundObj.setVolume(100);
}
function soundOff() {
SoundObj.setVolume(0);
}
function FN_Power() {
var _local1 = this;
if (level < 10) {
addspeed = addspeed + (0.8 + (level * 0.1));
} else {
addspeed = addspeed + 1.8;
}
_local1.power_mc.power_hm._x = _local1.power_mc.power_hm._x + (xspeed + addspeed);
if (_local1.power_mc.power_hm._x >= 300) {
if (level < 10) {
addspeed = 0.8 + (level * 0.1);
} else {
addspeed = 1.8;
}
_local1.power_mc.power_hm._x = 0;
}
}
function FN_Angle() {
var _local1 = this;
_local1.angle_mc.arrow_mc._rotation = _local1.angle_mc.arrow_mc._rotation + xrot;
if (_local1.angle_mc.arrow_mc._rotation > 90) {
xrot = xrot * -1;
} else if (_local1.angle_mc.arrow_mc._rotation < 0) {
xrot = xrot * -1;
}
}
function FN_reset() {
var _local1 = this;
_local1.jump = true;
click_space = 0;
time_i = 0;
addspeed = 0;
if (level < 10) {
xrot = 5 + (level * 1);
} else {
xrot = 15;
}
timeNum = 1;
P3 = 0;
_local1.power_mc.power_hm._x = hm_xpos;
_local1.power_mc.power_tg._visible = false;
_local1.angle_mc._visible = false;
_local1.angle_mc.arrow_mc._rotation = random(90);
_local1.time_mc._visible = false;
_local1.time_mc.gotoAndStop(1);
_local1.player_mc.nail_mc.gotoAndStop(1);
_local1.player_mc.nail_mc.in_nail.gotoAndStop(3);
_local1.player_mc.gotoAndStop(1);
_local1.player_mc.P3 = 0;
_local1.player_mc.P5 = 0;
_local1.gotoAndStop("game");
}
function FN_CheckPower() {
click_space = 2;
dis_power = Math.ceil(this.power_mc.power_hm._x / 15);
trace(dis_power);
if (dis_power >= 19) {
power_num = 10;
} else if ((dis_power < 19) && (dis_power >= 16)) {
power_num = 9;
} else if ((dis_power < 16) && (dis_power >= 11)) {
power_num = 8;
} else {
power_num = 7;
}
trace("power_num = " + power_num);
turm_mc.gotoAndPlay("power");
this.power_mc.power_hm.nextFrame();
}
function FN_CheckAngle() {
click_space = 0;
dis_angle = Math.round(45 - this.angle_mc.arrow_mc._rotation);
angle_num = 9 - Math.round(dis_angle / 5);
trace("angle_num = " + angle_num);
turm_mc.gotoAndPlay("angle");
this.angle_mc.arrow_mc.nextFrame();
}
this.stop();
SoundObj = new Sound(this);
SoundObj.attachSound("bgm");
this.volume_controler.gotoAndStop(soundFrame);
FNtime = function (mc, time) {
var _local1 = this;
time_i++;
if ((time_i % time) == 0) {
if (_local1.time_mc._currentframe != 11) {
time_i = 0;
timeNum++;
_local1.time_mc.gotoAndStop(timeNum);
} else {
click_space = 0;
_local1.timeover.play();
}
}
};
FNscore = function (s, num) {
var _local3 = s;
var _local2 = num;
var _local1 = 1;
while (_local1 <= 5) {
this.menu_mc[_local3 + _local1].gotoAndStop((Math.floor(_local2 / Math.pow(10, _local1 - 1)) % 10) + 1);
_local1++;
}
};
FNscore("l", _root.level);
FNscore("s", _root.score);
FNscore("m", _root.mission);
var xspeed = 7;
var addspeed = 0;
this.power_mc.power_hm._x = 0;
var hm_xpos = this.power_mc.power_hm._x;
var dis_power;
var click_space = 0;
this.angle_mc._visible = false;
this.time_mc._visible = false;
this.text_mc.gotoAndStop("start");
this.power_mc.power_tg._visible = false;
this.onEnterFrame = function () {
var _local1 = this;
if (click_space != 0) {
FNtime("time_mc", pertime);
}
if (click_space == 1) {
FN_Power();
} else if (click_space == 2) {
FN_Angle();
}
if (_local1.vol == 1) {
soundOn();
_local1.vol = 2;
}
if (_local1.vol == 0) {
soundOff();
_local1.vol = 2;
}
};
Frame 9
this.player_mc.nail_mc.gotoAndStop(P3 + 1);
this.player_mc.nail_mc.in_nail.gotoAndStop(3);
this.power_mc.power_tg._visible = false;
this.power_mc.power_hm._x = 0;
if (level < 10) {
addspeed = 0.8 + (level * 0.1);
} else {
addspeed = 1.8;
}
this.onEnterFrame = function () {
var _local1 = this;
if (click_space != 0) {
FNtime("time_mc", pertime);
}
if (click_space == 1) {
FN_Power();
} else if (click_space == 2) {
FN_Angle();
}
if (_local1.vol == 1) {
soundOn();
_local1.vol = 2;
}
if (_local1.vol == 0) {
soundOff();
_local1.vol = 2;
}
};
Frame 13
function FN_nail() {
var _local1 = this;
_local1.nail_mc.gotoAndStop(P3 + 1);
_local1.hammer1._visible = false;
_local1.hammer2._visible = false;
hammer_num = Math.ceil(P4 / 3);
_local1["hammer" + hammer_num]._visible = true;
}
function FN_innail() {
if (P4 < 3) {
in_num = (P4 * 2) + 1;
P6 = in_num;
} else {
in_num = (P4 * 2) + 3;
P6 = in_num;
}
FN_Tgpos();
this.nail_mc.in_nail.gotoAndStop(in_num);
}
function FN_ChecksidePower() {
click_space = 0;
side_power = Math.round(this.power_mc.power_hm._x / 40);
if (side_power == 0) {
side_power = 1;
}
this.turm_mc.gotoAndPlay("side");
}
function FN_Tgpos() {
var _local1 = this;
trace("this.nail_mc.in_nail._currentframe =" + _local1.nail_mc.in_nail._currentframe);
if (_local1.nail_mc.in_nail._currentframe < 8) {
_local1.power_mc.power_tg._x = (40 * (8 - _local1.nail_mc.in_nail._currentframe)) - 10;
} else {
_local1.power_mc.power_tg._x = (40 * (_local1.nail_mc.in_nail._currentframe - 8)) - 10;
}
}
function FN_CheckNail() {
var _local1 = this;
if (P4 < 3) {
_local1.nail_mc.in_nail.gotoAndStop(side_power + P6);
} else {
_local1.nail_mc.in_nail.gotoAndStop(_local1.nail_mc.in_nail._currentframe - side_power);
}
P6 = _local1.nail_mc.in_nail._currentframe;
}
function FN_Hammershow() {
var _local1 = this;
if (P6 < 8) {
P4 = 2;
_local1.hammer2._visible = false;
} else {
P4 = 4;
_local1.hammer1._visible = false;
}
FN_Tgpos();
hammer_num = Math.ceil(P4 / 3);
_local1["hammer" + hammer_num]._visible = true;
}
var P3 = real_power;
var P4 = real_angle;
trace("real_power = " + P3);
trace("real_angle = " + P4);
if (level < 20) {
addspeed = 0.8 + (level * 0.05);
} else {
addspeed = 1.8;
}
var in_num;
var P6;
FN_nail();
click_space = 3;
this.angle_mc._visible = false;
this.power_mc.power_tg._visible = true;
this.power_mc.power_hm._x = 0;
this.onEnterFrame = function () {
var _local1 = this;
if (click_space != 0) {
FNtime("time_mc", pertime);
}
if (click_space == 3) {
FN_Power();
}
if (_local1.vol == 1) {
soundOn();
_local1.vol = 2;
}
if (_local1.vol == 0) {
soundOff();
_local1.vol = 2;
}
};
Frame 16
function FNsend() {
var _local1 = _root;
LVwrite = new LoadVars();
LVwrite.game_id = _local1.game_id;
LVwrite.user_id = _local1.user_id;
LVwrite.pass = _local1.homepage;
LVwrite.score = _local1.score;
LVwrite.onLoad = function () {
_root.ranking = this.result;
delete LVwrite;
};
}
stop();
SoundObj.stop();
_root.FNsend();
if (((_root.check_id == "") || (_root.check_id == undefined)) || (_root.check_id == null)) {
_root.user_id = "guest";
_root.nextFrame();
}
var end_score_check = 0;
make_end_score_board = function () {
sound_play(20, 2, 1);
score_board.onEnterFrame = function () {
plus_end_score(Math.round(score / 40));
};
};
plus_end_score = function (num, re_flag) {
end_score_check = end_score_check + num;
var _local2 = String(end_score_check).split("").reverse();
var _local1 = 0;
while (_local1 < 7) {
game_over_m.end_score_board["s" + _local1].gotoAndStop(1);
_local1++;
}
_local1 = 0;
while (_local1 < _local2.length) {
game_over_m.end_score_board["s" + _local1].gotoAndStop(parseInt(_local2[_local1]) + 1);
_local1++;
}
if (end_score_check >= score) {
delete score_board.onEnterFrame;
end_score_check = score;
if (!re_flag) {
so20.stop("so20");
plus_end_score(0, true);
}
}
};
Instance of Symbol 310 MovieClip "paihang" in Frame 16
onClipEvent (load) {
this._visible = false;
}
Frame 18
P3 = 0;
level = 1;
xrot = 5 + (level * 0.5);
score = 0;
mission = 1;
pertime = 24;
timeNum = 1;
time_i = 0;
this.gotoAndStop("game");
Frame 19
this.gotoAndStop("intro");
Symbol 7 Button
on (release) {
getURL ("http://www.9mine.com", "_blank");
}
Symbol 11 Button
on (release) {
getURL ("http://www.9mine.com/free_games.html", "_blank");
}
Symbol 16 Button
on (release) {
getURL ("http://www.9mine.com", "_blank");
}
Symbol 33 MovieClip Frame 1
var byteloaded:Number = 0;
var bytetotal:Number = 0;
var loaded:Number = 0;
var speed:String = "0 K/s";
var loadedv:String = "0 %";
M_ZeKuan._yscale = 0;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
M_ZeKuan._yscale = 100;
gotoAndPlay ("go");
}
play();
Instance of Symbol 14 MovieClip in Symbol 33 MovieClip Frame 1
on (release) {
getURL ("http://www.9mine.com", "_blank");
}
Symbol 33 MovieClip Frame 2
play();
Symbol 33 MovieClip Frame 4
var classesFrame:Number = 15;
loaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
t = getTimer();
var speed:String = (Math.round(((_root.getBytesLoaded() / t) * 100) / 100) + " K/s");
loadedv = loaded + " %";
M_ZeKuan._yscale = loaded;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
gotoAndPlay ("go");
} else {
gotoAndPlay ("Load");
}
stop();
Symbol 33 MovieClip Frame 13
play();
Symbol 33 MovieClip Frame 17
_root.gotoAndPlay(2);
Symbol 43 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 1
this.stop();
Instance of Symbol 43 MovieClip in Symbol 47 MovieClip Frame 1
on (rollOver) {
_root.sound_press = true;
this.nextFrame();
}
on (rollOut) {
_root.sound_press = false;
this.prevFrame();
}
on (press) {
_parent._parent.soundFrame = 2;
_root.vol = 0;
_parent.nextFrame();
}
Instance of Symbol 46 MovieClip in Symbol 47 MovieClip Frame 2
on (rollOver) {
_root.sound_press = true;
this.nextFrame();
}
on (rollOut) {
_root.sound_press = false;
this.prevFrame();
}
on (press) {
_parent._parent.soundFrame = 1;
_root.vol = 1;
_parent.prevFrame();
}
Symbol 52 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
stop();
Instance of Symbol 77 MovieClip in Symbol 82 MovieClip Frame 1
on (release) {
_parent._parent.gotoAndStop("intro");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 107 MovieClip Frame 1
this.stop();
Symbol 108 MovieClip Frame 1
this.stop();
Symbol 109 MovieClip Frame 1
this.stop();
Symbol 110 MovieClip Frame 1
this.stop();
Symbol 113 MovieClip Frame 1
this.stop();
Symbol 140 MovieClip Frame 32
this.stop();
if (_parent._parent.mission == 0) {
_parent._parent.text_mc.gotoAndStop("levelup");
} else {
_parent._parent.text_mc.gotoAndStop("start");
_parent._parent.FN_reset();
}
Symbol 141 MovieClip Frame 24
this.stop();
if (_parent.P4 == 3) {
_parent.FN_ReHit();
} else {
_parent._parent.gotoAndStop("game_another");
}
Symbol 141 MovieClip Frame 57
this.stop();
if (_parent._parent.menu_mc.life._currentframe != 6) {
_parent._parent.text_mc.gotoAndStop("jumpfalse");
_parent._parent.FN_reset();
} else {
_parent._parent.text_mc.gotoAndStop("gameover");
}
Symbol 145 MovieClip Frame 1
function FN_Nailin() {
Effect = new Sound(this);
Effect.attachSound("hm_shot");
Effect.start();
this.nail_mc.in_nail.gotoAndStop(P4);
}
function FN_Checknail() {
var _local2 = _parent;
var _local1 = this;
_local2.real_power = P3;
_local2.real_angle = P4;
_local2.angle_mc._visible = false;
if (_local1.nail_mc._currentframe == 5) {
_local1.gotoAndStop("great");
} else {
_local1.gotoAndStop("good");
}
}
function FN_ReHit() {
P3 = 0;
P5 = 0;
_parent.click_space = 1;
this.gotoAndStop(1);
}
this.stop();
this.nail_mc.in_nail.gotoAndStop(3);
Symbol 145 MovieClip Frame 5
function FN_P3minus(a, b, c, d) {
if (P2 == 9) {
P3_minus = a;
} else if ((P2 == 8) || (P2 == 10)) {
P3_minus = b;
} else if ((((((((P2 == 4) || (P2 == 5)) || (P2 == 6)) || (P2 == 7)) || (P2 == 11)) || (P2 == 12)) || (P2 == 13)) || (P2 == 14)) {
P3_minus = c;
} else {
P3_minus = d;
}
}
var P1 = _parent.power_num;
var P2 = _parent.angle_num;
var P3 = _parent.real_power;
var P4 = _parent.real_angle;
var P2_minus = 0;
if (P1 == 10) {
P3 = 4;
FN_P3minus(0, 1, 2, 5);
} else if (P1 == 9) {
P3 = 3;
FN_P3minus(0, 1, 2, 5);
} else if (P1 == 8) {
P3 = 2;
FN_P3minus(0, 1, 1, 5);
} else {
P3 = 1;
FN_P3minus(0, 0, 0, 5);
}
P3 = P3 - P3_minus;
P3 = P3 + (P5 + _parent.P3);
if (P3 > 0) {
if (P3 > 4) {
P3 = 4;
}
this.nail_mc.gotoAndStop(P3 + 1);
this.gotoAndPlay("power" + P3);
_parent.P3 = P3;
var P5 = P3;
} else {
P3 = 0;
_parent.P3 = 0;
this.gotoAndStop("bad");
}
if (P2 == 9) {
P4 = 3;
} else if ((P2 == 7) || (P2 == 8)) {
P4 = 2;
} else if (P2 <= 6) {
P4 = 1;
} else if ((P2 == 10) || (P2 == 11)) {
P4 = 4;
} else {
P4 = 5;
}
Symbol 145 MovieClip Frame 6
FN_Nailin();
Symbol 145 MovieClip Frame 9
FN_Checknail();
Symbol 145 MovieClip Frame 10
FN_Nailin();
Symbol 145 MovieClip Frame 13
FN_Checknail();
Symbol 145 MovieClip Frame 14
FN_Nailin();
Symbol 145 MovieClip Frame 17
FN_Checknail();
Symbol 145 MovieClip Frame 18
FN_Nailin();
Symbol 145 MovieClip Frame 21
FN_Checknail();
Symbol 145 MovieClip Frame 24
_parent.mission--;
_parent.score = _parent.score + 500;
_parent.FNscore("s", _root.score);
_parent.FNscore("m", _root.mission);
Symbol 145 MovieClip Frame 25
this.mc.gotoAndPlay("good");
Symbol 145 MovieClip Frame 26
this.mc.gotoAndPlay("bad");
_parent.menu_mc.life.nextFrame();
Symbol 158 MovieClip Frame 1
this.stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
this.stop();
Symbol 182 MovieClip Frame 6
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 12
this.stop();
_parent.prevFrame();
Symbol 198 MovieClip Frame 1
this.stop();
Symbol 213 MovieClip Frame 12
this.stop();
_parent.prevFrame();
Symbol 214 MovieClip Frame 1
this.stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 77
if (_parent._parent.jump) {
} else {
_parent._parent.SoundObj.start(0, 999);
}
_parent._parent.click_space = 1;
_parent._parent.time_mc._visible = true;
_parent.gotoAndStop(1);
Symbol 233 MovieClip Frame 42
Symbol 233 MovieClip Frame 57
this.stop();
_parent._parent.mission = _parent._parent.level;
_parent._parent.FNscore("l", _parent._parent.level);
_parent._parent.FNscore("m", _parent._parent.mission);
_parent._parent.FN_reset();
_parent.gotoAndStop("jumpfalse");
Symbol 240 MovieClip Frame 56
this.stop();
stopAllSounds();
_parent._parent.gotoAndStop("gameover");
Symbol 241 MovieClip Frame 1
this.stop();
trace("1??????");
Symbol 241 MovieClip Frame 2
trace("----------------" + _parent.jump);
if (_parent.jump) {
this.mc.gotoAndPlay(this.mc._totalframes - 1);
} else {
stopAllSounds();
}
Symbol 241 MovieClip Frame 3
_parent.level++;
Symbol 241 MovieClip Frame 5
_parent.jump = false;
this.gotoAndStop("start");
Symbol 244 MovieClip Frame 1
this.stop();
Symbol 244 MovieClip Frame 2
_parent.menu_mc.life.nextFrame();
Symbol 244 MovieClip Frame 41
if (_parent.menu_mc.life._currentframe != 6) {
_parent.text_mc.gotoAndStop("jumpfalse");
_parent.FN_reset();
} else {
_parent.text_mc.gotoAndStop("gameover");
}
Symbol 245 Button
on (keyPress "<Space>") {
if (this.turm_mc._currentframe == 1) {
if (click_space == 1) {
FN_CheckPower();
} else if (click_space == 2) {
FN_CheckAngle();
} else if (click_space == 3) {
FN_ChecksidePower();
}
}
}
Symbol 246 MovieClip Frame 1
this.stop();
Symbol 246 MovieClip Frame 11
_parent.angle_mc._visible = true;
this.gotoAndStop(1);
Symbol 246 MovieClip Frame 21
_parent.player_mc.gotoAndPlay("hit");
this.gotoAndStop(1);
Symbol 246 MovieClip Frame 31
_parent["hammer" + _parent.hammer_num].play();
this.gotoAndStop(1);
Symbol 246 MovieClip Frame 46
_parent.gotoAndStop("game_re");
Symbol 253 MovieClip Frame 1
this.stop();
Symbol 253 MovieClip Frame 3
_parent.FN_CheckNail();
Symbol 253 MovieClip Frame 11
if (_parent.P6 == 8) {
_parent.click_space = 1;
_parent.power_mc.power_tg._visible = false;
_parent.turm_mc.gotoAndPlay("sideok");
} else {
_parent.click_space = 3;
_parent.FN_Hammershow();
}
Symbol 262 MovieClip Frame 1
this.stop();
Symbol 264 MovieClip Frame 1
this.stop();
_parent.FN_innail();
Symbol 264 MovieClip Frame 2
_parent.FN_innail();
Symbol 264 MovieClip Frame 3
_parent.FN_innail();
Symbol 264 MovieClip Frame 4
_parent.FN_innail();
Symbol 275 MovieClip Frame 1
stop();
btn_save.onRelease = function () {
_root.btn_save();
this._visible = false;
};
Instance of Symbol 276 MovieClip "upload" in Symbol 277 MovieClip Frame 1
on (release) {
_global.player1 = escape(_parent.player);
var send_lv = new LoadVars();
this._visible = false;
getURL (((("http://www.9mine.com/game_score_set.php?score=" + _global.score1) + "&player=") + _global.player1) + "&game_title=Sushi%20Dash", "_blank");
}
Symbol 282 MovieClip Frame 1
stop();
score_save.onRelease = function () {
_root.btn_save();
this._visible = false;
};
Symbol 296 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
stop();
save_again._visible = false;
this._parent.make_end_score_board();
save_again._visible = false;
var score2 = (_root.score + 0.1234);
var score3 = Math.floor(Math.sqrt(score2));
var score4 = (Math.sqrt(score2) - (score3 - 1));
var score1 = Math.floor(score4 * 10000);
var score5 = Math.floor(score1);
var score6 = (score5 / 10000);
_global.score1 = (score6 + _root.score) - 1;
Instance of Symbol 283 MovieClip "upload" in Symbol 297 MovieClip Frame 1
on (release) {
_global.player1 = escape(_parent.player);
var send_lv = new LoadVars();
this._visible = false;
_root.paihang._visible = true;
getURL (((("http://www.9mine.com/game_score_set.php?score=" + _global.score1) + "&player=") + _global.player1) + "&game_title=Nail%20It", "_blank");
}
Instance of Symbol 287 MovieClip "MC_result" in Symbol 297 MovieClip Frame 1
onClipEvent (load) {
this._visible = true;
}
Instance of Symbol 62 MovieClip in Symbol 297 MovieClip Frame 1
on (rollOver) {
this.nextFrame();
}
on (rollOut) {
this.prevFrame();
}
on (press) {
getURL ("http://www.9mine.com/score_rank.php?title=Nail%20It", "_blank");
}
Instance of Symbol 296 MovieClip in Symbol 297 MovieClip Frame 1
on (rollOver) {
this.nextFrame();
}
on (rollOut) {
this.prevFrame();
}
on (press) {
stopAllSounds();
_root.gotoAndStop("intro");
}
Instance of Symbol 305 MovieClip in Symbol 310 MovieClip Frame 1
on (release) {
getURL ("http://www.9mine.com/play/game_2218_Temple%20Guardian.html", "_blank");
}
Instance of Symbol 305 MovieClip in Symbol 310 MovieClip Frame 1
on (release) {
getURL ("http://www.9mine.com/play/game_1421_Icy%20Candy.html", "_blank");
}
Instance of Symbol 305 MovieClip in Symbol 310 MovieClip Frame 1
on (release) {
getURL ("http://www.9mine.com/play/game_1380_Bleach%20Training%202.html", "_blank");
}
Instance of Symbol 305 MovieClip in Symbol 310 MovieClip Frame 1
on (release) {
getURL ("http://www.9mine.com/play/game_1388_Starship%20Chopper.html", "_blank");
}
Instance of Symbol 307 MovieClip in Symbol 310 MovieClip Frame 1
on (release) {
getURL ("http://www.9mine.com/play/game_2218_Temple%20Guardian.html", "_blank");
}
Instance of Symbol 307 MovieClip in Symbol 310 MovieClip Frame 1
on (release) {
getURL ("http://www.9mine.com/play/game_1380_Bleach%20Training%202.html", "_blank");
}
Instance of Symbol 307 MovieClip in Symbol 310 MovieClip Frame 1
on (release) {
getURL ("http://www.9mine.com/play/game_1388_Starship%20Chopper.html", "_blank");
}
Instance of Symbol 307 MovieClip in Symbol 310 MovieClip Frame 1
on (release) {
getURL ("http://www.9mine.com/play/game_1421_Icy%20Candy.html", "_blank");
}