Frame 2
if (this.getBytesLoaded() == this.getBytesTotal()) {
nextFrame();
} else {
gotoAndPlay (1);
}
Frame 3
function SE(linkage) {
var _local2 = new Sound(this);
_local2.attachSound(linkage);
_local2.start();
}
function BtnRollOver() {
SE("se_rollOver");
}
var limitStop = 5999999;
var so = SharedObject.getLocal("robocon08");
if (so.data.bestTime == undefined) {
so.data.bestTime = limitStop;
so.flush();
}
var bestTime = so.data.bestTime;
var bgm = new Sound(this);
bgm.attachSound("bgm");
gotoAndStop ("select");
Frame 6
function Pause() {
selMc.Pause(true);
}
function UnPause() {
selMc.Pause(false);
}
function helpBtnPressed() {
SE("se_click");
helpBarMc.OpenHelp();
}
var selectIndex = 0;
var kikaku_bigList = [];
var kikaku_longList = [];
var kikaku_smallList = [];
var parts_legList = [];
var gameTime = 0;
var titleMenu = true;
howBtn.onRelease = helpBtnPressed;
howBtn.onRollOver = BtnRollOver;
bgm.stop();
stop();
Frame 9
var ready = true;
titleMenu = false;
bgm.start(0, 10000);
Frame 12
function dispRepair() {
this.attachMovie("repairDisp", "repairDisp", 1, {_x:320, _y:240});
}
function dispAlert(code, priority) {
if ((this.alert != undefined) && (priority == undefined)) {
return(undefined);
}
this.attachMovie("alert_" + code, "alert", 2, {_x:320, _y:240});
}
function GoEnding(bList, lList, sList, pList, gTime) {
kikaku_bigList = bList;
kikaku_longList = lList;
kikaku_smallList = sList;
parts_legList = pList;
gameTime = gTime;
gotoAndStop ("ending");
}
function DispGoalGuide() {
this.attachMovie("hurdleGuide", "hurdleGuide", 3, {_x:570, _y:256});
}
function DeleteGoalGuide() {
hurdleGuide.removeMovieClip();
}
function Pause() {
main.Pause(true);
partsDispMc._visible = false;
timeDispMc._visible = false;
evoluteDisp._visible = false;
}
function UnPause() {
main.Pause(false);
partsDispMc._visible = true;
timeDispMc._visible = true;
evoluteDisp._visible = true;
}
ready = false;
Frame 15
if (gameTime < bestTime) {
bestTime = gameTime;
so.data.bestTime = bestTime;
so.flush();
}
Symbol 42 MovieClip [player_type1] Frame 1
function Jump(j_ang, j_initY) {
jumpAng = j_ang;
jumpAddY = j_initY;
jumpY = 0;
this.onEnterFrame = EnterFrame_Jump;
}
function EnterFrame_Jump() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = (jumpAng * Math.PI) / 180;
var _local5 = Math.cos(_local3) * speed;
var _local4 = Math.sin(_local3) * speed;
posX = posX + _local5;
posY = posY + _local4;
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
var _local6 = MotionJump();
_x = posX;
_y = (posY + jumpY);
DispBound();
if (_jumpEname != "") {
this[_jumpEname]();
}
if (_local6) {
if (_jumpEndEname == "") {
this.onEnterFrame = this[_walkEname];
} else {
this.onEnterFrame = this[_jumpEndEname];
_jumpEndEname = "";
}
}
}
function MotionJump() {
jumpY = Math.min(jumpY + jumpAddY, 0);
jumpAddY = jumpAddY + jumpAddFrame;
DispBound();
return(jumpY == 0);
}
function DispBound() {
var _local3 = (Math.PI/4);
var _local2 = 5;
var _local5 = Math.cos(_local3) * _local2;
var _local4 = Math.sin(_local3) * _local2;
_local4 = _local4 + (-jumpY);
_local3 = Math.atan2(_local4, _local5);
_local2 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
dropShadow.distance = _local2;
dropShadow.angle = (_local3 * 180) / Math.PI;
this.filters = [dropShadow];
}
function HurdleJump(j_ang, j_initY) {
jumpAng = j_ang;
jumpAddY = j_initY;
jumpY = 0;
speed = maxSpeed;
this.onEnterFrame = EnterFrame_HurdleJump;
}
function EnterFrame_HurdleJump() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = (jumpAng * Math.PI) / 180;
var _local7 = Math.cos(_local3) * speed;
var _local6 = Math.sin(_local3) * speed;
posX = posX + _local7;
posY = posY + _local6;
var _local8 = MotionJump();
_x = posX;
_y = (posY + jumpY);
DispBound();
if ((jumpAddY > -2) && (hurdleCheck == 0)) {
var _local9 = _parent.parts_legList.length;
var _local5 = _parent.parts_speedList.length;
var _local4 = _parent.parts_powerList.length;
if ((_local5 + _local4) >= _parent.clearNormaParts) {
hurdleCheck = 1;
} else {
hurdleCheck = 2;
if (jumpAng > 0) {
jumpAng = 180 - jumpAng;
} else {
jumpAng = -180 - jumpAng;
}
if (evo != 5) {
_rotation = jumpAng;
}
_parent._parent.dispAlert("needJump");
}
}
if (_local8) {
if (hurdleCheck == 1) {
_parent.NextStage();
delete this.onEnterFrame;
} else {
if (evo == 5) {
if (crabMode == "adv_") {
crabMode = "ret_";
} else {
crabMode = "adv_";
}
SetAshiInitList(crabMode);
speed = 0;
}
this.onEnterFrame = this[_walkEname];
}
hurdleCheck = 0;
}
}
function NextStageStart() {
this.onEnterFrame = this[_walkEname];
}
function BodyUnDecoration() {
var _local1 = 0;
while (_local1 < decoMcList.length) {
decoMcList[_local1].removeMovieClip();
_local1++;
}
decoMcList = [];
}
function BodyDecoration() {
BodyUnDecoration();
var _local4 = 0;
var _local10 = Math.min(bigPartsList.length, _parent.kikaku_bigList.length);
var _local12 = Math.min(longPartsList.length, _parent.kikaku_longList.length);
var _local11 = Math.min(smallPartsList.length, _parent.kikaku_smallList.length);
var _local3 = 0;
while (_local3 < _local10) {
var _local6 = "deco_b_" + _parent.kikaku_bigList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:bigPartsList[_local3][0].x, _y:bigPartsList[_local3][0].y, _rotation:bigPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local12) {
var _local6 = "deco_l_" + _parent.kikaku_longList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:longPartsList[_local3][0].x, _y:longPartsList[_local3][0].y, _rotation:longPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local11) {
var _local6 = "deco_s_" + _parent.kikaku_smallList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:smallPartsList[_local3][0].x, _y:smallPartsList[_local3][0].y, _rotation:smallPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
}
var dropShadow = (new flash.filters.DropShadowFilter(5, 45, 0, 1, 5, 5, 0.5));
this.filters = [dropShadow];
var evo = 0;
var evoType = true;
var bigPartsList = [];
var longPartsList = [];
var smallPartsList = [];
var decoMcList = [];
var _mode = "walk";
var _walkEname = "";
var _jumpEname = "";
var _jumpEndEname = "";
var posX = _x;
var posY = _y;
var jumpAng = 0;
var jumpAddY = 0;
var jumpY = 0;
var jumpAddInitY = -10;
var jumpAddFrame = 2;
var hurdleCheck = 0;
this.onKeyDown = function () {
_parent.MapExpansion();
evo = 5;
maxSpeed = 12;
gotoAndStop ("crab");
};
function MouseDown() {
mouseClick = true;
}
function MouseUp() {
mouseClick = false;
}
function WalkBasic() {
var _local3 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local3 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local2 = Math.atan2(_ymouse, _xmouse);
var _local4 = (_local2 * 180) / Math.PI;
if (mouseClick) {
_rotation = (_rotation + (_local4 * 0.1));
}
posX = posX + (Math.cos((_rotation * Math.PI) / 180) * speed);
posY = posY + (Math.sin((_rotation * Math.PI) / 180) * speed);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
function CheckJumpGoal() {
if (posX < _parent.mapSize.x) {
return(undefined);
}
if (Math.abs(_rotation) > 45) {
if (((evo == 5) && (Math.abs(_rotation) > 135)) && (crabMode == "ret_")) {
HurdleJump(_rotation + 180, jumpAddInitY);
}
return(undefined);
}
HurdleJump(_rotation, jumpAddInitY);
}
function Damage(ang) {
speed = maxSpeed;
Jump(ang, jumpAddInitY);
_jumpEndEname = "EnterFrame_damage";
_parent._parent.dispRepair();
repair = 0;
_parent.Notice(60, 120);
_parent.Effect("effect_damage", _x, _y);
}
function EnterFrame_damage() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = 200;
repair = repair + recoverP;
if (repair < _local3) {
_parent._parent.repairDisp.disp(repair, _local3);
return(undefined);
}
_parent._parent.repairDisp.Complete();
this.onEnterFrame = this[_walkEname];
}
function GetCircleCross(x0, y0, r0, x1, y1, r1) {
var _local10 = false;
var _local7 = new flash.geom.Point(x0, y0);
var _local14 = new flash.geom.Point(x1, y1);
var _local2 = _local14.subtract(_local7);
var _local3 = _local2.length;
if (_local3 == (r0 + r1)) {
_local10 = true;
} else if ((_local3 < (r0 + r1)) && (_local3 > Math.abs(r0 - r1))) {
} else {
return([]);
}
_local2.normalize(r0);
_local2.offset(_local7.x, _local7.y);
var _local12 = (0.5 * (((r0 * r0) - (r1 * r1)) + (_local3 * _local3))) / _local3;
var _local4 = Math.acos(_local12 / r0);
var _local5 = Math.atan2(_local2.y - y0, _local2.x - x0);
var _local11 = new flash.geom.Point(x0 + (r0 * Math.cos(_local5 + _local4)), y0 + (r0 * Math.sin(_local5 + _local4)));
var _local13 = new flash.geom.Point(x0 + (r0 * Math.cos(_local5 - _local4)), y0 + (r0 * Math.sin(_local5 - _local4)));
if (_local10) {
return([_local11]);
}
return([_local11, _local13, _local2]);
}
function GetAngleInterval(angA, angB) {
var _local3 = angA;
var _local2 = angB;
_local3 = (_local3 + 360) % 360;
_local2 = (_local2 + 360) % 360;
var _local1 = _local2 - _local3;
if (_local1 >= 0) {
if (_local1 > 180) {
_local1 = _local1 - 360;
}
} else if (_local1 < -180) {
_local1 = _local1 + 360;
}
return(_local1);
}
function evolution() {
var _local4 = _parent.parts_legList.length;
var _local3 = _parent.parts_powerList.length;
var _local2 = _parent.parts_speedList.length;
var _local5 = evo;
if ((evo == 0) && (_local4 >= 4)) {
evo = 1;
}
if (((evo == 1) && (_local4 >= 6)) && ((_local3 + _local2) >= 7)) {
if (_local3 >= _local2) {
evoType = true;
} else {
evoType = false;
}
evo = 2;
}
if ((evo == 2) && (_local4 >= 14)) {
if (_parent.gameStage == 0) {
if (_local5 == 2) {
_parent._parent.dispAlert("evolutionLock");
return(undefined);
}
} else if (evoType) {
if (_local3 >= _local2) {
evo = 5;
} else {
evo = 6;
}
} else if (_local3 >= _local2) {
evo = 4;
} else {
evo = 3;
}
}
if (evo == _local5) {
return(undefined);
}
var _local6 = ["no", "four", "six", "ten", "twin", "crab", "octo"];
gotoAndStop(_local6[evo]);
if (evo == 1) {
_parent.MapExpansion();
}
_parent.Notice(60, 120);
_parent._parent.evoluteDisp.disp(evo, evoType);
_parent._parent.SE("se_evo");
_parent.Effect("effect_evo", _x, _y);
}
function SetGraphicsLeg(A, B) {
var _local2 = 0;
_local2 = 0;
while (_local2 < A) {
ashiList[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < B) {
ashiListB[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
}
function SumMaxSpeed(p_type) {
if (p_type == "speed") {
maxSpeed = maxSpeed + 1;
recoverP = recoverP - 0.5;
} else if (p_type == "power") {
maxSpeed = maxSpeed - 0.5;
recoverP = recoverP + 1;
}
maxSpeed = Math.min(Math.max(maxSpeed, bodyMinSpeed), bodyMaxSpeed);
recoverP = Math.min(Math.max(recoverP, bodyMinPower), bodyMaxPower);
if (evo == 0) {
speed = maxSpeed;
}
}
var mouseClick = false;
var repair = 0;
var speed = 0;
var addSpeed = 1;
var cutSpeed = 2;
var initSpeed = 2;
var maxSpeed = 10;
var recoverP = 0;
var bodyMaxSpeed = 0;
var bodyMaxPower = 0;
var bodyMinSpeed = 0;
var bodyMinPower = 0;
var ashiLength = 93;
var ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiInitPosList = [];
var ashiInitRadList = [];
var ashiTipList = [];
var ashiBack = [];
var ashiListB = [];
var ashiInitPosListB = [];
var ashiInitRadListB = [];
var ashiTipListB = [];
var ashiBackB = [];
this.onMouseDown = MouseDown;
this.onMouseUp = MouseUp;
MouseUp();
gotoAndStop ("no");
Symbol 42 MovieClip [player_type1] Frame 5
function EnterFrame_NotLeg() {
if (_parent.pausing) {
return(undefined);
}
_rotation = (_rotation + Math.min(Math.max(landRolling, -5), 5));
landRolling = landRolling * 0.8;
if (!mouseClick) {
return(undefined);
}
var _local3 = Math.atan2(_parent._ymouse - _y, _parent._xmouse - _x);
var _local2 = (_local3 * 180) / Math.PI;
_local2 = _local2 + (Math.floor(Math.random() * 21) - 10);
landRolling = Math.min(Math.max(_local2, -15), 15);
jumpOldAng = _local2;
Jump(_local2, -6);
}
function Jump_NotLeg() {
_rotation = (_rotation + Math.min(Math.max(jumpOldAng * 0.5, -5), 5));
}
function Jump_NotLeg_Init() {
if (jumpY < 0) {
return(undefined);
}
_jumpEname = "Jump_NotLeg";
speed = maxSpeed;
}
_walkEname = "EnterFrame_NotLeg";
_jumpEname = "Jump_NotLeg_Init";
bodyMaxSpeed = 8;
bodyMinSpeed = 6;
maxSpeed = 7;
bodyMaxPower = 2;
bodyMinPower = 1;
recoverP = 1;
speed = 0;
var jumpOldAng = 0;
var landRolling = 0;
bigPartsList = [[new flash.geom.Point(4, 0), 0]];
longPartsList = [];
smallPartsList = [[new flash.geom.Point(4, -68), 60], [new flash.geom.Point(4, 68), 120]];
jumpAddY = 2;
jumpY = -500;
this.onEnterFrame = EnterFrame_Jump;
Symbol 42 MovieClip [player_type1] Frame 8
nextFrame();
Symbol 42 MovieClip [player_type1] Frame 9
function EnterFrame_FourLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_FourLeg();
}
function AshiInit_FourLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_FourLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_FourLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_FourLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_FourLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 10;
bodyMinSpeed = 7;
maxSpeed = 8;
bodyMaxPower = 4;
bodyMinPower = 1;
recoverP = 2;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRB, ashiLB];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-33, 0), 90]];
longPartsList = [[new flash.geom.Point(29, 0), -90]];
smallPartsList = [[new flash.geom.Point(-26, -80), 120], [new flash.geom.Point(-26, 80), 60]];
AshiInit_FourLeg();
AshiReset_FourLeg();
SetGraphicsLeg(4, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_FourLeg;
Symbol 42 MovieClip [player_type1] Frame 11
nextFrame();
Symbol 42 MovieClip [player_type1] Frame 12
function EnterFrame_SixLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_SixLeg();
}
function AshiInit_SixLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_SixLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_SixLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_SixLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_SixLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 14;
bodyMinSpeed = 8;
maxSpeed = 10;
bodyMaxPower = 8;
bodyMinPower = 2;
recoverP = 4;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [];
longPartsList = [];
smallPartsList = [[new flash.geom.Point(0, 0), 90]];
if (evoType) {
longPartsList = [[new flash.geom.Point(-17, -55), 0], [new flash.geom.Point(-17, 55), 180]];
} else {
bigPartsList = [[new flash.geom.Point(-33, -60), 90], [new flash.geom.Point(-33, 60), 90]];
}
AshiInit_SixLeg();
AshiReset_SixLeg();
SetGraphicsLeg(6, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_SixLeg;
Symbol 42 MovieClip [player_type1] Frame 14
nextFrame();
Symbol 42 MovieClip [player_type1] Frame 15
function EnterFrame_SixTwinLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_SixTwinLeg();
}
function AshiInit_SixTwinLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
ashiBackB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local2 = new flash.geom.Point(ashiListB[_local1]._x, ashiListB[_local1]._y);
ashiInitPosListB.push(_local2);
ashiInitRadListB.push(ashiListB[_local1]._rotation);
ashiBackB.push(false);
_local1++;
}
}
function AshiReset_SixTwinLeg(p_mc) {
if ((p_mc._name.substr(-1) == "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiListB.length ; i++) {
if (p_mc == undefined) {
} else if (ashiListB[i] != p_mc) {
continue;
}
var _local3 = ashiListB[i];
_local3._x = ashiInitPosListB[i].x;
_local3._y = ashiInitPosListB[i].y;
_local3._rotation = ashiInitRadListB[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipListB[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipListB[i]);
_parent.globalToLocal(ashiTipListB[i]);
}
}
if ((p_mc.name.substr(-1) != "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiList.length ; i++) {
if (p_mc == undefined) {
} else if (ashiList[i] != p_mc) {
continue;
}
var _local3 = ashiList[i];
_local3._x = ashiInitPosList[i].x;
_local3._y = ashiInitPosList[i].y;
_local3._rotation = ashiInitRadList[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipList[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[i]);
_parent.globalToLocal(ashiTipList[i]);
}
}
}
function AshiMove_SixTwinLeg() {
var _local20 = ashiLength;
var _local3 = 0;
for ( ; _local3 < ashiListB.length ; _local3++) {
var _local5 = ashiList[_local3];
var _local4 = ashiListB[_local3];
if (ashiBackB[_local3]) {
var _local10 = 0.5;
var _local9 = ashiInitRadList[_local3] - _local5._rotation;
if (Math.abs(_local9) > 180) {
if (_local9 > 0) {
_local9 = _local9 - 360;
} else {
_local9 = _local9 + 360;
}
}
_local5._x = _local5._x + ((ashiInitPosList[_local3].x - _local5._x) * _local10);
_local5._rotation = _local5._rotation + (_local9 * _local10);
var _local14 = new flash.geom.Point(_local5._x + (Math.cos((_local5._rotation * Math.PI) / 180) * _local20), _local5._y + (Math.sin((_local5._rotation * Math.PI) / 180) * _local20));
_local4._x = _local14.x;
_local4._y = _local14.y;
var _local11 = _local4._rotation + ((ashiInitRadListB[_local3] - _local4._rotation) * _local10);
var _local17 = GetAngleInterval(_local5._rotation, _local11);
if ((_local17 > IK_rectAngMaxB[_local4._name]) || (_local17 < IK_rectAngMinB[_local4._name])) {
if ((ashiInitRadListB[_local3] - _local4._rotation) > 0) {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) - 360) * _local10);
} else {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) + 360) * _local10);
}
}
_local4._rotation = _local11;
if (Math.abs(ashiInitRadList[_local3] - _local5._rotation) < 3) {
ashiBackB[_local3] = false;
AshiReset_SixTwinLeg(ashiList[_local3]);
AshiReset_SixTwinLeg(ashiListB[_local3]);
}
} else {
var _local6 = {x:ashiTipListB[_local3].x, y:ashiTipListB[_local3].y};
_parent.localToGlobal(_local6);
this.globalToLocal(_local6);
var _local18 = Math.atan2(_local6.y - ashiInitPosList[_local3].y, _local6.x - ashiInitPosList[_local3].x);
var _local21 = (_local18 * 180) / Math.PI;
var _local19 = flash.geom.Point.distance(new flash.geom.Point(_local6.x, _local6.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
if (_local19 > (ashiLength * 2)) {
ashiBackB[_local3] = true;
} else {
var _local8 = GetCircleCross(_local6.x, _local6.y, ashiLength, ashiInitPosList[_local3].x, ashiInitPosList[_local3].y, ashiLength);
var _local7 = IK_NumList[ashiListB[_local3]._name];
ashiListB[_local3]._x = _local8[_local7].x;
ashiListB[_local3]._y = _local8[_local7].y;
var _local12 = (Math.atan2(_local6.y - _local8[_local7].y, _local6.x - _local8[_local7].x) * 180) / Math.PI;
ashiListB[_local3]._rotation = _local12;
_local12 = (Math.atan2(_local8[_local7].y - ashiInitPosList[_local3].y, _local8[_local7].x - ashiInitPosList[_local3].x) * 180) / Math.PI;
ashiList[_local3]._rotation = _local12;
var _local13 = false;
var _local16 = GetAngleInterval(ashiList[_local3]._rotation, ashiListB[_local3]._rotation);
if (_local16 > IK_rectAngMaxB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMaxB[ashiListB[_local3]._name];
_local13 = true;
} else if (_local16 < IK_rectAngMinB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMinB[ashiListB[_local3]._name];
_local13 = true;
}
if (_local13) {
var _local15 = (ashiListB[_local3]._rotation * Math.PI) / 180;
ashiTipListB[_local3] = {x:ashiListB[_local3]._x + (Math.cos(_local15) * ashiLength), y:ashiListB[_local3]._y + (Math.sin(_local15) * ashiLength)};
this.localToGlobal(ashiTipListB[_local3]);
_parent.globalToLocal(ashiTipListB[_local3]);
}
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) > IK_rectAngMax[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
continue;
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
}
}
}
_walkEname = "EnterFrame_SixTwinLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 16;
bodyMinSpeed = 9;
maxSpeed = 11;
bodyMaxPower = 10;
bodyMinPower = 2;
recoverP = 4;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
ashiListB = [ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
ashiTipListB = [];
ashiBackB = [];
var IK_NumList = {ashiRF2:1, ashiLF2:0, ashiRM2:0, ashiLM2:1, ashiRB2:0, ashiLB2:1};
var IK_rectAngMax = {ashiRF:10, ashiLF:90, ashiRM:45, ashiLM:90, ashiRB:60, ashiLB:110};
var IK_rectAngMin = {ashiRF:-90, ashiLF:-10, ashiRM:-90, ashiLM:-45, ashiRB:-110, ashiLB:-60};
var IK_rectAngMaxB = {ashiRF2:0, ashiLF2:150, ashiRM2:170, ashiLM2:0, ashiRB2:170, ashiLB2:0};
var IK_rectAngMinB = {ashiRF2:-150, ashiLF2:0, ashiRM2:0, ashiLM2:-170, ashiRB2:0, ashiLB2:-170};
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-43, 0), 90]];
longPartsList = [[new flash.geom.Point(-8, 0), -90]];
smallPartsList = [[new flash.geom.Point(50, -52), 90], [new flash.geom.Point(50, 52), 90], [new flash.geom.Point(-39, -68), -60], [new flash.geom.Point(-39, 68), -120]];
AshiInit_SixTwinLeg();
AshiReset_SixTwinLeg();
SetGraphicsLeg(6, 6);
BodyDecoration();
this.onEnterFrame = EnterFrame_SixTwinLeg;
Symbol 42 MovieClip [player_type1] Frame 17
nextFrame();
Symbol 42 MovieClip [player_type1] Frame 18
function EnterFrame_CrabLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkCrab();
if (speed == 0) {
return(undefined);
}
AshiMove_CrabLeg();
}
function AshiInit_CrabLeg() {
ashiBack = [];
ashiBackB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
ashiBack.push(false);
ashiBackB.push(false);
_local1++;
}
}
function AshiReset_CrabLeg(p_mc) {
if ((p_mc._name.substr(-1) == "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiListB.length ; i++) {
if (p_mc == undefined) {
} else if (ashiListB[i] != p_mc) {
continue;
}
var _local3 = ashiListB[i];
_local3._x = ashiInitPosListB[i].x;
_local3._y = ashiInitPosListB[i].y;
_local3._rotation = ashiInitRadListB[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipListB[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipListB[i]);
_parent.globalToLocal(ashiTipListB[i]);
}
}
if ((p_mc.name.substr(-1) != "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiList.length ; i++) {
if (p_mc == undefined) {
} else if (ashiList[i] != p_mc) {
continue;
}
var _local3 = ashiList[i];
_local3._x = ashiInitPosList[i].x;
_local3._y = ashiInitPosList[i].y;
_local3._rotation = ashiInitRadList[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipList[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[i]);
_parent.globalToLocal(ashiTipList[i]);
}
}
}
function AshiMove_CrabLeg() {
var _local20 = ashiLength;
var _local3 = 0;
for ( ; _local3 < ashiListB.length ; _local3++) {
var _local5 = ashiList[_local3];
var _local4 = ashiListB[_local3];
if (ashiBackB[_local3]) {
var _local10 = 0.5;
var _local9 = ashiInitRadList[_local3] - _local5._rotation;
if (Math.abs(_local9) > 180) {
if (_local9 > 0) {
_local9 = _local9 - 360;
} else {
_local9 = _local9 + 360;
}
}
_local5._x = _local5._x + ((ashiInitPosList[_local3].x - _local5._x) * _local10);
_local5._rotation = _local5._rotation + (_local9 * _local10);
var _local14 = new flash.geom.Point(_local5._x + (Math.cos((_local5._rotation * Math.PI) / 180) * _local20), _local5._y + (Math.sin((_local5._rotation * Math.PI) / 180) * _local20));
_local4._x = _local14.x;
_local4._y = _local14.y;
var _local11 = _local4._rotation + ((ashiInitRadListB[_local3] - _local4._rotation) * _local10);
var _local17 = GetAngleInterval(_local5._rotation, _local11);
if ((_local17 > IK_rectAngMaxB[_local4._name]) || (_local17 < IK_rectAngMinB[_local4._name])) {
if ((ashiInitRadListB[_local3] - _local4._rotation) > 0) {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) - 360) * _local10);
} else {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) + 360) * _local10);
}
}
_local4._rotation = _local11;
if (Math.abs(ashiInitRadList[_local3] - _local5._rotation) < 3) {
ashiBackB[_local3] = false;
AshiReset_CrabLeg(ashiList[_local3]);
AshiReset_CrabLeg(ashiListB[_local3]);
}
} else {
var _local6 = {x:ashiTipListB[_local3].x, y:ashiTipListB[_local3].y};
_parent.localToGlobal(_local6);
this.globalToLocal(_local6);
var _local18 = Math.atan2(_local6.y - ashiInitPosList[_local3].y, _local6.x - ashiInitPosList[_local3].x);
var _local21 = (_local18 * 180) / Math.PI;
var _local19 = flash.geom.Point.distance(new flash.geom.Point(_local6.x, _local6.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
if (_local19 > (ashiLength * 2)) {
ashiBackB[_local3] = true;
} else {
var _local8 = GetCircleCross(_local6.x, _local6.y, ashiLength, ashiInitPosList[_local3].x, ashiInitPosList[_local3].y, ashiLength);
var _local7 = IK_NumList[ashiListB[_local3]._name];
ashiListB[_local3]._x = _local8[_local7].x;
ashiListB[_local3]._y = _local8[_local7].y;
var _local12 = (Math.atan2(_local6.y - _local8[_local7].y, _local6.x - _local8[_local7].x) * 180) / Math.PI;
ashiListB[_local3]._rotation = _local12;
_local12 = (Math.atan2(_local8[_local7].y - ashiInitPosList[_local3].y, _local8[_local7].x - ashiInitPosList[_local3].x) * 180) / Math.PI;
ashiList[_local3]._rotation = _local12;
var _local13 = false;
var _local16 = GetAngleInterval(ashiList[_local3]._rotation, ashiListB[_local3]._rotation);
if (_local16 > IK_rectAngMaxB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMaxB[ashiListB[_local3]._name];
_local13 = true;
} else if (_local16 < IK_rectAngMinB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMinB[ashiListB[_local3]._name];
_local13 = true;
}
if (_local13) {
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) > IK_rectAngMax[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
continue;
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
}
}
}
function WalkCrab() {
var _local3 = 1;
var _local5 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local5 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local4 = Math.atan2(_ymouse, _xmouse);
var _local2 = (_local4 * 180) / Math.PI;
if ((crabMode == "ret_") && (Math.abs(_local2) < 90)) {
crabMode = "adv_";
SetAshiInitList(crabMode);
} else if ((crabMode == "adv_") && (Math.abs(_local2) > 90)) {
crabMode = "ret_";
SetAshiInitList(crabMode);
}
if (crabMode == "ret_") {
if (_local2 > 0) {
_local2 = _local2 - 180;
} else {
_local2 = _local2 + 180;
}
_local3 = -1;
}
if (mouseClick) {
_rotation = (_rotation + (_local2 * 0.1));
}
posX = posX + ((Math.cos((_rotation * Math.PI) / 180) * speed) * _local3);
posY = posY + ((Math.sin((_rotation * Math.PI) / 180) * speed) * _local3);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
function SetAshiInitList(str) {
var _local6 = {ashiRF:new flash.geom.Point(44, -29), ashiLF:new flash.geom.Point(-57, -29), ashiRM:new flash.geom.Point(40, 8), ashiLM:new flash.geom.Point(-47, 9), ashiRB:new flash.geom.Point(39, 50), ashiLB:new flash.geom.Point(-40, 47)};
var _local4 = {ashiRF:-70, ashiLF:-109, ashiRM:-60, ashiLM:-120, ashiRB:-57, ashiLB:-125};
var _local5 = {ashiRF2:new flash.geom.Point(76, -119), ashiLF2:new flash.geom.Point(-89, -118), ashiRM2:new flash.geom.Point(86, -72), ashiLM2:new flash.geom.Point(-94, -70), ashiRB2:new flash.geom.Point(90, -29), ashiLB2:new flash.geom.Point(-94, -29)};
var _local3 = {ashiRF2:62, ashiLF2:112, ashiRM2:70, ashiLM2:110, ashiRB2:79, ashiLB2:103};
var _local1 = {ashiRF:new flash.geom.Point(44, -29), ashiLF:new flash.geom.Point(-57, -29), ashiRM:new flash.geom.Point(40, 8), ashiLM:new flash.geom.Point(-47, 9), ashiRB:new flash.geom.Point(39, 50), ashiLB:new flash.geom.Point(-40, 47)};
var _local7 = {ashiRF:-17, ashiLF:-163, ashiRM:-14, ashiLM:-165, ashiRB:-9, ashiLB:-174};
var _local2 = {ashiRF2:new flash.geom.Point(132, -55), ashiLF2:new flash.geom.Point(-146, -56), ashiRM2:new flash.geom.Point(127, -15), ashiLM2:new flash.geom.Point(-137, -12), ashiRB2:new flash.geom.Point(127, 34), ashiLB2:new flash.geom.Point(-132, 38)};
var _local8 = {ashiRF2:36, ashiLF2:138, ashiRM2:33, ashiLM2:142, ashiRB2:27, ashiLB2:151};
var _local17 = [_local1.ashiRF, _local6.ashiLF, _local1.ashiRM, _local6.ashiLM, _local1.ashiRB, _local6.ashiLB];
var _local10 = [_local2.ashiRF2, _local5.ashiLF2, _local2.ashiRM2, _local5.ashiLM2, _local2.ashiRB2, _local5.ashiLB2];
var _local12 = [_local7.ashiRF, _local4.ashiLF, _local7.ashiRM, _local4.ashiLM, _local7.ashiRB, _local4.ashiLB];
var _local14 = [_local8.ashiRF2, _local3.ashiLF2, _local8.ashiRM2, _local3.ashiLM2, _local8.ashiRB2, _local3.ashiLB2];
var _local11 = [_local6.ashiRF, _local1.ashiLF, _local6.ashiRM, _local1.ashiLM, _local6.ashiRB, _local1.ashiLB];
var _local13 = [_local5.ashiRF2, _local2.ashiLF2, _local5.ashiRM2, _local2.ashiLM2, _local5.ashiRB2, _local2.ashiLB2];
var _local15 = [_local4.ashiRF, _local7.ashiLF, _local4.ashiRM, _local7.ashiLM, _local4.ashiRB, _local7.ashiLB];
var _local16 = [_local3.ashiRF2, _local8.ashiLF2, _local3.ashiRM2, _local8.ashiLM2, _local3.ashiRB2, _local8.ashiLB2];
ashiInitPosList = [];
ashiInitRadList = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
if (str == "adv_") {
ashiInitPosList = _local17;
ashiInitPosListB = _local10;
ashiInitRadList = _local12;
ashiInitRadListB = _local14;
} else if (str == "ret_") {
ashiInitPosList = _local11;
ashiInitPosListB = _local13;
ashiInitRadList = _local15;
ashiInitRadListB = _local16;
}
if (str == "adv_") {
IK_rectAngMax = {ashiRF:60, ashiLF:60, ashiRM:58, ashiLM:58, ashiRB:56, ashiLB:56};
IK_rectAngMin = {ashiRF:-10, ashiLF:-10, ashiRM:-10, ashiLM:-10, ashiRB:-10, ashiLB:-10};
} else if (str == "ret_") {
IK_rectAngMax = {ashiRF:10, ashiLF:10, ashiRM:10, ashiLM:10, ashiRB:10, ashiLB:10};
IK_rectAngMin = {ashiRF:-60, ashiLF:-60, ashiRM:-60, ashiLM:-60, ashiRB:-60, ashiLB:-60};
}
}
function GetAshiPos_CrabLeg() {
var _local5 = "{ ";
var _local3 = "{ ";
var _local4 = "{ ";
var _local2 = "{ ";
var _local1 = 0;
while (_local1 < ashiList.length) {
_local5 = _local5 + ((((((ashiList[_local1]._name + " : ") + "new Point(") + (ashiList[_local1]._x ^ 0)) + " , ") + (ashiList[_local1]._y ^ 0)) + " ) , ");
_local3 = _local3 + (((ashiList[_local1]._name + " : ") + (ashiList[_local1]._rotation ^ 0)) + " , ");
_local4 = _local4 + ((((((ashiListB[_local1]._name + " : ") + "new Point(") + (ashiListB[_local1]._x ^ 0)) + " , ") + (ashiListB[_local1]._y ^ 0)) + " ) , ");
_local2 = _local2 + (((ashiListB[_local1]._name + " : ") + (ashiListB[_local1]._rotation ^ 0)) + " , ");
_local1++;
}
_local5 = _local5.substr(0, _local5.length - 2) + "}";
_local3 = _local3.substr(0, _local3.length - 2) + "}";
_local4 = _local4.substr(0, _local4.length - 2) + "}";
_local2 = _local2.substr(0, _local2.length - 2) + "}";
trace(_local5);
trace(_local3);
trace(_local4);
trace(_local2);
}
_walkEname = "EnterFrame_CrabLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 10;
bodyMinSpeed = 5;
maxSpeed = 7;
bodyMaxPower = 12;
bodyMinPower = 6;
recoverP = 8;
ashiLength = 93;
ashiTipList = [];
ashiBack = [];
ashiTipListB = [];
ashiBackB = [];
var ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiListB = [ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
var ashiInitPosList = [];
var ashiInitRadList = [];
var ashiInitPosListB = [];
var ashiInitRadListB = [];
var IK_NumList = {ashiRF2:0, ashiLF2:1, ashiRM2:0, ashiLM2:1, ashiRB2:0, ashiLB2:1};
var IK_rectAngMax = {ashiRF:60, ashiLF:60, ashiRM:58, ashiLM:58, ashiRB:56, ashiLB:56};
var IK_rectAngMin = {ashiRF:-10, ashiLF:-10, ashiRM:-10, ashiLM:-10, ashiRB:-10, ashiLB:-10};
var IK_rectAngMaxB = {ashiRF2:150, ashiLF2:0, ashiRM2:150, ashiLM2:0, ashiRB2:150, ashiLB2:0};
var IK_rectAngMinB = {ashiRF2:0, ashiLF2:-150, ashiRM2:0, ashiLM2:-150, ashiRB2:0, ashiLB2:-150};
var crabMode = "ret_";
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(0, 0), 0]];
longPartsList = [[new flash.geom.Point(0, 42), 180], [new flash.geom.Point(-43, 51), -165], [new flash.geom.Point(43, 51), 165]];
smallPartsList = [[new flash.geom.Point(52, 0), 0], [new flash.geom.Point(-52, 0), 0]];
SetAshiInitList(crabMode);
AshiInit_CrabLeg();
AshiReset_CrabLeg();
SetGraphicsLeg(6, 6);
BodyDecoration();
this.onEnterFrame = EnterFrame_CrabLeg;
Symbol 42 MovieClip [player_type1] Frame 20
nextFrame();
Symbol 42 MovieClip [player_type1] Frame 21
function EnterFrame_OctopusLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkOctopus();
AshiMove_OctopusLeg();
octo_oldAng = _rotation;
}
function AshiInit_OctopusLeg() {
var _local1 = 0;
while (_local1 < ashiList.length) {
ashiInitRadList[_local1] = ashiList[_local1]._rotation;
ashiInitRadListB[_local1] = ashiListB[_local1]._rotation;
_local1++;
}
}
function AshiReset_OctopusLeg() {
octo_radList = [];
octo_radListB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
octo_radList.push(ashiList[_local1]._rotation);
octo_radListB.push(ashiListB[_local1]._rotation);
_local1++;
}
}
function AshiMove_OctopusLeg() {
var _local6 = maxSpeed * 0.5;
var _local5 = 10;
var _local1 = 0;
if (speed > _local6) {
_local1 = 0;
while (_local1 < ashiList.length) {
var _local3 = (Math.atan2(octo_tailPointA.y - _y, octo_tailPointA.x - _x) * 180) / Math.PI;
_local3 = _local3 - _rotation;
var _local2 = _local3 - octo_radList[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radList[_local1] = octo_radList[_local1] + (_local2 * 0.2);
ashiList[_local1]._rotation = octo_radList[_local1] + (Math.cos(octo_wave + (_local1 * 0.1)) * _local5);
var _local4 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
_local4.x = _local4.x + (Math.cos((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
_local4.y = _local4.y + (Math.sin((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
ashiListB[_local1]._x = _local4.x;
ashiListB[_local1]._y = _local4.y;
_local3 = (Math.atan2(octo_tailPointB.y - _y, octo_tailPointB.x - _x) * 180) / Math.PI;
_local3 = _local3 - _rotation;
_local2 = _local3 - octo_radListB[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radListB[_local1] = octo_radListB[_local1] + (_local2 * 0.2);
ashiListB[_local1]._rotation = octo_radListB[_local1] + (Math.cos(octo_wave + (_local1 * 0.2)) * _local5);
_local1++;
}
} else {
_local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = ashiInitRadList[_local1] - octo_radList[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radList[_local1] = octo_radList[_local1] + (_local2 * 0.1);
ashiList[_local1]._rotation = octo_radList[_local1] + (Math.cos(octo_wave + (_local1 * 0.1)) * _local5);
var _local4 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
_local4.x = _local4.x + (Math.cos((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
_local4.y = _local4.y + (Math.sin((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
ashiListB[_local1]._x = _local4.x;
ashiListB[_local1]._y = _local4.y;
_local2 = ashiInitRadListB[_local1] - octo_radListB[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radListB[_local1] = octo_radListB[_local1] + (_local2 * 0.1);
ashiListB[_local1]._rotation = octo_radListB[_local1] + (Math.cos(octo_wave + (_local1 * 0.2)) * _local5);
_local1++;
}
}
octo_wave = octo_wave + 0.05;
octo_tailPointA.x = octo_tailPointA.x + ((_x - octo_tailPointA.x) * 0.2);
octo_tailPointA.y = octo_tailPointA.y + ((_y - octo_tailPointA.y) * 0.2);
octo_tailPointB.x = octo_tailPointB.x + ((octo_tailPointA.x - octo_tailPointB.x) * 0.1);
octo_tailPointB.y = octo_tailPointB.y + ((octo_tailPointA.y - octo_tailPointB.y) * 0.1);
}
function WalkOctopus() {
var _local3 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local3 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local2 = Math.atan2(_ymouse, _xmouse);
var _local4 = (_local2 * 180) / Math.PI;
if (mouseClick) {
_rotation = (_rotation + (_local4 * 0.2));
}
posX = posX + (Math.cos((_rotation * Math.PI) / 180) * speed);
posY = posY + (Math.sin((_rotation * Math.PI) / 180) * speed);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
_walkEname = "EnterFrame_OctopusLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 12;
bodyMinSpeed = 7;
maxSpeed = 9;
bodyMaxPower = 10;
bodyMinPower = 4;
recoverP = 5;
ashiLength = 93;
var octo_tailPointA = (new flash.geom.Point(_x, _y));
var octo_tailPointB = (new flash.geom.Point(_x, _y));
var ashiList = [ashiRT, ashiLT, ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiListB = [ashiRT2, ashiLT2, ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
var ashiInitRadList = [];
var ashiInitRadListB = [];
var octo_radList = [];
var octo_radListB = [];
var octo_wave = 0;
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(50, -30), 90], [new flash.geom.Point(50, 30), 90], [new flash.geom.Point(-46, 0), 90]];
longPartsList = [];
smallPartsList = [[new flash.geom.Point(3, -64), 90], [new flash.geom.Point(3, 64), 90]];
AshiInit_OctopusLeg();
AshiReset_OctopusLeg();
SetGraphicsLeg(8, 8);
BodyDecoration();
this.onEnterFrame = EnterFrame_OctopusLeg;
Symbol 42 MovieClip [player_type1] Frame 23
nextFrame();
Symbol 42 MovieClip [player_type1] Frame 24
function EnterFrame_TenLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_TenLeg();
}
function AshiInit_TenLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_TenLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_TenLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_TenLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_TenLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 18;
bodyMinSpeed = 12;
maxSpeed = 14;
bodyMaxPower = 8;
bodyMinPower = 1;
recoverP = 3;
ashiLength = 93;
ashiList = [ashiR0, ashiL0, ashiR1, ashiL1, ashiR2, ashiL2, ashiR3, ashiL3, ashiR4, ashiL4];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [];
longPartsList = [[new flash.geom.Point(29, 0), -90], [new flash.geom.Point(2, 0), -90], [new flash.geom.Point(-27, 0), -90]];
smallPartsList = [[new flash.geom.Point(1, -67), 90], [new flash.geom.Point(1, 67), 90]];
AshiInit_TenLeg();
AshiReset_TenLeg();
SetGraphicsLeg(10, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_TenLeg;
Symbol 47 MovieClip [player_type2] Frame 1
function Jump(j_ang, j_initY) {
jumpAng = j_ang;
jumpAddY = j_initY;
jumpY = 0;
this.onEnterFrame = EnterFrame_Jump;
}
function EnterFrame_Jump() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = (jumpAng * Math.PI) / 180;
var _local5 = Math.cos(_local3) * speed;
var _local4 = Math.sin(_local3) * speed;
posX = posX + _local5;
posY = posY + _local4;
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
var _local6 = MotionJump();
_x = posX;
_y = (posY + jumpY);
DispBound();
if (_jumpEname != "") {
this[_jumpEname]();
}
if (_local6) {
if (_jumpEndEname == "") {
this.onEnterFrame = this[_walkEname];
} else {
this.onEnterFrame = this[_jumpEndEname];
_jumpEndEname = "";
}
}
}
function MotionJump() {
jumpY = Math.min(jumpY + jumpAddY, 0);
jumpAddY = jumpAddY + jumpAddFrame;
DispBound();
return(jumpY == 0);
}
function DispBound() {
var _local3 = (Math.PI/4);
var _local2 = 5;
var _local5 = Math.cos(_local3) * _local2;
var _local4 = Math.sin(_local3) * _local2;
_local4 = _local4 + (-jumpY);
_local3 = Math.atan2(_local4, _local5);
_local2 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
dropShadow.distance = _local2;
dropShadow.angle = (_local3 * 180) / Math.PI;
this.filters = [dropShadow];
}
function HurdleJump(j_ang, j_initY) {
jumpAng = j_ang;
jumpAddY = j_initY;
jumpY = 0;
speed = maxSpeed;
this.onEnterFrame = EnterFrame_HurdleJump;
}
function EnterFrame_HurdleJump() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = (jumpAng * Math.PI) / 180;
var _local7 = Math.cos(_local3) * speed;
var _local6 = Math.sin(_local3) * speed;
posX = posX + _local7;
posY = posY + _local6;
var _local8 = MotionJump();
_x = posX;
_y = (posY + jumpY);
DispBound();
if ((jumpAddY > -2) && (hurdleCheck == 0)) {
var _local9 = _parent.parts_legList.length;
var _local5 = _parent.parts_speedList.length;
var _local4 = _parent.parts_powerList.length;
if ((_local5 + _local4) >= _parent.clearNormaParts) {
hurdleCheck = 1;
} else {
hurdleCheck = 2;
if (jumpAng > 0) {
jumpAng = 180 - jumpAng;
} else {
jumpAng = -180 - jumpAng;
}
if (evo != 5) {
_rotation = jumpAng;
}
_parent._parent.dispAlert("needJump");
}
}
if (_local8) {
if (hurdleCheck == 1) {
_parent.NextStage();
delete this.onEnterFrame;
} else {
if (evo == 5) {
if (crabMode == "adv_") {
crabMode = "ret_";
} else {
crabMode = "adv_";
}
SetAshiInitList(crabMode);
speed = 0;
}
this.onEnterFrame = this[_walkEname];
}
hurdleCheck = 0;
}
}
function NextStageStart() {
this.onEnterFrame = this[_walkEname];
}
function BodyUnDecoration() {
var _local1 = 0;
while (_local1 < decoMcList.length) {
decoMcList[_local1].removeMovieClip();
_local1++;
}
decoMcList = [];
}
function BodyDecoration() {
BodyUnDecoration();
var _local4 = 0;
var _local10 = Math.min(bigPartsList.length, _parent.kikaku_bigList.length);
var _local12 = Math.min(longPartsList.length, _parent.kikaku_longList.length);
var _local11 = Math.min(smallPartsList.length, _parent.kikaku_smallList.length);
var _local3 = 0;
while (_local3 < _local10) {
var _local6 = "deco_b_" + _parent.kikaku_bigList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:bigPartsList[_local3][0].x, _y:bigPartsList[_local3][0].y, _rotation:bigPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local12) {
var _local6 = "deco_l_" + _parent.kikaku_longList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:longPartsList[_local3][0].x, _y:longPartsList[_local3][0].y, _rotation:longPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local11) {
var _local6 = "deco_s_" + _parent.kikaku_smallList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:smallPartsList[_local3][0].x, _y:smallPartsList[_local3][0].y, _rotation:smallPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
}
var dropShadow = (new flash.filters.DropShadowFilter(5, 45, 0, 1, 5, 5, 0.5));
this.filters = [dropShadow];
var evo = 0;
var evoType = true;
var bigPartsList = [];
var longPartsList = [];
var smallPartsList = [];
var decoMcList = [];
var _mode = "walk";
var _walkEname = "";
var _jumpEname = "";
var _jumpEndEname = "";
var posX = _x;
var posY = _y;
var jumpAng = 0;
var jumpAddY = 0;
var jumpY = 0;
var jumpAddInitY = -10;
var jumpAddFrame = 2;
var hurdleCheck = 0;
this.onKeyDown = function () {
_parent.MapExpansion();
evo = 5;
maxSpeed = 12;
gotoAndStop ("crab");
};
function MouseDown() {
mouseClick = true;
}
function MouseUp() {
mouseClick = false;
}
function WalkBasic() {
var _local3 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local3 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local2 = Math.atan2(_ymouse, _xmouse);
var _local4 = (_local2 * 180) / Math.PI;
if (mouseClick) {
_rotation = (_rotation + (_local4 * 0.1));
}
posX = posX + (Math.cos((_rotation * Math.PI) / 180) * speed);
posY = posY + (Math.sin((_rotation * Math.PI) / 180) * speed);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
function CheckJumpGoal() {
if (posX < _parent.mapSize.x) {
return(undefined);
}
if (Math.abs(_rotation) > 45) {
if (((evo == 5) && (Math.abs(_rotation) > 135)) && (crabMode == "ret_")) {
HurdleJump(_rotation + 180, jumpAddInitY);
}
return(undefined);
}
HurdleJump(_rotation, jumpAddInitY);
}
function Damage(ang) {
speed = maxSpeed;
Jump(ang, jumpAddInitY);
_jumpEndEname = "EnterFrame_damage";
_parent._parent.dispRepair();
repair = 0;
_parent.Notice(60, 120);
_parent.Effect("effect_damage", _x, _y);
}
function EnterFrame_damage() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = 200;
repair = repair + recoverP;
if (repair < _local3) {
_parent._parent.repairDisp.disp(repair, _local3);
return(undefined);
}
_parent._parent.repairDisp.Complete();
this.onEnterFrame = this[_walkEname];
}
function GetCircleCross(x0, y0, r0, x1, y1, r1) {
var _local10 = false;
var _local7 = new flash.geom.Point(x0, y0);
var _local14 = new flash.geom.Point(x1, y1);
var _local2 = _local14.subtract(_local7);
var _local3 = _local2.length;
if (_local3 == (r0 + r1)) {
_local10 = true;
} else if ((_local3 < (r0 + r1)) && (_local3 > Math.abs(r0 - r1))) {
} else {
return([]);
}
_local2.normalize(r0);
_local2.offset(_local7.x, _local7.y);
var _local12 = (0.5 * (((r0 * r0) - (r1 * r1)) + (_local3 * _local3))) / _local3;
var _local4 = Math.acos(_local12 / r0);
var _local5 = Math.atan2(_local2.y - y0, _local2.x - x0);
var _local11 = new flash.geom.Point(x0 + (r0 * Math.cos(_local5 + _local4)), y0 + (r0 * Math.sin(_local5 + _local4)));
var _local13 = new flash.geom.Point(x0 + (r0 * Math.cos(_local5 - _local4)), y0 + (r0 * Math.sin(_local5 - _local4)));
if (_local10) {
return([_local11]);
}
return([_local11, _local13, _local2]);
}
function GetAngleInterval(angA, angB) {
var _local3 = angA;
var _local2 = angB;
_local3 = (_local3 + 360) % 360;
_local2 = (_local2 + 360) % 360;
var _local1 = _local2 - _local3;
if (_local1 >= 0) {
if (_local1 > 180) {
_local1 = _local1 - 360;
}
} else if (_local1 < -180) {
_local1 = _local1 + 360;
}
return(_local1);
}
function evolution() {
var _local4 = _parent.parts_legList.length;
var _local3 = _parent.parts_powerList.length;
var _local2 = _parent.parts_speedList.length;
var _local5 = evo;
if ((evo == 0) && (_local4 >= 4)) {
evo = 1;
}
if (((evo == 1) && (_local4 >= 6)) && ((_local3 + _local2) >= 7)) {
if (_local3 >= _local2) {
evoType = true;
} else {
evoType = false;
}
evo = 2;
}
if ((evo == 2) && (_local4 >= 14)) {
if (_parent.gameStage == 0) {
if (_local5 == 2) {
_parent._parent.dispAlert("evolutionLock");
return(undefined);
}
} else if (evoType) {
if (_local3 >= _local2) {
evo = 5;
} else {
evo = 6;
}
} else if (_local3 >= _local2) {
evo = 4;
} else {
evo = 3;
}
}
if (evo == _local5) {
return(undefined);
}
var _local6 = ["no", "four", "six", "ten", "twin", "crab", "octo"];
gotoAndStop(_local6[evo]);
if (evo == 1) {
_parent.MapExpansion();
}
_parent.Notice(60, 120);
_parent._parent.evoluteDisp.disp(evo, evoType);
_parent._parent.SE("se_evo");
_parent.Effect("effect_evo", _x, _y);
}
function SetGraphicsLeg(A, B) {
var _local2 = 0;
_local2 = 0;
while (_local2 < A) {
ashiList[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < B) {
ashiListB[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
}
function SumMaxSpeed(p_type) {
if (p_type == "speed") {
maxSpeed = maxSpeed + 1;
recoverP = recoverP - 0.5;
} else if (p_type == "power") {
maxSpeed = maxSpeed - 0.5;
recoverP = recoverP + 1;
}
maxSpeed = Math.min(Math.max(maxSpeed, bodyMinSpeed), bodyMaxSpeed);
recoverP = Math.min(Math.max(recoverP, bodyMinPower), bodyMaxPower);
if (evo == 0) {
speed = maxSpeed;
}
}
var mouseClick = false;
var repair = 0;
var speed = 0;
var addSpeed = 1;
var cutSpeed = 2;
var initSpeed = 2;
var maxSpeed = 10;
var recoverP = 0;
var bodyMaxSpeed = 0;
var bodyMaxPower = 0;
var bodyMinSpeed = 0;
var bodyMinPower = 0;
var ashiLength = 93;
var ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiInitPosList = [];
var ashiInitRadList = [];
var ashiTipList = [];
var ashiBack = [];
var ashiListB = [];
var ashiInitPosListB = [];
var ashiInitRadListB = [];
var ashiTipListB = [];
var ashiBackB = [];
this.onMouseDown = MouseDown;
this.onMouseUp = MouseUp;
MouseUp();
gotoAndStop ("no");
Symbol 47 MovieClip [player_type2] Frame 5
function EnterFrame_NotLeg() {
if (_parent.pausing) {
return(undefined);
}
_rotation = (_rotation + Math.min(Math.max(landRolling, -5), 5));
landRolling = landRolling * 0.8;
if (!mouseClick) {
return(undefined);
}
var _local3 = Math.atan2(_parent._ymouse - _y, _parent._xmouse - _x);
var _local2 = (_local3 * 180) / Math.PI;
_local2 = _local2 + (Math.floor(Math.random() * 21) - 10);
landRolling = Math.min(Math.max(_local2, -15), 15);
jumpOldAng = _local2;
Jump(_local2, -6);
}
function Jump_NotLeg() {
_rotation = (_rotation + Math.min(Math.max(jumpOldAng * 0.5, -5), 5));
}
function Jump_NotLeg_Init() {
if (jumpY < 0) {
return(undefined);
}
_jumpEname = "Jump_NotLeg";
speed = maxSpeed;
}
_walkEname = "EnterFrame_NotLeg";
_jumpEname = "Jump_NotLeg_Init";
bodyMaxSpeed = 8;
bodyMinSpeed = 6;
maxSpeed = 7;
bodyMaxPower = 2;
bodyMinPower = 1;
recoverP = 1;
speed = 0;
var jumpOldAng = 0;
var landRolling = 0;
bigPartsList = [[new flash.geom.Point(-43, 0), 90]];
longPartsList = [[new flash.geom.Point(-97, 0), -90]];
smallPartsList = [[new flash.geom.Point(17, 0), 90]];
jumpAddY = 2;
jumpY = -500;
this.onEnterFrame = EnterFrame_Jump;
Symbol 47 MovieClip [player_type2] Frame 8
nextFrame();
Symbol 47 MovieClip [player_type2] Frame 9
function EnterFrame_FourLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_FourLeg();
}
function AshiInit_FourLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_FourLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_FourLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_FourLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_FourLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 10;
bodyMinSpeed = 7;
maxSpeed = 8;
bodyMaxPower = 4;
bodyMinPower = 1;
recoverP = 2;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRB, ashiLB];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(25, 0), 0]];
longPartsList = [[new flash.geom.Point(-30, 0), -90]];
smallPartsList = [[new flash.geom.Point(-65, -30), 60], [new flash.geom.Point(-65, 30), 120]];
AshiInit_FourLeg();
AshiReset_FourLeg();
SetGraphicsLeg(4, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_FourLeg;
Symbol 47 MovieClip [player_type2] Frame 11
nextFrame();
Symbol 47 MovieClip [player_type2] Frame 12
function EnterFrame_SixLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_SixLeg();
}
function AshiInit_SixLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_SixLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_SixLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_SixLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_SixLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 14;
bodyMinSpeed = 8;
maxSpeed = 10;
bodyMaxPower = 8;
bodyMinPower = 2;
recoverP = 4;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-43, 0), 90]];
longPartsList = [[new flash.geom.Point(-96, 0), -90]];
smallPartsList = [[new flash.geom.Point(62, 0), 90]];
if (evoType) {
longPartsList.push([new flash.geom.Point(18, 0), -90]);
} else {
smallPartsList.push([new flash.geom.Point(-5, 31), 135]);
smallPartsList.push([new flash.geom.Point(-5, -31), 45]);
}
AshiInit_SixLeg();
AshiReset_SixLeg();
SetGraphicsLeg(6, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_SixLeg;
Symbol 47 MovieClip [player_type2] Frame 14
nextFrame();
Symbol 47 MovieClip [player_type2] Frame 15
function EnterFrame_SixTwinLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_SixTwinLeg();
}
function AshiInit_SixTwinLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
ashiBackB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local2 = new flash.geom.Point(ashiListB[_local1]._x, ashiListB[_local1]._y);
ashiInitPosListB.push(_local2);
ashiInitRadListB.push(ashiListB[_local1]._rotation);
ashiBackB.push(false);
_local1++;
}
}
function AshiReset_SixTwinLeg(p_mc) {
if ((p_mc._name.substr(-1) == "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiListB.length ; i++) {
if (p_mc == undefined) {
} else if (ashiListB[i] != p_mc) {
continue;
}
var _local3 = ashiListB[i];
_local3._x = ashiInitPosListB[i].x;
_local3._y = ashiInitPosListB[i].y;
_local3._rotation = ashiInitRadListB[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipListB[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipListB[i]);
_parent.globalToLocal(ashiTipListB[i]);
}
}
if ((p_mc.name.substr(-1) != "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiList.length ; i++) {
if (p_mc == undefined) {
} else if (ashiList[i] != p_mc) {
continue;
}
var _local3 = ashiList[i];
_local3._x = ashiInitPosList[i].x;
_local3._y = ashiInitPosList[i].y;
_local3._rotation = ashiInitRadList[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipList[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[i]);
_parent.globalToLocal(ashiTipList[i]);
}
}
}
function AshiMove_SixTwinLeg() {
var _local20 = ashiLength;
var _local3 = 0;
for ( ; _local3 < ashiListB.length ; _local3++) {
var _local5 = ashiList[_local3];
var _local4 = ashiListB[_local3];
if (ashiBackB[_local3]) {
var _local10 = 0.5;
var _local9 = ashiInitRadList[_local3] - _local5._rotation;
if (Math.abs(_local9) > 180) {
if (_local9 > 0) {
_local9 = _local9 - 360;
} else {
_local9 = _local9 + 360;
}
}
_local5._x = _local5._x + ((ashiInitPosList[_local3].x - _local5._x) * _local10);
_local5._rotation = _local5._rotation + (_local9 * _local10);
var _local14 = new flash.geom.Point(_local5._x + (Math.cos((_local5._rotation * Math.PI) / 180) * _local20), _local5._y + (Math.sin((_local5._rotation * Math.PI) / 180) * _local20));
_local4._x = _local14.x;
_local4._y = _local14.y;
var _local11 = _local4._rotation + ((ashiInitRadListB[_local3] - _local4._rotation) * _local10);
var _local17 = GetAngleInterval(_local5._rotation, _local11);
if ((_local17 > IK_rectAngMaxB[_local4._name]) || (_local17 < IK_rectAngMinB[_local4._name])) {
if ((ashiInitRadListB[_local3] - _local4._rotation) > 0) {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) - 360) * _local10);
} else {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) + 360) * _local10);
}
}
_local4._rotation = _local11;
if (Math.abs(ashiInitRadList[_local3] - _local5._rotation) < 3) {
ashiBackB[_local3] = false;
AshiReset_SixTwinLeg(ashiList[_local3]);
AshiReset_SixTwinLeg(ashiListB[_local3]);
}
} else {
var _local6 = {x:ashiTipListB[_local3].x, y:ashiTipListB[_local3].y};
_parent.localToGlobal(_local6);
this.globalToLocal(_local6);
var _local18 = Math.atan2(_local6.y - ashiInitPosList[_local3].y, _local6.x - ashiInitPosList[_local3].x);
var _local21 = (_local18 * 180) / Math.PI;
var _local19 = flash.geom.Point.distance(new flash.geom.Point(_local6.x, _local6.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
if (_local19 > (ashiLength * 2)) {
ashiBackB[_local3] = true;
} else {
var _local8 = GetCircleCross(_local6.x, _local6.y, ashiLength, ashiInitPosList[_local3].x, ashiInitPosList[_local3].y, ashiLength);
var _local7 = IK_NumList[ashiListB[_local3]._name];
ashiListB[_local3]._x = _local8[_local7].x;
ashiListB[_local3]._y = _local8[_local7].y;
var _local12 = (Math.atan2(_local6.y - _local8[_local7].y, _local6.x - _local8[_local7].x) * 180) / Math.PI;
ashiListB[_local3]._rotation = _local12;
_local12 = (Math.atan2(_local8[_local7].y - ashiInitPosList[_local3].y, _local8[_local7].x - ashiInitPosList[_local3].x) * 180) / Math.PI;
ashiList[_local3]._rotation = _local12;
var _local13 = false;
var _local16 = GetAngleInterval(ashiList[_local3]._rotation, ashiListB[_local3]._rotation);
if (_local16 > IK_rectAngMaxB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMaxB[ashiListB[_local3]._name];
_local13 = true;
} else if (_local16 < IK_rectAngMinB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMinB[ashiListB[_local3]._name];
_local13 = true;
}
if (_local13) {
var _local15 = (ashiListB[_local3]._rotation * Math.PI) / 180;
ashiTipListB[_local3] = {x:ashiListB[_local3]._x + (Math.cos(_local15) * ashiLength), y:ashiListB[_local3]._y + (Math.sin(_local15) * ashiLength)};
this.localToGlobal(ashiTipListB[_local3]);
_parent.globalToLocal(ashiTipListB[_local3]);
}
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) > IK_rectAngMax[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
continue;
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
}
}
}
_walkEname = "EnterFrame_SixTwinLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 16;
bodyMinSpeed = 9;
maxSpeed = 11;
bodyMaxPower = 10;
bodyMinPower = 2;
recoverP = 4;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
ashiListB = [ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
ashiTipListB = [];
ashiBackB = [];
var IK_NumList = {ashiRF2:1, ashiLF2:0, ashiRM2:0, ashiLM2:1, ashiRB2:0, ashiLB2:1};
var IK_rectAngMax = {ashiRF:10, ashiLF:90, ashiRM:45, ashiLM:90, ashiRB:60, ashiLB:110};
var IK_rectAngMin = {ashiRF:-90, ashiLF:-10, ashiRM:-90, ashiLM:-45, ashiRB:-110, ashiLB:-60};
var IK_rectAngMaxB = {ashiRF2:0, ashiLF2:150, ashiRM2:170, ashiLM2:0, ashiRB2:170, ashiLB2:0};
var IK_rectAngMinB = {ashiRF2:-150, ashiLF2:0, ashiRM2:0, ashiLM2:-170, ashiRB2:0, ashiLB2:-170};
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-25, 0), 90]];
longPartsList = [[new flash.geom.Point(-78, 0), -90], [new flash.geom.Point(-140, -32), 45], [new flash.geom.Point(-140, 32), -45]];
smallPartsList = [[new flash.geom.Point(39, -25), 30], [new flash.geom.Point(39, 25), 150]];
AshiInit_SixTwinLeg();
AshiReset_SixTwinLeg();
SetGraphicsLeg(6, 6);
BodyDecoration();
this.onEnterFrame = EnterFrame_SixTwinLeg;
Symbol 47 MovieClip [player_type2] Frame 17
nextFrame();
Symbol 47 MovieClip [player_type2] Frame 18
function EnterFrame_CrabLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkCrab();
if (speed == 0) {
return(undefined);
}
AshiMove_CrabLeg();
}
function AshiInit_CrabLeg() {
ashiBack = [];
ashiBackB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
ashiBack.push(false);
ashiBackB.push(false);
_local1++;
}
}
function AshiReset_CrabLeg(p_mc) {
if ((p_mc._name.substr(-1) == "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiListB.length ; i++) {
if (p_mc == undefined) {
} else if (ashiListB[i] != p_mc) {
continue;
}
var _local3 = ashiListB[i];
_local3._x = ashiInitPosListB[i].x;
_local3._y = ashiInitPosListB[i].y;
_local3._rotation = ashiInitRadListB[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipListB[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipListB[i]);
_parent.globalToLocal(ashiTipListB[i]);
}
}
if ((p_mc.name.substr(-1) != "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiList.length ; i++) {
if (p_mc == undefined) {
} else if (ashiList[i] != p_mc) {
continue;
}
var _local3 = ashiList[i];
_local3._x = ashiInitPosList[i].x;
_local3._y = ashiInitPosList[i].y;
_local3._rotation = ashiInitRadList[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipList[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[i]);
_parent.globalToLocal(ashiTipList[i]);
}
}
}
function AshiMove_CrabLeg() {
var _local20 = ashiLength;
var _local3 = 0;
for ( ; _local3 < ashiListB.length ; _local3++) {
var _local5 = ashiList[_local3];
var _local4 = ashiListB[_local3];
if (ashiBackB[_local3]) {
var _local10 = 0.5;
var _local9 = ashiInitRadList[_local3] - _local5._rotation;
if (Math.abs(_local9) > 180) {
if (_local9 > 0) {
_local9 = _local9 - 360;
} else {
_local9 = _local9 + 360;
}
}
_local5._x = _local5._x + ((ashiInitPosList[_local3].x - _local5._x) * _local10);
_local5._rotation = _local5._rotation + (_local9 * _local10);
var _local14 = new flash.geom.Point(_local5._x + (Math.cos((_local5._rotation * Math.PI) / 180) * _local20), _local5._y + (Math.sin((_local5._rotation * Math.PI) / 180) * _local20));
_local4._x = _local14.x;
_local4._y = _local14.y;
var _local11 = _local4._rotation + ((ashiInitRadListB[_local3] - _local4._rotation) * _local10);
var _local17 = GetAngleInterval(_local5._rotation, _local11);
if ((_local17 > IK_rectAngMaxB[_local4._name]) || (_local17 < IK_rectAngMinB[_local4._name])) {
if ((ashiInitRadListB[_local3] - _local4._rotation) > 0) {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) - 360) * _local10);
} else {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) + 360) * _local10);
}
}
_local4._rotation = _local11;
if (Math.abs(ashiInitRadList[_local3] - _local5._rotation) < 3) {
ashiBackB[_local3] = false;
AshiReset_CrabLeg(ashiList[_local3]);
AshiReset_CrabLeg(ashiListB[_local3]);
}
} else {
var _local6 = {x:ashiTipListB[_local3].x, y:ashiTipListB[_local3].y};
_parent.localToGlobal(_local6);
this.globalToLocal(_local6);
var _local18 = Math.atan2(_local6.y - ashiInitPosList[_local3].y, _local6.x - ashiInitPosList[_local3].x);
var _local21 = (_local18 * 180) / Math.PI;
var _local19 = flash.geom.Point.distance(new flash.geom.Point(_local6.x, _local6.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
if (_local19 > (ashiLength * 2)) {
ashiBackB[_local3] = true;
} else {
var _local8 = GetCircleCross(_local6.x, _local6.y, ashiLength, ashiInitPosList[_local3].x, ashiInitPosList[_local3].y, ashiLength);
var _local7 = IK_NumList[ashiListB[_local3]._name];
ashiListB[_local3]._x = _local8[_local7].x;
ashiListB[_local3]._y = _local8[_local7].y;
var _local12 = (Math.atan2(_local6.y - _local8[_local7].y, _local6.x - _local8[_local7].x) * 180) / Math.PI;
ashiListB[_local3]._rotation = _local12;
_local12 = (Math.atan2(_local8[_local7].y - ashiInitPosList[_local3].y, _local8[_local7].x - ashiInitPosList[_local3].x) * 180) / Math.PI;
ashiList[_local3]._rotation = _local12;
var _local13 = false;
var _local16 = GetAngleInterval(ashiList[_local3]._rotation, ashiListB[_local3]._rotation);
if (_local16 > IK_rectAngMaxB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMaxB[ashiListB[_local3]._name];
_local13 = true;
} else if (_local16 < IK_rectAngMinB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMinB[ashiListB[_local3]._name];
_local13 = true;
}
if (_local13) {
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) > IK_rectAngMax[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
continue;
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
}
}
}
function WalkCrab() {
var _local3 = 1;
var _local5 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local5 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local4 = Math.atan2(_ymouse, _xmouse);
var _local2 = (_local4 * 180) / Math.PI;
if ((crabMode == "ret_") && (Math.abs(_local2) < 90)) {
crabMode = "adv_";
SetAshiInitList(crabMode);
} else if ((crabMode == "adv_") && (Math.abs(_local2) > 90)) {
crabMode = "ret_";
SetAshiInitList(crabMode);
}
if (crabMode == "ret_") {
if (_local2 > 0) {
_local2 = _local2 - 180;
} else {
_local2 = _local2 + 180;
}
_local3 = -1;
}
if (mouseClick) {
_rotation = (_rotation + (_local2 * 0.1));
}
posX = posX + ((Math.cos((_rotation * Math.PI) / 180) * speed) * _local3);
posY = posY + ((Math.sin((_rotation * Math.PI) / 180) * speed) * _local3);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
function SetAshiInitList(str) {
var _local6 = {ashiRF:new flash.geom.Point(17, -24), ashiLF:new flash.geom.Point(-25, -24), ashiRM:new flash.geom.Point(13, 39), ashiLM:new flash.geom.Point(-15, 40), ashiRB:new flash.geom.Point(12, 108), ashiLB:new flash.geom.Point(-8, 105)};
var _local4 = {ashiRF:-70, ashiLF:-109, ashiRM:-60, ashiLM:-120, ashiRB:-57, ashiLB:-125};
var _local5 = {ashiRF2:new flash.geom.Point(49, -114), ashiLF2:new flash.geom.Point(-57, -113), ashiRM2:new flash.geom.Point(59, -41), ashiLM2:new flash.geom.Point(-62, -39), ashiRB2:new flash.geom.Point(63, 28), ashiLB2:new flash.geom.Point(-62, 28)};
var _local3 = {ashiRF2:62, ashiLF2:112, ashiRM2:70, ashiLM2:110, ashiRB2:79, ashiLB2:103};
var _local1 = {ashiRF:new flash.geom.Point(17, -24), ashiLF:new flash.geom.Point(-25, -24), ashiRM:new flash.geom.Point(13, 39), ashiLM:new flash.geom.Point(-15, 40), ashiRB:new flash.geom.Point(12, 108), ashiLB:new flash.geom.Point(-8, 105)};
var _local7 = {ashiRF:-17, ashiLF:-163, ashiRM:-14, ashiLM:-165, ashiRB:-9, ashiLB:-174};
var _local2 = {ashiRF2:new flash.geom.Point(105, -50), ashiLF2:new flash.geom.Point(-114, -51), ashiRM2:new flash.geom.Point(100, 15), ashiLM2:new flash.geom.Point(-105, 18), ashiRB2:new flash.geom.Point(100, 92), ashiLB2:new flash.geom.Point(-100, 96)};
var _local8 = {ashiRF2:36, ashiLF2:138, ashiRM2:33, ashiLM2:142, ashiRB2:27, ashiLB2:151};
var _local17 = [_local1.ashiRF, _local6.ashiLF, _local1.ashiRM, _local6.ashiLM, _local1.ashiRB, _local6.ashiLB];
var _local10 = [_local2.ashiRF2, _local5.ashiLF2, _local2.ashiRM2, _local5.ashiLM2, _local2.ashiRB2, _local5.ashiLB2];
var _local12 = [_local7.ashiRF, _local4.ashiLF, _local7.ashiRM, _local4.ashiLM, _local7.ashiRB, _local4.ashiLB];
var _local14 = [_local8.ashiRF2, _local3.ashiLF2, _local8.ashiRM2, _local3.ashiLM2, _local8.ashiRB2, _local3.ashiLB2];
var _local11 = [_local6.ashiRF, _local1.ashiLF, _local6.ashiRM, _local1.ashiLM, _local6.ashiRB, _local1.ashiLB];
var _local13 = [_local5.ashiRF2, _local2.ashiLF2, _local5.ashiRM2, _local2.ashiLM2, _local5.ashiRB2, _local2.ashiLB2];
var _local15 = [_local4.ashiRF, _local7.ashiLF, _local4.ashiRM, _local7.ashiLM, _local4.ashiRB, _local7.ashiLB];
var _local16 = [_local3.ashiRF2, _local8.ashiLF2, _local3.ashiRM2, _local8.ashiLM2, _local3.ashiRB2, _local8.ashiLB2];
ashiInitPosList = [];
ashiInitRadList = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
if (str == "adv_") {
ashiInitPosList = _local17;
ashiInitPosListB = _local10;
ashiInitRadList = _local12;
ashiInitRadListB = _local14;
} else if (str == "ret_") {
ashiInitPosList = _local11;
ashiInitPosListB = _local13;
ashiInitRadList = _local15;
ashiInitRadListB = _local16;
}
if (str == "adv_") {
IK_rectAngMax = {ashiRF:60, ashiLF:60, ashiRM:58, ashiLM:58, ashiRB:56, ashiLB:56};
IK_rectAngMin = {ashiRF:-10, ashiLF:-10, ashiRM:-10, ashiLM:-10, ashiRB:-10, ashiLB:-10};
} else if (str == "ret_") {
IK_rectAngMax = {ashiRF:10, ashiLF:10, ashiRM:10, ashiLM:10, ashiRB:10, ashiLB:10};
IK_rectAngMin = {ashiRF:-60, ashiLF:-60, ashiRM:-60, ashiLM:-60, ashiRB:-60, ashiLB:-60};
}
}
function GetAshiPos_CrabLeg() {
var _local5 = "{ ";
var _local3 = "{ ";
var _local4 = "{ ";
var _local2 = "{ ";
var _local1 = 0;
while (_local1 < ashiList.length) {
_local5 = _local5 + ((((((ashiList[_local1]._name + " : ") + "new Point(") + (ashiList[_local1]._x ^ 0)) + " , ") + (ashiList[_local1]._y ^ 0)) + " ) , ");
_local3 = _local3 + (((ashiList[_local1]._name + " : ") + (ashiList[_local1]._rotation ^ 0)) + " , ");
_local4 = _local4 + ((((((ashiListB[_local1]._name + " : ") + "new Point(") + (ashiListB[_local1]._x ^ 0)) + " , ") + (ashiListB[_local1]._y ^ 0)) + " ) , ");
_local2 = _local2 + (((ashiListB[_local1]._name + " : ") + (ashiListB[_local1]._rotation ^ 0)) + " , ");
_local1++;
}
_local5 = _local5.substr(0, _local5.length - 2) + "}";
_local3 = _local3.substr(0, _local3.length - 2) + "}";
_local4 = _local4.substr(0, _local4.length - 2) + "}";
_local2 = _local2.substr(0, _local2.length - 2) + "}";
trace(_local5);
trace(_local3);
trace(_local4);
trace(_local2);
}
_walkEname = "EnterFrame_CrabLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 10;
bodyMinSpeed = 5;
maxSpeed = 7;
bodyMaxPower = 12;
bodyMinPower = 6;
recoverP = 8;
ashiLength = 93;
ashiTipList = [];
ashiBack = [];
ashiTipListB = [];
ashiBackB = [];
var ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiListB = [ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
var ashiInitPosList = [];
var ashiInitRadList = [];
var ashiInitPosListB = [];
var ashiInitRadListB = [];
var IK_NumList = {ashiRF2:0, ashiLF2:1, ashiRM2:0, ashiLM2:1, ashiRB2:0, ashiLB2:1};
var IK_rectAngMax = {ashiRF:60, ashiLF:60, ashiRM:58, ashiLM:58, ashiRB:56, ashiLB:56};
var IK_rectAngMin = {ashiRF:-10, ashiLF:-10, ashiRM:-10, ashiLM:-10, ashiRB:-10, ashiLB:-10};
var IK_rectAngMaxB = {ashiRF2:150, ashiLF2:0, ashiRM2:150, ashiLM2:0, ashiRB2:150, ashiLB2:0};
var IK_rectAngMinB = {ashiRF2:0, ashiLF2:-150, ashiRM2:0, ashiLM2:-150, ashiRB2:0, ashiLB2:-150};
var crabMode = "ret_";
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(0, -10), 0]];
longPartsList = [[new flash.geom.Point(0, 42), 180], [new flash.geom.Point(-43, 51), -165], [new flash.geom.Point(43, 51), 165]];
smallPartsList = [[new flash.geom.Point(24, 89), 0], [new flash.geom.Point(-24, 89), 0]];
SetAshiInitList(crabMode);
AshiInit_CrabLeg();
AshiReset_CrabLeg();
SetGraphicsLeg(6, 6);
BodyDecoration();
this.onEnterFrame = EnterFrame_CrabLeg;
Symbol 47 MovieClip [player_type2] Frame 20
nextFrame();
Symbol 47 MovieClip [player_type2] Frame 21
function EnterFrame_OctopusLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkOctopus();
AshiMove_OctopusLeg();
octo_oldAng = _rotation;
}
function AshiInit_OctopusLeg() {
var _local1 = 0;
while (_local1 < ashiList.length) {
ashiInitRadList[_local1] = ashiList[_local1]._rotation;
ashiInitRadListB[_local1] = ashiListB[_local1]._rotation;
_local1++;
}
}
function AshiReset_OctopusLeg() {
octo_radList = [];
octo_radListB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
octo_radList.push(ashiList[_local1]._rotation);
octo_radListB.push(ashiListB[_local1]._rotation);
_local1++;
}
}
function AshiMove_OctopusLeg() {
var _local6 = maxSpeed * 0.5;
var _local5 = 10;
var _local1 = 0;
if (speed > _local6) {
_local1 = 0;
while (_local1 < ashiList.length) {
var _local3 = (Math.atan2(octo_tailPointA.y - _y, octo_tailPointA.x - _x) * 180) / Math.PI;
_local3 = _local3 - _rotation;
var _local2 = _local3 - octo_radList[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radList[_local1] = octo_radList[_local1] + (_local2 * 0.2);
ashiList[_local1]._rotation = octo_radList[_local1] + (Math.cos(octo_wave + (_local1 * 0.1)) * _local5);
var _local4 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
_local4.x = _local4.x + (Math.cos((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
_local4.y = _local4.y + (Math.sin((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
ashiListB[_local1]._x = _local4.x;
ashiListB[_local1]._y = _local4.y;
_local3 = (Math.atan2(octo_tailPointB.y - _y, octo_tailPointB.x - _x) * 180) / Math.PI;
_local3 = _local3 - _rotation;
_local2 = _local3 - octo_radListB[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radListB[_local1] = octo_radListB[_local1] + (_local2 * 0.2);
ashiListB[_local1]._rotation = octo_radListB[_local1] + (Math.cos(octo_wave + (_local1 * 0.2)) * _local5);
_local1++;
}
} else {
_local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = ashiInitRadList[_local1] - octo_radList[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radList[_local1] = octo_radList[_local1] + (_local2 * 0.1);
ashiList[_local1]._rotation = octo_radList[_local1] + (Math.cos(octo_wave + (_local1 * 0.1)) * _local5);
var _local4 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
_local4.x = _local4.x + (Math.cos((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
_local4.y = _local4.y + (Math.sin((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
ashiListB[_local1]._x = _local4.x;
ashiListB[_local1]._y = _local4.y;
_local2 = ashiInitRadListB[_local1] - octo_radListB[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radListB[_local1] = octo_radListB[_local1] + (_local2 * 0.1);
ashiListB[_local1]._rotation = octo_radListB[_local1] + (Math.cos(octo_wave + (_local1 * 0.2)) * _local5);
_local1++;
}
}
octo_wave = octo_wave + 0.05;
octo_tailPointA.x = octo_tailPointA.x + ((_x - octo_tailPointA.x) * 0.2);
octo_tailPointA.y = octo_tailPointA.y + ((_y - octo_tailPointA.y) * 0.2);
octo_tailPointB.x = octo_tailPointB.x + ((octo_tailPointA.x - octo_tailPointB.x) * 0.1);
octo_tailPointB.y = octo_tailPointB.y + ((octo_tailPointA.y - octo_tailPointB.y) * 0.1);
}
function WalkOctopus() {
var _local3 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local3 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local2 = Math.atan2(_ymouse, _xmouse);
var _local4 = (_local2 * 180) / Math.PI;
if (mouseClick) {
_rotation = (_rotation + (_local4 * 0.2));
}
posX = posX + (Math.cos((_rotation * Math.PI) / 180) * speed);
posY = posY + (Math.sin((_rotation * Math.PI) / 180) * speed);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
_walkEname = "EnterFrame_OctopusLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 12;
bodyMinSpeed = 7;
maxSpeed = 9;
bodyMaxPower = 10;
bodyMinPower = 4;
recoverP = 5;
ashiLength = 93;
var octo_tailPointA = (new flash.geom.Point(_x, _y));
var octo_tailPointB = (new flash.geom.Point(_x, _y));
var ashiList = [ashiRT, ashiLT, ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiListB = [ashiRT2, ashiLT2, ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
var ashiInitRadList = [];
var ashiInitRadListB = [];
var octo_radList = [];
var octo_radListB = [];
var octo_wave = 0;
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(98, 0), 90], [new flash.geom.Point(-62, 0), 90]];
longPartsList = [];
smallPartsList = [[new flash.geom.Point(25, -22), 90], [new flash.geom.Point(25, 22), 90]];
AshiInit_OctopusLeg();
AshiReset_OctopusLeg();
SetGraphicsLeg(8, 8);
BodyDecoration();
this.onEnterFrame = EnterFrame_OctopusLeg;
Symbol 47 MovieClip [player_type2] Frame 23
nextFrame();
Symbol 47 MovieClip [player_type2] Frame 24
function EnterFrame_TenLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_TenLeg();
}
function AshiInit_TenLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_TenLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_TenLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_TenLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_TenLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 18;
bodyMinSpeed = 12;
maxSpeed = 14;
bodyMaxPower = 8;
bodyMinPower = 1;
recoverP = 3;
ashiLength = 93;
ashiList = [ashiR0, ashiL0, ashiR1, ashiL1, ashiR2, ashiL2, ashiR3, ashiL3, ashiR4, ashiL4];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [];
longPartsList = [[new flash.geom.Point(54, 0), -90], [new flash.geom.Point(27, 0), -90], [new flash.geom.Point(-33, 0), -90], [new flash.geom.Point(-61, 0), -90], [new flash.geom.Point(-121, 0), -90]];
smallPartsList = [[new flash.geom.Point(88, 0), 90], [new flash.geom.Point(-6, 0), 90], [new flash.geom.Point(-94, 0), 90]];
AshiInit_TenLeg();
AshiReset_TenLeg();
SetGraphicsLeg(10, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_TenLeg;
Symbol 52 MovieClip [player_type3] Frame 1
function Jump(j_ang, j_initY) {
jumpAng = j_ang;
jumpAddY = j_initY;
jumpY = 0;
this.onEnterFrame = EnterFrame_Jump;
}
function EnterFrame_Jump() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = (jumpAng * Math.PI) / 180;
var _local5 = Math.cos(_local3) * speed;
var _local4 = Math.sin(_local3) * speed;
posX = posX + _local5;
posY = posY + _local4;
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
var _local6 = MotionJump();
_x = posX;
_y = (posY + jumpY);
DispBound();
if (_jumpEname != "") {
this[_jumpEname]();
}
if (_local6) {
if (_jumpEndEname == "") {
this.onEnterFrame = this[_walkEname];
} else {
this.onEnterFrame = this[_jumpEndEname];
_jumpEndEname = "";
}
}
}
function MotionJump() {
jumpY = Math.min(jumpY + jumpAddY, 0);
jumpAddY = jumpAddY + jumpAddFrame;
DispBound();
return(jumpY == 0);
}
function DispBound() {
var _local3 = (Math.PI/4);
var _local2 = 5;
var _local5 = Math.cos(_local3) * _local2;
var _local4 = Math.sin(_local3) * _local2;
_local4 = _local4 + (-jumpY);
_local3 = Math.atan2(_local4, _local5);
_local2 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
dropShadow.distance = _local2;
dropShadow.angle = (_local3 * 180) / Math.PI;
this.filters = [dropShadow];
}
function HurdleJump(j_ang, j_initY) {
jumpAng = j_ang;
jumpAddY = j_initY;
jumpY = 0;
speed = maxSpeed;
this.onEnterFrame = EnterFrame_HurdleJump;
}
function EnterFrame_HurdleJump() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = (jumpAng * Math.PI) / 180;
var _local7 = Math.cos(_local3) * speed;
var _local6 = Math.sin(_local3) * speed;
posX = posX + _local7;
posY = posY + _local6;
var _local8 = MotionJump();
_x = posX;
_y = (posY + jumpY);
DispBound();
if ((jumpAddY > -2) && (hurdleCheck == 0)) {
var _local9 = _parent.parts_legList.length;
var _local5 = _parent.parts_speedList.length;
var _local4 = _parent.parts_powerList.length;
if ((_local5 + _local4) >= _parent.clearNormaParts) {
hurdleCheck = 1;
} else {
hurdleCheck = 2;
if (jumpAng > 0) {
jumpAng = 180 - jumpAng;
} else {
jumpAng = -180 - jumpAng;
}
if (evo != 5) {
_rotation = jumpAng;
}
_parent._parent.dispAlert("needJump");
}
}
if (_local8) {
if (hurdleCheck == 1) {
_parent.NextStage();
delete this.onEnterFrame;
} else {
if (evo == 5) {
if (crabMode == "adv_") {
crabMode = "ret_";
} else {
crabMode = "adv_";
}
SetAshiInitList(crabMode);
speed = 0;
}
this.onEnterFrame = this[_walkEname];
}
hurdleCheck = 0;
}
}
function NextStageStart() {
this.onEnterFrame = this[_walkEname];
}
function BodyUnDecoration() {
var _local1 = 0;
while (_local1 < decoMcList.length) {
decoMcList[_local1].removeMovieClip();
_local1++;
}
decoMcList = [];
}
function BodyDecoration() {
BodyUnDecoration();
var _local4 = 0;
var _local10 = Math.min(bigPartsList.length, _parent.kikaku_bigList.length);
var _local12 = Math.min(longPartsList.length, _parent.kikaku_longList.length);
var _local11 = Math.min(smallPartsList.length, _parent.kikaku_smallList.length);
var _local3 = 0;
while (_local3 < _local10) {
var _local6 = "deco_b_" + _parent.kikaku_bigList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:bigPartsList[_local3][0].x, _y:bigPartsList[_local3][0].y, _rotation:bigPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local12) {
var _local6 = "deco_l_" + _parent.kikaku_longList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:longPartsList[_local3][0].x, _y:longPartsList[_local3][0].y, _rotation:longPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local11) {
var _local6 = "deco_s_" + _parent.kikaku_smallList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:smallPartsList[_local3][0].x, _y:smallPartsList[_local3][0].y, _rotation:smallPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
}
var dropShadow = (new flash.filters.DropShadowFilter(5, 45, 0, 1, 5, 5, 0.5));
this.filters = [dropShadow];
var evo = 0;
var evoType = true;
var bigPartsList = [];
var longPartsList = [];
var smallPartsList = [];
var decoMcList = [];
var _mode = "walk";
var _walkEname = "";
var _jumpEname = "";
var _jumpEndEname = "";
var posX = _x;
var posY = _y;
var jumpAng = 0;
var jumpAddY = 0;
var jumpY = 0;
var jumpAddInitY = -10;
var jumpAddFrame = 2;
var hurdleCheck = 0;
this.onKeyDown = function () {
_parent.MapExpansion();
evo = 5;
maxSpeed = 12;
gotoAndStop ("crab");
};
function MouseDown() {
mouseClick = true;
}
function MouseUp() {
mouseClick = false;
}
function WalkBasic() {
var _local3 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local3 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local2 = Math.atan2(_ymouse, _xmouse);
var _local4 = (_local2 * 180) / Math.PI;
if (mouseClick) {
_rotation = (_rotation + (_local4 * 0.1));
}
posX = posX + (Math.cos((_rotation * Math.PI) / 180) * speed);
posY = posY + (Math.sin((_rotation * Math.PI) / 180) * speed);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
function CheckJumpGoal() {
if (posX < _parent.mapSize.x) {
return(undefined);
}
if (Math.abs(_rotation) > 45) {
if (((evo == 5) && (Math.abs(_rotation) > 135)) && (crabMode == "ret_")) {
HurdleJump(_rotation + 180, jumpAddInitY);
}
return(undefined);
}
HurdleJump(_rotation, jumpAddInitY);
}
function Damage(ang) {
speed = maxSpeed;
Jump(ang, jumpAddInitY);
_jumpEndEname = "EnterFrame_damage";
_parent._parent.dispRepair();
repair = 0;
_parent.Notice(60, 120);
_parent.Effect("effect_damage", _x, _y);
}
function EnterFrame_damage() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = 200;
repair = repair + recoverP;
if (repair < _local3) {
_parent._parent.repairDisp.disp(repair, _local3);
return(undefined);
}
_parent._parent.repairDisp.Complete();
this.onEnterFrame = this[_walkEname];
}
function GetCircleCross(x0, y0, r0, x1, y1, r1) {
var _local10 = false;
var _local7 = new flash.geom.Point(x0, y0);
var _local14 = new flash.geom.Point(x1, y1);
var _local2 = _local14.subtract(_local7);
var _local3 = _local2.length;
if (_local3 == (r0 + r1)) {
_local10 = true;
} else if ((_local3 < (r0 + r1)) && (_local3 > Math.abs(r0 - r1))) {
} else {
return([]);
}
_local2.normalize(r0);
_local2.offset(_local7.x, _local7.y);
var _local12 = (0.5 * (((r0 * r0) - (r1 * r1)) + (_local3 * _local3))) / _local3;
var _local4 = Math.acos(_local12 / r0);
var _local5 = Math.atan2(_local2.y - y0, _local2.x - x0);
var _local11 = new flash.geom.Point(x0 + (r0 * Math.cos(_local5 + _local4)), y0 + (r0 * Math.sin(_local5 + _local4)));
var _local13 = new flash.geom.Point(x0 + (r0 * Math.cos(_local5 - _local4)), y0 + (r0 * Math.sin(_local5 - _local4)));
if (_local10) {
return([_local11]);
}
return([_local11, _local13, _local2]);
}
function GetAngleInterval(angA, angB) {
var _local3 = angA;
var _local2 = angB;
_local3 = (_local3 + 360) % 360;
_local2 = (_local2 + 360) % 360;
var _local1 = _local2 - _local3;
if (_local1 >= 0) {
if (_local1 > 180) {
_local1 = _local1 - 360;
}
} else if (_local1 < -180) {
_local1 = _local1 + 360;
}
return(_local1);
}
function evolution() {
var _local4 = _parent.parts_legList.length;
var _local3 = _parent.parts_powerList.length;
var _local2 = _parent.parts_speedList.length;
var _local5 = evo;
if ((evo == 0) && (_local4 >= 4)) {
evo = 1;
}
if (((evo == 1) && (_local4 >= 6)) && ((_local3 + _local2) >= 7)) {
if (_local3 >= _local2) {
evoType = true;
} else {
evoType = false;
}
evo = 2;
}
if ((evo == 2) && (_local4 >= 14)) {
if (_parent.gameStage == 0) {
if (_local5 == 2) {
_parent._parent.dispAlert("evolutionLock");
return(undefined);
}
} else if (evoType) {
if (_local3 >= _local2) {
evo = 5;
} else {
evo = 6;
}
} else if (_local3 >= _local2) {
evo = 4;
} else {
evo = 3;
}
}
if (evo == _local5) {
return(undefined);
}
var _local6 = ["no", "four", "six", "ten", "twin", "crab", "octo"];
gotoAndStop(_local6[evo]);
if (evo == 1) {
_parent.MapExpansion();
}
_parent.Notice(60, 120);
_parent._parent.evoluteDisp.disp(evo, evoType);
_parent._parent.SE("se_evo");
_parent.Effect("effect_evo", _x, _y);
}
function SetGraphicsLeg(A, B) {
var _local2 = 0;
_local2 = 0;
while (_local2 < A) {
ashiList[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < B) {
ashiListB[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
}
function SumMaxSpeed(p_type) {
if (p_type == "speed") {
maxSpeed = maxSpeed + 1;
recoverP = recoverP - 0.5;
} else if (p_type == "power") {
maxSpeed = maxSpeed - 0.5;
recoverP = recoverP + 1;
}
maxSpeed = Math.min(Math.max(maxSpeed, bodyMinSpeed), bodyMaxSpeed);
recoverP = Math.min(Math.max(recoverP, bodyMinPower), bodyMaxPower);
if (evo == 0) {
speed = maxSpeed;
}
}
var mouseClick = false;
var repair = 0;
var speed = 0;
var addSpeed = 1;
var cutSpeed = 2;
var initSpeed = 2;
var maxSpeed = 10;
var recoverP = 0;
var bodyMaxSpeed = 0;
var bodyMaxPower = 0;
var bodyMinSpeed = 0;
var bodyMinPower = 0;
var ashiLength = 93;
var ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiInitPosList = [];
var ashiInitRadList = [];
var ashiTipList = [];
var ashiBack = [];
var ashiListB = [];
var ashiInitPosListB = [];
var ashiInitRadListB = [];
var ashiTipListB = [];
var ashiBackB = [];
this.onMouseDown = MouseDown;
this.onMouseUp = MouseUp;
MouseUp();
gotoAndStop ("no");
Symbol 52 MovieClip [player_type3] Frame 5
function EnterFrame_NotLeg() {
if (_parent.pausing) {
return(undefined);
}
_rotation = (_rotation + Math.min(Math.max(landRolling, -5), 5));
landRolling = landRolling * 0.8;
if (!mouseClick) {
return(undefined);
}
var _local3 = Math.atan2(_parent._ymouse - _y, _parent._xmouse - _x);
var _local2 = (_local3 * 180) / Math.PI;
_local2 = _local2 + (Math.floor(Math.random() * 21) - 10);
landRolling = Math.min(Math.max(_local2, -15), 15);
jumpOldAng = _local2;
Jump(_local2, -6);
}
function Jump_NotLeg() {
_rotation = (_rotation + Math.min(Math.max(jumpOldAng * 0.5, -5), 5));
}
function Jump_NotLeg_Init() {
if (jumpY < 0) {
return(undefined);
}
_jumpEname = "Jump_NotLeg";
speed = maxSpeed;
}
_walkEname = "EnterFrame_NotLeg";
_jumpEname = "Jump_NotLeg_Init";
bodyMaxSpeed = 8;
bodyMinSpeed = 6;
maxSpeed = 7;
bodyMaxPower = 2;
bodyMinPower = 1;
recoverP = 1;
speed = 0;
var jumpOldAng = 0;
var landRolling = 0;
bigPartsList = [[new flash.geom.Point(-45, 0), 90]];
longPartsList = [[new flash.geom.Point(48, 0), -90]];
smallPartsList = [[new flash.geom.Point(77, 0), 90]];
jumpAddY = 2;
jumpY = -500;
this.onEnterFrame = EnterFrame_Jump;
Symbol 52 MovieClip [player_type3] Frame 8
nextFrame();
Symbol 52 MovieClip [player_type3] Frame 9
function EnterFrame_FourLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_FourLeg();
}
function AshiInit_FourLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_FourLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_FourLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_FourLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_FourLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 10;
bodyMinSpeed = 7;
maxSpeed = 8;
bodyMaxPower = 4;
bodyMinPower = 1;
recoverP = 2;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRB, ashiLB];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(54, 0), 90]];
longPartsList = [[new flash.geom.Point(-30, 0), -90]];
smallPartsList = [[new flash.geom.Point(26, -56), 60], [new flash.geom.Point(26, 56), 120]];
AshiInit_FourLeg();
AshiReset_FourLeg();
SetGraphicsLeg(4, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_FourLeg;
Symbol 52 MovieClip [player_type3] Frame 11
nextFrame();
Symbol 52 MovieClip [player_type3] Frame 12
function EnterFrame_SixLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_SixLeg();
}
function AshiInit_SixLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_SixLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_SixLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_SixLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_SixLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 14;
bodyMinSpeed = 8;
maxSpeed = 10;
bodyMaxPower = 8;
bodyMinPower = 2;
recoverP = 4;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-43, 0), 90]];
longPartsList = [];
smallPartsList = [[new flash.geom.Point(16, 0), 90]];
if (evoType) {
longPartsList.push([new flash.geom.Point(30, -40), 30]);
longPartsList.push([new flash.geom.Point(30, 40), 150]);
} else {
smallPartsList.push([new flash.geom.Point(-9, 47), 135]);
smallPartsList.push([new flash.geom.Point(-9, -47), 45]);
}
AshiInit_SixLeg();
AshiReset_SixLeg();
SetGraphicsLeg(6, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_SixLeg;
Symbol 52 MovieClip [player_type3] Frame 14
nextFrame();
Symbol 52 MovieClip [player_type3] Frame 15
function EnterFrame_SixTwinLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_SixTwinLeg();
}
function AshiInit_SixTwinLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
ashiBackB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local2 = new flash.geom.Point(ashiListB[_local1]._x, ashiListB[_local1]._y);
ashiInitPosListB.push(_local2);
ashiInitRadListB.push(ashiListB[_local1]._rotation);
ashiBackB.push(false);
_local1++;
}
}
function AshiReset_SixTwinLeg(p_mc) {
if ((p_mc._name.substr(-1) == "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiListB.length ; i++) {
if (p_mc == undefined) {
} else if (ashiListB[i] != p_mc) {
continue;
}
var _local3 = ashiListB[i];
_local3._x = ashiInitPosListB[i].x;
_local3._y = ashiInitPosListB[i].y;
_local3._rotation = ashiInitRadListB[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipListB[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipListB[i]);
_parent.globalToLocal(ashiTipListB[i]);
}
}
if ((p_mc.name.substr(-1) != "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiList.length ; i++) {
if (p_mc == undefined) {
} else if (ashiList[i] != p_mc) {
continue;
}
var _local3 = ashiList[i];
_local3._x = ashiInitPosList[i].x;
_local3._y = ashiInitPosList[i].y;
_local3._rotation = ashiInitRadList[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipList[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[i]);
_parent.globalToLocal(ashiTipList[i]);
}
}
}
function AshiMove_SixTwinLeg() {
var _local20 = ashiLength;
var _local3 = 0;
for ( ; _local3 < ashiListB.length ; _local3++) {
var _local5 = ashiList[_local3];
var _local4 = ashiListB[_local3];
if (ashiBackB[_local3]) {
var _local10 = 0.5;
var _local9 = ashiInitRadList[_local3] - _local5._rotation;
if (Math.abs(_local9) > 180) {
if (_local9 > 0) {
_local9 = _local9 - 360;
} else {
_local9 = _local9 + 360;
}
}
_local5._x = _local5._x + ((ashiInitPosList[_local3].x - _local5._x) * _local10);
_local5._rotation = _local5._rotation + (_local9 * _local10);
var _local14 = new flash.geom.Point(_local5._x + (Math.cos((_local5._rotation * Math.PI) / 180) * _local20), _local5._y + (Math.sin((_local5._rotation * Math.PI) / 180) * _local20));
_local4._x = _local14.x;
_local4._y = _local14.y;
var _local11 = _local4._rotation + ((ashiInitRadListB[_local3] - _local4._rotation) * _local10);
var _local17 = GetAngleInterval(_local5._rotation, _local11);
if ((_local17 > IK_rectAngMaxB[_local4._name]) || (_local17 < IK_rectAngMinB[_local4._name])) {
if ((ashiInitRadListB[_local3] - _local4._rotation) > 0) {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) - 360) * _local10);
} else {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) + 360) * _local10);
}
}
_local4._rotation = _local11;
if (Math.abs(ashiInitRadList[_local3] - _local5._rotation) < 3) {
ashiBackB[_local3] = false;
AshiReset_SixTwinLeg(ashiList[_local3]);
AshiReset_SixTwinLeg(ashiListB[_local3]);
}
} else {
var _local6 = {x:ashiTipListB[_local3].x, y:ashiTipListB[_local3].y};
_parent.localToGlobal(_local6);
this.globalToLocal(_local6);
var _local18 = Math.atan2(_local6.y - ashiInitPosList[_local3].y, _local6.x - ashiInitPosList[_local3].x);
var _local21 = (_local18 * 180) / Math.PI;
var _local19 = flash.geom.Point.distance(new flash.geom.Point(_local6.x, _local6.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
if (_local19 > (ashiLength * 2)) {
ashiBackB[_local3] = true;
} else {
var _local8 = GetCircleCross(_local6.x, _local6.y, ashiLength, ashiInitPosList[_local3].x, ashiInitPosList[_local3].y, ashiLength);
var _local7 = IK_NumList[ashiListB[_local3]._name];
ashiListB[_local3]._x = _local8[_local7].x;
ashiListB[_local3]._y = _local8[_local7].y;
var _local12 = (Math.atan2(_local6.y - _local8[_local7].y, _local6.x - _local8[_local7].x) * 180) / Math.PI;
ashiListB[_local3]._rotation = _local12;
_local12 = (Math.atan2(_local8[_local7].y - ashiInitPosList[_local3].y, _local8[_local7].x - ashiInitPosList[_local3].x) * 180) / Math.PI;
ashiList[_local3]._rotation = _local12;
var _local13 = false;
var _local16 = GetAngleInterval(ashiList[_local3]._rotation, ashiListB[_local3]._rotation);
if (_local16 > IK_rectAngMaxB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMaxB[ashiListB[_local3]._name];
_local13 = true;
} else if (_local16 < IK_rectAngMinB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMinB[ashiListB[_local3]._name];
_local13 = true;
}
if (_local13) {
var _local15 = (ashiListB[_local3]._rotation * Math.PI) / 180;
ashiTipListB[_local3] = {x:ashiListB[_local3]._x + (Math.cos(_local15) * ashiLength), y:ashiListB[_local3]._y + (Math.sin(_local15) * ashiLength)};
this.localToGlobal(ashiTipListB[_local3]);
_parent.globalToLocal(ashiTipListB[_local3]);
}
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) > IK_rectAngMax[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
continue;
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
}
}
}
_walkEname = "EnterFrame_SixTwinLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 16;
bodyMinSpeed = 9;
maxSpeed = 11;
bodyMaxPower = 10;
bodyMinPower = 2;
recoverP = 4;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
ashiListB = [ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
ashiTipListB = [];
ashiBackB = [];
var IK_NumList = {ashiRF2:1, ashiLF2:0, ashiRM2:0, ashiLM2:1, ashiRB2:0, ashiLB2:1};
var IK_rectAngMax = {ashiRF:10, ashiLF:90, ashiRM:45, ashiLM:90, ashiRB:60, ashiLB:110};
var IK_rectAngMin = {ashiRF:-90, ashiLF:-10, ashiRM:-90, ashiLM:-45, ashiRB:-110, ashiLB:-60};
var IK_rectAngMaxB = {ashiRF2:0, ashiLF2:150, ashiRM2:170, ashiLM2:0, ashiRB2:170, ashiLB2:0};
var IK_rectAngMinB = {ashiRF2:-150, ashiLF2:0, ashiRM2:0, ashiLM2:-170, ashiRB2:0, ashiLB2:-170};
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-43, 0), 90]];
longPartsList = [[new flash.geom.Point(-47, -48), 0], [new flash.geom.Point(-47, 48), 180]];
smallPartsList = [[new flash.geom.Point(38, -30), 90], [new flash.geom.Point(38, 30), 90]];
AshiInit_SixTwinLeg();
AshiReset_SixTwinLeg();
SetGraphicsLeg(6, 6);
BodyDecoration();
this.onEnterFrame = EnterFrame_SixTwinLeg;
Symbol 52 MovieClip [player_type3] Frame 17
nextFrame();
Symbol 52 MovieClip [player_type3] Frame 18
function EnterFrame_CrabLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkCrab();
if (speed == 0) {
return(undefined);
}
AshiMove_CrabLeg();
}
function AshiInit_CrabLeg() {
ashiBack = [];
ashiBackB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
ashiBack.push(false);
ashiBackB.push(false);
_local1++;
}
}
function AshiReset_CrabLeg(p_mc) {
if ((p_mc._name.substr(-1) == "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiListB.length ; i++) {
if (p_mc == undefined) {
} else if (ashiListB[i] != p_mc) {
continue;
}
var _local3 = ashiListB[i];
_local3._x = ashiInitPosListB[i].x;
_local3._y = ashiInitPosListB[i].y;
_local3._rotation = ashiInitRadListB[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipListB[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipListB[i]);
_parent.globalToLocal(ashiTipListB[i]);
}
}
if ((p_mc.name.substr(-1) != "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiList.length ; i++) {
if (p_mc == undefined) {
} else if (ashiList[i] != p_mc) {
continue;
}
var _local3 = ashiList[i];
_local3._x = ashiInitPosList[i].x;
_local3._y = ashiInitPosList[i].y;
_local3._rotation = ashiInitRadList[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipList[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[i]);
_parent.globalToLocal(ashiTipList[i]);
}
}
}
function AshiMove_CrabLeg() {
var _local20 = ashiLength;
var _local3 = 0;
for ( ; _local3 < ashiListB.length ; _local3++) {
var _local5 = ashiList[_local3];
var _local4 = ashiListB[_local3];
if (ashiBackB[_local3]) {
var _local10 = 0.5;
var _local9 = ashiInitRadList[_local3] - _local5._rotation;
if (Math.abs(_local9) > 180) {
if (_local9 > 0) {
_local9 = _local9 - 360;
} else {
_local9 = _local9 + 360;
}
}
_local5._x = _local5._x + ((ashiInitPosList[_local3].x - _local5._x) * _local10);
_local5._rotation = _local5._rotation + (_local9 * _local10);
var _local14 = new flash.geom.Point(_local5._x + (Math.cos((_local5._rotation * Math.PI) / 180) * _local20), _local5._y + (Math.sin((_local5._rotation * Math.PI) / 180) * _local20));
_local4._x = _local14.x;
_local4._y = _local14.y;
var _local11 = _local4._rotation + ((ashiInitRadListB[_local3] - _local4._rotation) * _local10);
var _local17 = GetAngleInterval(_local5._rotation, _local11);
if ((_local17 > IK_rectAngMaxB[_local4._name]) || (_local17 < IK_rectAngMinB[_local4._name])) {
if ((ashiInitRadListB[_local3] - _local4._rotation) > 0) {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) - 360) * _local10);
} else {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) + 360) * _local10);
}
}
_local4._rotation = _local11;
if (Math.abs(ashiInitRadList[_local3] - _local5._rotation) < 3) {
ashiBackB[_local3] = false;
AshiReset_CrabLeg(ashiList[_local3]);
AshiReset_CrabLeg(ashiListB[_local3]);
}
} else {
var _local6 = {x:ashiTipListB[_local3].x, y:ashiTipListB[_local3].y};
_parent.localToGlobal(_local6);
this.globalToLocal(_local6);
var _local18 = Math.atan2(_local6.y - ashiInitPosList[_local3].y, _local6.x - ashiInitPosList[_local3].x);
var _local21 = (_local18 * 180) / Math.PI;
var _local19 = flash.geom.Point.distance(new flash.geom.Point(_local6.x, _local6.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
if (_local19 > (ashiLength * 2)) {
ashiBackB[_local3] = true;
} else {
var _local8 = GetCircleCross(_local6.x, _local6.y, ashiLength, ashiInitPosList[_local3].x, ashiInitPosList[_local3].y, ashiLength);
var _local7 = IK_NumList[ashiListB[_local3]._name];
ashiListB[_local3]._x = _local8[_local7].x;
ashiListB[_local3]._y = _local8[_local7].y;
var _local12 = (Math.atan2(_local6.y - _local8[_local7].y, _local6.x - _local8[_local7].x) * 180) / Math.PI;
ashiListB[_local3]._rotation = _local12;
_local12 = (Math.atan2(_local8[_local7].y - ashiInitPosList[_local3].y, _local8[_local7].x - ashiInitPosList[_local3].x) * 180) / Math.PI;
ashiList[_local3]._rotation = _local12;
var _local13 = false;
var _local16 = GetAngleInterval(ashiList[_local3]._rotation, ashiListB[_local3]._rotation);
if (_local16 > IK_rectAngMaxB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMaxB[ashiListB[_local3]._name];
_local13 = true;
} else if (_local16 < IK_rectAngMinB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMinB[ashiListB[_local3]._name];
_local13 = true;
}
if (_local13) {
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) > IK_rectAngMax[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
continue;
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
}
}
}
function WalkCrab() {
var _local3 = 1;
var _local5 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local5 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local4 = Math.atan2(_ymouse, _xmouse);
var _local2 = (_local4 * 180) / Math.PI;
if ((crabMode == "ret_") && (Math.abs(_local2) < 90)) {
crabMode = "adv_";
SetAshiInitList(crabMode);
} else if ((crabMode == "adv_") && (Math.abs(_local2) > 90)) {
crabMode = "ret_";
SetAshiInitList(crabMode);
}
if (crabMode == "ret_") {
if (_local2 > 0) {
_local2 = _local2 - 180;
} else {
_local2 = _local2 + 180;
}
_local3 = -1;
}
if (mouseClick) {
_rotation = (_rotation + (_local2 * 0.1));
}
posX = posX + ((Math.cos((_rotation * Math.PI) / 180) * speed) * _local3);
posY = posY + ((Math.sin((_rotation * Math.PI) / 180) * speed) * _local3);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
function SetAshiInitList(str) {
var _local6 = {ashiRF:new flash.geom.Point(44, -29), ashiLF:new flash.geom.Point(-57, -29), ashiRM:new flash.geom.Point(40, 8), ashiLM:new flash.geom.Point(-47, 9), ashiRB:new flash.geom.Point(39, 50), ashiLB:new flash.geom.Point(-40, 47)};
var _local4 = {ashiRF:-70, ashiLF:-109, ashiRM:-60, ashiLM:-120, ashiRB:-57, ashiLB:-125};
var _local5 = {ashiRF2:new flash.geom.Point(76, -119), ashiLF2:new flash.geom.Point(-89, -118), ashiRM2:new flash.geom.Point(86, -72), ashiLM2:new flash.geom.Point(-94, -70), ashiRB2:new flash.geom.Point(90, -29), ashiLB2:new flash.geom.Point(-94, -29)};
var _local3 = {ashiRF2:62, ashiLF2:112, ashiRM2:70, ashiLM2:110, ashiRB2:79, ashiLB2:103};
var _local1 = {ashiRF:new flash.geom.Point(44, -29), ashiLF:new flash.geom.Point(-57, -29), ashiRM:new flash.geom.Point(40, 8), ashiLM:new flash.geom.Point(-47, 9), ashiRB:new flash.geom.Point(39, 50), ashiLB:new flash.geom.Point(-40, 47)};
var _local7 = {ashiRF:-17, ashiLF:-163, ashiRM:-14, ashiLM:-165, ashiRB:-9, ashiLB:-174};
var _local2 = {ashiRF2:new flash.geom.Point(132, -55), ashiLF2:new flash.geom.Point(-146, -56), ashiRM2:new flash.geom.Point(127, -15), ashiLM2:new flash.geom.Point(-137, -12), ashiRB2:new flash.geom.Point(127, 34), ashiLB2:new flash.geom.Point(-132, 38)};
var _local8 = {ashiRF2:36, ashiLF2:138, ashiRM2:33, ashiLM2:142, ashiRB2:27, ashiLB2:151};
var _local17 = [_local1.ashiRF, _local6.ashiLF, _local1.ashiRM, _local6.ashiLM, _local1.ashiRB, _local6.ashiLB];
var _local10 = [_local2.ashiRF2, _local5.ashiLF2, _local2.ashiRM2, _local5.ashiLM2, _local2.ashiRB2, _local5.ashiLB2];
var _local12 = [_local7.ashiRF, _local4.ashiLF, _local7.ashiRM, _local4.ashiLM, _local7.ashiRB, _local4.ashiLB];
var _local14 = [_local8.ashiRF2, _local3.ashiLF2, _local8.ashiRM2, _local3.ashiLM2, _local8.ashiRB2, _local3.ashiLB2];
var _local11 = [_local6.ashiRF, _local1.ashiLF, _local6.ashiRM, _local1.ashiLM, _local6.ashiRB, _local1.ashiLB];
var _local13 = [_local5.ashiRF2, _local2.ashiLF2, _local5.ashiRM2, _local2.ashiLM2, _local5.ashiRB2, _local2.ashiLB2];
var _local15 = [_local4.ashiRF, _local7.ashiLF, _local4.ashiRM, _local7.ashiLM, _local4.ashiRB, _local7.ashiLB];
var _local16 = [_local3.ashiRF2, _local8.ashiLF2, _local3.ashiRM2, _local8.ashiLM2, _local3.ashiRB2, _local8.ashiLB2];
ashiInitPosList = [];
ashiInitRadList = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
if (str == "adv_") {
ashiInitPosList = _local17;
ashiInitPosListB = _local10;
ashiInitRadList = _local12;
ashiInitRadListB = _local14;
} else if (str == "ret_") {
ashiInitPosList = _local11;
ashiInitPosListB = _local13;
ashiInitRadList = _local15;
ashiInitRadListB = _local16;
}
if (str == "adv_") {
IK_rectAngMax = {ashiRF:60, ashiLF:60, ashiRM:58, ashiLM:58, ashiRB:56, ashiLB:56};
IK_rectAngMin = {ashiRF:-10, ashiLF:-10, ashiRM:-10, ashiLM:-10, ashiRB:-10, ashiLB:-10};
} else if (str == "ret_") {
IK_rectAngMax = {ashiRF:10, ashiLF:10, ashiRM:10, ashiLM:10, ashiRB:10, ashiLB:10};
IK_rectAngMin = {ashiRF:-60, ashiLF:-60, ashiRM:-60, ashiLM:-60, ashiRB:-60, ashiLB:-60};
}
}
function GetAshiPos_CrabLeg() {
var _local5 = "{ ";
var _local3 = "{ ";
var _local4 = "{ ";
var _local2 = "{ ";
var _local1 = 0;
while (_local1 < ashiList.length) {
_local5 = _local5 + ((((((ashiList[_local1]._name + " : ") + "new Point(") + (ashiList[_local1]._x ^ 0)) + " , ") + (ashiList[_local1]._y ^ 0)) + " ) , ");
_local3 = _local3 + (((ashiList[_local1]._name + " : ") + (ashiList[_local1]._rotation ^ 0)) + " , ");
_local4 = _local4 + ((((((ashiListB[_local1]._name + " : ") + "new Point(") + (ashiListB[_local1]._x ^ 0)) + " , ") + (ashiListB[_local1]._y ^ 0)) + " ) , ");
_local2 = _local2 + (((ashiListB[_local1]._name + " : ") + (ashiListB[_local1]._rotation ^ 0)) + " , ");
_local1++;
}
_local5 = _local5.substr(0, _local5.length - 2) + "}";
_local3 = _local3.substr(0, _local3.length - 2) + "}";
_local4 = _local4.substr(0, _local4.length - 2) + "}";
_local2 = _local2.substr(0, _local2.length - 2) + "}";
trace(_local5);
trace(_local3);
trace(_local4);
trace(_local2);
}
_walkEname = "EnterFrame_CrabLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 10;
bodyMinSpeed = 5;
maxSpeed = 7;
bodyMaxPower = 12;
bodyMinPower = 6;
recoverP = 8;
ashiLength = 93;
ashiTipList = [];
ashiBack = [];
ashiTipListB = [];
ashiBackB = [];
var ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiListB = [ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
var ashiInitPosList = [];
var ashiInitRadList = [];
var ashiInitPosListB = [];
var ashiInitRadListB = [];
var IK_NumList = {ashiRF2:0, ashiLF2:1, ashiRM2:0, ashiLM2:1, ashiRB2:0, ashiLB2:1};
var IK_rectAngMax = {ashiRF:60, ashiLF:60, ashiRM:58, ashiLM:58, ashiRB:56, ashiLB:56};
var IK_rectAngMin = {ashiRF:-60, ashiLF:-60, ashiRM:-60, ashiLM:-60, ashiRB:-60, ashiLB:-60};
var IK_rectAngMaxB = {ashiRF2:150, ashiLF2:0, ashiRM2:150, ashiLM2:0, ashiRB2:150, ashiLB2:0};
var IK_rectAngMinB = {ashiRF2:0, ashiLF2:-150, ashiRM2:0, ashiLM2:-150, ashiRB2:0, ashiLB2:-150};
var crabMode = "ret_";
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(0, 0), 0]];
longPartsList = [[new flash.geom.Point(0, 42), 180], [new flash.geom.Point(-43, 51), -165], [new flash.geom.Point(43, 51), 165]];
smallPartsList = [[new flash.geom.Point(52, 0), 0], [new flash.geom.Point(-52, 0), 0]];
SetAshiInitList(crabMode);
AshiInit_CrabLeg();
AshiReset_CrabLeg();
SetGraphicsLeg(6, 6);
BodyDecoration();
this.onEnterFrame = EnterFrame_CrabLeg;
Symbol 52 MovieClip [player_type3] Frame 20
nextFrame();
Symbol 52 MovieClip [player_type3] Frame 21
function EnterFrame_OctopusLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkOctopus();
AshiMove_OctopusLeg();
octo_oldAng = _rotation;
}
function AshiInit_OctopusLeg() {
var _local1 = 0;
while (_local1 < ashiList.length) {
ashiInitRadList[_local1] = ashiList[_local1]._rotation;
ashiInitRadListB[_local1] = ashiListB[_local1]._rotation;
_local1++;
}
}
function AshiReset_OctopusLeg() {
octo_radList = [];
octo_radListB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
octo_radList.push(ashiList[_local1]._rotation);
octo_radListB.push(ashiListB[_local1]._rotation);
_local1++;
}
}
function AshiMove_OctopusLeg() {
var _local6 = maxSpeed * 0.5;
var _local5 = 10;
var _local1 = 0;
if (speed > _local6) {
_local1 = 0;
while (_local1 < ashiList.length) {
var _local3 = (Math.atan2(octo_tailPointA.y - _y, octo_tailPointA.x - _x) * 180) / Math.PI;
_local3 = _local3 - _rotation;
var _local2 = _local3 - octo_radList[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radList[_local1] = octo_radList[_local1] + (_local2 * 0.2);
ashiList[_local1]._rotation = octo_radList[_local1] + (Math.cos(octo_wave + (_local1 * 0.1)) * _local5);
var _local4 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
_local4.x = _local4.x + (Math.cos((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
_local4.y = _local4.y + (Math.sin((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
ashiListB[_local1]._x = _local4.x;
ashiListB[_local1]._y = _local4.y;
_local3 = (Math.atan2(octo_tailPointB.y - _y, octo_tailPointB.x - _x) * 180) / Math.PI;
_local3 = _local3 - _rotation;
_local2 = _local3 - octo_radListB[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radListB[_local1] = octo_radListB[_local1] + (_local2 * 0.2);
ashiListB[_local1]._rotation = octo_radListB[_local1] + (Math.cos(octo_wave + (_local1 * 0.2)) * _local5);
_local1++;
}
} else {
_local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = ashiInitRadList[_local1] - octo_radList[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radList[_local1] = octo_radList[_local1] + (_local2 * 0.1);
ashiList[_local1]._rotation = octo_radList[_local1] + (Math.cos(octo_wave + (_local1 * 0.1)) * _local5);
var _local4 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
_local4.x = _local4.x + (Math.cos((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
_local4.y = _local4.y + (Math.sin((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
ashiListB[_local1]._x = _local4.x;
ashiListB[_local1]._y = _local4.y;
_local2 = ashiInitRadListB[_local1] - octo_radListB[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radListB[_local1] = octo_radListB[_local1] + (_local2 * 0.1);
ashiListB[_local1]._rotation = octo_radListB[_local1] + (Math.cos(octo_wave + (_local1 * 0.2)) * _local5);
_local1++;
}
}
octo_wave = octo_wave + 0.05;
octo_tailPointA.x = octo_tailPointA.x + ((_x - octo_tailPointA.x) * 0.2);
octo_tailPointA.y = octo_tailPointA.y + ((_y - octo_tailPointA.y) * 0.2);
octo_tailPointB.x = octo_tailPointB.x + ((octo_tailPointA.x - octo_tailPointB.x) * 0.1);
octo_tailPointB.y = octo_tailPointB.y + ((octo_tailPointA.y - octo_tailPointB.y) * 0.1);
}
function WalkOctopus() {
var _local3 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local3 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local2 = Math.atan2(_ymouse, _xmouse);
var _local4 = (_local2 * 180) / Math.PI;
if (mouseClick) {
_rotation = (_rotation + (_local4 * 0.2));
}
posX = posX + (Math.cos((_rotation * Math.PI) / 180) * speed);
posY = posY + (Math.sin((_rotation * Math.PI) / 180) * speed);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
_walkEname = "EnterFrame_OctopusLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 12;
bodyMinSpeed = 7;
maxSpeed = 9;
bodyMaxPower = 10;
bodyMinPower = 4;
recoverP = 5;
ashiLength = 93;
var octo_tailPointA = (new flash.geom.Point(_x, _y));
var octo_tailPointB = (new flash.geom.Point(_x, _y));
var ashiList = [ashiRT, ashiLT, ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiListB = [ashiRT2, ashiLT2, ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
var ashiInitRadList = [];
var ashiInitRadListB = [];
var octo_radList = [];
var octo_radListB = [];
var octo_wave = 0;
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-2, 0), 0], [new flash.geom.Point(62, 0), 0]];
longPartsList = [];
smallPartsList = [[new flash.geom.Point(-3, -50), 90], [new flash.geom.Point(-3, 50), 90]];
AshiInit_OctopusLeg();
AshiReset_OctopusLeg();
SetGraphicsLeg(8, 8);
BodyDecoration();
this.onEnterFrame = EnterFrame_OctopusLeg;
Symbol 52 MovieClip [player_type3] Frame 23
nextFrame();
Symbol 52 MovieClip [player_type3] Frame 24
function EnterFrame_TenLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_TenLeg();
}
function AshiInit_TenLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_TenLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_TenLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_TenLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_TenLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 18;
bodyMinSpeed = 12;
maxSpeed = 14;
bodyMaxPower = 8;
bodyMinPower = 1;
recoverP = 3;
ashiLength = 93;
ashiList = [ashiR0, ashiL0, ashiR1, ashiL1, ashiR2, ashiL2, ashiR3, ashiL3, ashiR4, ashiL4];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [];
longPartsList = [[new flash.geom.Point(37, 0), -90], [new flash.geom.Point(-17, 0), -90], [new flash.geom.Point(10, 0), -90]];
smallPartsList = [[new flash.geom.Point(16, 61), 90], [new flash.geom.Point(16, -61), 90]];
AshiInit_TenLeg();
AshiReset_TenLeg();
SetGraphicsLeg(10, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_TenLeg;
Symbol 60 MovieClip [player_type4] Frame 1
function Jump(j_ang, j_initY) {
jumpAng = j_ang;
jumpAddY = j_initY;
jumpY = 0;
this.onEnterFrame = EnterFrame_Jump;
}
function EnterFrame_Jump() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = (jumpAng * Math.PI) / 180;
var _local5 = Math.cos(_local3) * speed;
var _local4 = Math.sin(_local3) * speed;
posX = posX + _local5;
posY = posY + _local4;
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
var _local6 = MotionJump();
_x = posX;
_y = (posY + jumpY);
DispBound();
if (_jumpEname != "") {
this[_jumpEname]();
}
if (_local6) {
if (_jumpEndEname == "") {
this.onEnterFrame = this[_walkEname];
} else {
this.onEnterFrame = this[_jumpEndEname];
_jumpEndEname = "";
}
}
}
function MotionJump() {
jumpY = Math.min(jumpY + jumpAddY, 0);
jumpAddY = jumpAddY + jumpAddFrame;
DispBound();
return(jumpY == 0);
}
function DispBound() {
var _local3 = (Math.PI/4);
var _local2 = 5;
var _local5 = Math.cos(_local3) * _local2;
var _local4 = Math.sin(_local3) * _local2;
_local4 = _local4 + (-jumpY);
_local3 = Math.atan2(_local4, _local5);
_local2 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
dropShadow.distance = _local2;
dropShadow.angle = (_local3 * 180) / Math.PI;
this.filters = [dropShadow];
}
function HurdleJump(j_ang, j_initY) {
jumpAng = j_ang;
jumpAddY = j_initY;
jumpY = 0;
speed = maxSpeed;
this.onEnterFrame = EnterFrame_HurdleJump;
}
function EnterFrame_HurdleJump() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = (jumpAng * Math.PI) / 180;
var _local7 = Math.cos(_local3) * speed;
var _local6 = Math.sin(_local3) * speed;
posX = posX + _local7;
posY = posY + _local6;
var _local8 = MotionJump();
_x = posX;
_y = (posY + jumpY);
DispBound();
if ((jumpAddY > -2) && (hurdleCheck == 0)) {
var _local9 = _parent.parts_legList.length;
var _local5 = _parent.parts_speedList.length;
var _local4 = _parent.parts_powerList.length;
if ((_local5 + _local4) >= _parent.clearNormaParts) {
hurdleCheck = 1;
} else {
hurdleCheck = 2;
if (jumpAng > 0) {
jumpAng = 180 - jumpAng;
} else {
jumpAng = -180 - jumpAng;
}
if (evo != 5) {
_rotation = jumpAng;
}
_parent._parent.dispAlert("needJump");
}
}
if (_local8) {
if (hurdleCheck == 1) {
_parent.NextStage();
delete this.onEnterFrame;
} else {
if (evo == 5) {
if (crabMode == "adv_") {
crabMode = "ret_";
} else {
crabMode = "adv_";
}
SetAshiInitList(crabMode);
speed = 0;
}
this.onEnterFrame = this[_walkEname];
}
hurdleCheck = 0;
}
}
function NextStageStart() {
this.onEnterFrame = this[_walkEname];
}
function BodyUnDecoration() {
var _local1 = 0;
while (_local1 < decoMcList.length) {
decoMcList[_local1].removeMovieClip();
_local1++;
}
decoMcList = [];
}
function BodyDecoration() {
BodyUnDecoration();
var _local4 = 0;
var _local10 = Math.min(bigPartsList.length, _parent.kikaku_bigList.length);
var _local12 = Math.min(longPartsList.length, _parent.kikaku_longList.length);
var _local11 = Math.min(smallPartsList.length, _parent.kikaku_smallList.length);
var _local3 = 0;
while (_local3 < _local10) {
var _local6 = "deco_b_" + _parent.kikaku_bigList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:bigPartsList[_local3][0].x, _y:bigPartsList[_local3][0].y, _rotation:bigPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local12) {
var _local6 = "deco_l_" + _parent.kikaku_longList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:longPartsList[_local3][0].x, _y:longPartsList[_local3][0].y, _rotation:longPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local11) {
var _local6 = "deco_s_" + _parent.kikaku_smallList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:smallPartsList[_local3][0].x, _y:smallPartsList[_local3][0].y, _rotation:smallPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
}
var dropShadow = (new flash.filters.DropShadowFilter(5, 45, 0, 1, 5, 5, 0.5));
this.filters = [dropShadow];
var evo = 0;
var evoType = true;
var bigPartsList = [];
var longPartsList = [];
var smallPartsList = [];
var decoMcList = [];
var _mode = "walk";
var _walkEname = "";
var _jumpEname = "";
var _jumpEndEname = "";
var posX = _x;
var posY = _y;
var jumpAng = 0;
var jumpAddY = 0;
var jumpY = 0;
var jumpAddInitY = -10;
var jumpAddFrame = 2;
var hurdleCheck = 0;
this.onKeyDown = function () {
_parent.MapExpansion();
evo = 5;
maxSpeed = 12;
gotoAndStop ("crab");
};
function MouseDown() {
mouseClick = true;
}
function MouseUp() {
mouseClick = false;
}
function WalkBasic() {
var _local3 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local3 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local2 = Math.atan2(_ymouse, _xmouse);
var _local4 = (_local2 * 180) / Math.PI;
if (mouseClick) {
_rotation = (_rotation + (_local4 * 0.1));
}
posX = posX + (Math.cos((_rotation * Math.PI) / 180) * speed);
posY = posY + (Math.sin((_rotation * Math.PI) / 180) * speed);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
function CheckJumpGoal() {
if (posX < _parent.mapSize.x) {
return(undefined);
}
if (Math.abs(_rotation) > 45) {
if (((evo == 5) && (Math.abs(_rotation) > 135)) && (crabMode == "ret_")) {
HurdleJump(_rotation + 180, jumpAddInitY);
}
return(undefined);
}
HurdleJump(_rotation, jumpAddInitY);
}
function Damage(ang) {
speed = maxSpeed;
Jump(ang, jumpAddInitY);
_jumpEndEname = "EnterFrame_damage";
_parent._parent.dispRepair();
repair = 0;
_parent.Notice(60, 120);
_parent.Effect("effect_damage", _x, _y);
}
function EnterFrame_damage() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = 200;
repair = repair + recoverP;
if (repair < _local3) {
_parent._parent.repairDisp.disp(repair, _local3);
return(undefined);
}
_parent._parent.repairDisp.Complete();
this.onEnterFrame = this[_walkEname];
}
function GetCircleCross(x0, y0, r0, x1, y1, r1) {
var _local10 = false;
var _local7 = new flash.geom.Point(x0, y0);
var _local14 = new flash.geom.Point(x1, y1);
var _local2 = _local14.subtract(_local7);
var _local3 = _local2.length;
if (_local3 == (r0 + r1)) {
_local10 = true;
} else if ((_local3 < (r0 + r1)) && (_local3 > Math.abs(r0 - r1))) {
} else {
return([]);
}
_local2.normalize(r0);
_local2.offset(_local7.x, _local7.y);
var _local12 = (0.5 * (((r0 * r0) - (r1 * r1)) + (_local3 * _local3))) / _local3;
var _local4 = Math.acos(_local12 / r0);
var _local5 = Math.atan2(_local2.y - y0, _local2.x - x0);
var _local11 = new flash.geom.Point(x0 + (r0 * Math.cos(_local5 + _local4)), y0 + (r0 * Math.sin(_local5 + _local4)));
var _local13 = new flash.geom.Point(x0 + (r0 * Math.cos(_local5 - _local4)), y0 + (r0 * Math.sin(_local5 - _local4)));
if (_local10) {
return([_local11]);
}
return([_local11, _local13, _local2]);
}
function GetAngleInterval(angA, angB) {
var _local3 = angA;
var _local2 = angB;
_local3 = (_local3 + 360) % 360;
_local2 = (_local2 + 360) % 360;
var _local1 = _local2 - _local3;
if (_local1 >= 0) {
if (_local1 > 180) {
_local1 = _local1 - 360;
}
} else if (_local1 < -180) {
_local1 = _local1 + 360;
}
return(_local1);
}
function evolution() {
var _local4 = _parent.parts_legList.length;
var _local3 = _parent.parts_powerList.length;
var _local2 = _parent.parts_speedList.length;
var _local5 = evo;
if ((evo == 0) && (_local4 >= 4)) {
evo = 1;
}
if (((evo == 1) && (_local4 >= 6)) && ((_local3 + _local2) >= 7)) {
if (_local3 >= _local2) {
evoType = true;
} else {
evoType = false;
}
evo = 2;
}
if ((evo == 2) && (_local4 >= 14)) {
if (_parent.gameStage == 0) {
if (_local5 == 2) {
_parent._parent.dispAlert("evolutionLock");
return(undefined);
}
} else if (evoType) {
if (_local3 >= _local2) {
evo = 5;
} else {
evo = 6;
}
} else if (_local3 >= _local2) {
evo = 4;
} else {
evo = 3;
}
}
if (evo == _local5) {
return(undefined);
}
var _local6 = ["no", "four", "six", "ten", "twin", "crab", "octo"];
gotoAndStop(_local6[evo]);
if (evo == 1) {
_parent.MapExpansion();
}
_parent.Notice(60, 120);
_parent._parent.evoluteDisp.disp(evo, evoType);
_parent._parent.SE("se_evo");
_parent.Effect("effect_evo", _x, _y);
}
function SetGraphicsLeg(A, B) {
var _local2 = 0;
_local2 = 0;
while (_local2 < A) {
ashiList[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < B) {
ashiListB[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
}
function SumMaxSpeed(p_type) {
if (p_type == "speed") {
maxSpeed = maxSpeed + 1;
recoverP = recoverP - 0.5;
} else if (p_type == "power") {
maxSpeed = maxSpeed - 0.5;
recoverP = recoverP + 1;
}
maxSpeed = Math.min(Math.max(maxSpeed, bodyMinSpeed), bodyMaxSpeed);
recoverP = Math.min(Math.max(recoverP, bodyMinPower), bodyMaxPower);
if (evo == 0) {
speed = maxSpeed;
}
}
var mouseClick = false;
var repair = 0;
var speed = 0;
var addSpeed = 1;
var cutSpeed = 2;
var initSpeed = 2;
var maxSpeed = 10;
var recoverP = 0;
var bodyMaxSpeed = 0;
var bodyMaxPower = 0;
var bodyMinSpeed = 0;
var bodyMinPower = 0;
var ashiLength = 93;
var ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiInitPosList = [];
var ashiInitRadList = [];
var ashiTipList = [];
var ashiBack = [];
var ashiListB = [];
var ashiInitPosListB = [];
var ashiInitRadListB = [];
var ashiTipListB = [];
var ashiBackB = [];
this.onMouseDown = MouseDown;
this.onMouseUp = MouseUp;
MouseUp();
gotoAndStop ("no");
Symbol 60 MovieClip [player_type4] Frame 5
function EnterFrame_NotLeg() {
if (_parent.pausing) {
return(undefined);
}
_rotation = (_rotation + Math.min(Math.max(landRolling, -5), 5));
landRolling = landRolling * 0.8;
if (!mouseClick) {
return(undefined);
}
var _local3 = Math.atan2(_parent._ymouse - _y, _parent._xmouse - _x);
var _local2 = (_local3 * 180) / Math.PI;
_local2 = _local2 + (Math.floor(Math.random() * 21) - 10);
landRolling = Math.min(Math.max(_local2, -15), 15);
jumpOldAng = _local2;
Jump(_local2, -6);
}
function Jump_NotLeg() {
_rotation = (_rotation + Math.min(Math.max(jumpOldAng * 0.5, -5), 5));
}
function Jump_NotLeg_Init() {
if (jumpY < 0) {
return(undefined);
}
_jumpEname = "Jump_NotLeg";
speed = maxSpeed;
}
_walkEname = "EnterFrame_NotLeg";
_jumpEname = "Jump_NotLeg_Init";
bodyMaxSpeed = 8;
bodyMinSpeed = 6;
maxSpeed = 7;
bodyMaxPower = 2;
bodyMinPower = 1;
recoverP = 1;
speed = 0;
var jumpOldAng = 0;
var landRolling = 0;
bigPartsList = [[new flash.geom.Point(-43, 0), 0]];
longPartsList = [[new flash.geom.Point(-83, 0), -90]];
smallPartsList = [[new flash.geom.Point(16, 0), 90]];
jumpAddY = 2;
jumpY = -500;
this.onEnterFrame = EnterFrame_Jump;
Symbol 60 MovieClip [player_type4] Frame 8
nextFrame();
Symbol 60 MovieClip [player_type4] Frame 9
function EnterFrame_FourLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_FourLeg();
}
function AshiInit_FourLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_FourLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_FourLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_FourLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_FourLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 10;
bodyMinSpeed = 7;
maxSpeed = 8;
bodyMaxPower = 4;
bodyMinPower = 1;
recoverP = 2;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRB, ashiLB];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(25, 0), 90], [new flash.geom.Point(-75, 0), 90]];
longPartsList = [[new flash.geom.Point(-30, 0), -90]];
smallPartsList = [];
AshiInit_FourLeg();
AshiReset_FourLeg();
SetGraphicsLeg(4, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_FourLeg;
Symbol 60 MovieClip [player_type4] Frame 11
nextFrame();
Symbol 60 MovieClip [player_type4] Frame 12
function EnterFrame_SixLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_SixLeg();
}
function AshiInit_SixLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_SixLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_SixLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_SixLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_SixLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 14;
bodyMinSpeed = 8;
maxSpeed = 10;
bodyMaxPower = 8;
bodyMinPower = 2;
recoverP = 4;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-75, -30), 90], [new flash.geom.Point(-75, 30), 90]];
longPartsList = [];
smallPartsList = [[new flash.geom.Point(16, 0), 90]];
if (evoType) {
longPartsList.push([new flash.geom.Point(30, -41), 0]);
longPartsList.push([new flash.geom.Point(30, 41), 180]);
} else {
smallPartsList.push([new flash.geom.Point(-9, 47), 135]);
smallPartsList.push([new flash.geom.Point(-9, -47), 45]);
}
AshiInit_SixLeg();
AshiReset_SixLeg();
SetGraphicsLeg(6, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_SixLeg;
Symbol 60 MovieClip [player_type4] Frame 14
nextFrame();
Symbol 60 MovieClip [player_type4] Frame 15
function EnterFrame_SixTwinLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_SixTwinLeg();
}
function AshiInit_SixTwinLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
ashiBackB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local2 = new flash.geom.Point(ashiListB[_local1]._x, ashiListB[_local1]._y);
ashiInitPosListB.push(_local2);
ashiInitRadListB.push(ashiListB[_local1]._rotation);
ashiBackB.push(false);
_local1++;
}
}
function AshiReset_SixTwinLeg(p_mc) {
if ((p_mc._name.substr(-1) == "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiListB.length ; i++) {
if (p_mc == undefined) {
} else if (ashiListB[i] != p_mc) {
continue;
}
var _local3 = ashiListB[i];
_local3._x = ashiInitPosListB[i].x;
_local3._y = ashiInitPosListB[i].y;
_local3._rotation = ashiInitRadListB[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipListB[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipListB[i]);
_parent.globalToLocal(ashiTipListB[i]);
}
}
if ((p_mc.name.substr(-1) != "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiList.length ; i++) {
if (p_mc == undefined) {
} else if (ashiList[i] != p_mc) {
continue;
}
var _local3 = ashiList[i];
_local3._x = ashiInitPosList[i].x;
_local3._y = ashiInitPosList[i].y;
_local3._rotation = ashiInitRadList[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipList[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[i]);
_parent.globalToLocal(ashiTipList[i]);
}
}
}
function AshiMove_SixTwinLeg() {
var _local20 = ashiLength;
var _local3 = 0;
for ( ; _local3 < ashiListB.length ; _local3++) {
var _local5 = ashiList[_local3];
var _local4 = ashiListB[_local3];
if (ashiBackB[_local3]) {
var _local10 = 0.5;
var _local9 = ashiInitRadList[_local3] - _local5._rotation;
if (Math.abs(_local9) > 180) {
if (_local9 > 0) {
_local9 = _local9 - 360;
} else {
_local9 = _local9 + 360;
}
}
_local5._x = _local5._x + ((ashiInitPosList[_local3].x - _local5._x) * _local10);
_local5._rotation = _local5._rotation + (_local9 * _local10);
var _local14 = new flash.geom.Point(_local5._x + (Math.cos((_local5._rotation * Math.PI) / 180) * _local20), _local5._y + (Math.sin((_local5._rotation * Math.PI) / 180) * _local20));
_local4._x = _local14.x;
_local4._y = _local14.y;
var _local11 = _local4._rotation + ((ashiInitRadListB[_local3] - _local4._rotation) * _local10);
var _local17 = GetAngleInterval(_local5._rotation, _local11);
if ((_local17 > IK_rectAngMaxB[_local4._name]) || (_local17 < IK_rectAngMinB[_local4._name])) {
if ((ashiInitRadListB[_local3] - _local4._rotation) > 0) {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) - 360) * _local10);
} else {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) + 360) * _local10);
}
}
_local4._rotation = _local11;
if (Math.abs(ashiInitRadList[_local3] - _local5._rotation) < 3) {
ashiBackB[_local3] = false;
AshiReset_SixTwinLeg(ashiList[_local3]);
AshiReset_SixTwinLeg(ashiListB[_local3]);
}
} else {
var _local6 = {x:ashiTipListB[_local3].x, y:ashiTipListB[_local3].y};
_parent.localToGlobal(_local6);
this.globalToLocal(_local6);
var _local18 = Math.atan2(_local6.y - ashiInitPosList[_local3].y, _local6.x - ashiInitPosList[_local3].x);
var _local21 = (_local18 * 180) / Math.PI;
var _local19 = flash.geom.Point.distance(new flash.geom.Point(_local6.x, _local6.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
if (_local19 > (ashiLength * 2)) {
ashiBackB[_local3] = true;
} else {
var _local8 = GetCircleCross(_local6.x, _local6.y, ashiLength, ashiInitPosList[_local3].x, ashiInitPosList[_local3].y, ashiLength);
var _local7 = IK_NumList[ashiListB[_local3]._name];
ashiListB[_local3]._x = _local8[_local7].x;
ashiListB[_local3]._y = _local8[_local7].y;
var _local12 = (Math.atan2(_local6.y - _local8[_local7].y, _local6.x - _local8[_local7].x) * 180) / Math.PI;
ashiListB[_local3]._rotation = _local12;
_local12 = (Math.atan2(_local8[_local7].y - ashiInitPosList[_local3].y, _local8[_local7].x - ashiInitPosList[_local3].x) * 180) / Math.PI;
ashiList[_local3]._rotation = _local12;
var _local13 = false;
var _local16 = GetAngleInterval(ashiList[_local3]._rotation, ashiListB[_local3]._rotation);
if (_local16 > IK_rectAngMaxB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMaxB[ashiListB[_local3]._name];
_local13 = true;
} else if (_local16 < IK_rectAngMinB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMinB[ashiListB[_local3]._name];
_local13 = true;
}
if (_local13) {
var _local15 = (ashiListB[_local3]._rotation * Math.PI) / 180;
ashiTipListB[_local3] = {x:ashiListB[_local3]._x + (Math.cos(_local15) * ashiLength), y:ashiListB[_local3]._y + (Math.sin(_local15) * ashiLength)};
this.localToGlobal(ashiTipListB[_local3]);
_parent.globalToLocal(ashiTipListB[_local3]);
}
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) > IK_rectAngMax[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
continue;
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
}
}
}
_walkEname = "EnterFrame_SixTwinLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 16;
bodyMinSpeed = 9;
maxSpeed = 11;
bodyMaxPower = 10;
bodyMinPower = 2;
recoverP = 4;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
ashiListB = [ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
ashiTipListB = [];
ashiBackB = [];
var IK_NumList = {ashiRF2:1, ashiLF2:0, ashiRM2:0, ashiLM2:1, ashiRB2:0, ashiLB2:1};
var IK_rectAngMax = {ashiRF:10, ashiLF:90, ashiRM:45, ashiLM:90, ashiRB:60, ashiLB:110};
var IK_rectAngMin = {ashiRF:-90, ashiLF:-10, ashiRM:-90, ashiLM:-45, ashiRB:-110, ashiLB:-60};
var IK_rectAngMaxB = {ashiRF2:0, ashiLF2:150, ashiRM2:170, ashiLM2:0, ashiRB2:170, ashiLB2:0};
var IK_rectAngMinB = {ashiRF2:-150, ashiLF2:0, ashiRM2:0, ashiLM2:-170, ashiRB2:0, ashiLB2:-170};
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-65, -31), 90], [new flash.geom.Point(-65, 31), 90]];
longPartsList = [[new flash.geom.Point(14, 0), 0]];
smallPartsList = [[new flash.geom.Point(-9, -39), 90], [new flash.geom.Point(-9, 39), 90]];
AshiInit_SixTwinLeg();
AshiReset_SixTwinLeg();
SetGraphicsLeg(6, 6);
BodyDecoration();
this.onEnterFrame = EnterFrame_SixTwinLeg;
Symbol 60 MovieClip [player_type4] Frame 17
nextFrame();
Symbol 60 MovieClip [player_type4] Frame 18
function EnterFrame_CrabLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkCrab();
if (speed == 0) {
return(undefined);
}
AshiMove_CrabLeg();
}
function AshiInit_CrabLeg() {
ashiBack = [];
ashiBackB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
ashiBack.push(false);
ashiBackB.push(false);
_local1++;
}
}
function AshiReset_CrabLeg(p_mc) {
if ((p_mc._name.substr(-1) == "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiListB.length ; i++) {
if (p_mc == undefined) {
} else if (ashiListB[i] != p_mc) {
continue;
}
var _local3 = ashiListB[i];
_local3._x = ashiInitPosListB[i].x;
_local3._y = ashiInitPosListB[i].y;
_local3._rotation = ashiInitRadListB[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipListB[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipListB[i]);
_parent.globalToLocal(ashiTipListB[i]);
}
}
if ((p_mc.name.substr(-1) != "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiList.length ; i++) {
if (p_mc == undefined) {
} else if (ashiList[i] != p_mc) {
continue;
}
var _local3 = ashiList[i];
_local3._x = ashiInitPosList[i].x;
_local3._y = ashiInitPosList[i].y;
_local3._rotation = ashiInitRadList[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipList[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[i]);
_parent.globalToLocal(ashiTipList[i]);
}
}
}
function AshiMove_CrabLeg() {
var _local20 = ashiLength;
var _local3 = 0;
for ( ; _local3 < ashiListB.length ; _local3++) {
var _local5 = ashiList[_local3];
var _local4 = ashiListB[_local3];
if (ashiBackB[_local3]) {
var _local10 = 0.5;
var _local9 = ashiInitRadList[_local3] - _local5._rotation;
if (Math.abs(_local9) > 180) {
if (_local9 > 0) {
_local9 = _local9 - 360;
} else {
_local9 = _local9 + 360;
}
}
_local5._x = _local5._x + ((ashiInitPosList[_local3].x - _local5._x) * _local10);
_local5._rotation = _local5._rotation + (_local9 * _local10);
var _local14 = new flash.geom.Point(_local5._x + (Math.cos((_local5._rotation * Math.PI) / 180) * _local20), _local5._y + (Math.sin((_local5._rotation * Math.PI) / 180) * _local20));
_local4._x = _local14.x;
_local4._y = _local14.y;
var _local11 = _local4._rotation + ((ashiInitRadListB[_local3] - _local4._rotation) * _local10);
var _local17 = GetAngleInterval(_local5._rotation, _local11);
if ((_local17 > IK_rectAngMaxB[_local4._name]) || (_local17 < IK_rectAngMinB[_local4._name])) {
if ((ashiInitRadListB[_local3] - _local4._rotation) > 0) {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) - 360) * _local10);
} else {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) + 360) * _local10);
}
}
_local4._rotation = _local11;
if (Math.abs(ashiInitRadList[_local3] - _local5._rotation) < 3) {
ashiBackB[_local3] = false;
AshiReset_CrabLeg(ashiList[_local3]);
AshiReset_CrabLeg(ashiListB[_local3]);
}
} else {
var _local6 = {x:ashiTipListB[_local3].x, y:ashiTipListB[_local3].y};
_parent.localToGlobal(_local6);
this.globalToLocal(_local6);
var _local18 = Math.atan2(_local6.y - ashiInitPosList[_local3].y, _local6.x - ashiInitPosList[_local3].x);
var _local21 = (_local18 * 180) / Math.PI;
var _local19 = flash.geom.Point.distance(new flash.geom.Point(_local6.x, _local6.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
if (_local19 > (ashiLength * 2)) {
ashiBackB[_local3] = true;
} else {
var _local8 = GetCircleCross(_local6.x, _local6.y, ashiLength, ashiInitPosList[_local3].x, ashiInitPosList[_local3].y, ashiLength);
var _local7 = IK_NumList[ashiListB[_local3]._name];
ashiListB[_local3]._x = _local8[_local7].x;
ashiListB[_local3]._y = _local8[_local7].y;
var _local12 = (Math.atan2(_local6.y - _local8[_local7].y, _local6.x - _local8[_local7].x) * 180) / Math.PI;
ashiListB[_local3]._rotation = _local12;
_local12 = (Math.atan2(_local8[_local7].y - ashiInitPosList[_local3].y, _local8[_local7].x - ashiInitPosList[_local3].x) * 180) / Math.PI;
ashiList[_local3]._rotation = _local12;
var _local13 = false;
var _local16 = GetAngleInterval(ashiList[_local3]._rotation, ashiListB[_local3]._rotation);
if (_local16 > IK_rectAngMaxB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMaxB[ashiListB[_local3]._name];
_local13 = true;
} else if (_local16 < IK_rectAngMinB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMinB[ashiListB[_local3]._name];
_local13 = true;
}
if (_local13) {
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) > IK_rectAngMax[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
continue;
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
}
}
}
function WalkCrab() {
var _local3 = 1;
var _local5 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local5 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local4 = Math.atan2(_ymouse, _xmouse);
var _local2 = (_local4 * 180) / Math.PI;
if ((crabMode == "ret_") && (Math.abs(_local2) < 90)) {
crabMode = "adv_";
SetAshiInitList(crabMode);
} else if ((crabMode == "adv_") && (Math.abs(_local2) > 90)) {
crabMode = "ret_";
SetAshiInitList(crabMode);
}
if (crabMode == "ret_") {
if (_local2 > 0) {
_local2 = _local2 - 180;
} else {
_local2 = _local2 + 180;
}
_local3 = -1;
}
if (mouseClick) {
_rotation = (_rotation + (_local2 * 0.1));
}
posX = posX + ((Math.cos((_rotation * Math.PI) / 180) * speed) * _local3);
posY = posY + ((Math.sin((_rotation * Math.PI) / 180) * speed) * _local3);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
function SetAshiInitList(str) {
var _local6 = {ashiRF:new flash.geom.Point(44, -29), ashiLF:new flash.geom.Point(-57, -29), ashiRM:new flash.geom.Point(40, 8), ashiLM:new flash.geom.Point(-47, 9), ashiRB:new flash.geom.Point(39, 50), ashiLB:new flash.geom.Point(-40, 47)};
var _local4 = {ashiRF:-70, ashiLF:-109, ashiRM:-60, ashiLM:-120, ashiRB:-57, ashiLB:-125};
var _local5 = {ashiRF2:new flash.geom.Point(76, -119), ashiLF2:new flash.geom.Point(-89, -118), ashiRM2:new flash.geom.Point(86, -72), ashiLM2:new flash.geom.Point(-94, -70), ashiRB2:new flash.geom.Point(90, -29), ashiLB2:new flash.geom.Point(-94, -29)};
var _local3 = {ashiRF2:62, ashiLF2:112, ashiRM2:70, ashiLM2:110, ashiRB2:79, ashiLB2:103};
var _local1 = {ashiRF:new flash.geom.Point(44, -29), ashiLF:new flash.geom.Point(-57, -29), ashiRM:new flash.geom.Point(40, 8), ashiLM:new flash.geom.Point(-47, 9), ashiRB:new flash.geom.Point(39, 50), ashiLB:new flash.geom.Point(-40, 47)};
var _local7 = {ashiRF:-17, ashiLF:-163, ashiRM:-14, ashiLM:-165, ashiRB:-9, ashiLB:-174};
var _local2 = {ashiRF2:new flash.geom.Point(132, -55), ashiLF2:new flash.geom.Point(-146, -56), ashiRM2:new flash.geom.Point(127, -15), ashiLM2:new flash.geom.Point(-137, -12), ashiRB2:new flash.geom.Point(127, 34), ashiLB2:new flash.geom.Point(-132, 38)};
var _local8 = {ashiRF2:36, ashiLF2:138, ashiRM2:33, ashiLM2:142, ashiRB2:27, ashiLB2:151};
var _local17 = [_local1.ashiRF, _local6.ashiLF, _local1.ashiRM, _local6.ashiLM, _local1.ashiRB, _local6.ashiLB];
var _local10 = [_local2.ashiRF2, _local5.ashiLF2, _local2.ashiRM2, _local5.ashiLM2, _local2.ashiRB2, _local5.ashiLB2];
var _local12 = [_local7.ashiRF, _local4.ashiLF, _local7.ashiRM, _local4.ashiLM, _local7.ashiRB, _local4.ashiLB];
var _local14 = [_local8.ashiRF2, _local3.ashiLF2, _local8.ashiRM2, _local3.ashiLM2, _local8.ashiRB2, _local3.ashiLB2];
var _local11 = [_local6.ashiRF, _local1.ashiLF, _local6.ashiRM, _local1.ashiLM, _local6.ashiRB, _local1.ashiLB];
var _local13 = [_local5.ashiRF2, _local2.ashiLF2, _local5.ashiRM2, _local2.ashiLM2, _local5.ashiRB2, _local2.ashiLB2];
var _local15 = [_local4.ashiRF, _local7.ashiLF, _local4.ashiRM, _local7.ashiLM, _local4.ashiRB, _local7.ashiLB];
var _local16 = [_local3.ashiRF2, _local8.ashiLF2, _local3.ashiRM2, _local8.ashiLM2, _local3.ashiRB2, _local8.ashiLB2];
ashiInitPosList = [];
ashiInitRadList = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
if (str == "adv_") {
ashiInitPosList = _local17;
ashiInitPosListB = _local10;
ashiInitRadList = _local12;
ashiInitRadListB = _local14;
} else if (str == "ret_") {
ashiInitPosList = _local11;
ashiInitPosListB = _local13;
ashiInitRadList = _local15;
ashiInitRadListB = _local16;
}
if (str == "adv_") {
IK_rectAngMax = {ashiRF:60, ashiLF:60, ashiRM:58, ashiLM:58, ashiRB:56, ashiLB:56};
IK_rectAngMin = {ashiRF:-10, ashiLF:-10, ashiRM:-10, ashiLM:-10, ashiRB:-10, ashiLB:-10};
} else if (str == "ret_") {
IK_rectAngMax = {ashiRF:10, ashiLF:10, ashiRM:10, ashiLM:10, ashiRB:10, ashiLB:10};
IK_rectAngMin = {ashiRF:-60, ashiLF:-60, ashiRM:-60, ashiLM:-60, ashiRB:-60, ashiLB:-60};
}
}
function GetAshiPos_CrabLeg() {
var _local5 = "{ ";
var _local3 = "{ ";
var _local4 = "{ ";
var _local2 = "{ ";
var _local1 = 0;
while (_local1 < ashiList.length) {
_local5 = _local5 + ((((((ashiList[_local1]._name + " : ") + "new Point(") + (ashiList[_local1]._x ^ 0)) + " , ") + (ashiList[_local1]._y ^ 0)) + " ) , ");
_local3 = _local3 + (((ashiList[_local1]._name + " : ") + (ashiList[_local1]._rotation ^ 0)) + " , ");
_local4 = _local4 + ((((((ashiListB[_local1]._name + " : ") + "new Point(") + (ashiListB[_local1]._x ^ 0)) + " , ") + (ashiListB[_local1]._y ^ 0)) + " ) , ");
_local2 = _local2 + (((ashiListB[_local1]._name + " : ") + (ashiListB[_local1]._rotation ^ 0)) + " , ");
_local1++;
}
_local5 = _local5.substr(0, _local5.length - 2) + "}";
_local3 = _local3.substr(0, _local3.length - 2) + "}";
_local4 = _local4.substr(0, _local4.length - 2) + "}";
_local2 = _local2.substr(0, _local2.length - 2) + "}";
trace(_local5);
trace(_local3);
trace(_local4);
trace(_local2);
}
_walkEname = "EnterFrame_CrabLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 10;
bodyMinSpeed = 5;
maxSpeed = 7;
bodyMaxPower = 12;
bodyMinPower = 6;
recoverP = 8;
ashiLength = 93;
ashiTipList = [];
ashiBack = [];
ashiTipListB = [];
ashiBackB = [];
var ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiListB = [ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
var ashiInitPosList = [];
var ashiInitRadList = [];
var ashiInitPosListB = [];
var ashiInitRadListB = [];
var IK_NumList = {ashiRF2:0, ashiLF2:1, ashiRM2:0, ashiLM2:1, ashiRB2:0, ashiLB2:1};
var IK_rectAngMax = {ashiRF:60, ashiLF:60, ashiRM:58, ashiLM:58, ashiRB:56, ashiLB:56};
var IK_rectAngMin = {ashiRF:-60, ashiLF:-60, ashiRM:-60, ashiLM:-60, ashiRB:-60, ashiLB:-60};
var IK_rectAngMaxB = {ashiRF2:150, ashiLF2:0, ashiRM2:150, ashiLM2:0, ashiRB2:150, ashiLB2:0};
var IK_rectAngMinB = {ashiRF2:0, ashiLF2:-150, ashiRM2:0, ashiLM2:-150, ashiRB2:0, ashiLB2:-150};
var crabMode = "ret_";
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(70, 0), 0], [new flash.geom.Point(-70, 0), 0]];
longPartsList = [[new flash.geom.Point(0, 42), 180], [new flash.geom.Point(-43, 51), -165], [new flash.geom.Point(43, 51), 165]];
smallPartsList = [[new flash.geom.Point(0, 0), 0]];
SetAshiInitList(crabMode);
AshiInit_CrabLeg();
AshiReset_CrabLeg();
SetGraphicsLeg(6, 6);
BodyDecoration();
this.onEnterFrame = EnterFrame_CrabLeg;
Symbol 60 MovieClip [player_type4] Frame 20
nextFrame();
Symbol 60 MovieClip [player_type4] Frame 21
function EnterFrame_OctopusLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkOctopus();
AshiMove_OctopusLeg();
octo_oldAng = _rotation;
}
function AshiInit_OctopusLeg() {
var _local1 = 0;
while (_local1 < ashiList.length) {
ashiInitRadList[_local1] = ashiList[_local1]._rotation;
ashiInitRadListB[_local1] = ashiListB[_local1]._rotation;
_local1++;
}
}
function AshiReset_OctopusLeg() {
octo_radList = [];
octo_radListB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
octo_radList.push(ashiList[_local1]._rotation);
octo_radListB.push(ashiListB[_local1]._rotation);
_local1++;
}
}
function AshiMove_OctopusLeg() {
var _local6 = maxSpeed * 0.5;
var _local5 = 10;
var _local1 = 0;
if (speed > _local6) {
_local1 = 0;
while (_local1 < ashiList.length) {
var _local3 = (Math.atan2(octo_tailPointA.y - _y, octo_tailPointA.x - _x) * 180) / Math.PI;
_local3 = _local3 - _rotation;
var _local2 = _local3 - octo_radList[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radList[_local1] = octo_radList[_local1] + (_local2 * 0.2);
ashiList[_local1]._rotation = octo_radList[_local1] + (Math.cos(octo_wave + (_local1 * 0.1)) * _local5);
var _local4 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
_local4.x = _local4.x + (Math.cos((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
_local4.y = _local4.y + (Math.sin((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
ashiListB[_local1]._x = _local4.x;
ashiListB[_local1]._y = _local4.y;
_local3 = (Math.atan2(octo_tailPointB.y - _y, octo_tailPointB.x - _x) * 180) / Math.PI;
_local3 = _local3 - _rotation;
_local2 = _local3 - octo_radListB[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radListB[_local1] = octo_radListB[_local1] + (_local2 * 0.2);
ashiListB[_local1]._rotation = octo_radListB[_local1] + (Math.cos(octo_wave + (_local1 * 0.2)) * _local5);
_local1++;
}
} else {
_local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = ashiInitRadList[_local1] - octo_radList[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radList[_local1] = octo_radList[_local1] + (_local2 * 0.1);
ashiList[_local1]._rotation = octo_radList[_local1] + (Math.cos(octo_wave + (_local1 * 0.1)) * _local5);
var _local4 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
_local4.x = _local4.x + (Math.cos((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
_local4.y = _local4.y + (Math.sin((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
ashiListB[_local1]._x = _local4.x;
ashiListB[_local1]._y = _local4.y;
_local2 = ashiInitRadListB[_local1] - octo_radListB[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radListB[_local1] = octo_radListB[_local1] + (_local2 * 0.1);
ashiListB[_local1]._rotation = octo_radListB[_local1] + (Math.cos(octo_wave + (_local1 * 0.2)) * _local5);
_local1++;
}
}
octo_wave = octo_wave + 0.05;
octo_tailPointA.x = octo_tailPointA.x + ((_x - octo_tailPointA.x) * 0.2);
octo_tailPointA.y = octo_tailPointA.y + ((_y - octo_tailPointA.y) * 0.2);
octo_tailPointB.x = octo_tailPointB.x + ((octo_tailPointA.x - octo_tailPointB.x) * 0.1);
octo_tailPointB.y = octo_tailPointB.y + ((octo_tailPointA.y - octo_tailPointB.y) * 0.1);
}
function WalkOctopus() {
var _local3 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local3 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local2 = Math.atan2(_ymouse, _xmouse);
var _local4 = (_local2 * 180) / Math.PI;
if (mouseClick) {
_rotation = (_rotation + (_local4 * 0.2));
}
posX = posX + (Math.cos((_rotation * Math.PI) / 180) * speed);
posY = posY + (Math.sin((_rotation * Math.PI) / 180) * speed);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
_walkEname = "EnterFrame_OctopusLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 12;
bodyMinSpeed = 7;
maxSpeed = 9;
bodyMaxPower = 10;
bodyMinPower = 4;
recoverP = 5;
ashiLength = 93;
var octo_tailPointA = (new flash.geom.Point(_x, _y));
var octo_tailPointB = (new flash.geom.Point(_x, _y));
var ashiList = [ashiRT, ashiLT, ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiListB = [ashiRT2, ashiLT2, ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
var ashiInitRadList = [];
var ashiInitRadListB = [];
var octo_radList = [];
var octo_radListB = [];
var octo_wave = 0;
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-24, 0), 90], [new flash.geom.Point(44, -36), 90], [new flash.geom.Point(44, 36), 90]];
longPartsList = [];
smallPartsList = [];
AshiInit_OctopusLeg();
AshiReset_OctopusLeg();
SetGraphicsLeg(8, 8);
BodyDecoration();
this.onEnterFrame = EnterFrame_OctopusLeg;
Symbol 60 MovieClip [player_type4] Frame 23
nextFrame();
Symbol 60 MovieClip [player_type4] Frame 24
function EnterFrame_TenLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_TenLeg();
}
function AshiInit_TenLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_TenLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_TenLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_TenLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_TenLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 18;
bodyMinSpeed = 12;
maxSpeed = 14;
bodyMaxPower = 8;
bodyMinPower = 1;
recoverP = 3;
ashiLength = 93;
ashiList = [ashiR0, ashiL0, ashiR1, ashiL1, ashiR2, ashiL2, ashiR3, ashiL3, ashiR4, ashiL4];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-110, 0), 90]];
longPartsList = [[new flash.geom.Point(-17, 0), -90], [new flash.geom.Point(10, 0), -90]];
smallPartsList = [[new flash.geom.Point(44, 0), 90], [new flash.geom.Point(-50, 0), 90]];
AshiInit_TenLeg();
AshiReset_TenLeg();
SetGraphicsLeg(10, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_TenLeg;
Symbol 72 MovieClip [player_type0] Frame 1
function Jump(j_ang, j_initY) {
jumpAng = j_ang;
jumpAddY = j_initY;
jumpY = 0;
this.onEnterFrame = EnterFrame_Jump;
}
function EnterFrame_Jump() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = (jumpAng * Math.PI) / 180;
var _local5 = Math.cos(_local3) * speed;
var _local4 = Math.sin(_local3) * speed;
posX = posX + _local5;
posY = posY + _local4;
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
var _local6 = MotionJump();
_x = posX;
_y = (posY + jumpY);
DispBound();
if (_jumpEname != "") {
this[_jumpEname]();
}
if (_local6) {
if (_jumpEndEname == "") {
this.onEnterFrame = this[_walkEname];
} else {
this.onEnterFrame = this[_jumpEndEname];
_jumpEndEname = "";
}
}
}
function MotionJump() {
jumpY = Math.min(jumpY + jumpAddY, 0);
jumpAddY = jumpAddY + jumpAddFrame;
DispBound();
return(jumpY == 0);
}
function DispBound() {
var _local3 = (Math.PI/4);
var _local2 = 5;
var _local5 = Math.cos(_local3) * _local2;
var _local4 = Math.sin(_local3) * _local2;
_local4 = _local4 + (-jumpY);
_local3 = Math.atan2(_local4, _local5);
_local2 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
dropShadow.distance = _local2;
dropShadow.angle = (_local3 * 180) / Math.PI;
this.filters = [dropShadow];
}
function HurdleJump(j_ang, j_initY) {
jumpAng = j_ang;
jumpAddY = j_initY;
jumpY = 0;
speed = maxSpeed;
this.onEnterFrame = EnterFrame_HurdleJump;
}
function EnterFrame_HurdleJump() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = (jumpAng * Math.PI) / 180;
var _local7 = Math.cos(_local3) * speed;
var _local6 = Math.sin(_local3) * speed;
posX = posX + _local7;
posY = posY + _local6;
var _local8 = MotionJump();
_x = posX;
_y = (posY + jumpY);
DispBound();
if ((jumpAddY > -2) && (hurdleCheck == 0)) {
var _local9 = _parent.parts_legList.length;
var _local5 = _parent.parts_speedList.length;
var _local4 = _parent.parts_powerList.length;
if ((_local5 + _local4) >= _parent.clearNormaParts) {
hurdleCheck = 1;
} else {
hurdleCheck = 2;
if (jumpAng > 0) {
jumpAng = 180 - jumpAng;
} else {
jumpAng = -180 - jumpAng;
}
if (evo != 5) {
_rotation = jumpAng;
}
_parent._parent.dispAlert("needJump");
}
}
if (_local8) {
if (hurdleCheck == 1) {
_parent.NextStage();
delete this.onEnterFrame;
} else {
if (evo == 5) {
if (crabMode == "adv_") {
crabMode = "ret_";
} else {
crabMode = "adv_";
}
SetAshiInitList(crabMode);
speed = 0;
}
this.onEnterFrame = this[_walkEname];
}
hurdleCheck = 0;
}
}
function NextStageStart() {
this.onEnterFrame = this[_walkEname];
}
function BodyUnDecoration() {
var _local1 = 0;
while (_local1 < decoMcList.length) {
decoMcList[_local1].removeMovieClip();
_local1++;
}
decoMcList = [];
}
function BodyDecoration() {
BodyUnDecoration();
var _local4 = 0;
var _local10 = Math.min(bigPartsList.length, _parent.kikaku_bigList.length);
var _local12 = Math.min(longPartsList.length, _parent.kikaku_longList.length);
var _local11 = Math.min(smallPartsList.length, _parent.kikaku_smallList.length);
var _local3 = 0;
while (_local3 < _local10) {
var _local6 = "deco_b_" + _parent.kikaku_bigList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:bigPartsList[_local3][0].x, _y:bigPartsList[_local3][0].y, _rotation:bigPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local12) {
var _local6 = "deco_l_" + _parent.kikaku_longList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:longPartsList[_local3][0].x, _y:longPartsList[_local3][0].y, _rotation:longPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local11) {
var _local6 = "deco_s_" + _parent.kikaku_smallList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:smallPartsList[_local3][0].x, _y:smallPartsList[_local3][0].y, _rotation:smallPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
}
var dropShadow = (new flash.filters.DropShadowFilter(5, 45, 0, 1, 5, 5, 0.5));
this.filters = [dropShadow];
var evo = 0;
var evoType = true;
var bigPartsList = [];
var longPartsList = [];
var smallPartsList = [];
var decoMcList = [];
var _mode = "walk";
var _walkEname = "";
var _jumpEname = "";
var _jumpEndEname = "";
var posX = _x;
var posY = _y;
var jumpAng = 0;
var jumpAddY = 0;
var jumpY = 0;
var jumpAddInitY = -10;
var jumpAddFrame = 2;
var hurdleCheck = 0;
this.onKeyDown = function () {
_parent.MapExpansion();
evo = 5;
maxSpeed = 12;
gotoAndStop ("crab");
};
function MouseDown() {
mouseClick = true;
}
function MouseUp() {
mouseClick = false;
}
function WalkBasic() {
var _local3 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local3 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local2 = Math.atan2(_ymouse, _xmouse);
var _local4 = (_local2 * 180) / Math.PI;
if (mouseClick) {
_rotation = (_rotation + (_local4 * 0.1));
}
posX = posX + (Math.cos((_rotation * Math.PI) / 180) * speed);
posY = posY + (Math.sin((_rotation * Math.PI) / 180) * speed);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
function CheckJumpGoal() {
if (posX < _parent.mapSize.x) {
return(undefined);
}
if (Math.abs(_rotation) > 45) {
if (((evo == 5) && (Math.abs(_rotation) > 135)) && (crabMode == "ret_")) {
HurdleJump(_rotation + 180, jumpAddInitY);
}
return(undefined);
}
HurdleJump(_rotation, jumpAddInitY);
}
function Damage(ang) {
speed = maxSpeed;
Jump(ang, jumpAddInitY);
_jumpEndEname = "EnterFrame_damage";
_parent._parent.dispRepair();
repair = 0;
_parent.Notice(60, 120);
_parent.Effect("effect_damage", _x, _y);
}
function EnterFrame_damage() {
if (_parent.pausing) {
return(undefined);
}
var _local3 = 200;
repair = repair + recoverP;
if (repair < _local3) {
_parent._parent.repairDisp.disp(repair, _local3);
return(undefined);
}
_parent._parent.repairDisp.Complete();
this.onEnterFrame = this[_walkEname];
}
function GetCircleCross(x0, y0, r0, x1, y1, r1) {
var _local10 = false;
var _local7 = new flash.geom.Point(x0, y0);
var _local14 = new flash.geom.Point(x1, y1);
var _local2 = _local14.subtract(_local7);
var _local3 = _local2.length;
if (_local3 == (r0 + r1)) {
_local10 = true;
} else if ((_local3 < (r0 + r1)) && (_local3 > Math.abs(r0 - r1))) {
} else {
return([]);
}
_local2.normalize(r0);
_local2.offset(_local7.x, _local7.y);
var _local12 = (0.5 * (((r0 * r0) - (r1 * r1)) + (_local3 * _local3))) / _local3;
var _local4 = Math.acos(_local12 / r0);
var _local5 = Math.atan2(_local2.y - y0, _local2.x - x0);
var _local11 = new flash.geom.Point(x0 + (r0 * Math.cos(_local5 + _local4)), y0 + (r0 * Math.sin(_local5 + _local4)));
var _local13 = new flash.geom.Point(x0 + (r0 * Math.cos(_local5 - _local4)), y0 + (r0 * Math.sin(_local5 - _local4)));
if (_local10) {
return([_local11]);
}
return([_local11, _local13, _local2]);
}
function GetAngleInterval(angA, angB) {
var _local3 = angA;
var _local2 = angB;
_local3 = (_local3 + 360) % 360;
_local2 = (_local2 + 360) % 360;
var _local1 = _local2 - _local3;
if (_local1 >= 0) {
if (_local1 > 180) {
_local1 = _local1 - 360;
}
} else if (_local1 < -180) {
_local1 = _local1 + 360;
}
return(_local1);
}
function evolution() {
var _local4 = _parent.parts_legList.length;
var _local3 = _parent.parts_powerList.length;
var _local2 = _parent.parts_speedList.length;
var _local5 = evo;
if ((evo == 0) && (_local4 >= 4)) {
evo = 1;
}
if (((evo == 1) && (_local4 >= 6)) && ((_local3 + _local2) >= 7)) {
if (_local3 >= _local2) {
evoType = true;
} else {
evoType = false;
}
evo = 2;
}
if ((evo == 2) && (_local4 >= 14)) {
if (_parent.gameStage == 0) {
if (_local5 == 2) {
_parent._parent.dispAlert("evolutionLock");
return(undefined);
}
} else if (evoType) {
if (_local3 >= _local2) {
evo = 5;
} else {
evo = 6;
}
} else if (_local3 >= _local2) {
evo = 4;
} else {
evo = 3;
}
}
if (evo == _local5) {
return(undefined);
}
var _local6 = ["no", "four", "six", "ten", "twin", "crab", "octo"];
gotoAndStop(_local6[evo]);
if (evo == 1) {
_parent.MapExpansion();
}
_parent.Notice(60, 120);
_parent._parent.evoluteDisp.disp(evo, evoType);
_parent._parent.SE("se_evo");
_parent.Effect("effect_evo", _x, _y);
}
function SetGraphicsLeg(A, B) {
var _local2 = 0;
_local2 = 0;
while (_local2 < A) {
ashiList[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < B) {
ashiListB[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
}
function SumMaxSpeed(p_type) {
if (p_type == "speed") {
maxSpeed = maxSpeed + 1;
recoverP = recoverP - 0.5;
} else if (p_type == "power") {
maxSpeed = maxSpeed - 0.5;
recoverP = recoverP + 1;
}
maxSpeed = Math.min(Math.max(maxSpeed, bodyMinSpeed), bodyMaxSpeed);
recoverP = Math.min(Math.max(recoverP, bodyMinPower), bodyMaxPower);
if (evo == 0) {
speed = maxSpeed;
}
}
var mouseClick = false;
var repair = 0;
var speed = 0;
var addSpeed = 1;
var cutSpeed = 2;
var initSpeed = 2;
var maxSpeed = 10;
var recoverP = 0;
var bodyMaxSpeed = 0;
var bodyMaxPower = 0;
var bodyMinSpeed = 0;
var bodyMinPower = 0;
var ashiLength = 93;
var ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiInitPosList = [];
var ashiInitRadList = [];
var ashiTipList = [];
var ashiBack = [];
var ashiListB = [];
var ashiInitPosListB = [];
var ashiInitRadListB = [];
var ashiTipListB = [];
var ashiBackB = [];
this.onMouseDown = MouseDown;
this.onMouseUp = MouseUp;
MouseUp();
gotoAndStop ("no");
Symbol 72 MovieClip [player_type0] Frame 5
function EnterFrame_NotLeg() {
if (_parent.pausing) {
return(undefined);
}
_rotation = (_rotation + Math.min(Math.max(landRolling, -5), 5));
landRolling = landRolling * 0.8;
if (!mouseClick) {
return(undefined);
}
var _local3 = Math.atan2(_parent._ymouse - _y, _parent._xmouse - _x);
var _local2 = (_local3 * 180) / Math.PI;
_local2 = _local2 + (Math.floor(Math.random() * 21) - 10);
landRolling = Math.min(Math.max(_local2, -15), 15);
jumpOldAng = _local2;
Jump(_local2, -6);
}
function Jump_NotLeg() {
_rotation = (_rotation + Math.min(Math.max(jumpOldAng * 0.5, -5), 5));
}
function Jump_NotLeg_Init() {
if (jumpY < 0) {
return(undefined);
}
_jumpEname = "Jump_NotLeg";
speed = maxSpeed;
}
_walkEname = "EnterFrame_NotLeg";
_jumpEname = "Jump_NotLeg_Init";
bodyMaxSpeed = 8;
bodyMinSpeed = 6;
maxSpeed = 7;
bodyMaxPower = 2;
bodyMinPower = 1;
recoverP = 1;
speed = 0;
var jumpOldAng = 0;
var landRolling = 0;
bigPartsList = [[new flash.geom.Point(-43, 0), 0]];
longPartsList = [[new flash.geom.Point(-83, 0), -90]];
smallPartsList = [[new flash.geom.Point(16, 0), 90]];
jumpAddY = 2;
jumpY = -500;
this.onEnterFrame = EnterFrame_Jump;
Symbol 72 MovieClip [player_type0] Frame 8
nextFrame();
Symbol 72 MovieClip [player_type0] Frame 9
function EnterFrame_FourLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_FourLeg();
}
function AshiInit_FourLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_FourLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_FourLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_FourLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_FourLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 10;
bodyMinSpeed = 7;
maxSpeed = 8;
bodyMaxPower = 4;
bodyMinPower = 1;
recoverP = 2;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRB, ashiLB];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(25, 0), 0]];
longPartsList = [[new flash.geom.Point(-30, 0), -90]];
smallPartsList = [[new flash.geom.Point(-65, -30), 60], [new flash.geom.Point(-65, 30), 120]];
AshiInit_FourLeg();
AshiReset_FourLeg();
SetGraphicsLeg(4, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_FourLeg;
Symbol 72 MovieClip [player_type0] Frame 11
nextFrame();
Symbol 72 MovieClip [player_type0] Frame 12
function EnterFrame_SixLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_SixLeg();
}
function AshiInit_SixLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_SixLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_SixLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_SixLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_SixLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 14;
bodyMinSpeed = 8;
maxSpeed = 10;
bodyMaxPower = 8;
bodyMinPower = 2;
recoverP = 4;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-43, 0), 0]];
longPartsList = [[new flash.geom.Point(-83, 0), -90]];
smallPartsList = [[new flash.geom.Point(16, 0), 90]];
if (evoType) {
longPartsList.push([new flash.geom.Point(30, -41), 0]);
longPartsList.push([new flash.geom.Point(30, 41), 180]);
} else {
smallPartsList.push([new flash.geom.Point(-9, 47), 135]);
smallPartsList.push([new flash.geom.Point(-9, -47), 45]);
}
AshiInit_SixLeg();
AshiReset_SixLeg();
SetGraphicsLeg(6, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_SixLeg;
Symbol 72 MovieClip [player_type0] Frame 14
nextFrame();
Symbol 72 MovieClip [player_type0] Frame 15
function EnterFrame_SixTwinLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_SixTwinLeg();
}
function AshiInit_SixTwinLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
ashiBackB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local2 = new flash.geom.Point(ashiListB[_local1]._x, ashiListB[_local1]._y);
ashiInitPosListB.push(_local2);
ashiInitRadListB.push(ashiListB[_local1]._rotation);
ashiBackB.push(false);
_local1++;
}
}
function AshiReset_SixTwinLeg(p_mc) {
if ((p_mc._name.substr(-1) == "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiListB.length ; i++) {
if (p_mc == undefined) {
} else if (ashiListB[i] != p_mc) {
continue;
}
var _local3 = ashiListB[i];
_local3._x = ashiInitPosListB[i].x;
_local3._y = ashiInitPosListB[i].y;
_local3._rotation = ashiInitRadListB[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipListB[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipListB[i]);
_parent.globalToLocal(ashiTipListB[i]);
}
}
if ((p_mc.name.substr(-1) != "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiList.length ; i++) {
if (p_mc == undefined) {
} else if (ashiList[i] != p_mc) {
continue;
}
var _local3 = ashiList[i];
_local3._x = ashiInitPosList[i].x;
_local3._y = ashiInitPosList[i].y;
_local3._rotation = ashiInitRadList[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipList[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[i]);
_parent.globalToLocal(ashiTipList[i]);
}
}
}
function AshiMove_SixTwinLeg() {
var _local20 = ashiLength;
var _local3 = 0;
for ( ; _local3 < ashiListB.length ; _local3++) {
var _local5 = ashiList[_local3];
var _local4 = ashiListB[_local3];
if (ashiBackB[_local3]) {
var _local10 = 0.5;
var _local9 = ashiInitRadList[_local3] - _local5._rotation;
if (Math.abs(_local9) > 180) {
if (_local9 > 0) {
_local9 = _local9 - 360;
} else {
_local9 = _local9 + 360;
}
}
_local5._x = _local5._x + ((ashiInitPosList[_local3].x - _local5._x) * _local10);
_local5._rotation = _local5._rotation + (_local9 * _local10);
var _local14 = new flash.geom.Point(_local5._x + (Math.cos((_local5._rotation * Math.PI) / 180) * _local20), _local5._y + (Math.sin((_local5._rotation * Math.PI) / 180) * _local20));
_local4._x = _local14.x;
_local4._y = _local14.y;
var _local11 = _local4._rotation + ((ashiInitRadListB[_local3] - _local4._rotation) * _local10);
var _local17 = GetAngleInterval(_local5._rotation, _local11);
if ((_local17 > IK_rectAngMaxB[_local4._name]) || (_local17 < IK_rectAngMinB[_local4._name])) {
if ((ashiInitRadListB[_local3] - _local4._rotation) > 0) {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) - 360) * _local10);
} else {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) + 360) * _local10);
}
}
_local4._rotation = _local11;
if (Math.abs(ashiInitRadList[_local3] - _local5._rotation) < 3) {
ashiBackB[_local3] = false;
AshiReset_SixTwinLeg(ashiList[_local3]);
AshiReset_SixTwinLeg(ashiListB[_local3]);
}
} else {
var _local6 = {x:ashiTipListB[_local3].x, y:ashiTipListB[_local3].y};
_parent.localToGlobal(_local6);
this.globalToLocal(_local6);
var _local18 = Math.atan2(_local6.y - ashiInitPosList[_local3].y, _local6.x - ashiInitPosList[_local3].x);
var _local21 = (_local18 * 180) / Math.PI;
var _local19 = flash.geom.Point.distance(new flash.geom.Point(_local6.x, _local6.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
if (_local19 > (ashiLength * 2)) {
ashiBackB[_local3] = true;
} else {
var _local8 = GetCircleCross(_local6.x, _local6.y, ashiLength, ashiInitPosList[_local3].x, ashiInitPosList[_local3].y, ashiLength);
var _local7 = IK_NumList[ashiListB[_local3]._name];
ashiListB[_local3]._x = _local8[_local7].x;
ashiListB[_local3]._y = _local8[_local7].y;
var _local12 = (Math.atan2(_local6.y - _local8[_local7].y, _local6.x - _local8[_local7].x) * 180) / Math.PI;
ashiListB[_local3]._rotation = _local12;
_local12 = (Math.atan2(_local8[_local7].y - ashiInitPosList[_local3].y, _local8[_local7].x - ashiInitPosList[_local3].x) * 180) / Math.PI;
ashiList[_local3]._rotation = _local12;
var _local13 = false;
var _local16 = GetAngleInterval(ashiList[_local3]._rotation, ashiListB[_local3]._rotation);
if (_local16 > IK_rectAngMaxB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMaxB[ashiListB[_local3]._name];
_local13 = true;
} else if (_local16 < IK_rectAngMinB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMinB[ashiListB[_local3]._name];
_local13 = true;
}
if (_local13) {
var _local15 = (ashiListB[_local3]._rotation * Math.PI) / 180;
ashiTipListB[_local3] = {x:ashiListB[_local3]._x + (Math.cos(_local15) * ashiLength), y:ashiListB[_local3]._y + (Math.sin(_local15) * ashiLength)};
this.localToGlobal(ashiTipListB[_local3]);
_parent.globalToLocal(ashiTipListB[_local3]);
}
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) > IK_rectAngMax[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
continue;
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
}
}
}
_walkEname = "EnterFrame_SixTwinLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 16;
bodyMinSpeed = 9;
maxSpeed = 11;
bodyMaxPower = 10;
bodyMinPower = 2;
recoverP = 4;
ashiLength = 93;
ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
ashiListB = [ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
ashiTipListB = [];
ashiBackB = [];
var IK_NumList = {ashiRF2:1, ashiLF2:0, ashiRM2:0, ashiLM2:1, ashiRB2:0, ashiLB2:1};
var IK_rectAngMax = {ashiRF:10, ashiLF:90, ashiRM:45, ashiLM:90, ashiRB:60, ashiLB:110};
var IK_rectAngMin = {ashiRF:-90, ashiLF:-10, ashiRM:-90, ashiLM:-45, ashiRB:-110, ashiLB:-60};
var IK_rectAngMaxB = {ashiRF2:0, ashiLF2:150, ashiRM2:170, ashiLM2:0, ashiRB2:170, ashiLB2:0};
var IK_rectAngMinB = {ashiRF2:-150, ashiLF2:0, ashiRM2:0, ashiLM2:-170, ashiRB2:0, ashiLB2:-170};
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-43, 0), 0]];
longPartsList = [[new flash.geom.Point(-83, 0), -90]];
smallPartsList = [[new flash.geom.Point(21, -25), 30], [new flash.geom.Point(21, 25), 150], [new flash.geom.Point(-9, -39), 0], [new flash.geom.Point(-9, 39), 0]];
AshiInit_SixTwinLeg();
AshiReset_SixTwinLeg();
SetGraphicsLeg(6, 6);
BodyDecoration();
this.onEnterFrame = EnterFrame_SixTwinLeg;
Symbol 72 MovieClip [player_type0] Frame 17
nextFrame();
Symbol 72 MovieClip [player_type0] Frame 18
function EnterFrame_CrabLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkCrab();
if (speed == 0) {
return(undefined);
}
AshiMove_CrabLeg();
}
function AshiInit_CrabLeg() {
ashiBack = [];
ashiBackB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
ashiBack.push(false);
ashiBackB.push(false);
_local1++;
}
}
function AshiReset_CrabLeg(p_mc) {
if ((p_mc._name.substr(-1) == "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiListB.length ; i++) {
if (p_mc == undefined) {
} else if (ashiListB[i] != p_mc) {
continue;
}
var _local3 = ashiListB[i];
_local3._x = ashiInitPosListB[i].x;
_local3._y = ashiInitPosListB[i].y;
_local3._rotation = ashiInitRadListB[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipListB[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipListB[i]);
_parent.globalToLocal(ashiTipListB[i]);
}
}
if ((p_mc.name.substr(-1) != "2") || (p_mc == undefined)) {
i = 0;
for ( ; i < ashiList.length ; i++) {
if (p_mc == undefined) {
} else if (ashiList[i] != p_mc) {
continue;
}
var _local3 = ashiList[i];
_local3._x = ashiInitPosList[i].x;
_local3._y = ashiInitPosList[i].y;
_local3._rotation = ashiInitRadList[i];
var _local6 = ashiLength;
var _local5 = (_local3._rotation * Math.PI) / 180;
ashiTipList[i] = {x:_local3._x + (Math.cos(_local5) * _local6), y:_local3._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[i]);
_parent.globalToLocal(ashiTipList[i]);
}
}
}
function AshiMove_CrabLeg() {
var _local20 = ashiLength;
var _local3 = 0;
for ( ; _local3 < ashiListB.length ; _local3++) {
var _local5 = ashiList[_local3];
var _local4 = ashiListB[_local3];
if (ashiBackB[_local3]) {
var _local10 = 0.5;
var _local9 = ashiInitRadList[_local3] - _local5._rotation;
if (Math.abs(_local9) > 180) {
if (_local9 > 0) {
_local9 = _local9 - 360;
} else {
_local9 = _local9 + 360;
}
}
_local5._x = _local5._x + ((ashiInitPosList[_local3].x - _local5._x) * _local10);
_local5._rotation = _local5._rotation + (_local9 * _local10);
var _local14 = new flash.geom.Point(_local5._x + (Math.cos((_local5._rotation * Math.PI) / 180) * _local20), _local5._y + (Math.sin((_local5._rotation * Math.PI) / 180) * _local20));
_local4._x = _local14.x;
_local4._y = _local14.y;
var _local11 = _local4._rotation + ((ashiInitRadListB[_local3] - _local4._rotation) * _local10);
var _local17 = GetAngleInterval(_local5._rotation, _local11);
if ((_local17 > IK_rectAngMaxB[_local4._name]) || (_local17 < IK_rectAngMinB[_local4._name])) {
if ((ashiInitRadListB[_local3] - _local4._rotation) > 0) {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) - 360) * _local10);
} else {
_local11 = _local4._rotation + (((ashiInitRadListB[_local3] - _local4._rotation) + 360) * _local10);
}
}
_local4._rotation = _local11;
if (Math.abs(ashiInitRadList[_local3] - _local5._rotation) < 3) {
ashiBackB[_local3] = false;
AshiReset_CrabLeg(ashiList[_local3]);
AshiReset_CrabLeg(ashiListB[_local3]);
}
} else {
var _local6 = {x:ashiTipListB[_local3].x, y:ashiTipListB[_local3].y};
_parent.localToGlobal(_local6);
this.globalToLocal(_local6);
var _local18 = Math.atan2(_local6.y - ashiInitPosList[_local3].y, _local6.x - ashiInitPosList[_local3].x);
var _local21 = (_local18 * 180) / Math.PI;
var _local19 = flash.geom.Point.distance(new flash.geom.Point(_local6.x, _local6.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
if (_local19 > (ashiLength * 2)) {
ashiBackB[_local3] = true;
} else {
var _local8 = GetCircleCross(_local6.x, _local6.y, ashiLength, ashiInitPosList[_local3].x, ashiInitPosList[_local3].y, ashiLength);
var _local7 = IK_NumList[ashiListB[_local3]._name];
ashiListB[_local3]._x = _local8[_local7].x;
ashiListB[_local3]._y = _local8[_local7].y;
var _local12 = (Math.atan2(_local6.y - _local8[_local7].y, _local6.x - _local8[_local7].x) * 180) / Math.PI;
ashiListB[_local3]._rotation = _local12;
_local12 = (Math.atan2(_local8[_local7].y - ashiInitPosList[_local3].y, _local8[_local7].x - ashiInitPosList[_local3].x) * 180) / Math.PI;
ashiList[_local3]._rotation = _local12;
var _local13 = false;
var _local16 = GetAngleInterval(ashiList[_local3]._rotation, ashiListB[_local3]._rotation);
if (_local16 > IK_rectAngMaxB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMaxB[ashiListB[_local3]._name];
_local13 = true;
} else if (_local16 < IK_rectAngMinB[ashiListB[_local3]._name]) {
ashiListB[_local3]._rotation = ashiList[_local3]._rotation + IK_rectAngMinB[ashiListB[_local3]._name];
_local13 = true;
}
if (_local13) {
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) > IK_rectAngMax[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
continue;
if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
ashiBackB[_local3] = true;
} else if ((ashiInitRadList[_local3] - ashiList[_local3]._rotation) < IK_rectAngMin[ashiList[_local3]._name]) {
if ((_local3 % 2) == 0) {
if (ashiBackB[_local3 + 1]) {
continue;
}
} else if (ashiBackB[_local3 - 1]) {
} else {
ashiBackB[_local3] = true;
}
ashiBackB[_local3] = true;
}
}
}
}
}
function WalkCrab() {
var _local3 = 1;
var _local5 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local5 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local4 = Math.atan2(_ymouse, _xmouse);
var _local2 = (_local4 * 180) / Math.PI;
if ((crabMode == "ret_") && (Math.abs(_local2) < 90)) {
crabMode = "adv_";
SetAshiInitList(crabMode);
} else if ((crabMode == "adv_") && (Math.abs(_local2) > 90)) {
crabMode = "ret_";
SetAshiInitList(crabMode);
}
if (crabMode == "ret_") {
if (_local2 > 0) {
_local2 = _local2 - 180;
} else {
_local2 = _local2 + 180;
}
_local3 = -1;
}
if (mouseClick) {
_rotation = (_rotation + (_local2 * 0.1));
}
posX = posX + ((Math.cos((_rotation * Math.PI) / 180) * speed) * _local3);
posY = posY + ((Math.sin((_rotation * Math.PI) / 180) * speed) * _local3);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
function SetAshiInitList(str) {
var _local6 = {ashiRF:new flash.geom.Point(44, -29), ashiLF:new flash.geom.Point(-57, -29), ashiRM:new flash.geom.Point(40, 8), ashiLM:new flash.geom.Point(-47, 9), ashiRB:new flash.geom.Point(39, 50), ashiLB:new flash.geom.Point(-40, 47)};
var _local4 = {ashiRF:-70, ashiLF:-109, ashiRM:-60, ashiLM:-120, ashiRB:-57, ashiLB:-125};
var _local5 = {ashiRF2:new flash.geom.Point(76, -119), ashiLF2:new flash.geom.Point(-89, -118), ashiRM2:new flash.geom.Point(86, -72), ashiLM2:new flash.geom.Point(-94, -70), ashiRB2:new flash.geom.Point(90, -29), ashiLB2:new flash.geom.Point(-94, -29)};
var _local3 = {ashiRF2:62, ashiLF2:112, ashiRM2:70, ashiLM2:110, ashiRB2:79, ashiLB2:103};
var _local1 = {ashiRF:new flash.geom.Point(44, -29), ashiLF:new flash.geom.Point(-57, -29), ashiRM:new flash.geom.Point(40, 8), ashiLM:new flash.geom.Point(-47, 9), ashiRB:new flash.geom.Point(39, 50), ashiLB:new flash.geom.Point(-40, 47)};
var _local7 = {ashiRF:-17, ashiLF:-163, ashiRM:-14, ashiLM:-165, ashiRB:-9, ashiLB:-174};
var _local2 = {ashiRF2:new flash.geom.Point(132, -55), ashiLF2:new flash.geom.Point(-146, -56), ashiRM2:new flash.geom.Point(127, -15), ashiLM2:new flash.geom.Point(-137, -12), ashiRB2:new flash.geom.Point(127, 34), ashiLB2:new flash.geom.Point(-132, 38)};
var _local8 = {ashiRF2:36, ashiLF2:138, ashiRM2:33, ashiLM2:142, ashiRB2:27, ashiLB2:151};
var _local17 = [_local1.ashiRF, _local6.ashiLF, _local1.ashiRM, _local6.ashiLM, _local1.ashiRB, _local6.ashiLB];
var _local10 = [_local2.ashiRF2, _local5.ashiLF2, _local2.ashiRM2, _local5.ashiLM2, _local2.ashiRB2, _local5.ashiLB2];
var _local12 = [_local7.ashiRF, _local4.ashiLF, _local7.ashiRM, _local4.ashiLM, _local7.ashiRB, _local4.ashiLB];
var _local14 = [_local8.ashiRF2, _local3.ashiLF2, _local8.ashiRM2, _local3.ashiLM2, _local8.ashiRB2, _local3.ashiLB2];
var _local11 = [_local6.ashiRF, _local1.ashiLF, _local6.ashiRM, _local1.ashiLM, _local6.ashiRB, _local1.ashiLB];
var _local13 = [_local5.ashiRF2, _local2.ashiLF2, _local5.ashiRM2, _local2.ashiLM2, _local5.ashiRB2, _local2.ashiLB2];
var _local15 = [_local4.ashiRF, _local7.ashiLF, _local4.ashiRM, _local7.ashiLM, _local4.ashiRB, _local7.ashiLB];
var _local16 = [_local3.ashiRF2, _local8.ashiLF2, _local3.ashiRM2, _local8.ashiLM2, _local3.ashiRB2, _local8.ashiLB2];
ashiInitPosList = [];
ashiInitRadList = [];
ashiInitPosListB = [];
ashiInitRadListB = [];
if (str == "adv_") {
ashiInitPosList = _local17;
ashiInitPosListB = _local10;
ashiInitRadList = _local12;
ashiInitRadListB = _local14;
} else if (str == "ret_") {
ashiInitPosList = _local11;
ashiInitPosListB = _local13;
ashiInitRadList = _local15;
ashiInitRadListB = _local16;
}
if (str == "adv_") {
IK_rectAngMax = {ashiRF:60, ashiLF:60, ashiRM:58, ashiLM:58, ashiRB:56, ashiLB:56};
IK_rectAngMin = {ashiRF:-10, ashiLF:-10, ashiRM:-10, ashiLM:-10, ashiRB:-10, ashiLB:-10};
} else if (str == "ret_") {
IK_rectAngMax = {ashiRF:10, ashiLF:10, ashiRM:10, ashiLM:10, ashiRB:10, ashiLB:10};
IK_rectAngMin = {ashiRF:-60, ashiLF:-60, ashiRM:-60, ashiLM:-60, ashiRB:-60, ashiLB:-60};
}
}
function GetAshiPos_CrabLeg() {
var _local5 = "{ ";
var _local3 = "{ ";
var _local4 = "{ ";
var _local2 = "{ ";
var _local1 = 0;
while (_local1 < ashiList.length) {
_local5 = _local5 + ((((((ashiList[_local1]._name + " : ") + "new Point(") + (ashiList[_local1]._x ^ 0)) + " , ") + (ashiList[_local1]._y ^ 0)) + " ) , ");
_local3 = _local3 + (((ashiList[_local1]._name + " : ") + (ashiList[_local1]._rotation ^ 0)) + " , ");
_local4 = _local4 + ((((((ashiListB[_local1]._name + " : ") + "new Point(") + (ashiListB[_local1]._x ^ 0)) + " , ") + (ashiListB[_local1]._y ^ 0)) + " ) , ");
_local2 = _local2 + (((ashiListB[_local1]._name + " : ") + (ashiListB[_local1]._rotation ^ 0)) + " , ");
_local1++;
}
_local5 = _local5.substr(0, _local5.length - 2) + "}";
_local3 = _local3.substr(0, _local3.length - 2) + "}";
_local4 = _local4.substr(0, _local4.length - 2) + "}";
_local2 = _local2.substr(0, _local2.length - 2) + "}";
trace(_local5);
trace(_local3);
trace(_local4);
trace(_local2);
}
_walkEname = "EnterFrame_CrabLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 10;
bodyMinSpeed = 5;
maxSpeed = 7;
bodyMaxPower = 12;
bodyMinPower = 6;
recoverP = 8;
ashiLength = 93;
ashiTipList = [];
ashiBack = [];
ashiTipListB = [];
ashiBackB = [];
var ashiList = [ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiListB = [ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
var ashiInitPosList = [];
var ashiInitRadList = [];
var ashiInitPosListB = [];
var ashiInitRadListB = [];
var IK_NumList = {ashiRF2:0, ashiLF2:1, ashiRM2:0, ashiLM2:1, ashiRB2:0, ashiLB2:1};
var IK_rectAngMax = {ashiRF:60, ashiLF:60, ashiRM:58, ashiLM:58, ashiRB:56, ashiLB:56};
var IK_rectAngMin = {ashiRF:-60, ashiLF:-60, ashiRM:-60, ashiLM:-60, ashiRB:-60, ashiLB:-60};
var IK_rectAngMaxB = {ashiRF2:150, ashiLF2:0, ashiRM2:150, ashiLM2:0, ashiRB2:150, ashiLB2:0};
var IK_rectAngMinB = {ashiRF2:0, ashiLF2:-150, ashiRM2:0, ashiLM2:-150, ashiRB2:0, ashiLB2:-150};
var crabMode = "ret_";
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(0, 0), 0]];
longPartsList = [[new flash.geom.Point(0, 42), 180], [new flash.geom.Point(-43, 51), -165], [new flash.geom.Point(43, 51), 165]];
smallPartsList = [[new flash.geom.Point(52, 0), 0], [new flash.geom.Point(-52, 0), 0]];
SetAshiInitList(crabMode);
AshiInit_CrabLeg();
AshiReset_CrabLeg();
SetGraphicsLeg(6, 6);
BodyDecoration();
this.onEnterFrame = EnterFrame_CrabLeg;
Symbol 72 MovieClip [player_type0] Frame 20
nextFrame();
Symbol 72 MovieClip [player_type0] Frame 21
function EnterFrame_OctopusLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkOctopus();
AshiMove_OctopusLeg();
octo_oldAng = _rotation;
}
function AshiInit_OctopusLeg() {
var _local1 = 0;
while (_local1 < ashiList.length) {
ashiInitRadList[_local1] = ashiList[_local1]._rotation;
ashiInitRadListB[_local1] = ashiListB[_local1]._rotation;
_local1++;
}
}
function AshiReset_OctopusLeg() {
octo_radList = [];
octo_radListB = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
octo_radList.push(ashiList[_local1]._rotation);
octo_radListB.push(ashiListB[_local1]._rotation);
_local1++;
}
}
function AshiMove_OctopusLeg() {
var _local6 = maxSpeed * 0.5;
var _local5 = 10;
var _local1 = 0;
if (speed > _local6) {
_local1 = 0;
while (_local1 < ashiList.length) {
var _local3 = (Math.atan2(octo_tailPointA.y - _y, octo_tailPointA.x - _x) * 180) / Math.PI;
_local3 = _local3 - _rotation;
var _local2 = _local3 - octo_radList[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radList[_local1] = octo_radList[_local1] + (_local2 * 0.2);
ashiList[_local1]._rotation = octo_radList[_local1] + (Math.cos(octo_wave + (_local1 * 0.1)) * _local5);
var _local4 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
_local4.x = _local4.x + (Math.cos((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
_local4.y = _local4.y + (Math.sin((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
ashiListB[_local1]._x = _local4.x;
ashiListB[_local1]._y = _local4.y;
_local3 = (Math.atan2(octo_tailPointB.y - _y, octo_tailPointB.x - _x) * 180) / Math.PI;
_local3 = _local3 - _rotation;
_local2 = _local3 - octo_radListB[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radListB[_local1] = octo_radListB[_local1] + (_local2 * 0.2);
ashiListB[_local1]._rotation = octo_radListB[_local1] + (Math.cos(octo_wave + (_local1 * 0.2)) * _local5);
_local1++;
}
} else {
_local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = ashiInitRadList[_local1] - octo_radList[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radList[_local1] = octo_radList[_local1] + (_local2 * 0.1);
ashiList[_local1]._rotation = octo_radList[_local1] + (Math.cos(octo_wave + (_local1 * 0.1)) * _local5);
var _local4 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
_local4.x = _local4.x + (Math.cos((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
_local4.y = _local4.y + (Math.sin((ashiList[_local1]._rotation * Math.PI) / 180) * ashiLength);
ashiListB[_local1]._x = _local4.x;
ashiListB[_local1]._y = _local4.y;
_local2 = ashiInitRadListB[_local1] - octo_radListB[_local1];
if (_local2 > 180) {
_local2 = _local2 - 360;
} else if (_local2 < -180) {
_local2 = _local2 + 360;
}
octo_radListB[_local1] = octo_radListB[_local1] + (_local2 * 0.1);
ashiListB[_local1]._rotation = octo_radListB[_local1] + (Math.cos(octo_wave + (_local1 * 0.2)) * _local5);
_local1++;
}
}
octo_wave = octo_wave + 0.05;
octo_tailPointA.x = octo_tailPointA.x + ((_x - octo_tailPointA.x) * 0.2);
octo_tailPointA.y = octo_tailPointA.y + ((_y - octo_tailPointA.y) * 0.2);
octo_tailPointB.x = octo_tailPointB.x + ((octo_tailPointA.x - octo_tailPointB.x) * 0.1);
octo_tailPointB.y = octo_tailPointB.y + ((octo_tailPointA.y - octo_tailPointB.y) * 0.1);
}
function WalkOctopus() {
var _local3 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local3 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local2 = Math.atan2(_ymouse, _xmouse);
var _local4 = (_local2 * 180) / Math.PI;
if (mouseClick) {
_rotation = (_rotation + (_local4 * 0.2));
}
posX = posX + (Math.cos((_rotation * Math.PI) / 180) * speed);
posY = posY + (Math.sin((_rotation * Math.PI) / 180) * speed);
posX = Math.max(Math.min(posX, _parent.mapSize.x), 0);
posY = Math.max(Math.min(posY, _parent.mapSize.y), 0);
_x = posX;
_y = posY;
CheckJumpGoal();
}
_walkEname = "EnterFrame_OctopusLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 12;
bodyMinSpeed = 7;
maxSpeed = 9;
bodyMaxPower = 10;
bodyMinPower = 4;
recoverP = 5;
ashiLength = 93;
var octo_tailPointA = (new flash.geom.Point(_x, _y));
var octo_tailPointB = (new flash.geom.Point(_x, _y));
var ashiList = [ashiRT, ashiLT, ashiRF, ashiLF, ashiRM, ashiLM, ashiRB, ashiLB];
var ashiListB = [ashiRT2, ashiLT2, ashiRF2, ashiLF2, ashiRM2, ashiLM2, ashiRB2, ashiLB2];
var ashiInitRadList = [];
var ashiInitRadListB = [];
var octo_radList = [];
var octo_radListB = [];
var octo_wave = 0;
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(-2, 0), 0], [new flash.geom.Point(62, 0), 0]];
longPartsList = [];
smallPartsList = [[new flash.geom.Point(25, -22), 0], [new flash.geom.Point(25, 22), 0]];
AshiInit_OctopusLeg();
AshiReset_OctopusLeg();
SetGraphicsLeg(8, 8);
BodyDecoration();
this.onEnterFrame = EnterFrame_OctopusLeg;
Symbol 72 MovieClip [player_type0] Frame 23
function EnterFrame_SnakeLeg() {
WalkSnake();
AshiMove_SnakeLeg();
}
function AshiMove_SnakeLeg() {
var _local3 = 0;
var _local7 = 0;
var _local2 = 0;
while (_local2 < snakeLine.length) {
var _local1 = maxSpeed;
if ((_local3 + _local1) < ashiLength) {
_local3 = _local3 + _local1;
} else {
var _local4 = ashiLength - _local3;
_local3 = _local1 - _local4;
var _local5 = _local4 / _local1;
var _local6 = flash.geom.Point.interpolate(snakeLine[_local2 + 1], snakeLine[_local2], _local5);
}
_local2++;
}
}
function WalkSnake() {
var _local3 = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if ((_local3 < 10) || (!mouseClick)) {
speed = Math.max(speed - cutSpeed, 0);
} else if (speed == 0) {
speed = initSpeed;
} else {
speed = Math.min(speed + addSpeed, maxSpeed);
}
if (speed == 0) {
return(undefined);
}
var _local2 = Math.atan2(_ymouse, _xmouse);
var _local1 = (_local2 * 180) / Math.PI;
if (mouseClick) {
wave = wave + 0.5;
_local1 = _local1 + (Math.cos(wave) * 50);
_rotation = (_rotation + (_local1 * 0.1));
}
posX = posX + (Math.cos((_rotation * Math.PI) / 180) * speed);
posY = posY + (Math.sin((_rotation * Math.PI) / 180) * speed);
_x = posX;
_y = posY;
snakeLine.push(new flash.geom.Point(_x, _y));
snakeLine.splice(lineStock);
}
_walkEname = "EnterFrame_SnakeLeg";
_jumpEname = "";
speed = 0;
addSpeed = 10;
cutSpeed = 10;
initSpeed = 10;
maxSpeed = 10;
ashiLength = 93;
var wave = 0;
var lineStock = 200;
var snakeLine = [];
snakeLine.push(new flash.geom.Point(_x, _y));
this.onEnterFrame = EnterFrame_SnakeLeg;
Symbol 72 MovieClip [player_type0] Frame 26
nextFrame();
Symbol 72 MovieClip [player_type0] Frame 27
function EnterFrame_TenLeg() {
if (_parent.pausing) {
return(undefined);
}
WalkBasic();
if (speed == 0) {
return(undefined);
}
AshiMove_TenLeg();
}
function AshiInit_TenLeg() {
ashiInitPosList = [];
ashiInitRadList = [];
ashiBack = [];
var _local1 = 0;
while (_local1 < ashiList.length) {
var _local2 = new flash.geom.Point(ashiList[_local1]._x, ashiList[_local1]._y);
ashiInitPosList.push(_local2);
ashiInitRadList.push(ashiList[_local1]._rotation);
ashiBack.push(false);
_local1++;
}
}
function AshiReset_TenLeg(p_mc) {
var _local3 = 0;
for ( ; _local3 < ashiList.length ; _local3++) {
if (p_mc == undefined) {
} else if (ashiList[_local3] != p_mc) {
continue;
}
var _local4 = ashiList[_local3];
_local4._x = ashiInitPosList[_local3].x;
_local4._y = ashiInitPosList[_local3].y;
_local4._rotation = ashiInitRadList[_local3];
var _local6 = ashiLength;
var _local5 = (_local4._rotation * Math.PI) / 180;
ashiTipList[_local3] = {x:_local4._x + (Math.cos(_local5) * _local6), y:_local4._y + (Math.sin(_local5) * _local6)};
this.localToGlobal(ashiTipList[_local3]);
_parent.globalToLocal(ashiTipList[_local3]);
}
}
function AshiMove_TenLeg() {
var _local11 = ashiLength;
var _local3 = 0;
while (_local3 < ashiList.length) {
var _local4 = ashiList[_local3];
if (ashiBack[_local3]) {
_local4._rotation = _local4._rotation + ((ashiInitRadList[_local3] - _local4._rotation) * 0.5);
_local4._x = _local4._x + ((ashiInitPosList[_local3].x - _local4._x) * 0.3);
_local4._y = _local4._y + ((ashiInitPosList[_local3].y - _local4._y) * 0.3);
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) < 10) {
ashiBack[_local3] = false;
AshiReset_TenLeg(_local4);
}
} else {
var _local5 = {x:ashiTipList[_local3].x, y:ashiTipList[_local3].y};
_parent.localToGlobal(_local5);
this.globalToLocal(_local5);
var _local6 = Math.atan2(_local5.y - ashiInitPosList[_local3].y, _local5.x - ashiInitPosList[_local3].x);
var _local10 = (_local6 * 180) / Math.PI;
var _local7 = flash.geom.Point.distance(new flash.geom.Point(_local5.x, _local5.y), new flash.geom.Point(ashiInitPosList[_local3].x, ashiInitPosList[_local3].y));
var _local9 = Math.cos(_local6) * Math.max(_local11, _local7);
var _local8 = Math.sin(_local6) * Math.max(_local11, _local7);
_local4._x = _local5.x - _local9;
_local4._y = _local5.y - _local8;
_local4._rotation = _local10;
if (Math.abs(ashiInitRadList[_local3] - _local4._rotation) > 90) {
ashiBack[_local3] = true;
} else if (_local7 > 150) {
ashiBack[_local3] = true;
}
}
_local3++;
}
}
_walkEname = "EnterFrame_TenLeg";
_jumpEname = "";
speed = 0;
addSpeed = 1;
cutSpeed = 2;
initSpeed = 2;
bodyMaxSpeed = 18;
bodyMinSpeed = 12;
maxSpeed = 14;
bodyMaxPower = 8;
bodyMinPower = 1;
recoverP = 3;
ashiLength = 93;
ashiList = [ashiR0, ashiL0, ashiR1, ashiL1, ashiR2, ashiL2, ashiR3, ashiL3, ashiR4, ashiL4];
ashiListB = [];
ashiInitPosList = [];
ashiInitRadList = [];
ashiTipList = [];
ashiBack = [];
BodyUnDecoration();
bigPartsList = [];
longPartsList = [[new flash.geom.Point(-77, 0), -90], [new flash.geom.Point(-17, 0), -90], [new flash.geom.Point(10, 0), -90]];
smallPartsList = [[new flash.geom.Point(44, 0), 90], [new flash.geom.Point(-50, 0), 90]];
AshiInit_TenLeg();
AshiReset_TenLeg();
SetGraphicsLeg(10, 0);
BodyDecoration();
this.onEnterFrame = EnterFrame_TenLeg;
Symbol 119 MovieClip [iMc_arm6] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 121 MovieClip [iMc_bintage04] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 123 MovieClip [iMc_arm9] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 125 MovieClip [iMc_arm8] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 127 MovieClip [iMc_arm7] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 129 MovieClip [iMc_arm5] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 131 MovieClip [iMc_arm4] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 133 MovieClip [iMc_arm3] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 135 MovieClip [iMc_arm2] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 137 MovieClip [iMc_arm1] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 139 MovieClip [iMc_t4] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 141 MovieClip [iMc_t3] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 143 MovieClip [iMc_t2] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 145 MovieClip [iMc_t] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 152 MovieClip [iMc_m85c] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 155 MovieClip [iMc_bane1] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 157 MovieClip [iMc_led] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 164 MovieClip [iMc_473z] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 166 MovieClip [iMc_bane2] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 169 MovieClip [iMc_black01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 171 MovieClip [iMc_bintage01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 175 MovieClip [iMc_clock01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 178 MovieClip [iMc_kotei01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 181 MovieClip [iMc_box04] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 184 MovieClip [iMc_box03] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 187 MovieClip [iMc_kiban01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 190 MovieClip [iMc_curve01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 193 MovieClip [iMc_green01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 196 MovieClip [iMc_counterA01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 199 MovieClip [iMc_yellow01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 202 MovieClip [iMc_speakerB01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 205 MovieClip [iMc_speaker01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 208 MovieClip [iMc_panelE01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 211 MovieClip [iMc_panelD01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 214 MovieClip [iMc_panelC01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 217 MovieClip [iMc_panelB01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 220 MovieClip [iMc_panel01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 223 MovieClip [iMc_tsumami01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 226 MovieClip [iMc_volB02] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 229 MovieClip [iMc_volA01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 231 MovieClip [iMc_gear12] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 233 MovieClip [iMc_gear11] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 235 MovieClip [iMc_gear10] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 237 MovieClip [iMc_gear09] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 239 MovieClip [iMc_gear07] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 242 MovieClip [iMc_switchC01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 245 MovieClip [iMc_switchB01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 248 MovieClip [iMc_gear13] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 251 MovieClip [iMc_gear08] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 254 MovieClip [iMc_gear06] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 257 MovieClip [iMc_gear05] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 259 MovieClip [iMc_gear04] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 261 MovieClip [iMc_gear03] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 263 MovieClip [iMc_gear02] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 266 MovieClip [iMc_box02] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 269 MovieClip [iMc_switch01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 272 MovieClip [iMc_motor01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 275 MovieClip [iMc_switchF01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 277 MovieClip [iMc_gear01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 278 MovieClip [iMc_bearing] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 280 MovieClip [iMc_gear] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 283 MovieClip [enemy] Frame 1
function EnterFrame() {
if (_parent.pausing) {
return(undefined);
}
Move();
checkCornHit();
checkZoneOut();
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor(_x, _y) && (CheckOutOfMonitor(initPos.x, initPos.y))) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
}
function CheckHit() {
if (!_visible) {
return(false);
}
var _local6 = flash.geom.Point.distance(new flash.geom.Point(_x, _y), new flash.geom.Point(_parent.player.posX, _parent.player.posY));
var _local4 = 60;
var _local5 = 40;
var _local3 = _local6 - (_local4 + _local5);
if (_local3 > 0) {
return(false);
}
var _local2 = Math.atan2(_parent.player.posY - _y, _parent.player.posX - _x);
_local2 = (_local2 * 180) / Math.PI;
_parent.player.Damage(_local2);
_visible = false;
return(true);
}
function CheckOutOfMonitor(X, Y) {
var _local2 = new flash.geom.Point(X, Y);
_parent.localToGlobal(_local2);
var _local3 = showRect + 30;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
function Move() {
if (!_visible) {
return(undefined);
}
_x = (_x + moveX);
_y = (_y + moveY);
if ((++time) < walkTime) {
return(undefined);
}
time = 0;
rad = (Math.random() * 360) ^ 0;
moveX = Math.cos((rad * Math.PI) / 180) * speed;
moveY = Math.sin((rad * Math.PI) / 180) * speed;
}
function checkCornHit() {
if (((++cornCheckNum) % 3) > 0) {
return(undefined);
}
var _local6 = 55;
var _local2 = 0;
while (_local2 < _parent.cornMcList.length) {
var _local5 = flash.geom.Point.distance(new flash.geom.Point(_x, _y), new flash.geom.Point(_parent.cornMcList[_local2]._x, _parent.cornMcList[_local2]._y));
if (_local5 > (_local6 + (_parent.cornMcList[_local2]._width * 0.5))) {
} else {
var _local3 = Math.atan2(_y - _parent.cornMcList[_local2]._y, _x - _parent.cornMcList[_local2]._x);
var _local4 = (_local6 + (_parent.cornMcList[_local2]._width * 0.5)) - _local5;
_x = (_x + (Math.cos(_local3) * _local4));
_y = (_y + (Math.sin(_local3) * _local4));
rad = (_local3 * 180) / Math.PI;
moveX = Math.cos((rad * Math.PI) / 180) * speed;
moveY = Math.sin((rad * Math.PI) / 180) * speed;
return(undefined);
}
_local2++;
}
}
function checkZoneOut() {
if ((cornCheckNum % 3) > 0) {
return(undefined);
}
if ((_x < 55) && (moveX < 0)) {
moveX = moveX * -1;
} else if ((_x > (_parent.mapSize.x - 55)) && (moveX > 0)) {
moveX = moveX * -1;
}
if ((_y < 55) && (moveY < 0)) {
moveY = moveY * -1;
} else if ((_y > (_parent.mapSize.y - 55)) && (moveY > 0)) {
moveY = moveY * -1;
}
}
var rad = ((Math.random() * 360) ^ 0);
var speed = 7;
var moveX = (Math.cos((rad * Math.PI) / 180) * speed);
var moveY = (Math.sin((rad * Math.PI) / 180) * speed);
var walkTime = 60;
var time = 0;
var cornCheckNum = 0;
this.onEnterFrame = EnterFrame;
Symbol 286 MovieClip [wall_corn] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
}
function CheckHit() {
var _local6 = flash.geom.Point.distance(new flash.geom.Point(_x, _y), new flash.geom.Point(_parent.player.posX, _parent.player.posY));
var _local4 = 60;
var _local5 = 55;
var _local2 = _local6 - (_local4 + _local5);
if (_local2 > 0) {
return(false);
}
var _local3 = Math.atan2(_y - _parent.player.posY, _x - _parent.player.posX);
_parent.player.posX = _parent.player.posX + (Math.cos(_local3) * _local2);
_parent.player.posY = _parent.player.posY + (Math.sin(_local3) * _local2);
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = showRect + 30;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 288 MovieClip [wall_bigCorn] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
}
function CheckHit() {
var _local6 = flash.geom.Point.distance(new flash.geom.Point(_x, _y), new flash.geom.Point(_parent.player.posX, _parent.player.posY));
var _local4 = 60;
var _local5 = 107;
var _local2 = _local6 - (_local4 + _local5);
if (_local2 > 0) {
return(false);
}
var _local3 = Math.atan2(_y - _parent.player.posY, _x - _parent.player.posX);
_parent.player.posX = _parent.player.posX + (Math.cos(_local3) * _local2);
_parent.player.posY = _parent.player.posY + (Math.sin(_local3) * _local2);
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = showRect + 30;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 296 MovieClip [repairDisp] Frame 1
function disp(now, max) {
var _local1 = ((now / max) * 100) ^ 0;
if (_local1 == 0) {
bar._visible = false;
}
bar._visible = true;
bar._xscale = _local1;
}
function Complete() {
_parent.SE("se_recover");
this.removeMovieClip();
}
_parent.SE("se_damage");
disp(0, 1);
Symbol 301 MovieClip Frame 1
stop();
Symbol 302 MovieClip [iBox_s] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
if (_parent.parts_powerList.length < 8) {
_parent._parent.dispAlert("lockedBox");
return(false);
}
Jump();
return(true);
}
function Jump() {
var _local3 = Math.atan2(_y - _parent.player.posY, _x - _parent.player.posX);
moveX = Math.cos(_local3) * speed;
moveY = Math.sin(_local3) * speed;
this.onEnterFrame = EnterFrame_Jump;
}
function EnterFrame_Jump() {
if (_parent.pausing) {
return(undefined);
}
boxMc._y = Math.min(boxMc._y + jump_addY, 0);
jump_addY = jump_addY + jump_addFrame;
_x = (_x + moveX);
_y = (_y + moveY);
if (boxMc._y == 0) {
_parent.showBoxItem("speed", _x, _y);
delete this.onEnterFrame;
this.removeMovieClip();
}
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
var jump_ang = 0;
var jump_addY = -16;
var jump_addFrame = 2;
var moveX = 0;
var moveY = 0;
var speed = 6;
this.onEnterFrame = EnterFrame;
Symbol 304 MovieClip [iBox_p] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
if (_parent.parts_powerList.length < 8) {
_parent._parent.dispAlert("lockedBox");
return(false);
}
Jump();
return(true);
}
function Jump() {
var _local3 = Math.atan2(_y - _parent.player.posY, _x - _parent.player.posX);
moveX = Math.cos(_local3) * speed;
moveY = Math.sin(_local3) * speed;
this.onEnterFrame = EnterFrame_Jump;
}
function EnterFrame_Jump() {
if (_parent.pausing) {
return(undefined);
}
boxMc._y = Math.min(boxMc._y + jump_addY, 0);
jump_addY = jump_addY + jump_addFrame;
_x = (_x + moveX);
_y = (_y + moveY);
if (boxMc._y == 0) {
_parent.showBoxItem("power", _x, _y);
delete this.onEnterFrame;
this.removeMovieClip();
}
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
var jump_ang = 0;
var jump_addY = -16;
var jump_addFrame = 2;
var moveX = 0;
var moveY = 0;
var speed = 6;
this.onEnterFrame = EnterFrame;
Symbol 308 MovieClip [alert_nextStage] Frame 1
function EnterFrame() {
if ((--time) > 0) {
return(undefined);
}
_alpha = (_alpha - 4);
if (_alpha > 0) {
return(undefined);
}
delete this.onEnterFrame;
this.removeMovieClip();
}
this.onEnterFrame = EnterFrame;
var time = 90;
Symbol 311 MovieClip [alert_clearComp1] Frame 1
function EnterFrame() {
if ((--time) > 0) {
return(undefined);
}
_alpha = (_alpha - 4);
if (_alpha > 0) {
return(undefined);
}
delete this.onEnterFrame;
this.removeMovieClip();
}
this.onEnterFrame = EnterFrame;
var time = 90;
Symbol 313 MovieClip [alert_clearComp0] Frame 1
function EnterFrame() {
if ((--time) > 0) {
return(undefined);
}
_alpha = (_alpha - 4);
if (_alpha > 0) {
return(undefined);
}
delete this.onEnterFrame;
this.removeMovieClip();
}
this.onEnterFrame = EnterFrame;
var time = 90;
Symbol 315 MovieClip [alert_gameStart] Frame 1
function EnterFrame() {
if ((--time) > 0) {
return(undefined);
}
_alpha = (_alpha - 4);
if (_alpha > 0) {
return(undefined);
}
delete this.onEnterFrame;
this.removeMovieClip();
}
this.onEnterFrame = EnterFrame;
var time = 90;
Symbol 317 MovieClip [alert_mapExpansion] Frame 1
function EnterFrame() {
if ((--time) > 0) {
return(undefined);
}
_alpha = (_alpha - 4);
if (_alpha > 0) {
return(undefined);
}
delete this.onEnterFrame;
this.removeMovieClip();
}
this.onEnterFrame = EnterFrame;
var time = 90;
Symbol 320 MovieClip [alert_needJump] Frame 1
function EnterFrame() {
if ((--time) > 0) {
return(undefined);
}
_alpha = (_alpha - 4);
if (_alpha > 0) {
return(undefined);
}
delete this.onEnterFrame;
this.removeMovieClip();
}
this.onEnterFrame = EnterFrame;
var time = 90;
Symbol 322 MovieClip [alert_evolutionLock] Frame 1
function EnterFrame() {
if ((--time) > 0) {
return(undefined);
}
_alpha = (_alpha - 4);
if (_alpha > 0) {
return(undefined);
}
delete this.onEnterFrame;
this.removeMovieClip();
}
this.onEnterFrame = EnterFrame;
var time = 90;
Symbol 324 MovieClip [alert_lockedBox] Frame 1
function EnterFrame() {
if ((--time) > 0) {
return(undefined);
}
_alpha = (_alpha - 4);
if (_alpha > 0) {
return(undefined);
}
delete this.onEnterFrame;
this.removeMovieClip();
}
this.onEnterFrame = EnterFrame;
var time = 90;
Symbol 347 MovieClip [iMc_bintage03] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 348 MovieClip [iMc_bintage02] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 350 MovieClip [iMc_bintage07] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 352 MovieClip [iMc_bintage06] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 354 MovieClip [iMc_bintage05] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 358 MovieClip [iMc_cond02] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 361 MovieClip [iMc_cond01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 364 MovieClip [iMc_box05] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 367 MovieClip [iMc_box01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 370 MovieClip [iMc_white01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 373 MovieClip [iMc_nezi02] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 376 MovieClip [iMc_light02] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 379 MovieClip [iMc_light01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 382 MovieClip [iMc_kaitenC01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 385 MovieClip [iMc_kaitenB01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 388 MovieClip [iMc_kaiten01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 390 MovieClip [iMc_plus] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 400 MovieClip [iMc_bis01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 402 MovieClip [iMc_blue01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 405 MovieClip [iMc_teikou03] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 408 MovieClip [iMc_teikou02] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 411 MovieClip [iMc_teikou01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 414 MovieClip [iMc_switchG01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 417 MovieClip [iMc_switchE01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 420 MovieClip [iMc_switchD01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 424 MovieClip [iMc_slider01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 427 MovieClip [iMc_led03] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 430 MovieClip [iMc_led02] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 433 MovieClip [iMc_led01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 436 MovieClip [iMc_cond03] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 439 MovieClip [iMc_yellow03] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 442 MovieClip [iMc_yellow02] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 445 MovieClip [iMc_nezi01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 448 MovieClip [iMc_light06] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 451 MovieClip [iMc_light05] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 454 MovieClip [iMc_light04] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 457 MovieClip [iMc_light03] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 460 MovieClip [iMc_counterB01] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 462 MovieClip [iMc_teikou0] Frame 1
function EnterFrame() {
if (CheckHit()) {
return(undefined);
}
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
return(undefined);
}
dispMc._xscale = 10000 / _parent._xscale;
dispMc._yscale = dispMc._xscale;
}
function CheckHit() {
if (_parent.player.jumpY != 0) {
return(false);
}
if (Math.abs(_parent.player.posX - _x) > 50) {
return(false);
}
if (Math.abs(_parent.player.posY - _y) > 50) {
return(false);
}
_parent.GetItem(this);
delete this.onEnterFrame;
this.removeMovieClip();
return(true);
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 60;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 468 MovieClip [hurdle] Frame 1
function EnterFrame() {
if (CheckOutOfMonitor()) {
delete this.onEnterFrame;
_parent.MapItem_OutOfMonitor(this);
}
}
function CheckOutOfMonitor() {
var _local2 = new flash.geom.Point(_x, _y);
_parent.localToGlobal(_local2);
var _local3 = 90;
if (_local2.x < (-_local3)) {
} else if (_local2.x > (Stage.width + _local3)) {
} else if (_local2.y < (-_local3)) {
} else if (_local2.y > (Stage.height + _local3)) {
} else {
return(false);
}
return(true);
}
this.onEnterFrame = EnterFrame;
Symbol 477 MovieClip [hurdleGuide] Frame 1
function Disp() {
if (dispHurdle) {
gotoAndStop(3 + _parent.main.gameStage);
} else {
gotoAndStop(1 + _parent.main.gameStage);
}
_y = 300;
this.onEnterFrame = EnterFrame_disp;
}
function EnterFrame_disp() {
_y = (_y + ((256 - _y) * 0.5));
if (Math.abs(_y - 256) > 1) {
return(undefined);
}
_y = 256;
this.onEnterFrame = EnterFrame_wait;
}
function EnterFrame_wait() {
var _local1 = checkHurdleLook();
if (dispHurdle == _local1) {
return(undefined);
}
dispHurdle = _local1;
Disp();
}
function checkHurdleLook() {
return(_parent.cover_right._x < Stage.width);
}
var dispHurdle = checkHurdleLook();
Disp();
Symbol 483 MovieClip [deco_b_clock01] Frame 1
function EnterFrame() {
var _local2 = Math.min((_parent._parent.parts_powerList.length + _parent._parent.parts_speedList.length) * 10, 270);
_local2 = _local2 + ((Math.random() * 11) - 5);
_local2 = Math.max(Math.min(_local2, 270), 0);
hari._rotation = _local2;
}
if (_parent._parent.endingMode) {
hari._rotation = 135;
} else {
this.onEnterFrame = EnterFrame;
}
Symbol 495 MovieClip [deco_b_green01] Frame 1
function MouseDown() {
gotoAndStop ("on");
}
function MouseUp() {
gotoAndStop ("off");
}
stop();
if (_parent._parent.endingMode) {
} else {
this.onMouseDown = MouseDown;
this.onMouseUp = MouseUp;
if (_parent.mouseClick) {
MouseDown();
}
}
Symbol 519 MovieClip [deco_b_counterA01] Frame 1
function EnterFrame() {
var _local4 = (_parent._parent.gameTime * 0.001) ^ 0;
var _local3 = String(_local4);
var _local2 = Number(_local3.substr(_local3.length - 1, 1));
gotoAndStop(_local2 + 2);
dot._visible = (_local2 % 2) == 0;
}
if (_parent._parent.endingMode) {
stop();
} else {
this.onEnterFrame = EnterFrame;
}
Symbol 556 MovieClip [deco_l_slider01] Frame 1
function EnterFrame() {
var _local3 = 23;
var _local2 = -40;
var _local5 = _parent.maxSpeed;
var _local4 = _parent.speed;
tsumami._x = _local2 + ((_local4 / _local5) * (_local3 - _local2));
tsumami._x = Math.max(Math.min(tsumami._x, _local3), _local2);
}
if (_parent._parent.endingMode) {
} else {
this.onEnterFrame = EnterFrame;
}
Symbol 560 MovieClip [deco_l_switchD01] Frame 1
function MouseDown() {
gotoAndStop ("on");
}
function MouseUp() {
gotoAndStop ("off");
}
stop();
if (_parent._parent.endingMode) {
} else {
this.onMouseDown = MouseDown;
this.onMouseUp = MouseUp;
if (_parent.mouseClick) {
MouseDown();
}
}
Symbol 564 MovieClip [deco_l_switchE01] Frame 1
function EnterFrame() {
if ((++time) < 30) {
return(undefined);
}
time = 0;
var _local3 = String(getTimer());
_local3 = _local3.substr(-5);
var _local2 = 0;
while (_local2 < 10) {
this["mc" + _local2]._y = offY;
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
this["mc" + _local3.charAt(_local2)]._y = onY;
_local2++;
}
}
var time = 0;
var onY = -4;
var offY = 2;
if (_parent._parent.endingMode) {
} else {
this.onEnterFrame = EnterFrame;
}
Symbol 568 MovieClip [deco_l_switchG01] Frame 1
function MouseDown() {
gotoAndStop ("on");
}
function MouseUp() {
gotoAndStop ("off");
}
stop();
if (_parent._parent.endingMode) {
} else {
this.onMouseDown = MouseDown;
this.onMouseUp = MouseUp;
if (!_parent.mouseClick) {
MouseUp();
}
}
Symbol 596 MovieClip [deco_l_counterB01] Frame 1
function EnterFrame() {
var _local3 = (_parent._parent.gameTime * 0.001) ^ 0;
var _local2 = String(_local3);
var _local4 = Number(_local2.substr(_local2.length - 1, 1));
gotoAndStop(_local4 + 2);
}
if (_parent._parent.endingMode) {
stop();
} else {
this.onEnterFrame = EnterFrame;
}
Symbol 628 MovieClip [deco_s_switchB01] Frame 1
function MouseDown() {
gotoAndStop ("on");
}
function MouseUp() {
gotoAndStop ("off");
}
stop();
if (_parent._parent.endingMode) {
} else {
this.onMouseDown = MouseDown;
this.onMouseUp = MouseUp;
if (_parent.mouseClick) {
MouseDown();
}
}
Symbol 641 MovieClip [deco_s_switchC01] Frame 1
function EnterFrame() {
var _local4 = (_parent._parent.gameTime * 0.001) ^ 0;
var _local3 = String(_local4);
var _local2 = Number(_local3.substr(_local3.length - 1, 1));
mc0._visible = list[_local2][0];
mc1._visible = list[_local2][1];
mc2._visible = list[_local2][2];
mc3._visible = list[_local2][3];
}
var list = [[false, false, false, false], [true, false, false, false], [false, true, false, false], [false, false, true, false], [true, false, true, false], [false, true, true, false], [false, true, false, true], [false, false, true, true], [true, false, true, true], [false, true, true, true]];
if (_parent._parent.endingMode) {
stop();
} else {
this.onEnterFrame = EnterFrame;
}
Symbol 654 MovieClip [effect_getleg] Frame 1
this.onEnterFrame = function () {
_xscale = (10000 / _parent._xscale);
_yscale = _xscale;
};
Symbol 654 MovieClip [effect_getleg] Frame 31
this.removeMovieClip();
Symbol 657 MovieClip [effect_getspeed] Frame 1
this.onEnterFrame = function () {
_xscale = (10000 / _parent._xscale);
_yscale = _xscale;
};
Symbol 657 MovieClip [effect_getspeed] Frame 40
this.removeMovieClip();
Symbol 659 MovieClip [effect_getpower] Frame 1
this.onEnterFrame = function () {
_xscale = (10000 / _parent._xscale);
_yscale = _xscale;
};
Symbol 659 MovieClip [effect_getpower] Frame 40
this.removeMovieClip();
Symbol 663 MovieClip [effect_evo] Frame 1
this.onEnterFrame = function () {
_x = _parent.player._x;
_y = _parent.player._y;
};
Symbol 663 MovieClip [effect_evo] Frame 33
delete this.onEnterFrame;
this.removeMovieClip();
Symbol 665 MovieClip [effect_damage] Frame 30
this.removeMovieClip();
Symbol 882 MovieClip [__Packages.ItemClass] Frame 0
class ItemClass
{
var x, y, linkage, type, showRect;
function ItemClass (X, Y, _linkage, _type, _showRect) {
x = X;
y = Y;
linkage = _linkage;
type = _type;
showRect = _showRect;
}
}
Symbol 669 MovieClip Frame 1
this.onRollOver = function () {
};
this.useHandCursor = false;
Symbol 672 MovieClip Frame 1
function feedOut() {
this.onEnterFrame = EnterFrame;
}
function EnterFrame() {
_alpha = (_alpha - 4);
if (_alpha > 0) {
return(undefined);
}
delete this.onEnterFrame;
_visible = false;
}
Symbol 677 MovieClip Frame 1
function RollOver() {
this.filters = [glow];
}
function RollOut() {
this.filters = [];
}
function Click() {
_parent.Selected(this);
}
function ShadowFeedOut() {
delete this.onRollOver;
delete this.onRollOut;
delete this.onDragOut;
delete this.onRelease;
shadowMc.feedOut();
}
function FeedOut() {
delete this.onRollOver;
delete this.onRollOut;
delete this.onDragOut;
delete this.onRelease;
this.onEnterFrame = EnterFrame_feedOut;
}
function EnterFrame_feedOut() {
_y = (_y + addY);
addY = addY - 1;
_alpha = (_alpha - 4);
if (_alpha > 0) {
return(undefined);
}
delete this.onEnterFrame;
_visible = false;
}
function FallStage() {
addY = 1;
this.onEnterFrame = EnterFrame_Fall;
}
function EnterFrame_Fall() {
_y = (_y + addY);
addY++;
if (_y < Stage.height) {
return(undefined);
}
delete this.onEnterFrame;
_parent.GoGame();
}
var thisNum = Number(_name.substr(2, 1));
var addY = -2;
var glow = (new flash.filters.GlowFilter());
glow.color = 10538239 /* 0xA0CCFF */;
glow.blurX = 12;
glow.blurY = 12;
this.onRollOver = RollOver;
this.onRollOut = RollOut;
this.onDragOut = RollOut;
this.onRelease = Click;
gotoAndStop(thisNum + 1);
Symbol 682 MovieClip Frame 1
function EnterFrame() {
if (pausing) {
return(undefined);
}
var _local1 = _xmouse * -0.01;
rollingAng = rollingAng + _local1;
Roll(rollingAng);
Disp();
}
function Roll(ang) {
var _local2 = 360 / mcLen;
var _local1 = 0;
while (_local1 < mcLen) {
posList[_local1].x = Math.cos(((ang + (_local1 * _local2)) * Math.PI) / 180) * dist;
posList[_local1].y = Math.sin(((ang + (_local1 * _local2)) * Math.PI) / 180) * dist;
_local1++;
}
}
function Selected(mc) {
_parent.SE("se_click");
var _local5 = (rollingAng / 360) ^ 0;
rollingAng = rollingAng - (_local5 * 360);
if (rollingAng < 0) {
rollingAng = rollingAng + 360;
}
var _local3 = 0;
while (_local3 < mcList.length) {
if (mcList[_local3] == mc) {
selectIndex = _local3;
break;
}
_local3++;
}
selectAng = -90 - (selectIndex * (360 / mcLen));
this.onEnterFrame = EnterFrame_selected;
}
function EnterFrame_selected() {
rollingAng = rollingAng + ((selectAng - rollingAng) * 0.5);
Roll(rollingAng);
Disp();
if (Math.abs(rollingAng - selectAng) > 1) {
return(undefined);
}
delete this.onEnterFrame;
FeedOut();
}
function FeedOut() {
var _local1 = 0;
while (_local1 < mcList.length) {
if (_local1 == selectIndex) {
mcList[_local1].ShadowFeedOut();
mcList[_local1].FallStage();
} else {
mcList[_local1].FeedOut();
}
_local1++;
}
}
function GoGame() {
_parent.selectIndex = selectIndex;
_parent.gotoAndStop("ready");
}
function Disp() {
var _local5 = 200;
var _local2 = 0;
while (_local2 < mcLen) {
var _local3 = threeDPlotter([posList[_local2].x, 30, posList[_local2].y], _local5);
this["mc" + _local2]._x = _local3[0];
this["mc" + _local2]._y = _local3[1];
this["mc" + _local2]._xscale = _local3[2] * 30;
this["mc" + _local2]._yscale = _local3[2] * 30;
this["mc" + _local2]._alpha = _local3[2] * 80;
var _local4 = ((_local3[2] * 100) + _local2) ^ 0;
this["mc" + _local2].swapDepths(_local4);
_local2++;
}
}
function threeDPlotter(iC, flen) {
var _local5 = 0;
var _local4 = 1;
var _local3 = 2;
var _local2 = flen / (flen + iC[_local3]);
var _local1 = [0, 0, 0];
_local1[_local5] = iC[_local5] * _local2;
_local1[_local4] = iC[_local4] * _local2;
_local1[_local3] = _local2;
return(_local1);
}
function Pause(flg) {
pausing = flg;
if (flg) {
var _local2 = new flash.geom.ColorTransform(0.3, 0.3, 0.3, 1, 180, 180, 180, 0);
var _local3 = new flash.filters.BlurFilter();
this.filters = [_local3];
clickGuard.swapDepths(10000);
} else {
var _local2 = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
this.filters = [];
GetTime = getTimer();
clickGuard.swapDepths(129);
}
this.transform.colorTransform = _local2;
}
var dist = 100;
var mcList = [mc0, mc1, mc2, mc3, mc4];
var posList = [new flash.geom.Point(), new flash.geom.Point(), new flash.geom.Point(), new flash.geom.Point(), new flash.geom.Point()];
var mcLen = mcList.length;
var rollingAng = -90;
var selectAng = 0;
var selectIndex = 0;
var pausing = false;
clickGuard.swapDepths(129);
this.onEnterFrame = EnterFrame;
Symbol 773 MovieClip Frame 1
function OpenHelp() {
_parent.howBtn._visible = false;
_parent.Pause();
gotoAndPlay ("open");
_parent.SE("se_click");
}
function CloseHelp() {
_parent.howBtn._visible = true;
_parent.UnPause();
gotoAndPlay ("close");
_parent.SE("se_click");
}
function OpenGaiyou() {
_parent.SE("se_get");
gotoAndStop ("gaiyou");
}
function OpenEvo() {
_parent.SE("se_get");
gotoAndStop ("evo");
}
function OpenGoal() {
_parent.SE("se_get");
gotoAndStop ("goal");
}
function OpenHow() {
_parent.SE("se_get");
gotoAndStop ("how");
}
function OpenHint() {
_parent.SE("se_get");
gotoAndStop ("hint");
}
function OpenTitle() {
_parent.SE("se_get");
gotoAndStop ("title");
}
gotoAndStop ("wait");
Symbol 773 MovieClip Frame 2
helpBtn.onPress = OpenHelp;
helpBtn.onRollOver = _parent.BtnRollOver;
Symbol 773 MovieClip Frame 14
stop();
closeBtn.onRelease = CloseHelp;
gaiyouBtn.onRelease = OpenGaiyou;
evoBtn.onRelease = OpenEvo;
goalBtn.onRelease = OpenGoal;
howBtn.onRelease = OpenHow;
hintBtn.onRelease = OpenHint;
titleBtn.onRelease = OpenTitle;
closeBtn.onRollOver = _parent.BtnRollOver;
gaiyouBtn.onRollOver = _parent.BtnRollOver;
evoBtn.onRollOver = _parent.BtnRollOver;
goalBtn.onRollOver = _parent.BtnRollOver;
howBtn.onRollOver = _parent.BtnRollOver;
hintBtn.onRollOver = _parent.BtnRollOver;
titleBtn.onRollOver = _parent.BtnRollOver;
if (_parent.titleMenu) {
titleBtn.enabled = false;
titleBtn._alpha = 30;
}
Symbol 773 MovieClip Frame 32
function okBtnPressed() {
_parent.SE("se_click");
_parent.gotoAndStop("select");
}
okBtn.onRelease = okBtnPressed;
okBtn.onRollOver = _parent.BtnRollOver;
Symbol 773 MovieClip Frame 41
gotoAndStop ("wait");
Symbol 778 MovieClip Frame 1
function GetItemProp(iName) {
var _local1 = {iMc_t:{type:"leg", kikaku:"leg", showRect:40}, iMc_t2:{type:"leg", kikaku:"leg", showRect:40}, iMc_t3:{type:"leg", kikaku:"leg", showRect:40}, iMc_t4:{type:"leg", kikaku:"leg", showRect:40}, iMc_arm1:{type:"leg", kikaku:"leg", showRect:40}, iMc_arm2:{type:"leg", kikaku:"leg", showRect:40}, iMc_arm3:{type:"leg", kikaku:"leg", showRect:40}, iMc_arm4:{type:"leg", kikaku:"leg", showRect:40}, iMc_arm5:{type:"leg", kikaku:"leg", showRect:40}, iMc_arm6:{type:"leg", kikaku:"leg", showRect:40}, iMc_arm7:{type:"leg", kikaku:"leg", showRect:40}, iMc_arm8:{type:"leg", kikaku:"leg", showRect:40}, iMc_arm9:{type:"leg", kikaku:"leg", showRect:40}, iMc_bintage04:{type:"leg", kikaku:"leg", showRect:40}, iMc_led:{type:"power", kikaku:"long", showRect:40}, iMc_m85c:{type:"power", kikaku:"long", showRect:40}, iMc_plus:{type:"power", kikaku:"small", showRect:40}, iMc_bane1:{type:"power", kikaku:"long", showRect:40}, iMc_bintage01:{type:"power", kikaku:"big", showRect:40}, iMc_bintage02:{type:"power", kikaku:"small", showRect:40}, iMc_bintage03:{type:"power", kikaku:"small", showRect:40}, iMc_bintage05:{type:"power", kikaku:"small", showRect:40}, iMc_black01:{type:"power", kikaku:"long", showRect:40}, iMc_box01:{type:"power", kikaku:"small", showRect:40}, iMc_box02:{type:"power", kikaku:"big", showRect:40}, iMc_box05:{type:"power", kikaku:"small", showRect:40}, iMc_cond01:{type:"power", kikaku:"small", showRect:40}, iMc_cond02:{type:"power", kikaku:"small", showRect:40}, iMc_cond03:{type:"power", kikaku:"long", showRect:40}, iMc_gear01:{type:"power", kikaku:"big", showRect:40}, iMc_gear02:{type:"power", kikaku:"big", showRect:40}, iMc_gear03:{type:"power", kikaku:"big", showRect:40}, iMc_gear04:{type:"power", kikaku:"big", showRect:40}, iMc_gear05:{type:"power", kikaku:"small", showRect:40}, iMc_gear06:{type:"power", kikaku:"small", showRect:40}, iMc_gear07:{type:"power", kikaku:"big", showRect:40}, iMc_gear08:{type:"power", kikaku:"small", showRect:40}, iMc_gear09:{type:"power", kikaku:"big", showRect:40}, iMc_gear10:{type:"power", kikaku:"big", showRect:40}, iMc_gear11:{type:"power", kikaku:"big", showRect:40}, iMc_gear12:{type:"power", kikaku:"big", showRect:40}, iMc_gear13:{type:"power", kikaku:"small", showRect:40}, iMc_led01:{type:"power", kikaku:"long", showRect:40}, iMc_led02:{type:"power", kikaku:"long", showRect:40}, iMc_led03:{type:"power", kikaku:"long", showRect:40}, iMc_motor01:{type:"power", kikaku:"big", showRect:40}, iMc_slider01:{type:"power", kikaku:"long", showRect:40}, iMc_switch01:{type:"power", kikaku:"big", showRect:40}, iMc_switchB01:{type:"power", kikaku:"small", showRect:40}, iMc_switchC01:{type:"power", kikaku:"small", showRect:40}, iMc_switchD01:{type:"power", kikaku:"long", showRect:40}, iMc_switchE01:{type:"power", kikaku:"long", showRect:40}, iMc_switchF01:{type:"power", kikaku:"big", showRect:40}, iMc_switchG01:{type:"power", kikaku:"long", showRect:40}, iMc_teikou01:{type:"power", kikaku:"long", showRect:40}, iMc_teikou02:{type:"power", kikaku:"long", showRect:40}, iMc_teikou03:{type:"power", kikaku:"long", showRect:40}, iMc_gear:{type:"speed", kikaku:"big", showRect:40}, iMc_473z:{type:"speed", kikaku:"small", showRect:40}, iMc_teikou0:{type:"speed", kikaku:"long", showRect:40}, iMc_bane2:{type:"speed", kikaku:"big", showRect:40}, iMc_bearing:{type:"speed", kikaku:"big", showRect:40}, iMc_bintage06:{type:"speed", kikaku:"long", showRect:40}, iMc_bintage07:{type:"speed", kikaku:"big", showRect:40}, iMc_bis01:{type:"speed", kikaku:"small", showRect:40}, iMc_blue01:{type:"speed", kikaku:"long", showRect:40}, iMc_box03:{type:"speed", kikaku:"big", showRect:40}, iMc_box04:{type:"speed", kikaku:"big", showRect:40}, iMc_clock01:{type:"speed", kikaku:"big", showRect:40}, iMc_counterA01:{type:"speed", kikaku:"big", showRect:40}, iMc_counterB01:{type:"speed", kikaku:"long", showRect:40}, iMc_curve01:{type:"speed", kikaku:"big", showRect:40}, iMc_green01:{type:"speed", kikaku:"big", showRect:40}, iMc_kaiten01:{type:"speed", kikaku:"small", showRect:40}, iMc_kaitenB01:{type:"speed", kikaku:"small", showRect:40}, iMc_kaitenC01:{type:"speed", kikaku:"small", showRect:40}, iMc_kiban01:{type:"speed", kikaku:"big", showRect:40}, iMc_kotei01:{type:"speed", kikaku:"big", showRect:40}, iMc_light01:{type:"speed", kikaku:"small", showRect:40}, iMc_light02:{type:"speed", kikaku:"small", showRect:40}, iMc_light03:{type:"speed", kikaku:"long", showRect:40}, iMc_light04:{type:"speed", kikaku:"long", showRect:40}, iMc_light05:{type:"speed", kikaku:"long", showRect:40}, iMc_light06:{type:"speed", kikaku:"long", showRect:40}, iMc_nezi01:{type:"speed", kikaku:"long", showRect:40}, iMc_nezi02:{type:"speed", kikaku:"small", showRect:40}, iMc_panel01:{type:"speed", kikaku:"big", showRect:40}, iMc_panelB01:{type:"speed", kikaku:"big", showRect:40}, iMc_panelC01:{type:"speed", kikaku:"big", showRect:40}, iMc_panelD01:{type:"speed", kikaku:"big", showRect:40}, iMc_panelE01:{type:"speed", kikaku:"big", showRect:40}, iMc_speaker01:{type:"speed", kikaku:"big", showRect:40}, iMc_speakerB01:{type:"speed", kikaku:"big", showRect:40}, iMc_tsumami01:{type:"speed", kikaku:"big", showRect:40}, iMc_volA01:{type:"speed", kikaku:"big", showRect:40}, iMc_volB02:{type:"speed", kikaku:"big", showRect:40}, iMc_white01:{type:"speed", kikaku:"small", showRect:40}, iMc_yellow01:{type:"speed", kikaku:"big", showRect:40}, iMc_yellow02:{type:"speed", kikaku:"long", showRect:40}, iMc_yellow03:{type:"speed", kikaku:"long", showRect:40}, iBox_p:{type:"power", showRect:40}, iBox_s:{type:"speed", showRect:40}, wall_corn:{type:"wall", showRect:60}, wall_bigCorn:{type:"wall", showRect:110}, enemy:{type:"enemy", showRect:60}, hurdle:{type:"hurdle", showRect:80}, dummy:{}};
return(_local1[iName]);
}
function SetRandomLinkage(list) {
var _local5 = 0;
var _local3 = "";
var _local4 = {power:["iMc_led", "iMc_m85c", "iMc_plus", "iMc_bane1", "iMc_bintage01", "iMc_bintage02", "iMc_bintage03", "iMc_bintage05", "iMc_black01", "iMc_box01", "iMc_box02", "iMc_box05", "iMc_cond01", "iMc_cond02", "iMc_cond03", "iMc_gear01", "iMc_gear02", "iMc_gear03", "iMc_gear04", "iMc_gear05", "iMc_gear06", "iMc_gear07", "iMc_gear08", "iMc_gear09", "iMc_gear10", "iMc_gear11", "iMc_gear12", "iMc_gear13", "iMc_led01", "iMc_led02", "iMc_led03", "iMc_motor01", "iMc_slider01", "iMc_switch01", "iMc_switchB01", "iMc_switchC01", "iMc_switchD01", "iMc_switchE01", "iMc_switchF01", "iMc_switchG01", "iMc_teikou01", "iMc_teikou02", "iMc_teikou03"], speed:["iMc_gear", "iMc_473z", "iMc_teikou0", "iMc_bane2", "iMc_bearing", "iMc_bintage06", "iMc_bintage07", "iMc_bis01", "iMc_blue01", "iMc_box03", "iMc_box04", "iMc_clock01", "iMc_counterA01", "iMc_counterB01", "iMc_curve01", "iMc_green01", "iMc_kaiten01", "iMc_kaitenB01", "iMc_kaitenC01", "iMc_kiban01", "iMc_kotei01", "iMc_light01", "iMc_light02", "iMc_light03", "iMc_light04", "iMc_light05", "iMc_light06", "iMc_nezi01", "iMc_nezi02", "iMc_panel01", "iMc_panelB01", "iMc_panelC01", "iMc_panelD01", "iMc_panelE01", "iMc_speaker01", "iMc_speakerB01", "iMc_tsumami01", "iMc_volA01", "iMc_volB02", "iMc_white01", "iMc_yellow01", "iMc_yellow02", "iMc_yellow03"], leg:["iMc_t", "iMc_t2", "iMc_t3", "iMc_t4", "iMc_arm1", "iMc_arm2", "iMc_arm3", "iMc_arm4", "iMc_arm5", "iMc_arm6", "iMc_arm7", "iMc_arm8", "iMc_arm9", "iMc_bintage04"]};
var _local1 = 0;
while (_local1 < list.length) {
if (((list[_local1][2] != "power") && (list[_local1][2] != "speed")) && (list[_local1][2] != "leg")) {
} else {
_local5 = _local4[list[_local1][2]].length;
_local3 = _local4[list[_local1][2]][Math.floor(Math.random() * _local5)];
list[_local1][2] = _local3;
}
_local1++;
}
return(list);
}
function MapItem_Add(addNum) {
var _local1 = [];
_local1[0] = [[917, 306, "leg"], [1025, 702, "leg"], [455, 762, "leg"], [264, 1122, "leg"], [1025, 1158, "leg"], [1679, 690, "leg"], [1475, 186, "leg"], [455, 1632, "leg"], [965, 1794, "leg"], [1163, 2291, "leg"], [509, 2573, "leg"], [2141, 2573, "leg"], [2255, 396, "leg"], [3515, 612, "leg"], [2813, 804, "leg"], [3515, 1584, "leg"], [2915, 2255, "leg"], [3407, 2645, "leg"], [2501, 1854, "leg"], [1427, 1062, "leg"], [180, 756, "power"], [2639, 324, "power"], [1733, 396, "power"], [2297, 666, "power"], [3029, 324, "power"], [3443, 924, "power"], [2903, 1368, "power"], [3293, 1794, "power"], [3107, 2400, "power"], [2417, 2670, "power"], [3029, 1074, "power"], [1373, 2585, "power"], [497, 2159, "power"], [827, 1488, "power"], [466, 1312, "speed"], [178, 2059, "speed"], [847, 2632, "speed"], [2041, 2314, "speed"], [2986, 2059, "speed"], [3658, 2218, "speed"], [3136, 2632, "speed"], [2641, 2632, "speed"], [2455, 151, "speed"], [1861, 643, "speed"], [1150, 247, "speed"], [1522, 2143, "enemy"], [847, 2215, "enemy"], [544, 1768, "enemy"], [847, 997, "enemy"], [1813, 2686, "enemy"], [2476, 2239, "enemy"], [3328, 2293, "enemy"], [3049, 1507, "enemy"], [3580, 1105, "enemy"], [3244, 535, "enemy"], [2446, 412, "enemy"], [1882, 172, "enemy"], [1408, 649, "enemy"], [2568, 1159, "enemy"], [1358, 414, "wall_corn"], [291, 1350, "wall_corn"], [968, 1569, "wall_corn"], [1052, 1647, "wall_corn"], [1160, 1737, "wall_corn"], [1478, 339, "wall_corn"], [1580, 279, "wall_corn"], [1358, 2366, "wall_corn"], [1250, 2430, "wall_corn"], [1160, 2498, "wall_corn"], [2345, 2468, "wall_corn"], [2312, 2366, "wall_corn"], [2282, 2270, "wall_corn"], [3165, 1986, "wall_corn"], [3251, 2057, "wall_corn"], [3077, 1920, "wall_corn"], [3308, 1239, "wall_corn"], [3410, 1287, "wall_corn"], [3512, 1323, "wall_corn"], [3014, 480, "wall_corn"], [3116, 423, "wall_corn"], [3224, 378, "wall_corn"], [315, 2147, "wall_corn"], [1808, 2147, "wall_corn"], [2726, 1860, "wall_corn"], [3641, 1770, "wall_corn"], [2810, 1047, "wall_corn"], [3500, 333, "wall_corn"], [2030, 681, "wall_corn"], [830, 525, "wall_corn"], [315, 597, "wall_corn"], [1859, 1095, "wall_bigCorn"], [2075, 1119, "wall_bigCorn"], [2261, 1233, "wall_bigCorn"], [2351, 1440, "wall_bigCorn"], [2261, 1635, "wall_bigCorn"], [2030, 1767, "wall_bigCorn"], [1766, 1767, "wall_bigCorn"], [1526, 1647, "wall_bigCorn"], [1472, 1413, "wall_bigCorn"], [1616, 1197, "wall_bigCorn"], [781, 1225, "iBox_p"], [244, 1759, "iBox_s"], [145, 2623, "iBox_p"], [259, 2641, "iBox_s"], [184, 2737, "iBox_p"], [322, 2770, "iBox_s"], [2875, 1684, "iBox_p"], [1555, 2530, "iBox_s"], [2875, 2716, "iBox_p"], [3061, 796, "iBox_s"], [2245, 130, "iBox_p"], [2062, 178, "iBox_s"], [2176, 256, "iBox_p"], [1561, 577, "iBox_s"], [3900, 100, "hurdle"], [3900, 250, "hurdle"], [3900, 400, "hurdle"], [3900, 550, "hurdle"], [3900, 700, "hurdle"], [3900, 850, "hurdle"], [3900, 1000, "hurdle"], [3900, 1150, "hurdle"], [3900, 1300, "hurdle"], [3900, 1450, "hurdle"], [3900, 1600, "hurdle"], [3900, 1750, "hurdle"], [3900, 1900, "hurdle"], [3900, 2050, "hurdle"], [3900, 2200, "hurdle"], [3900, 2350, "hurdle"], [3900, 2500, "hurdle"], [3900, 2650, "hurdle"], [3900, 2800, "hurdle"]];
_local1[1] = [[5499, 549, "leg"], [6092, 2298, "leg"], [6141, 678, "leg"], [6597, 1128, "leg"], [4941, 2316, "leg"], [4947, 618, "leg"], [4365, 1794, "leg"], [4422, 1032, "leg"], [5475, 2316, "leg"], [6513, 1794, "leg"], [5720, 678, "power"], [7080, 1289, "power"], [5403, 1988, "power"], [6754, 1662, "power"], [6303, 995, "power"], [5301, 1030, "power"], [4161, 1278, "power"], [6288, 1902, "power"], [4275, 2148, "power"], [6054, 2493, "power"], [5662, 819, "speed"], [6280, 556, "speed"], [6040, 2026, "speed"], [5070, 1029, "speed"], [4672, 1720, "speed"], [6871, 841, "speed"], [6961, 2005, "speed"], [5317, 2509, "speed"], [4377, 615, "wall_corn"], [6637, 2114, "wall_corn"], [6721, 2192, "wall_corn"], [6829, 2282, "wall_corn"], [4497, 540, "wall_corn"], [4599, 480, "wall_corn"], [4623, 2157, "wall_corn"], [5954, 537, "wall_corn"], [6743, 1415, "wall_corn"], [6829, 1487, "wall_corn"], [6655, 1349, "wall_corn"], [5622, 2174, "wall_corn"], [5724, 2222, "wall_corn"], [5826, 2258, "wall_corn"], [7053, 687, "wall_corn"], [7155, 630, "wall_corn"], [7263, 585, "wall_corn"], [6005, 748, "wall_corn"], [5972, 646, "wall_corn"], [4515, 2232, "wall_corn"], [4425, 2301, "wall_corn"], [5645, 1107, "wall_bigCorn"], [5891, 1119, "wall_bigCorn"], [6113, 1233, "wall_bigCorn"], [6179, 1464, "wall_bigCorn"], [6077, 1659, "wall_bigCorn"], [5870, 1755, "wall_bigCorn"], [5594, 1749, "wall_bigCorn"], [5378, 1647, "wall_bigCorn"], [5324, 1413, "wall_bigCorn"], [5438, 1203, "wall_bigCorn"], [5439, 321, "wall_bigCorn"], [6457, 651, "wall_bigCorn"], [7344, 1203, "wall_bigCorn"], [6963, 1774, "wall_bigCorn"], [6547, 2548, "wall_bigCorn"], [6873, 249, "wall_bigCorn"], [5839, 2601, "wall_bigCorn"], [5244, 2133, "wall_bigCorn"], [4659, 2638, "wall_bigCorn"], [4899, 1618, "wall_bigCorn"], [4770, 892, "wall_bigCorn"], [5338, 738, "enemy"], [6322, 2101, "enemy"], [6262, 2674, "enemy"], [4933, 2509, "enemy"], [5032, 229, "enemy"], [6307, 238, "enemy"], [6700, 541, "enemy"], [7438, 891, "enemy"], [6967, 1047, "enemy"], [7249, 1645, "enemy"], [4894, 1185, "enemy"], [4555, 1440, "enemy"], [5500, 2602, "enemy"], [7410, 2101, "enemy"], [4717, 694, "enemy"], [4954, 2008, "enemy"], [5686, 2008, "enemy"], [7159, 2527, "enemy"], [6486, 1234, "enemy"], [5860, 313, "enemy"], [7486, 355, "enemy"], [5686, 103, "iBox_p"], [4305, 2516, "iBox_s"], [4741, 195, "iBox_p"], [5308, 2761, "iBox_s"], [6804, 2686, "iBox_p"], [7450, 2593, "iBox_s"], [6573, 229, "iBox_p"], [7422, 2734, "iBox_s"], [7372, 142, "iBox_p"], [7189, 190, "iBox_s"], [7303, 268, "iBox_p"], [7740, 100, "hurdle"], [7740, 250, "hurdle"], [7740, 400, "hurdle"], [7740, 550, "hurdle"], [7740, 700, "hurdle"], [7740, 850, "hurdle"], [7740, 1000, "hurdle"], [7740, 1150, "hurdle"], [7740, 1300, "hurdle"], [7740, 1450, "hurdle"], [7740, 1600, "hurdle"], [7740, 1750, "hurdle"], [7740, 1900, "hurdle"], [7740, 2050, "hurdle"], [7740, 2200, "hurdle"], [7740, 2350, "hurdle"], [7740, 2500, "hurdle"], [7740, 2650, "hurdle"], [7740, 2800, "hurdle"]];
var _local2 = SetRandomLinkage(_local1[addNum]);
MapItem_ListAdd(_local2);
}
function GameStart() {
map_itemList = [];
MapItem_Add(gameStage);
pausing = false;
this.onEnterFrame = EnterFrame;
}
function EnterFrame() {
if (pausing) {
return(undefined);
}
_parent.debagText.text = "";
Zoom();
Scroll();
MapItemManagement();
TimeManagement();
_parent.debagText.text = _parent.debagText.text + ((((("\nmaxSpeed : " + player.maxSpeed) + "\nbodySpeed : ") + player.bodyMinSpeed) + "/") + player.bodyMaxSpeed);
_parent.debagText.text = _parent.debagText.text + ((((("\nrecover : " + player.recoverP) + "\nbodyRecover : ") + player.bodyMinPower) + "/") + player.bodyMaxPower);
}
function Scroll() {
var _local3 = new flash.geom.Point(Stage.width * 0.5, Stage.height * 0.5);
var _local2 = {x:_local3.x, y:_local3.y};
this.globalToLocal(_local2);
_x = (_x + ((_local2.x - player._x) * 0.3));
_y = (_y + ((_local2.y - player._y) * 0.3));
_x = Math.max(Math.min(_x, ((-mapMinX) * _xscale) * 0.01), -((((mapSize.x + jumpAreaX) * _xscale) * 0.01) - Stage.width));
_y = Math.max(Math.min(_y, 0), -(((mapSize.y * _yscale) * 0.01) - Stage.height));
ZoneDisp();
}
function Zoom() {
var _local3 = {x:Stage.width * 0.5, y:Stage.height * 0.5};
this.globalToLocal(_local3);
if (notice_time > 0) {
notice_time--;
ZoomCam(notice_zoom, addZoom * 2);
if (notice_time == 0) {
if (player.mouseClick) {
zoomTime = zoomWaitTime;
} else {
zoomTime = 0;
}
}
} else if (player.mouseClick) {
if ((++zoomTime) < zoomWaitTime) {
return(undefined);
}
zoomTime = zoomWaitTime;
ZoomCam(maxZoom, addZoom);
} else {
if ((--zoomTime) > 0) {
return(undefined);
}
zoomTime = 0;
ZoomCam(minZoom, addZoom);
}
_xscale = zoom;
_yscale = zoom;
var _local2 = new flash.geom.Point(_local3.x, _local3.y);
this.localToGlobal(_local2);
_x = (_x + (320 - _local2.x));
_y = (_y + (240 - _local2.y));
}
function ZoomCam(_goalZoom, _addZoom) {
if (zoom == _goalZoom) {
return(undefined);
}
if (zoom < _goalZoom) {
zoom = Math.min(zoom + _addZoom, _goalZoom);
} else {
zoom = Math.max(zoom - _addZoom, _goalZoom);
}
}
function Notice(time, _zoom) {
notice_time = time;
notice_zoom = _zoom;
}
function NextStage() {
_parent.DeleteGoalGuide();
if (gameStage == 1) {
_parent.GoEnding(kikaku_bigList, kikaku_longList, kikaku_smallList, parts_legList, gameTime);
return(undefined);
}
_parent.dispAlert("nextStage", true);
clearNormaParts = 22;
_parent.partsDispMc.DispParts("norma", clearNormaParts);
map_itemList = [];
gameStage = 1;
MapItem_Add(gameStage);
var _local3 = {x:mapSize.x, y:0};
this.localToGlobal(_local3);
nextStageScrollX = _x - _local3.x;
mapMinX = mapSize.x;
mapSize.x = 7680;
this.onEnterFrame = EnterFrame_NextStage;
}
function EnterFrame_NextStage() {
Scroll_NextStage();
MapItemManagement();
TimeManagement();
}
function Scroll_NextStage() {
_x = (_x + ((nextStageScrollX - _x) * 0.1));
ZoneDisp();
if ((_x - nextStageScrollX) > 1) {
return(undefined);
}
if ((parts_powerList.length + parts_speedList.length) >= clearNormaParts) {
_parent.dispAlert("clearComp" + String(gameStage), true);
_parent.DispGoalGuide();
}
var _local3 = 0;
while (_local3 < hurdleMcList.length) {
hurdleMcList[_local3].removeMovieClip();
_local3++;
}
hurdleMcList = [];
this.onEnterFrame = EnterFrame;
player.NextStageStart();
}
function Ready() {
pausing = true;
MapItem_Add(0);
MapItem_Add(1);
_xscale = 50;
_yscale = 50;
_x = (((-(7680 - Stage.width)) * _xscale) * 0.01);
this.onEnterFrame = EnterFrame_ready;
this.attachMovie("ready_goal", "rg", 10001, {_x:7800, _xscale:(100 / _xscale) * 100, _yscale:(100 / _yscale) * 100});
}
function EnterFrame_ready() {
var _local3 = 30;
MapItemManagement();
ZoneDisp();
if ((++readyTime) < _local3) {
return(undefined);
}
var _local5 = ((-(3840 - Stage.width)) * _xscale) * 0.01;
var _local4 = readyTime - _local3;
if (_x < _local5) {
_x = Math.min(_x + _local4, 0);
return(undefined);
}
_x = (_x + (-Math.min(_x * 0.1, _local4)));
if (_x < -4) {
return(undefined);
}
delete this.onEnterFrame;
_parent.gotoAndStop("game");
}
function ZoneDisp() {
_parent.cover_top._y = Math.max(_y ^ 0, -40);
_parent.cover_left._x = Math.max((_x + ((mapMinX * _xscale) * 0.01)) ^ 0, -40);
_parent.cover_bottom._y = Math.min((_y + ((mapSize.y * _yscale) * 0.01)) ^ 0, ((mapSize.y * _yscale) * 0.01) + 40);
_parent.cover_right._x = Math.min((_x + ((mapSize.x * _xscale) * 0.01)) ^ 0, ((mapSize.x * _xscale) * 0.01) + 40);
var _local3 = (300 * _yscale) * 0.01;
var _local5 = ((-_y) / _local3) ^ 0;
var _local4 = ((-_x) / _local3) ^ 0;
_local5++;
_local4++;
var _local2 = 0;
while (_local2 < 3) {
_parent["yukaLineX" + _local2]._y = ((_local3 * (_local5 + _local2)) + _y) ^ 0;
_local2++;
}
_local2 = 0;
while (_local2 < 4) {
_parent["yukaLineY" + _local2]._x = ((_local3 * (_local4 + _local2)) + _x) ^ 0;
_local2++;
}
}
function MapItemManagement() {
var _local8 = {x:0, y:0};
var _local7 = {x:Stage.width, y:Stage.height};
this.globalToLocal(_local8);
this.globalToLocal(_local7);
_parent.debagText.text = _parent.debagText.text + ((((((("L : " + (_local8.x ^ 0)) + "\nR : ") + (_local7.x ^ 0)) + "\nU : ") + (_local8.y ^ 0)) + "\nD : ") + (_local7.y ^ 0));
var _local3 = map_itemList.length - 1;
while (_local3 >= 0) {
var _local5 = new flash.geom.Point(map_itemList[_local3].x, map_itemList[_local3].y);
var _local6 = map_itemList[_local3].showRect;
if (_local5.x < (_local8.x - _local6)) {
} else if (_local5.x > (_local7.x + _local6)) {
} else if (_local5.y < (_local8.y - _local6)) {
} else if (_local5.y > (_local7.y + _local6)) {
} else {
var _local4 = this.attachMovie(map_itemList[_local3].linkage, "item" + itemDepth, itemDepth, {_x:_local5.x, _y:_local5.y});
_local4.linkage = map_itemList[_local3].linkage;
_local4.type = map_itemList[_local3].type;
_local4.showRect = map_itemList[_local3].showRect;
if (_local4.linkage == "enemy") {
_local4.initPos = new flash.geom.Point(_local5.x, _local5.y);
} else if (_local4.linkage.substr(0, 4) == "wall") {
cornMcList.push(_local4);
} else if (_local4.linkage == "hurdle") {
hurdleMcList.push(_local4);
}
itemDepth++;
map_itemList.splice(_local3, 1);
}
_local3--;
}
}
function MapItem_ListAdd(list) {
var _local1 = 0;
while (_local1 < list.length) {
var _local2 = list[_local1][2];
var _local5 = GetItemProp(_local2).type;
var _local4 = GetItemProp(_local2).showRect;
if (_local4 == undefined) {
trace("\u30D0\u30B0\uFF1AshowRect\u304C\u672A\u8A2D\u5B9A // " + list[_local1][2]);
}
map_itemList.push(new ItemClass(list[_local1][0], list[_local1][1], _local2, _local5, _local4));
_local1++;
}
}
function MapItem_OutOfMonitor(mc) {
if (mc.linkage.substr(0, 4) == "wall") {
ListDelete(mc, cornMcList);
} else if (mc.linkage == "hurdle") {
ListDelete(mc, hurdleMcList);
}
if (mc._x > mapMinX) {
map_itemList.push(new ItemClass(mc._x, mc._y, mc.linkage, mc.type, mc.showRect));
}
mc.removeMovieClip();
}
function GetItem(mc) {
var _local3 = mc.type;
var _local4 = mc.linkage;
var _local6 = GetItemProp(_local4).kikaku;
this[("parts_" + _local3) + "List"].push(_local4);
this[("kikaku_" + _local6) + "List"].unshift(_local4);
Effect("effect_get" + _local3, mc._x, mc._y);
_parent.partsDispMc.DispParts(_local3, this[("parts_" + _local3) + "List"].length);
_parent.partsDispMc.DispParts("jump", parts_powerList.length + parts_speedList.length);
_parent.partsDispMc.DispParts("norma", clearNormaParts);
if (_local3 != "leg") {
player.BodyDecoration();
if ((parts_powerList.length + parts_speedList.length) == clearNormaParts) {
_parent.dispAlert("clearComp" + String(gameStage), true);
_parent.DispGoalGuide();
}
}
player.SumMaxSpeed(_local3);
player.evolution();
_parent.evoluteDisp.cursorDisp(player.evo, player.evoType, parts_powerList.length, parts_speedList.length);
_parent.SE("se_get");
}
function showBoxItem(type, X, Y) {
var _local1 = SetRandomLinkage([[X, Y, type]]);
MapItem_ListAdd(_local1);
}
function Effect(linkage, X, Y) {
this.attachMovie(linkage, "effect" + effectDepth, effectDepth, {_x:X, _y:Y});
effectDepth++;
}
function ListDelete(target, list) {
var _local1 = 0;
while (_local1 < list.length) {
if (list[_local1] == target) {
list.splice(_local1, 1);
return(_local1);
}
_local1++;
}
return(-1);
}
function MapExpansion() {
mapSize.x = 3840;
mapSize.y = 2880;
jumpAreaX = 320;
_parent.cover_bottom.nextFrame();
_parent.cover_right.nextFrame();
_parent.dispAlert("mapExpansion", true);
}
function TimeManagement() {
var _local2 = getTimer();
gameTime = gameTime + (_local2 - GetTime);
gameTime = Math.min(gameTime, _parent.limitStop);
GetTime = _local2;
_parent.timeDispMc.DispTime(gameTime);
}
function Pause(flg) {
pausing = flg;
if (flg) {
var _local2 = new flash.geom.ColorTransform(0.3, 0.3, 0.3, 1, 180, 180, 180, 0);
var _local3 = new flash.filters.BlurFilter();
this.filters = [_local3];
} else {
var _local2 = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
this.filters = [];
GetTime = getTimer();
}
this.transform.colorTransform = _local2;
}
var mapMinX = 0;
var nextStageScrollX = 0;
var mapSize = (new flash.geom.Point(1920, 1440));
var jumpAreaX = 0;
var gameStage = 0;
var effectDepth = 12000;
this.attachMovie("player_type" + _parent.selectIndex, "player", 10000, {_x:293, _y:240, _xscale:50, _yscale:50});
var parts_powerList = [];
var parts_speedList = [];
var parts_legList = [];
var kikaku_bigList = [];
var kikaku_longList = [];
var kikaku_smallList = [];
var clearNormaParts = 12;
var gameTime = 0;
var GetTime = getTimer();
var pausing = false;
var maxZoom = 80;
var minZoom = 50;
var addZoom = 2;
var zoomTime = 20;
var zoomWaitTime = 20;
var zoom = maxZoom;
_xscale = zoom;
_yscale = zoom;
var notice_time = 0;
var notice_zoom = 0;
Notice(60, 100);
var readyTime = 0;
var map_itemList = [];
var itemDepth = 0;
var cornMcList = [];
var hurdleMcList = [];
if (_parent.ready) {
Ready();
} else {
_parent.dispAlert("gameStart", true);
GameStart();
}
Symbol 788 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 1
stop();
Symbol 820 MovieClip Frame 1
function disp(num, type) {
var _local2 = 0;
while (_local2 < 7) {
if (_local2 == 2) {
revo2a._visible = false;
revo2b._visible = false;
} else {
this["revo" + _local2]._visible = false;
}
_local2++;
}
if (num == 2) {
if (type) {
revo2a._visible = true;
} else {
revo2b._visible = true;
}
} else {
this["revo" + num]._visible = true;
}
}
function cursorDisp(evo, evoType, pLen, sLen) {
var _local2 = [c1_p, c1_s, c2p_p, c2p_s, c2s_p, c2s_s];
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1]._visible = false;
_local2[_local1].stop();
_local1++;
}
if ((evo == 1) || (evo == 2)) {
} else {
return(undefined);
}
if (evo == 1) {
if (pLen >= sLen) {
var _local3 = c1_p;
} else {
var _local3 = c1_s;
}
} else if (evoType) {
if (pLen >= sLen) {
var _local3 = c2p_p;
} else {
var _local3 = c2p_s;
}
} else if (pLen >= sLen) {
var _local3 = c2s_p;
} else {
var _local3 = c2s_s;
}
_local3._visible = true;
_local3.play();
}
disp(0);
cursorDisp(0, true, 0, 0);
Symbol 853 MovieClip Frame 1
function DispParts(type, num) {
if (type == "leg") {
DispLeg(num);
} else if (type == "norma") {
DispNorma(num);
} else if (type == "power") {
DispPower(num);
} else if (type == "speed") {
DispSpeed(num);
} else if (type == "jump") {
DispJump(num);
}
}
function Disp(mcA, mcB, num) {
var _local1 = "0" + String(num);
_local1 = _local1.substr(-2);
mcA.gotoAndStop(Number(_local1.charAt(0)) + 1);
mcB.gotoAndStop(Number(_local1.charAt(1)) + 1);
}
function DispLeg(num) {
Disp(mcL0, mcL1, num);
}
function DispPower(num) {
Disp(mcP0, mcP1, num);
}
function DispSpeed(num) {
Disp(mcS0, mcS1, num);
}
function DispJump(num) {
Disp(mcJ0, mcJ1, num);
}
function DispNorma(num) {
Disp(mcN0, mcN1, num);
}
DispLeg(0);
DispPower(0);
DispSpeed(0);
DispJump(0);
DispNorma(0);
Symbol 856 MovieClip Frame 1
function GetTimeStr(time) {
var _local3 = ((time * 0.001) / 60) ^ 0;
var _local6 = ((time * 0.001) - (_local3 * 60)) ^ 0;
var _local8 = (time * 0.001) - Math.floor(time * 0.001);
var _local4 = String("0" + _local3).substr(-2);
var _local5 = String("0" + _local6).substr(-2);
var _local1 = String(_local8 + "0000").substr(2, 3);
var _local7 = {m0:Number(_local4.charAt(0)), m1:Number(_local4.charAt(1)), s0:Number(_local5.charAt(0)), s1:Number(_local5.charAt(1)), p0:Number(_local1.charAt(0)), p1:Number(_local1.charAt(1)), p2:Number(_local1.charAt(2))};
return(_local7);
}
function DispTime(time) {
var _local1 = GetTimeStr(time);
m0.gotoAndStop(_local1.m0 + 1);
m1.gotoAndStop(_local1.m1 + 1);
s0.gotoAndStop(_local1.s0 + 1);
s1.gotoAndStop(_local1.s1 + 1);
p0.gotoAndStop(_local1.p0 + 1);
p1.gotoAndStop(_local1.p1 + 1);
p2.gotoAndStop(_local1.p2 + 1);
}
function DispBestTime(time) {
var _local1 = GetTimeStr(time);
bm0.gotoAndStop(_local1.m0 + 1);
bm1.gotoAndStop(_local1.m1 + 1);
bs0.gotoAndStop(_local1.s0 + 1);
bs1.gotoAndStop(_local1.s1 + 1);
bp0.gotoAndStop(_local1.p0 + 1);
bp1.gotoAndStop(_local1.p1 + 1);
}
DispTime(0);
DispBestTime(_parent.bestTime);
Symbol 862 MovieClip Frame 1
function BodyDecoration() {
BodyUnDecoration();
var _local4 = 0;
var _local10 = Math.min(bigPartsList.length, _parent.kikaku_bigList.length);
var _local12 = Math.min(longPartsList.length, _parent.kikaku_longList.length);
var _local11 = Math.min(smallPartsList.length, _parent.kikaku_smallList.length);
var _local3 = 0;
while (_local3 < _local10) {
var _local6 = "deco_b_" + _parent.kikaku_bigList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:bigPartsList[_local3][0].x, _y:bigPartsList[_local3][0].y, _rotation:bigPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local12) {
var _local6 = "deco_l_" + _parent.kikaku_longList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:longPartsList[_local3][0].x, _y:longPartsList[_local3][0].y, _rotation:longPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
_local3 = 0;
while (_local3 < _local11) {
var _local6 = "deco_s_" + _parent.kikaku_smallList[_local3].substr(4);
var _local5 = this.attachMovie(_local6, "deco" + _local4, _local4, {_x:smallPartsList[_local3][0].x, _y:smallPartsList[_local3][0].y, _rotation:smallPartsList[_local3][1]});
_local4++;
decoMcList.push(_local5);
_local3++;
}
}
function SetGraphicsLeg(A, B) {
var _local2 = 0;
_local2 = 0;
while (_local2 < A) {
ashiList[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < B) {
ashiListB[_local2].gotoAndStop(_parent.parts_legList[_local2]);
_local2++;
}
}
var bigPartsList = [];
var longPartsList = [];
var smallPartsList = [];
var decoMcList = [];
var ashiList = [];
var ashiListB = [];
gotoAndStop("body" + _parent.selectIndex);
Symbol 862 MovieClip Frame 5
ashiList = [ashiRF, ashiLF, teRF, teLF];
ashiListB = [ashiRM, ashiLM, teRM, teLM];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(0, 40), 0]];
longPartsList = [[new flash.geom.Point(0, -5), 0]];
smallPartsList = [[new flash.geom.Point(0, -40), 0]];
SetGraphicsLeg(4, 4);
BodyDecoration();
Symbol 862 MovieClip Frame 32
gotoAndPlay ("loop0");
Symbol 862 MovieClip Frame 33
ashiList = [ashiRF, ashiLF, teRF, teLF];
ashiListB = [ashiRM, ashiLM, teRM, teLM];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(0, 34), 0]];
longPartsList = [[new flash.geom.Point(0, -10), 0]];
smallPartsList = [[new flash.geom.Point(-62, -5), 0], [new flash.geom.Point(62, -5), 0]];
SetGraphicsLeg(4, 4);
BodyDecoration();
Symbol 862 MovieClip Frame 60
gotoAndPlay ("loop1");
Symbol 862 MovieClip Frame 61
ashiList = [ashiRF, ashiLF, teRF, teLF];
ashiListB = [ashiRM, ashiLM, teRM, teLM];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(0, -37), 0]];
longPartsList = [[new flash.geom.Point(0, 42), 90]];
smallPartsList = [[new flash.geom.Point(-40, -77), 0], [new flash.geom.Point(40, -77), 0]];
SetGraphicsLeg(4, 4);
BodyDecoration();
Symbol 862 MovieClip Frame 88
gotoAndPlay ("loop2");
Symbol 862 MovieClip Frame 89
ashiList = [ashiRF, ashiLF, teRF, teLF];
ashiListB = [ashiRM, ashiLM, teRM, teLM];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(0, 16), 0]];
longPartsList = [[new flash.geom.Point(-76, -25), 45], [new flash.geom.Point(-54, -40), 60], [new flash.geom.Point(54, -40), 120], [new flash.geom.Point(76, -25), 135]];
smallPartsList = [];
SetGraphicsLeg(4, 4);
BodyDecoration();
Symbol 862 MovieClip Frame 116
gotoAndPlay ("loop3");
Symbol 862 MovieClip Frame 117
ashiList = [ashiRF, ashiLF, teRF, teLF];
ashiListB = [ashiRM, ashiLM, teRM, teLM];
BodyUnDecoration();
bigPartsList = [[new flash.geom.Point(0, 18), 0]];
longPartsList = [[new flash.geom.Point(0, -54), 0]];
smallPartsList = [[new flash.geom.Point(-51, -12), 0], [new flash.geom.Point(51, -12), 0]];
SetGraphicsLeg(4, 4);
BodyDecoration();
Symbol 862 MovieClip Frame 144
gotoAndPlay ("loop4");
Symbol 881 MovieClip Frame 1
function GetTimeStr(time) {
var _local2 = ((time * 0.001) / 60) ^ 0;
var _local3 = ((time * 0.001) - (_local2 * 60)) ^ 0;
var _local5 = (time * 0.001) - Math.floor(time * 0.001);
var _local6 = String("0" + _local2).substr(-2);
var _local7 = String("0" + _local3).substr(-2);
var _local4 = String(_local5 + "0000").substr(2, 3);
return((((_local6 + " : ") + _local7) + " : ") + _local4);
}
function GoTitle() {
_parent.SE("se_click");
gotoAndPlay ("go_title");
}
function BtnRollOver() {
_parent.SE("se_rollOver");
}
var selectIndex = _parent.selectIndex;
var kikaku_bigList = _parent.kikaku_bigList;
var kikaku_longList = _parent.kikaku_longList;
var kikaku_smallList = _parent.kikaku_smallList;
var parts_legList = _parent.parts_legList;
var gameTime = _parent.gameTime;
var endingMode = true;
Symbol 881 MovieClip Frame 31
tDispMc.timeDisp.text = GetTimeStr(gameTime);
Symbol 881 MovieClip Frame 40
humanMc.play();
Symbol 881 MovieClip Frame 44
var timeA = 90000;
var timeB = 120000;
var timeC = 150000;
var timeD = 180000;
if (gameTime < timeA) {
gotoAndPlay ("grade2");
} else if (gameTime < timeB) {
gotoAndPlay ("grade1");
} else if (gameTime < timeC) {
gotoAndPlay ("grade3");
} else if (gameTime < timeD) {
gotoAndPlay ("grade4");
} else {
gotoAndPlay ("grade0");
}
Symbol 881 MovieClip Frame 54
stop();
titleBtn.onRelease = GoTitle;
titleBtn.onRollOver = BtnRollOver;
Symbol 881 MovieClip Frame 84
stop();
titleBtn.onRelease = GoTitle;
titleBtn.onRollOver = BtnRollOver;
Symbol 881 MovieClip Frame 114
stop();
titleBtn.onRelease = GoTitle;
titleBtn.onRollOver = BtnRollOver;
Symbol 881 MovieClip Frame 144
stop();
titleBtn.onRelease = GoTitle;
titleBtn.onRollOver = BtnRollOver;
Symbol 881 MovieClip Frame 174
stop();
titleBtn.onRelease = GoTitle;
titleBtn.onRollOver = BtnRollOver;
Symbol 881 MovieClip Frame 214
_parent.gotoAndStop("select");