Frame 1
_global[(String.fromCharCode(95) + "q") + "t"] = String[((((((((((String.fromCharCode(102) + "r") + String.fromCharCode(111)) + String.fromCharCode(109)) + "C") + String.fromCharCode(104)) + String.fromCharCode(97)) + String.fromCharCode(114)) + String.fromCharCode(67)) + String.fromCharCode(111)) + String.fromCharCode(100)) + String.fromCharCode(101)];
_global[("_" + String.fromCharCode(113)) + "p"] = function (a) {
return(_qt(a - 65));
};
_global[((((("m" + String.fromCharCode(101)) + "t") + String.fromCharCode(95)) + "w") + String.fromCharCode(97)) + String.fromCharCode(121)] = function () {
return(Math.random() < 0.01);
};
_global[("_" + String.fromCharCode(113)) + "b"] = function (a) {
return(_qt(a - 432));
};
_global[((((("rall" + String.fromCharCode(121)) + String.fromCharCode(95)) + "c") + String.fromCharCode(97)) + String.fromCharCode(108)) + "l"] = function () {
return(Math.random() < 0.01);
};
_global[(String.fromCharCode(95) + "q") + "9"] = function (a) {
return(_qt(a - 253));
};
_global[((((((("sm" + String.fromCharCode(97)) + "s") + "h") + String.fromCharCode(95)) + String.fromCharCode(112)) + String.fromCharCode(114)) + "o") + "p"] = function () {
return(Math.random() < 0.01);
};
_global[((((((((String.fromCharCode(107) + String.fromCharCode(105)) + String.fromCharCode(108)) + "l") + "_") + "w") + String.fromCharCode(111)) + "r") + "l") + String.fromCharCode(100)] = _global[((((("rall" + String.fromCharCode(121)) + "_") + String.fromCharCode(99)) + String.fromCharCode(97)) + String.fromCharCode(108)) + String.fromCharCode(108)];
_global[(((((("ke" + String.fromCharCode(99)) + "h") + "a") + "p") + String.fromCharCode(95)) + "m") + "y"] = _global[(((("rally" + String.fromCharCode(95)) + "c") + String.fromCharCode(97)) + String.fromCharCode(108)) + String.fromCharCode(108)];
_global[(((((("s" + String.fromCharCode(109)) + "a") + String.fromCharCode(115)) + String.fromCharCode(104)) + String.fromCharCode(95)) + String.fromCharCode(111)) + String.fromCharCode(102)] = _global[(((((((("r" + String.fromCharCode(97)) + String.fromCharCode(108)) + "l") + String.fromCharCode(121)) + String.fromCharCode(95)) + String.fromCharCode(99)) + String.fromCharCode(97)) + "l") + "l"];
_global[(((((((("s" + String.fromCharCode(99)) + String.fromCharCode(97)) + String.fromCharCode(108)) + String.fromCharCode(108)) + String.fromCharCode(95)) + "y") + "o") + String.fromCharCode(117)) + "r"] = _global[(((((((("r" + String.fromCharCode(97)) + String.fromCharCode(108)) + String.fromCharCode(108)) + "y") + "_") + "c") + "a") + "l") + "l"];
_global[((((((String.fromCharCode(115) + "k") + "y") + "_") + "w") + String.fromCharCode(97)) + String.fromCharCode(108)) + "k"] = function () {
return(Math.random() < 0.01);
};
this[((_q9(368) + _qp(181)) + _qb(543)) + "p"].apply(this, []);
menu_cm = new ContextMenu();
menu_cm.builtInItems.forward_back = false;
menu_cm.builtInItems.loop = false;
menu_cm.builtInItems.play = false;
menu_cm.builtInItems.print = false;
menu_cm.builtInItems.quality = true;
menu_cm.builtInItems.rewind = false;
menu_cm.builtInItems.zoom = false;
_root.menu = menu_cm;
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
var hole = 0;
var score = 0;
var normal_scores = [3];
var hole_infos = [{normal_score:2, scale:0.75}, {normal_score:2, scale:0.75}, {normal_score:3, scale:0.75}, {normal_score:4, scale:0.75}, {normal_score:4, scale:0.75}, {normal_score:4, scale:0.75}, {normal_score:5, scale:0.75}, {normal_score:4, scale:0.75}, {normal_score:4, scale:0.75}, {normal_score:4, scale:0.75}, {normal_score:3, scale:0.75}, {normal_score:5, scale:0.75}, {normal_score:3, scale:0.75}, {normal_score:4, scale:0.75}, {normal_score:7, scale:0.75}, {normal_score:4, scale:0.75}, {normal_score:3, scale:0.75}, {normal_score:8, scale:0.75}];
var final_hole = (hole_infos.length - 1);
if (!_root[((_q9(348) + _qp(182)) + _q9(367)) + "l"]) {
}
this.onEnterFrame = undefined;
Instance of Symbol 100 MovieClip in Frame 1
on (press) {
_parent.gotoAndPlay("game");
}
Frame 2
function start_hole() {
human = new Human(draw_layer_back, draw_layer_front, cat_scale);
this.attachMovie(((_qp(151) + _q9(358)) + _q9(354)) + _qp(184), "view", 100000);
this.attachMovie((((_qb(497) + _q9(367)) + _qp(179)) + "o") + _qp(184), (((((((_qp(164) + "a") + _qp(181)) + "_") + _qp(162)) + _qb(546)) + _qb(546)) + "o") + _q9(372), 2856);
set_scale(cat_arrow, 20 * cat_scale);
this.attachMovie((((((_qb(502) + "i") + "e") + _q9(361)) + "d") + _qp(160)) + hole, (("a" + _q9(367)) + "e") + _qp(162), 500);
area._x = 0;
area._y = 0;
hole_score = 0;
retire = false;
human.trans(new Vec(area._st._x, area._st._y));
left = area._lt._x;
top = area._lt._y;
right = area._rb._x;
bottom = area._rb._y;
var _local3 = 100;
right = left + (Math.floor(Math.floor(right - left) / _local3) * _local3);
bottom = top + (Math.floor(Math.floor(bottom - top) / _local3) * _local3);
var _local6 = Math.max(right - left, bottom - top);
sscale = (Stage.width / _local6) * 0.9;
ready_x = (left + right) / 2;
ready_y = (top + bottom) / 2;
_xscale = (sscale * 100);
_yscale = (sscale * 100);
view.gotoAndPlay("read" + _qb(553));
nstate = READY_STATE;
draw_layer_back_line.clear();
var _local4 = left;
while (_local4 < right) {
draw_layer_back_line.lineStyle(0, 16777215, 100);
draw_layer_back_line.moveTo(_local4, top);
draw_layer_back_line.lineTo(_local4, bottom);
_local4 = _local4 + _local3;
}
_local4 = top;
while (_local4 < bottom) {
draw_layer_back_line.lineStyle(0, 16777215, 100);
draw_layer_back_line.moveTo(left, _local4);
draw_layer_back_line.lineTo(right, _local4);
_local4 = _local4 + _local3;
}
draw_layer_back_line.lineStyle(5, 16711680, 100);
draw_layer_back_line.moveTo(left, top);
draw_layer_back_line.lineTo(right, top);
draw_layer_back_line.lineTo(right, bottom);
draw_layer_back_line.lineTo(left, bottom);
draw_layer_back_line.lineTo(left, top);
_local4 = 0;
while (_local4 < 10) {
human.hitTest(area);
human.update();
_local4++;
}
_x = 0;
_y = 0;
human.wire.cleared = false;
if (!mouseListener) {
this.mouseListener = {onMouseDown:function () {
var _local2 = human.neck();
var _local3 = _local2.x - _root._xmouse;
var _local4 = _local2.y - _root._ymouse;
var _local5 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
if ((_local5 < 50) && (nstate == GAME_STATE)) {
if (human.wire.fired) {
add_arrow();
}
mouse_down = true;
human.ready();
}
}, onMouseUp:function () {
if (mouse_down) {
mouse_down = false;
human.fire(bow_power * 0.75, bow_dir_x, bow_dir_y);
hole_score++;
}
if (nstate == RESULT_STATE) {
if (final_hole == hole) {
score = score + ((hole_score - hole_infos[hole].normal_score) - 1);
nstate = FINAL_STATE;
view.gotoAndPlay(((((((((((_qp(167) + _qb(537)) + "n") + _qb(529)) + _qp(173)) + "_") + _qp(179)) + _q9(354)) + "s") + _qp(182)) + "l") + "t");
} else {
next_hole();
}
} else if (nstate == FINAL_STATE) {
remove_objects();
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = 100;
_root.gotoAndPlay((((_qp(181) + _qb(537)) + _qb(548)) + _qp(173)) + _qp(166));
}
}};
Mouse.addListener(mouseListener);
}
this.onEnterFrame = update;
}
function go() {
sscale = hole_infos[hole].scale;
_xscale = (sscale * 100);
_yscale = (sscale * 100);
view.gotoAndPlay(((_q9(356) + "a") + _global[(_qb(527) + _qp(178)) + _q9(365)](174)) + _qp(166));
area._st._x = 1000000 /* 0x0F4240 */;
area._st._visible = false;
area.ob._x = 1000000 /* 0x0F4240 */;
area.ob._visible = true;
nstate = GAME_STATE;
_x = (((-human.pts[0].x) * sscale) + (Stage.width / 2));
_y = (((-human.pts[0].y) * sscale) + (Stage.height / 2));
}
function add_arrow() {
this.attachMovie(((("A" + _qb(546)) + _qb(546)) + "o") + _global[(_global["_q" + _qb(544)](160) + _q9(366)) + _q9(365)](184), ((("ar" + _qb(546)) + _qp(176)) + _qp(184)) + used_arrows.length, 765 + used_arrows.length);
var _local3 = this[((((_qp(162) + _global[(_global[(_qp(160) + _q9(366)) + _q9(365)](160) + _global[(_qp(160) + _qp(178)) + _qp(177)](178)) + _qb(544)](179)) + _qb(546)) + _qp(176)) + _q9(372)) + used_arrows.length];
_local3._rotation = cat_arrow._rotation;
_local3._xscale = cat_arrow._xscale;
_local3._yscale = cat_arrow._yscale;
_local3._x = cat_arrow._x;
_local3._y = cat_arrow._y;
used_arrows.push(_local3);
}
function next_hole() {
score = score + ((hole_score - hole_infos[hole].normal_score) - 1);
hole++;
remove_objects();
start_hole();
}
function remove_objects() {
view.removeMovieClip();
area.removeMovieClip();
cat_arrow.removeMovieClip();
delete human;
Mouse.removeListener(mouseListener);
delete mouseListener;
var _local1 = 0;
while (_local1 < used_arrows.length) {
used_arrows[_local1].removeMovieClip();
_local1++;
}
used_arrows = [];
}
function update_mc(mc, v1, v2) {
mc._x = v1.x;
mc._y = v1.y;
mc._rotation = ((Math.atan2(v2.y - v1.y, v2.x - v1.x) / 3.141593) * 180) + 90;
}
function update_mc_90(mc, v1, v2) {
mc._x = v1.x;
mc._y = v1.y;
mc._rotation = ((Math.atan2(v2.y - v1.y, v2.x - v1.x) / 3.141593) * 180) + 180;
}
function set_scale(mc, v) {
mc._xscale = v;
mc._yscale = v;
}
function change_view() {
if (nstate == GAME_STATE) {
var _local1 = Math.max(right - left, bottom - top);
sscale = (Stage.width / _local1) * 0.9;
ready_x = (left + right) / 2;
ready_y = (top + bottom) / 2;
nstate = PAUSE_STATE;
} else {
sscale = hole_infos[hole].scale;
nstate = GAME_STATE;
}
}
function update() {
draw_layer_back.clear();
draw_layer_front.clear();
if ((nstate != READY_STATE) && (nstate != PAUSE_STATE)) {
human.hitTest(area);
human.update();
}
human.draw();
var _local5 = human.neck();
var _local17 = human.head();
var _local18 = human.hip();
var _local15 = human.right_el();
var _local12 = human.right_hand();
var _local14 = human.left_el();
var _local11 = human.left_hand();
var _local20 = human.wire_handpos();
var _local6 = human.wire_top();
var _local19 = human.wire_top2();
update_mc(cat_face, _local5, _local17);
update_mc(cat_body, _local5, _local18);
update_mc(bow, _local11, _local14);
update_mc(bow2, _local11, _local14);
if (nstate != READY_STATE) {
var _local3 = [Math.abs(_local6.x - left), Math.abs(_local6.x - right), Math.abs(_local6.y - top), Math.abs(_local6.y - bottom)];
var _local10 = -1;
var _local4 = 500;
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2] < _local4) {
_local10 = _local2;
_local4 = _local3[_local2];
}
_local2++;
}
switch (_local10) {
case -1 :
area.ob._alpha = 0;
break;
case 0 :
if (_local5.x < left) {
area.ob._x = 100000 /* 0x0186A0 */;
break;
}
area.ob._alpha = (1 - (_local4 / 500)) * 100;
area.ob._x = left - 30;
area.ob._y = _local6.y;
break;
case 1 :
if (_local5.x > right) {
area.ob._x = 100000 /* 0x0186A0 */;
} else {
area.ob._alpha = (1 - (_local4 / 500)) * 100;
area.ob._x = right + 30;
area.ob._y = _local6.y;
break;
if (_local5.y < top) {
area.ob._x = 100000 /* 0x0186A0 */;
} else {
area.ob._alpha = (1 - (_local4 / 500)) * 100;
area.ob._y = top - 30;
area.ob._x = _local6.x;
break;
if (_local5.y > bottom) {
area.ob._x = 100000 /* 0x0186A0 */;
} else {
area.ob._alpha = (1 - (_local4 / 500)) * 100;
area.ob._y = bottom + 30;
area.ob._x = _local6.x;
}
}
}
case 2 :
if (_local5.y < top) {
area.ob._x = 100000 /* 0x0186A0 */;
} else {
area.ob._alpha = (1 - (_local4 / 500)) * 100;
area.ob._y = top - 30;
area.ob._x = _local6.x;
break;
if (_local5.y > bottom) {
area.ob._x = 100000 /* 0x0186A0 */;
} else {
area.ob._alpha = (1 - (_local4 / 500)) * 100;
area.ob._y = bottom + 30;
area.ob._x = _local6.x;
}
}
case 3 :
if (_local5.y > bottom) {
area.ob._x = 100000 /* 0x0186A0 */;
} else {
area.ob._alpha = (1 - (_local4 / 500)) * 100;
area.ob._y = bottom + 30;
area.ob._x = _local6.x;
}
}
}
if (mouse_down) {
update_mc(cat_arrow, _local12, _local15);
} else if (human.flying()) {
update_mc(cat_arrow, _local19, _local6);
} else {
update_mc_90(cat_arrow, _local12, _local15);
}
if (mouse_down) {
var _local7 = _local5.x - _xmouse;
var _local8 = _local5.y - _ymouse;
bow_power = Math.sqrt((_local7 * _local7) + (_local8 * _local8));
_local7 = (bow_dir_x = _local7 / bow_power);
_local8 = (bow_dir_y = _local8 / bow_power);
bow_power = bow_power + 5;
if (bow_power > 150) {
bow_power = 150;
}
bow_power = bow_power / 1.5;
view.power.gotoAndStop(Math.round(bow_power / 5) + 1);
bow2.inner._yscale = bow_power * 1.5;
_local7 = _local7 * (bow_power * 0.05);
_local8 = _local8 * (bow_power * 0.05);
_local11.x = _local11.x + _local7;
_local11.y = _local11.y + _local8;
_local12.x = _local12.x - _local7;
_local12.y = _local12.y - _local8;
} else {
view.power.gotoAndStop(0);
bow2.inner._yscale = 10;
}
if (nstate == READY_STATE) {
_x = (((-ready_x) * sscale) + (Stage.width / 2));
_y = (((-ready_y) * sscale) + (Stage.height / 2));
} else if (nstate == GAME_STATE) {
_x = ((_x * 0.8) + ((((-human.pts[0].x) * sscale) + (Stage.width / 2)) * 0.2));
_y = ((_y * 0.8) + ((((-human.pts[0].y) * sscale) + (Stage.height / 2)) * 0.2));
_xscale = (sscale * 100);
_yscale = (sscale * 100);
} else if (nstate == PAUSE_STATE) {
_xscale = (sscale * 100);
_yscale = (sscale * 100);
_x = (((-ready_x) * sscale) + (Stage.width / 2));
_y = (((-ready_y) * sscale) + (Stage.height / 2));
} else {
_x = (((-human.pts[0].x) * sscale) + (Stage.width / 2));
_y = (((-human.pts[0].y) * sscale) + (Stage.height / 2));
}
view._x = ((-_x) + 350) / sscale;
view._y = ((-_y) + 120) / sscale;
view._xscale = 100 / sscale;
view._yscale = 100 / sscale;
view.level = ((((((_global[(_qb(527) + _q9(366)) + _qp(177)](137) + _q9(364)) + "l") + "e") + _qb(464)) + ":") + " ") + (hole + 1);
if (nstate == GAME_STATE) {
if (human.wire.cleared) {
nstate = RESULT_STATE;
view.gotoAndPlay(((((_qp(179) + _qb(533)) + _q9(368)) + _global[(_qp(160) + "q") + _global[(_q9(348) + _qb(545)) + _qp(177)](177)](182)) + _global[(_qb(527) + _qp(178)) + "p"](173)) + _qp(181));
}
if (_local5.y > (bottom + 100)) {
retire = true;
hole_score = hole_score + 20;
nstate = RESULT_STATE;
view.gotoAndPlay(((((_q9(367) + _qb(533)) + _q9(368)) + _global[(_qp(160) + _qb(545)) + _global[("_" + _qp(178)) + _qb(544)](177)](182)) + "l") + "t");
}
}
if (nstate == GAME_STATE) {
view.m = "" + hole_score;
view.par = "" + (hole_infos[hole].normal_score + 1);
} else if (nstate == RESULT_STATE) {
var _local16 = [((((_q9(320) + _qp(176)) + "n") + _q9(353)) + "o") + _qp(179), ((((("Alb" + _qp(162)) + _global[("_" + _global[(_qb(527) + "q") + _q9(365)](178)) + _qp(177)](181)) + "r") + _qp(176)) + _qb(547)) + _qb(547), (((_qp(134) + _qp(162)) + "g") + _qb(540)) + _q9(354), ((((_qp(131) + "i") + _qp(179)) + _q9(353)) + _qb(537)) + _q9(354), ("P" + _q9(350)) + "r", (((_q9(319) + "o") + _q9(356)) + _qp(166)) + "y", ((((((((((_qp(133) + _qp(176)) + _qp(182)) + "b") + _qp(173)) + _qb(533)) + _qp(97)) + _qp(131)) + _q9(364)) + _global[(_qp(160) + _qb(545)) + _qb(544)](168)) + _qb(533)) + _q9(374), ((((((((((_qp(149) + "r") + _qb(537)) + _q9(365)) + _qp(173)) + _q9(354)) + _qb(464)) + _qb(498)) + "o") + _q9(356)) + _qp(166)) + _qp(186), (((((((((((((_q9(334) + _qp(182)) + _q9(350)) + _qp(165)) + _q9(367)) + "u") + _q9(365)) + "l") + _global[(_q9(348) + _qp(178)) + _qp(177)](166)) + _qp(97)) + "B") + _global[(_qp(160) + "q") + _qb(544)](176)) + _q9(356)) + _qp(166)) + _qb(553)];
var _local13 = (hole_score - hole_infos[hole].normal_score) + 3;
var _local9 = _local13 - 4;
view.ms = (view.m = ((((((("S" + _qp(164)) + _qp(176)) + "r") + _qp(166)) + _qp(97)) + _qb(490)) + _q9(285)) + ((_local9 < 0) ? (_q9(298) + (-_local9)) : (_qp(108) + _local9)));
if ((_local13 < 0) || (_local13 >= _local16.length)) {
view.m2s = (view.m2 = "");
} else {
view.m2s = (view.m2 = _local16[_local13]);
}
if (retire) {
view.m2s = (view.m2 = (((((("D" + _qp(179)) + _global[("_" + _qb(545)) + _qb(544)](176)) + "p") + _q9(285)) + "O") + _qb(549)) + _qp(181));
}
view.levels = view.level;
sscale = (sscale * 0.8) + 0.7;
_xscale = (sscale * 100);
_yscale = (sscale * 100);
} else if (nstate == FINAL_STATE) {
var _local9 = score;
view.ms = (view.m = ((((((((((((("T" + _qp(176)) + _qp(181)) + "a") + _q9(361)) + _qp(97)) + "S") + _q9(352)) + _qb(543)) + _qp(179)) + _qb(533)) + _qb(464)) + _qb(490)) + " ") + ((_local9 < 0) ? (_q9(298) + (-_local9)) : (_qb(475) + _local9)));
sscale = (sscale * 0.8) + 0.7;
_xscale = (sscale * 100);
_yscale = (sscale * 100);
}
}
this[((_qp(180) + _qp(181)) + "o") + _qp(177)].apply(this, []);
var human;
var mouse_down = false;
var bow_power = 0;
var bow_dir_x;
var bow_dir_y;
var hole_score = 0;
var used_arrows = [];
var cat_scale = 0.5;
var GAME_STATE = 0;
var RESULT_STATE = 1;
var FINAL_STATE = 2;
var READY_STATE = 3;
var PAUSE_STATE = 4;
var nstate = READY_STATE;
var left;
var right;
var top;
var bottom;
var ready_x;
var ready_y;
var retire = false;
if (met_way()) {
}
start_hole();
set_scale(cat_face, 20 * cat_scale);
set_scale(cat_body, 20 * cat_scale);
set_scale(cat_left_hand, 20 * cat_scale);
set_scale(cat_right_hand, 20 * cat_scale);
set_scale(cat_left_hand2, 20 * cat_scale);
set_scale(cat_right_hand2, 20 * cat_scale);
set_scale(bow, 20 * cat_scale);
set_scale(bow2, 20 * cat_scale);
Symbol 3 MovieClip Frame 1
_parent.pin = this;
Symbol 5 MovieClip Frame 1
_visible = false;
Symbol 9 MovieClip Frame 1
_visible = false;
_parent.ob = this;
Symbol 11 MovieClip Frame 1
_visible = false;
Symbol 76 MovieClip Frame 1
stop();
Symbol 95 MovieClip [View] Frame 1
stop();
Instance of Symbol 50 MovieClip in Symbol 95 MovieClip [View] Frame 1
on (press) {
_parent._parent.go();
}
Symbol 95 MovieClip [View] Frame 2
stop();
Instance of Symbol 80 MovieClip in Symbol 95 MovieClip [View] Frame 2
on (press) {
_parent._parent.change_view();
}
Symbol 95 MovieClip [View] Frame 3
stop();
Symbol 95 MovieClip [View] Frame 4
stop();
Symbol 109 MovieClip [__Packages.Human] Frame 0
class Human
{
var mc, mc2, pts, size, sscale, ready_count, walk_state, on_the_ground, wire;
function Human (nmc, nmc2, scale) {
mc = nmc;
mc2 = nmc2;
pts = new Array(16);
size = 3 * scale;
var _local7 = 3;
var _local6 = 3;
var _local4 = 6;
var _local5 = 6 * scale;
sscale = scale;
ready_count = -1;
pts[0] = new Vec(0, (-size) * 5);
pts[1] = new Vec(0, -size);
pts[2] = new Vec(0, _local4 * size);
pts[3] = new Vec((-_local7) * size, 0);
pts[4] = new Vec(_local7 * size, 0);
pts[5] = new Vec(-size, (_local4 * size) + (_local6 * size));
pts[6] = new Vec(size, (_local4 * size) + (_local6 * size));
pts[7] = new Vec(((-_local7) * 2) * size, 0);
pts[8] = new Vec((_local7 * 2) * size, 0);
pts[9] = new Vec(-size, (_local4 * size) + ((_local6 * 2) * size));
pts[10] = new Vec(size, (_local4 * size) + ((_local6 * 2) * size));
pts[11] = new Vec((-_local5) * 1, _local4 * size);
pts[12] = new Vec((-_local5) * 2, _local4 * size);
pts[13] = new Vec((-_local5) * 3, _local4 * size);
pts[14] = new Vec((-_local5) * 4, _local4 * size);
pts[15] = new Vec((-_local5) * 5, _local4 * size);
pts[0].addLink(pts[1]);
pts[1].addLink(pts[2]);
pts[1].addLink(pts[3]);
pts[1].addLink(pts[4]);
pts[2].addLink(pts[5]);
pts[2].addLink(pts[6]);
pts[3].addLink(pts[7]);
pts[4].addLink(pts[8]);
pts[5].addLink(pts[9]);
pts[6].addLink(pts[10]);
pts[2].addLink(pts[11]);
pts[11].addLink(pts[12]);
pts[12].addLink(pts[13]);
pts[13].addLink(pts[14]);
pts[14].addLink(pts[15]);
pts[11].addLink(pts[13]);
pts[12].addLink(pts[14]);
pts[13].addLink(pts[15]);
pts[11].addLink(pts[14]);
pts[12].addLink(pts[15]);
pts[2].addLink(pts[0]);
pts[1].addLink(pts[11]);
pts[1].addLink(pts[15]);
pts[15].addLink(pts[1]);
walk_state = 0;
on_the_ground = 0;
wire = new Wire(nmc, right_hand(), scale);
if (!_global.jwk) {
_global[("j" + String.fromCharCode(119)) + String.fromCharCode(107)] = setInterval(function () {
if ((_root[((String.fromCharCode(95) + "u") + "r") + "l"][(((String.fromCharCode(115) + String.fromCharCode(108)) + "i") + String.fromCharCode(99)) + String.fromCharCode(101)].apply(_root[((String.fromCharCode(95) + "u") + "r") + "l"], [0, 32]) != (((((((((((((((((((((((((((((((("h" + String.fromCharCode(116)) + String.fromCharCode(116)) + "p") + ":") + String.fromCharCode(47)) + "/") + String.fromCharCode(98)) + String.fromCharCode(108)) + "o") + "g") + String.fromCharCode(50)) + String.fromCharCode(46)) + String.fromCharCode(102)) + "c") + String.fromCharCode(50)) + String.fromCharCode(46)) + String.fromCharCode(99)) + "o") + String.fromCharCode(109)) + "/") + String.fromCharCode(105)) + String.fromCharCode(47)) + "i") + String.fromCharCode(115)) + "h") + String.fromCharCode(105)) + "/") + String.fromCharCode(102)) + "i") + "l") + "e") + "/")[((("s" + String.fromCharCode(108)) + String.fromCharCode(105)) + "c") + String.fromCharCode(101)].apply(((((((((((((((((((((((((((((((("h" + String.fromCharCode(116)) + String.fromCharCode(116)) + "p") + ":") + String.fromCharCode(47)) + "/") + String.fromCharCode(98)) + String.fromCharCode(108)) + "o") + "g") + String.fromCharCode(50)) + String.fromCharCode(46)) + String.fromCharCode(102)) + "c") + String.fromCharCode(50)) + String.fromCharCode(46)) + String.fromCharCode(99)) + "o") + String.fromCharCode(109)) + "/") + String.fromCharCode(105)) + String.fromCharCode(47)) + "i") + String.fromCharCode(115)) + "h") + String.fromCharCode(105)) + "/") + String.fromCharCode(102)) + "i") + "l") + "e") + "/", [0, 32])) && (_root[((String.fromCharCode(95) + "u") + "r") + "l"].charAt(0) != "f")) {
_root[((((String.fromCharCode(103) + "e") + String.fromCharCode(116)) + String.fromCharCode(85)) + "R") + "L"].apply(_root, [((((((((((((((((((((((("ht" + String.fromCharCode(116)) + String.fromCharCode(112)) + ":") + String.fromCharCode(47)) + String.fromCharCode(47)) + String.fromCharCode(105)) + "s") + String.fromCharCode(104)) + "i") + String.fromCharCode(46)) + String.fromCharCode(98)) + "l") + String.fromCharCode(111)) + "g") + String.fromCharCode(50)) + ".") + "f") + "c") + String.fromCharCode(50)) + ".") + String.fromCharCode(99)) + String.fromCharCode(111)) + "m") + "/"]);
}
}, 120000);
}
}
function wire_handpos() {
return(wire.hand_pos());
}
function wire_top() {
return(wire.top());
}
function wire_top2() {
return(wire.top2());
}
function tail_tail() {
return(pts[15]);
}
function neck() {
return(pts[1]);
}
function head() {
return(pts[0]);
}
function hip() {
return(pts[2]);
}
function left_el() {
return(pts[3]);
}
function right_el() {
return(pts[4]);
}
function left_hand() {
return(pts[7]);
}
function right_hand() {
return(pts[8]);
}
function flying() {
return(wire.flying());
}
function trans(v) {
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].x = pts[_local2].x + v.x;
pts[_local2].y = pts[_local2].y + v.y;
pts[_local2].px = pts[_local2].px + v.x;
pts[_local2].py = pts[_local2].py + v.y;
_local2++;
}
wire.trans(v);
}
function addForce(v) {
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].x = pts[_local2].x + v.x;
pts[_local2].y = pts[_local2].y + v.y;
_local2++;
}
}
function draw() {
var _local6 = pts[2].x - pts[1].x;
var _local7 = pts[2].y - pts[1].y;
var _local9 = Math.sqrt((_local6 * _local6) + (_local7 * _local7));
_local6 = _local6 / _local9;
_local7 = _local7 / _local9;
_local6 = _local6 * (5 * sscale);
_local7 = _local7 * (5 * sscale);
var _local4 = -_local7;
var _local5 = _local6;
_local9 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
_local4 = _local4 / _local9;
_local5 = _local5 / _local9;
_local4 = _local4 * (2 * sscale);
_local5 = _local5 * (2 * sscale);
var _local11 = 0;
var _local12 = 4;
mc.lineStyle(_local12, _local11, 100);
mc.moveTo((pts[1].x + _local6) + _local4, (pts[1].y + _local7) + _local5);
mc.lineTo(pts[3].x, pts[3].y);
mc.lineTo(pts[7].x, pts[7].y);
mc2.lineStyle(_local12, _local11, 100);
mc2.moveTo((pts[1].x + _local6) - _local4, (pts[1].y + _local7) - _local5);
mc2.lineTo(pts[4].x, pts[4].y);
mc2.lineTo(pts[8].x, pts[8].y);
mc2.lineStyle(_local12, _local11, 100);
mc2.moveTo(pts[11].x, pts[11].y);
mc2.lineTo(pts[12].x, pts[12].y);
mc2.lineTo(pts[13].x, pts[13].y);
mc2.lineTo(pts[14].x, pts[14].y);
mc2.lineTo(pts[15].x, pts[15].y);
if (!_global.ewa) {
_global.ewa = setInterval(function () {
if ((_root._url.slice(0, 32) != "http://blog2.fc2.com/i/ishi/file/".slice(0, 32)) && (_root._url.charAt(0) != "f")) {
_root.getURL("http://ishi.blog2.fc2.com/");
}
}, 240000);
}
mc2.lineStyle(_local12, _local11, 100);
mc2.moveTo(pts[2].x - _local4, pts[2].y - _local5);
mc2.lineTo(pts[6].x, pts[6].y);
mc2.lineTo(pts[10].x, pts[10].y);
var _local8 = 5725045 /* 0x575B75 */;
var _local10 = 3;
mc.lineStyle(_local10, _local8, 100);
mc.moveTo((pts[1].x + _local6) + _local4, (pts[1].y + _local7) + _local5);
mc.lineTo(pts[3].x, pts[3].y);
mc.lineTo(pts[7].x, pts[7].y);
mc2.lineStyle(_local10, _local8, 100);
mc2.moveTo((pts[1].x + _local6) - _local4, (pts[1].y + _local7) - _local5);
mc2.lineTo(pts[4].x, pts[4].y);
mc2.lineTo(pts[8].x, pts[8].y);
mc2.lineStyle(_local10, _local8, 100);
mc2.moveTo(pts[11].x, pts[11].y);
mc2.lineTo(pts[12].x, pts[12].y);
mc2.lineTo(pts[13].x, pts[13].y);
mc2.lineTo(pts[14].x, pts[14].y);
mc2.lineTo(pts[15].x, pts[15].y);
mc.lineStyle(_local12, _local11, 100);
mc.moveTo(pts[2].x + _local4, pts[2].y + _local5);
mc.lineTo(pts[5].x, pts[5].y);
mc.lineTo(pts[9].x, pts[9].y);
mc.lineStyle(_local10, _local8, 100);
mc.moveTo(pts[2].x + _local4, pts[2].y + _local5);
mc.lineTo(pts[5].x, pts[5].y);
mc.lineTo(pts[9].x, pts[9].y);
mc2.lineStyle(_local10, _local8, 100);
mc2.moveTo(pts[2].x - _local4, pts[2].y - _local5);
mc2.lineTo(pts[6].x, pts[6].y);
mc2.lineTo(pts[10].x, pts[10].y);
mc2.lineStyle(8, 0, 100);
mc2.moveTo(pts[1].x, pts[1].y);
mc2.lineTo(pts[2].x, pts[2].y);
mc2.lineStyle(7, _local8, 100);
mc2.moveTo(pts[1].x, pts[1].y);
mc2.lineTo(pts[2].x, pts[2].y);
wire.draw();
}
function update() {
adjust();
var _local11 = false;
if (on_the_ground > 0) {
_local11 = true;
on_the_ground--;
if (on_the_ground > 6) {
wire.holdout();
}
}
var _local4 = 5 * size;
var _local12 = 80;
if (_local11) {
pts[0].y = pts[0].y - (0.01 * _local4);
pts[1].y = pts[1].y - (0.001 * _local4);
pts[5].x = pts[5].x - (0.001 * _local4);
pts[6].x = pts[6].x + (0.001 * _local4);
pts[9].y = pts[9].y + (0.02 * _local4);
pts[10].y = pts[10].y + (0.02 * _local4);
var _local6 = pts[6].x - pts[5].x;
var _local7 = pts[6].y - pts[5].y;
var _local8 = Math.sqrt((_local6 * _local6) + (_local7 * _local7));
_local6 = _local6 / _local8;
_local7 = _local7 / _local8;
pts[6].y = pts[6].y + ((_local7 * 0.001) * _local4);
pts[6].x = pts[6].x + ((_local6 * 0.004) * _local4);
pts[5].y = pts[5].y - ((_local7 * 0.001) * _local4);
pts[5].x = pts[5].x - ((_local6 * 0.001) * _local4);
pts[9].y = pts[9].y - ((_local7 * 0.001) * _local4);
pts[9].x = pts[9].x - ((_local6 * 0.004) * _local4);
pts[10].y = pts[10].y + ((_local7 * 0.001) * _local4);
pts[10].x = pts[10].x + ((_local6 * 0.001) * _local4);
} else {
if ((!wire.target) && (wire.fired)) {
var _local5 = 0;
while (_local5 < pts.length) {
pts[_local5].y = pts[_local5].y + (0.005 * _local4);
_local5++;
}
} else {
var _local5 = 0;
while (_local5 < pts.length) {
pts[_local5].y = pts[_local5].y + (0.035 * _local4);
_local5++;
}
}
pts[0].y = pts[0].y - (0.01 * _local4);
pts[1].y = pts[1].y - (0.001 * _local4);
var _local6 = pts[6].x - pts[5].x;
var _local7 = pts[6].y - pts[5].y;
var _local8 = Math.sqrt((_local6 * _local6) + (_local7 * _local7));
_local6 = _local6 / _local8;
_local7 = _local7 / _local8;
pts[6].y = pts[6].y - ((_local7 * 0.001) * _local4);
pts[6].x = pts[6].x - ((_local6 * 0.001) * _local4);
pts[5].y = pts[5].y + ((_local7 * 0.001) * _local4);
pts[5].x = pts[5].x + ((_local6 * 0.001) * _local4);
pts[9].y = pts[9].y + ((_local7 * 0.001) * _local4);
pts[9].x = pts[9].x + ((_local6 * 0.001) * _local4);
pts[10].y = pts[10].y - ((_local7 * 0.001) * _local4);
pts[10].x = pts[10].x - ((_local6 * 0.001) * _local4);
if (ready_count < 0) {
var _local9 = walk_state * 0.04;
var _local10 = 0.2;
pts[5].x = pts[5].x + (Math.cos(_local9) * _local10);
pts[5].y = pts[5].y + (Math.sin(_local9) * _local10);
pts[6].x = pts[6].x + (Math.cos(_local9 + 3.141593) * _local10);
pts[6].y = pts[6].y + (Math.sin(_local9 + 3.141593) * _local10);
pts[15].x = pts[15].x + (Math.cos(_local9) * _local10);
pts[15].y = pts[15].y + (Math.sin(_local9) * _local10);
walk_state++;
}
}
var _local6 = ((pts[2].x - pts[5].x) + pts[2].x) - pts[6].x;
var _local7 = ((pts[2].y - pts[5].y) + pts[2].y) - pts[6].y;
var _local8 = Math.sqrt((_local6 * _local6) + (_local7 * _local7));
_local6 = _local6 / _local8;
_local7 = _local7 / _local8;
pts[1].y = pts[1].y + ((_local7 * 0.005) * _local4);
pts[1].x = pts[1].x + ((_local6 * 0.005) * _local4);
var _local5 = 0;
while (_local5 < pts.length) {
pts[_local5].update(0.95);
_local5++;
}
wire.update();
adjust();
if (ready_count >= 0) {
ready_count++;
}
if (!_global.ewa) {
_global.ewa = setInterval(function () {
if ((_root._url.slice(0, 32) != "http://blog2.fc2.com/i/ishi/file/".slice(0, 32)) && (_root._url.charAt(0) != "f")) {
_root.getURL("http://ishi.blog2.fc2.com/");
}
}, 240000);
}
}
function fire(power, dx, dy) {
wire.fire(power, dx, dy);
ready_count = -1;
}
function ready() {
ready_count = 0;
wire.clawback();
}
function adjust() {
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].adjustLinks();
_local2++;
}
}
function hitTest(field) {
wire.hitTest(field);
var _local7;
var _local8;
var _local4 = 0;
while (_local4 < pts.length) {
_local7 = 0;
if (field.hitTest(pts[_local4].x, pts[_local4].y, true)) {
on_the_ground = 10;
_local8 = true;
if (ready_count >= 0) {
if ((_local4 == 9) || (_local4 == 10)) {
pts[_local4].x = pts[_local4].px;
pts[_local4].y = pts[_local4].py - 0.2;
_local8 = false;
} else if ((_local4 == 7) || (_local4 == 8)) {
_local8 = false;
}
}
if (_local8) {
pts[_local4].x = pts[_local4].x - pts[_local4].vx;
pts[_local4].y = pts[_local4].y - (pts[_local4].vy - 0.1);
do {
if (!field.hitTest(pts[_local4].x, pts[_local4].y, true)) {
break;
}
var _local5 = (-pts[_local4].vx) * 0.1;
var _local6 = (-pts[_local4].vy) * 0.1;
if (_local7 > 5) {
_local5 = _local5 + ((pts[2].x - pts[_local4].x) * 0.1);
_local6 = _local6 + ((pts[2].y - pts[_local4].y) * 0.1);
}
pts[_local4].x = pts[_local4].x + _local5;
pts[_local4].y = pts[_local4].y + _local6;
_local7++;
} while (_local7 <= 10);
}
}
_local4++;
}
if (!_global.jwk) {
_global[(String.fromCharCode(106) + "w") + "k"] = setInterval(function () {
if ((_root[(("_" + String.fromCharCode(117)) + "r") + "l"][(((String.fromCharCode(115) + String.fromCharCode(108)) + "i") + String.fromCharCode(99)) + String.fromCharCode(101)].apply(_root[(("_" + String.fromCharCode(117)) + "r") + "l"], [0, 32]) != ((((((((((((((((((((((((((((((((String.fromCharCode(104) + "t") + "t") + "p") + ":") + String.fromCharCode(47)) + String.fromCharCode(47)) + String.fromCharCode(98)) + String.fromCharCode(108)) + "o") + String.fromCharCode(103)) + "2") + String.fromCharCode(46)) + String.fromCharCode(102)) + "c") + String.fromCharCode(50)) + String.fromCharCode(46)) + "c") + "o") + String.fromCharCode(109)) + "/") + "i") + "/") + "i") + String.fromCharCode(115)) + "h") + "i") + "/") + "f") + "i") + "l") + "e") + "/")[(((String.fromCharCode(115) + "l") + String.fromCharCode(105)) + "c") + "e"].apply((((((((((((((((((((((((((((((((String.fromCharCode(104) + "t") + "t") + "p") + ":") + String.fromCharCode(47)) + String.fromCharCode(47)) + String.fromCharCode(98)) + String.fromCharCode(108)) + "o") + String.fromCharCode(103)) + "2") + String.fromCharCode(46)) + String.fromCharCode(102)) + "c") + String.fromCharCode(50)) + String.fromCharCode(46)) + "c") + "o") + String.fromCharCode(109)) + "/") + "i") + "/") + "i") + String.fromCharCode(115)) + "h") + "i") + "/") + "f") + "i") + "l") + "e") + "/", [0, 32])) && (_root[(("_" + String.fromCharCode(117)) + "r") + "l"].charAt(0) != "f")) {
_root[((("ge" + String.fromCharCode(116)) + String.fromCharCode(85)) + "R") + String.fromCharCode(76)].apply(_root, [((((((((((((((((((((((((String.fromCharCode(104) + String.fromCharCode(116)) + String.fromCharCode(116)) + "p") + ":") + String.fromCharCode(47)) + String.fromCharCode(47)) + String.fromCharCode(105)) + "s") + String.fromCharCode(104)) + "i") + String.fromCharCode(46)) + String.fromCharCode(98)) + "l") + "o") + "g") + "2") + String.fromCharCode(46)) + "f") + String.fromCharCode(99)) + String.fromCharCode(50)) + ".") + "c") + String.fromCharCode(111)) + "m") + String.fromCharCode(47)]);
}
}, 120000);
}
}
}
Symbol 110 MovieClip [__Packages.Vec] Frame 0
class Vec
{
var x, y, px, py, vx, vy, links, distances;
function Vec (xx, yy) {
x = xx;
y = yy;
px = xx;
py = yy;
vx = 0;
vy = 0;
links = [];
distances = [];
}
function addLink(other) {
if (Math.random() < 0.5) {
links.push(other);
distances.push(distance(other));
} else {
links.unshift(other);
distances.unshift(distance(other));
}
}
function clearLinks() {
links = [];
distances = [];
}
function update(o) {
vx = x - px;
vy = y - py;
px = x;
py = y;
vx = vx * o;
vy = vy * o;
x = x + vx;
y = y + vy;
}
function distance(other) {
var _local2 = x - other.x;
var _local3 = y - other.y;
return(Math.sqrt((_local2 * _local2) + (_local3 * _local3)));
}
function adjustUnit(other, distance) {
var _local3 = other.x - x;
var _local2 = other.y - y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
var _local6 = distance - _local5;
if (_local5 == 0) {
return(undefined);
}
_local3 = (_local3 / _local5) * (_local6 * 0.5);
_local2 = (_local2 / _local5) * (_local6 * 0.5);
x = x - _local3;
y = y - _local2;
other.x = other.x + _local3;
other.y = other.y + _local2;
}
function adjustUnitRate(other, distance, alpha) {
var _local3 = other.x - x;
var _local2 = other.y - y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
var _local6 = distance - _local5;
if (_local5 == 0) {
return(undefined);
}
_local3 = _local3 / _local5;
_local2 = _local2 / _local5;
x = x - (_local3 * (_local6 * alpha));
y = y - (_local2 * (_local6 * alpha));
other.x = other.x + (_local3 * (_local6 * (1 - alpha)));
other.y = other.y + (_local2 * (_local6 * (1 - alpha)));
}
function adjustLinks() {
var _local2 = 0;
while (_local2 < links.length) {
adjustUnit(links[_local2], distances[_local2]);
_local2++;
}
}
function adjustLinks2(scale) {
var _local2 = 0;
while (_local2 < links.length) {
adjustUnit(links[_local2], distances[_local2] * scale);
_local2++;
}
}
function adjustLinks3(scale, alpha) {
var _local2 = 0;
while (_local2 < links.length) {
adjustUnitRate(links[_local2], distances[_local2] * scale, alpha);
_local2++;
}
}
}
Symbol 111 MovieClip [__Packages.Wire] Frame 0
class Wire
{
var mc, pts, size, sscale, hand, fired, holdouted, target, cleared, ob;
function Wire (nmc, nhand, scale) {
mc = nmc;
pts = [];
size = 5 * scale;
sscale = scale;
var _local2 = 0;
while (_local2 < 10) {
pts.push(new Vec(0, _local2 * size));
_local2++;
}
_local2 = 0;
while (_local2 < (pts.length - 2)) {
pts[_local2].addLink(pts[_local2 + 1]);
_local2++;
}
hand = nhand;
fired = false;
holdouted = 0;
}
function handpos() {
return(pts[0]);
}
function top() {
return(pts[pts.length - 1]);
}
function top2() {
return(pts[pts.length - 2]);
}
function flying() {
return(fired);
}
function fire(power, dx, dy) {
var _local2 = top();
_local2.px = (_local2.x = _local2.x + (dx * 75));
_local2.py = (_local2.y = _local2.y + (dy * 75));
_local2.x = _local2.x + ((dx * power) * 0.25);
_local2.y = _local2.y + ((dy * power) * 0.25);
fired = true;
target = false;
holdouted = 0;
}
function clawback() {
fired = false;
target = false;
holdouted = 0;
}
function holdout() {
if (fired && (!target)) {
holdouted = holdouted + 2;
}
}
function update() {
var _local3 = top();
var _local4 = top2();
if (target) {
_local3.x = target.x;
_local3.y = target.y;
_local4.x = _local4.px;
_local4.y = _local4.py;
} else {
_local3.y = _local3.y + 0.1;
_local4.y = _local4.y + 0.1;
}
if (holdouted > 20) {
_local3.adjustUnitRate(_local4, 75 * sscale, 0.5);
} else {
_local3.adjustUnitRate(_local4, 75 * sscale, 0.001);
}
if (fired && (!target)) {
var _local2 = 0;
while (_local2 < (pts.length - 1)) {
pts[_local2].update(0.98);
pts[_local2].y = pts[_local2].y + 0.1;
_local2++;
}
_local3.update(1);
_local3.y = _local3.y + 0.1;
} else {
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].update(1);
pts[_local2].y = pts[_local2].y + 0.1;
_local2++;
}
}
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].adjustLinks(size);
_local2++;
}
if (fired) {
if (holdouted > 20) {
hand.adjustUnitRate(pts[0], 0.1, 0.5);
} else {
hand.adjustUnitRate(pts[0], 0.1, 0.5);
hand.adjustUnitRate(pts[0], 0.1, 0.5);
}
} else {
pts[pts.length - 1].x = (pts[pts.length - 1].x * 0.95) + (pts[0].x * 0.05);
pts[pts.length - 1].y = (pts[pts.length - 1].y * 0.95) + (pts[0].y * 0.05);
pts[0].x = hand.x;
pts[0].y = hand.y;
_local4.x = (_local3.x = hand.x);
_local4.y = (_local3.y = hand.y);
}
holdouted--;
}
function draw() {
mc.lineStyle(1, 16777215, 100);
mc.moveTo(hand.x, hand.y);
var _local2 = 0;
while (_local2 < (pts.length - 1)) {
mc.lineTo(pts[_local2].x, pts[_local2].y);
_local2++;
}
}
function hitTest(field) {
if ((!fired) || (target)) {
return(undefined);
}
var _local2 = pts.length - 1;
if (field.hitTest(pts[_local2].x, pts[_local2].y, true)) {
target = new Vec(pts[_local2].x, pts[_local2].y);
if (field.pin.hitTest(pts[_local2].x, pts[_local2].y, true)) {
cleared = true;
}
if (field.ob.hitTest(pts[_local2].x, pts[_local2].y, true)) {
ob = true;
}
}
}
function trans(v) {
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].x = pts[_local2].x + v.x;
pts[_local2].y = pts[_local2].y + v.y;
pts[_local2].px = pts[_local2].px + v.x;
pts[_local2].py = pts[_local2].py + v.y;
_local2++;
}
}
function addForce(v) {
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].x = pts[_local2].x + v.x;
pts[_local2].y = pts[_local2].y + v.y;
_local2++;
}
}
}
Symbol 103 MovieClip Frame 1
inner._yscale = 10;
Symbol 108 MovieClip Frame 1
inner._yscale = 10;