Frame 1
fscommand ("allowscale", false);
fscommand ("Fullscreen", false);
fscommand ("showmenu", false);
fscommand ("trapallkeys", true);
suaraaktif = 1;
stop();
bisamasuk = 0;
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:"49855cf885ebc9fc", res:"600x400"});
Instance of Symbol 20 MovieClip in Frame 1
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Frame 11
stopAllSounds();
stop();
if (index == undefined) {
index = true;
}
if (wall == undefined) {
wall = false;
}
if (wind == undefined) {
wind = 0;
}
if (_root.wind != 0) {
_root.wind = Math.random() - 0.5;
}
if (_root.syokiHP == undefined) {
_root.syokiHP = 3;
}
hitoHP = _root.syokiHP;
hito2HP = _root.syokiHP;
bgsound = new Sound();
ingame = new Sound();
bgsound.attachSound("bgsound");
bgsound.start(0, 99);
Instance of Symbol 81 MovieClip "bg3_mc" in Frame 11
onClipEvent (load) {
this.XMIN = -240.2;
this.XMAX = 720.8;
}
Instance of Symbol 81 MovieClip "bg3_mc" in Frame 11
onClipEvent (load) {
this.XMIN = -240.2;
this.XMAX = 720.8;
}
Instance of Symbol 81 MovieClip "bg3_mc" in Frame 11
onClipEvent (load) {
this.XMIN = -240.2;
this.XMAX = 720.8;
}
Frame 12
turn = 1;
stop();
stopAllSounds();
ingame.attachSound("bgsound2");
ingame.start(0, 99);
Instance of Symbol 165 MovieClip "hito" in Frame 12
onClipEvent (mouseDown) {
drag = true;
this.yumi.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = _root._xmouse;
_root.sign._y = _root._ymouse;
nagasa = 3;
radian = 0;
muki = true;
}
onClipEvent (enterFrame) {
if (drag) {
ymo = _ymouse - yzero;
xmo = _xmouse - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / 3.141593;
this.yumi._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
}
if ((Math.round(Math.random() * 30) == 1) && (_root.wind != 0)) {
_root.hadep++;
_root.haba.attachMovie("happa", "ha" + _root.hadep, _root.hadep);
_root.haba["ha" + _root.hadep]._x = (-_root._x) + (Math.random() * 400);
_root.haba["ha" + _root.hadep]._y = 265;
}
}
onClipEvent (mouseUp) {
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop(this.yumi._totalframes);
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.depth++;
_root.yaba.attachMovie("ya", "ya" + _root.depth, _root.depth);
_root.yaba["ya" + _root.depth]._x = this._x + (Math.cos(radian) * 32);
_root.yaba["ya" + _root.depth]._y = this._y + (Math.sin(radian) * 32);
_root.yaba["ya" + _root.depth].addx = addx;
_root.yaba["ya" + _root.depth].addy = addy;
_root.yaba["ya" + _root.depth].mydepth = _root.depth;
}
Instance of Symbol 90 MovieClip "mato" in Frame 12
onClipEvent (load) {
this._x = 800 + (Math.random() * 2000);
_root.mhaikei._x = this._x;
_root.matohaikei._x = this._x;
_root.taiyou._x = (this._x + 200) / 2;
_root.hitoHP = 3000;
}
Instance of Symbol 171 MovieClip "sign" in Frame 12
onClipEvent (load) {
this._visible = false;
if (_root.index == false) {
this._xscale = 0;
this._yscale = 0;
}
}
Frame 13
turn = 1;
stop();
stopAllSounds();
ingame.attachSound("bgsound2");
ingame.start(0, 99);
Instance of Symbol 165 MovieClip "hito2" in Frame 13
onClipEvent (load) {
this.nextFrame();
if (_root.wind == 0) {
this._x = 1500 + (Math.random() * 1000);
} else {
this._x = 1500 + (Math.random() * 1000);
}
_root.hitoatari2._x = this._x;
_root.haikei._x = this._x;
if (_root.wall) {
if (_root.wind == 0) {
_root.mato._yscale = ((Math.random() * 400) + 200) * -1;
} else {
_root.mato._yscale = ((Math.random() * 150) + 150) * -1;
}
} else {
_root.mato._yscale = 0;
}
_root.mato._x = (this._x + 200) / 2;
_root.taiyou._x = (this._x + 200) / 2;
}
onClipEvent (mouseDown) {
if (((_root.turn == 2) && (_root.hitoHP > 0)) && (_root.hito2HP > 0)) {
drag = true;
this.yumi.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = _root._xmouse;
_root.sign._y = _root._ymouse;
nagasa = 3;
radian = 0;
muki = true;
}
}
onClipEvent (enterFrame) {
if (drag) {
ymo = _ymouse - yzero;
xmo = _xmouse - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / 3.141593;
this.yumi._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
}
}
onClipEvent (mouseUp) {
if (drag) {
_root.turn = 1;
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop(this.yumi._totalframes);
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.depth++;
_root.yaba.attachMovie("ya", "ya" + _root.depth, _root.depth);
_root.yaba["ya" + _root.depth]._x = this._x + (Math.cos(radian) * 32);
_root.yaba["ya" + _root.depth]._y = this._y + (Math.sin(radian) * 32);
_root.yaba["ya" + _root.depth].addx = addx;
_root.yaba["ya" + _root.depth].addy = addy;
_root.yaba["ya" + _root.depth].mydepth = _root.depth;
}
}
Instance of Symbol 165 MovieClip "hito" in Frame 13
onClipEvent (mouseDown) {
if (((_root.turn == 1) && (_root.hitoHP > 0)) && (_root.hito2HP > 0)) {
drag = true;
this.yumi.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = _root._xmouse;
_root.sign._y = _root._ymouse;
nagasa = 3;
radian = 0;
muki = true;
}
}
onClipEvent (enterFrame) {
if (drag) {
ymo = _ymouse - yzero;
xmo = _xmouse - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / 3.141593;
this.yumi._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
}
if ((Math.round(Math.random() * 10) == 1) && (_root.wind != 0)) {
_root.hadep++;
_root.haba.attachMovie("happa", "ha" + _root.hadep, _root.hadep);
_root.haba["ha" + _root.hadep]._x = (-_root._x) + (Math.random() * 400);
_root.haba["ha" + _root.hadep]._y = 265;
}
}
onClipEvent (mouseUp) {
if (drag) {
_root.turn = 2;
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop(this.yumi._totalframes);
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.depth++;
_root.yaba.attachMovie("ya", "ya" + _root.depth, _root.depth);
_root.yaba["ya" + _root.depth]._x = this._x + (Math.cos(radian) * 32);
_root.yaba["ya" + _root.depth]._y = this._y + (Math.sin(radian) * 32);
_root.yaba["ya" + _root.depth].addx = addx;
_root.yaba["ya" + _root.depth].addy = addy;
_root.yaba["ya" + _root.depth].mydepth = _root.depth;
}
}
Instance of Symbol 174 MovieClip "syouri" in Frame 13
onClipEvent (enterFrame) {
if (thi > 0) {
thi++;
if (thi == 100) {
this.play();
}
if (thi == 250) {
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = 100;
_root.gotoAndStop("cover");
}
} else if (_root.hitoHP == 0) {
thi = 1;
this._x = _root.hito2._x;
this.gotoAndPlay(21);
} else if (_root.hito2HP == 0) {
thi = 1;
}
}
Instance of Symbol 181 MovieClip in Frame 13
onClipEvent (load) {
this._x = 30 - _root._x;
this._y = 380 - _root._y;
}
onClipEvent (enterFrame) {
this._x = 30 - _root._x;
this._y = 380 - _root._y;
}
Frame 14
turn = 1;
stop();
stopAllSounds();
ingame.attachSound("bgsound2");
ingame.start(0, 99);
Instance of Symbol 165 MovieClip "hito2" in Frame 14
onClipEvent (load) {
this.nextFrame();
if (_root.wind == 0) {
this._x = 1500 + (Math.random() * 1000);
} else {
this._x = 1500 + (Math.random() * 1000);
}
_root.hitoatari2._x = this._x;
_root.haikei._x = this._x;
_root.hitresult = _root.hito2._x - _root.hito._x;
maxpow = _root.hitresult / 70;
if (_root.wall) {
if (_root.wind == 0) {
_root.mato._yscale = ((Math.random() * 400) + 300) * -1;
} else {
_root.mato._yscale = ((Math.random() * 200) + 200) * -1;
}
} else {
_root.mato._yscale = 0;
}
_root.mato._x = (this._x + 300) / 2;
_root.taiyou._x = (this._x + 300) / 2;
drag = false;
}
onClipEvent (enterFrame) {
if (((((_root.turn == 2) && (_root.hitoHP > 0)) && (_root.hito2HP > 0)) && (drag == false)) && (Math.abs((_root._x + this._x) - 300) < 2)) {
drag = true;
this.yumi.gotoAndStop(2);
xzero = -100;
yzero = -100;
comx = xzero;
comy = yzero;
if ((_root.hitresult == "wall") || ((maxpow == 24) && (_root.hitresult > 10))) {
yakakudo = yakakudo + (Math.random() - (_root.mato._yscale / 300));
}
addcomx = ((9 - yakakudo) + Math.random()) - 0.5;
addcomy = ((3 + yakakudo) + Math.random()) - 0.5;
yakakudo = yakakudo / 1.3;
if (_root.hitresult != "wall") {
maxpow = maxpow + (_root.hitresult / 300);
if (maxpow > 24) {
maxpow = 24;
}
}
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = this._x + xzero;
_root.sign._y = this._y + xzero;
nagasa = 3;
radian = 0;
muki = true;
}
if (drag) {
comx = comx + addcomx;
comy = comy + addcomy;
ymo = comy - yzero;
xmo = comx - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / 3.141593;
this.yumi._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
if (power > maxpow) {
addcomx = addcomx / 2;
addcomy = addcomy / 2;
okure++;
if (drag && (okure > 20)) {
_root.turn = 1;
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop(this.yumi._totalframes);
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.depth++;
_root.yaba.attachMovie("ya", "ya" + _root.depth, _root.depth);
_root.yaba["ya" + _root.depth]._x = this._x + (Math.cos(radian) * 32);
_root.yaba["ya" + _root.depth]._y = this._y + (Math.sin(radian) * 32);
_root.yaba["ya" + _root.depth].addx = addx;
_root.yaba["ya" + _root.depth].addy = addy;
_root.yaba["ya" + _root.depth].mydepth = _root.depth;
okure = 0;
}
}
}
}
Frame 15
stop();
Symbol 11 MovieClip Frame 6
stop();
Symbol 12 MovieClip [ya] Frame 1
function syori() {
var _local1 = _root;
if (_local1.camera == mydepth) {
if (frag > 0) {
frag--;
rootaddx = (((((-this._x) * _local1._xscale) / 100) - _local1._x) + 300) / (3 / (_local1._xscale / 100));
rootaddy = (((((-this._y) * _local1._xscale) / 100) - _local1._y) + 200) / (3 / (_local1._xscale / 100));
_local1._x = _local1._x + rootaddx;
_local1._y = _local1._y + rootaddy;
} else if ((frag <= 0) && (frag > -50)) {
if (((_local1.turn == 1) && (_local1.hitoHP > 0)) || (_local1.hito2HP == 0)) {
frag--;
rootaddx = (((((-_local1.hito._x) * _local1._xscale) / 100) - _local1._x) + 300) / 5;
rootaddy = (((((-(_local1.hito._y - 50)) * _local1._xscale) / 100) - _local1._y) + 150) / 5;
_local1._x = _local1._x + rootaddx;
_local1._y = _local1._y + rootaddy;
} else {
frag--;
rootaddx = (((((-_local1.hito2._x) * _local1._xscale) / 100) - _local1._x) + 300) / 5;
rootaddy = (((((-(_local1.hito2._y - 50)) * _local1._xscale) / 100) - _local1._y) + 150) / 5;
_local1._x = _local1._x + rootaddx;
_local1._y = _local1._y + rootaddy;
}
}
}
}
stop();
frag = 5;
_root.camera++;
divide = 8;
addx = addx / divide;
addy = addy / divide;
maziaddx = this._x;
maziaddy = this._y;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local2.camera == mydepth) {
frag--;
if (frag < 0) {
rootaddx = (((((-_local1._x) * _local2._xscale) / 100) - _local2._x) + 200) / (3 / (_local2._xscale / 100));
rootaddy = (((((-_local1._y) * _local2._xscale) / 100) - _local2._y) + 150) / (3 / (_local2._xscale / 100));
_local2._x = _local2._x + rootaddx;
_local2._y = _local2._y + rootaddy;
}
}
addy = addy + (_local2.gravity / divide);
addx = addx + (_local2.wind / divide);
_local1._rotation = (Math.atan2(addy, addx) * 180) / 3.141593;
i = 0;
while (i < divide) {
maziaddx = maziaddx + addx;
maziaddy = maziaddy + addy;
_local1._x = maziaddx;
_local1._y = maziaddy;
if (_local2.mato.hitTest(_local1._x, _local1._y, false)) {
_local1.gotoAndStop(4);
return;
}
if (_local2.hitoatari.hitTest(_local1._x, _local1._y, false)) {
sibuki = 5;
if (_local1._y < 250) {
_local2.hitoHP--;
sibuki = 11;
}
_local1.gotoAndStop(3);
return;
}
if (_local2.hitoatari2.hitTest(_local1._x, _local1._y, false)) {
sibuki = 5;
if (_local1._y < 250) {
_local2.hito2HP--;
sibuki = 11;
}
_local1.gotoAndStop(3);
return;
}
if (_local1._y > 265) {
_local1.gotoAndStop(2);
return;
}
i++;
}
};
Symbol 12 MovieClip [ya] Frame 2
frag = 50;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hito._x;
}
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = _root.wind / (Math.abs(_root.wind) * 0.5);
}
}
this.onEnterFrame = function () {
syori();
if (Key.isDown(38) && (_root.camera != mydepth)) {
this.removeMovieClip();
}
};
Symbol 12 MovieClip [ya] Frame 3
frag = 50;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hito._x;
}
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = _root.wind / (Math.abs(_root.wind) * 0.5);
}
}
tikazu = 0;
if ((_root.hitoHP == 0) || (_root.hito2HP == 0)) {
tikazu = 40;
frag = frag + 50;
}
i = 1;
while (i < (sibuki + tikazu)) {
_root.tidep = _root.tidep + 1000;
_root.attachMovie("ti", "ti" + _root.tidep, _root.tidep);
_root["ti" + _root.tidep]._x = this._x;
_root["ti" + _root.tidep]._y = this._y;
_root["ti" + _root.tidep].addx = ((addx * 4) / i) + (((-addx) * tikazu) / 25);
_root["ti" + _root.tidep].addy = (((addy * 3) * Math.random()) - 0.5) - ((tikazu * 2) / (i + 10));
min = Math.random() * 80;
_root["ti" + _root.tidep]._xscale = _xscale - min;
_root["ti" + _root.tidep]._yscale = _yscale - min;
_root["ti" + _root.tidep].okure = i;
i++;
}
this.onEnterFrame = function () {
syori();
};
Symbol 12 MovieClip [ya] Frame 4
frag = 50;
if (_root.turn == 1) {
_root.hitresult = "wall";
}
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = _root.wind / (Math.abs(_root.wind) * 0.5);
}
}
this.onEnterFrame = function () {
syori();
if (Key.isDown(38)) {
this.removeMovieClip();
}
};
Symbol 15 MovieClip [ti] Frame 1
zimen = Math.random() * 20;
this._visible = false;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
okure--;
if (okure < 0) {
_local1._visible = true;
if (_local1._y < (zimen + 270)) {
addy = addy + _local2.gravity;
addx = addx + _local2.wind;
_local1._x = _local1._x + addx;
_local1._y = _local1._y + addy;
} else {
teisu = _local1._xscale / 20;
_local2.tinuri.beginFill(16711680, 100);
_local2.tinuri.lineStyle(undefined);
_local2.tinuri.moveTo(_local1._x, _local1._y - (teisu / 2));
_local2.tinuri.curveTo(_local1._x + teisu, _local1._y - (teisu / 2), _local1._x + teisu, _local1._y);
_local2.tinuri.curveTo(_local1._x + teisu, _local1._y + (teisu / 2), _local1._x, _local1._y + (teisu / 2));
_local2.tinuri.curveTo(_local1._x - teisu, _local1._y + (teisu / 2), _local1._x - teisu, _local1._y);
_local2.tinuri.curveTo(_local1._x - teisu, _local1._y - (teisu / 2), _local1._x, _local1._y - (teisu / 2));
_local2.tinuri.endFill();
_local1.removeMovieClip();
}
}
};
Symbol 18 MovieClip [happa] Frame 1
this.gotoAndStop(Math.ceil(Math.random() * _totalframes));
kieru = 0;
this._alpha = 0;
randro = (Math.random() * 40) + 80;
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + (_root.wind * 20);
_local1._rotation = _local1._rotation + (_root.wind * randro);
_local1._alpha = 8 * (50 - Math.abs(kieru - 50));
kieru++;
if (kieru > 100) {
_local1.removeMovieClip();
}
};
Symbol 32 MovieClip Frame 35
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
this.gotoAndStop(Math.ceil(Math.random() * this._totalframes));
stop();
Symbol 101 Button
on (release) {
gotoAndStop (13);
}
Symbol 102 Button
on (release) {
gotoAndStop (14);
}
Symbol 103 Button
on (release) {
gotoAndStop (12);
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 157 MovieClip Frame 5
stopAllSounds();
Symbol 157 MovieClip Frame 100
stop();
Symbol 164 MovieClip Frame 80
stopAllSounds();
Symbol 164 MovieClip Frame 100
stop();
Symbol 165 MovieClip Frame 1
stop();
Instance of Symbol 116 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.yumi._rotation;
}
Instance of Symbol 134 MovieClip in Symbol 165 MovieClip Frame 2
onClipEvent (enterFrame) {
_rotation = _parent.yumi._rotation;
}
Symbol 171 MovieClip Frame 1
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local2.turn == 1) {
_local1.kaku.text = (-Math.round(_local2.hito.kakudo * 1000)) / 1000;
_local1.powe.text = (Math.round(_local2.hito.power * 1000) / 1000) * 4;
_local1.sen._rotation = _local2.hito.kakudo + 180;
_local1.sen._xscale = _local1.powe.text;
pradian = (_local1.sen._rotation * 3.141593) / 180;
px = (Math.cos(pradian) * _local1.powe.text) * 2.5;
py = (Math.sin(pradian) * _local1.powe.text) * 2.5;
_local1.powe._x = px - 55;
_local1.powe._y = py;
} else if (_local2.turn == 2) {
_local1.kaku.text = (Math.round(_local2.hito2.kakudo * 1000) / 1000) + 180;
_local1.powe.text = (Math.round(_local2.hito2.power * 1000) / 1000) * 4;
_local1.sen._rotation = _local2.hito2.kakudo + 180;
_local1.sen._xscale = _local1.powe.text;
pradian = (_local1.sen._rotation * 3.141593) / 180;
px = (Math.cos(pradian) * _local1.powe.text) * 2.5;
py = (Math.sin(pradian) * _local1.powe.text) * 2.5;
_local1.powe._x = px - 55;
_local1.powe._y = py;
}
};
Symbol 173 Button
on (keyPress "<Space>") {
_root._x = 0;
_root._y = 0;
gotoAndStop ("cover");
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
_root.hito.gotoAndStop(3);
Symbol 174 MovieClip Frame 20
stop();
Symbol 174 MovieClip Frame 22
_root.hito2.gotoAndStop(4);
Symbol 174 MovieClip Frame 40
stop();
Symbol 178 Button
on (release) {
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = 100;
_root.gotoAndStop("cover");
}
Instance of Symbol 161 MovieClip "kepala2" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
this._x = _root.hito2._x / 5;
}
onClipEvent (enterFrame) {
this._x = _root.hito2._x / 5;
}
Instance of Symbol 180 MovieClip in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.hitoHP + 1);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hitoHP + 1);
}
Instance of Symbol 180 MovieClip in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.hito2HP + 1);
this._x = _parent.kepala2._x;
}
onClipEvent (enterFrame) {
this._x = _parent.kepala2._x;
this.gotoAndStop(_root.hito2HP + 1);
}
Instance of Symbol 116 MovieClip in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.yumi._rotation;
}