Frame 2
_quality = "LOW";
_root.siteURL = "http://www.neostream.com/temp/ranking/";
ifFrameLoaded (100) {
gotoAndStop (10);
}
this.mc_loading.onEnterFrame = function () {
total_byte = Math.floor(_root.getBytesTotal());
load_byte = Math.floor(_root.getBytesLoaded());
load_percent = Math.floor((load_byte / total_byte) * 100);
this.gotoAndPlay(load_percent);
trace(load_percent);
if (load_percent >= 100) {
this.onEnterFrame = null;
this.gotoAndPlay("end");
}
};
stop();
Frame 10
stop();
Frame 20
_root.level = 1;
_root.score = 0;
_root.badNum = (_root.bad_liveNum = _root.level + 4);
_root.levelclear = 0;
_root.characterNum = 1;
Instance of Symbol 440 MovieClip in Frame 20
onClipEvent (enterFrame) {
this._xscale = (100 / (_root.level + 4)) * _root.bad_liveNum;
}
Frame 30
_root.waterHit = false;
_root.spaceDelay = true;
_root.spaceOn = false;
_root.itemValue = false;
_root.itemDelay = false;
_root.itemHit = false;
_root.mc.stage.character._x = (_root.mc.stage._x = 0);
_root.mc.stage.character._y = (_root.mc.stage._y = 0);
_root.mc.stage.character.gotoAndStop("c_front" + _root.characterNum);
_root.mc.stage.character.moving.gotoAndStop(1);
_root.item_view.gotoAndStop(1);
_root.score_blink.gotoAndStop(1);
_root.limitTime = (_root.level * 5) + 35;
var start_min = Math.floor(_root.limitTime / 60);
var start_sec = (_root.limitTime - (start_min * 60));
if (start_sec < 10) {
start_sec = "0" + start_sec;
}
_root.timebar.txt_time = (start_min + " : ") + start_sec;
_root.timebar.gotoAndStop(1);
i = 1;
while (i <= 14) {
_root.mc.stage["bad" + i]._x = _root.mc.stage["bad" + i].startX;
_root.mc.stage["bad" + i]._y = _root.mc.stage["bad" + i].startY;
_root.mc.stage["bad" + i].gotoAndStop(1);
_root.mc.stage["bad" + i]._visible = false;
i++;
}
_root.brokenNum = 0;
_root.bad_liveNum = _root.level + 4;
stop();
Frame 31
function directionClear(a, b, c) {
_root[a + "Move"] = _root.moveSpeed;
_root[b + "Move"] = _root.moveSpeed;
_root[c + "Move"] = _root.moveSpeed;
}
_root.moveSpeed = 10;
_root.leftMove = _root.moveSpeed;
_root.rightMove = _root.moveSpeed;
_root.upMove = _root.moveSpeed;
_root.downMove = _root.moveSpeed;
_root.bad_speed = (_root.level / 2) + 5;
_root.badNum = _root.level + 4;
_root.badarrayX = [-430, 400, 620, -100, -280, -150, 380, -540, 150, 580, -600, 600, 130, -650, 300];
_root.badarrayY = [-340, -300, 150, 360, 220, -330, 70, 100, -230, 330, -350, -200, 270, -50, 0];
var i = 0;
while (i < _root.badarrayX.length) {
var arrayShuffle1 = random(_root.badarrayX.length);
var arrayShuffle2 = random(_root.badarrayX.length);
var bxTemp = _root.badarrayX[arrayShuffle1];
_root.badarrayX[arrayShuffle1] = _root.badarrayX[arrayShuffle2];
_root.badarrayX[arrayShuffle2] = bxTemp;
var byTemp = _root.badarrayY[arrayShuffle1];
_root.badarrayY[arrayShuffle1] = _root.badarrayY[arrayShuffle2];
_root.badarrayY[arrayShuffle2] = byTemp;
i++;
}
_root.itemarrayX = [-550, -645, 130, 585, 550, -170, 400, -165, -530, 295];
_root.itemarrayY = [355, -65, 375, 300, -330, -350, 20, -10, -320, -140];
_root.itemRandom = random(10);
_root.mc.stage.mc_item._x = _root.itemarrayX[_root.itemRandom];
_root.mc.stage.mc_item._y = _root.itemarrayY[_root.itemRandom];
_root.mc.stage.mc_item.gotoAndPlay(1);
_root.timebar.gotoAndStop(2);
i = 1;
while (i <= _root.badNum) {
_root.mc.stage["bad" + i]._visible = true;
_root.mc.stage["bad" + i]._x = _root.badarrayX[i];
_root.mc.stage["bad" + i]._y = _root.badarrayY[i];
_root.mc.stage["bad" + i].gotoAndStop("start");
i++;
}
_root.mc.onEnterFrame = function () {
_root.bad_liveNum = (_root.level + 4) - _root.brokenNum;
if (_root.bad_liveNum <= 0) {
_root.mc.onEnterFrame = null;
_root.gotoAndStop("levelup");
}
if (Key.isDown(37) && (_root.itemDelay == false)) {
_root.cdirection = "left";
_root.directionClear("right", "up", "down");
this.stage.character.gotoAndStop("c_left" + _root.characterNum);
this.stage.character.moving.play();
if ((this.stage._x >= 510) || (this.stage.character._x > 510)) {
this.stage.character._x = this.stage.character._x - _root.leftMove;
} else {
this.stage.character._x = this.stage.character._x - _root.leftMove;
this.stage._x = this.stage._x + _root.leftMove;
}
} else if (Key.isDown(39) && (_root.itemDelay == false)) {
_root.cdirection = "right";
_root.directionClear("left", "up", "down");
this.stage.character.gotoAndStop("c_right" + _root.characterNum);
this.stage.character.moving.play();
if ((this.stage._x <= -510) || (this.stage.character._x < -510)) {
this.stage.character._x = this.stage.character._x + _root.rightMove;
} else {
this.stage.character._x = this.stage.character._x + _root.rightMove;
this.stage._x = this.stage._x - _root.rightMove;
}
} else if (Key.isDown(40) && (_root.itemDelay == false)) {
_root.cdirection = "down";
_root.directionClear("left", "right", "up");
this.stage.character.gotoAndStop("c_front" + _root.characterNum);
this.stage.character.moving.play();
if ((this.stage._y <= -320) || (this.stage.character._y < -320)) {
this.stage.character._y = this.stage.character._y + _root.downMove;
} else {
this.stage.character._y = this.stage.character._y + _root.downMove;
this.stage._y = this.stage._y - _root.downMove;
}
} else if (Key.isDown(38) && (_root.itemDelay == false)) {
_root.cdirection = "up";
_root.directionClear("left", "right", "down");
this.stage.character.gotoAndStop("c_back" + _root.characterNum);
this.stage.character.moving.play();
if ((this.stage._y >= 320) || (this.stage.character._y > 320)) {
this.stage.character._y = this.stage.character._y - _root.upMove;
} else {
this.stage.character._y = this.stage.character._y - _root.upMove;
this.stage._y = this.stage._y + _root.upMove;
}
} else if (_root.itemDelay == false) {
this.stage.character.moving.gotoAndStop(1);
}
if (Key.isDown(32) && (_root.itemDelay == false)) {
if (_root.spaceOn == false) {
this.stage.character.spark.gotoAndPlay("start");
if (_root.waterHit == true) {
_root.mc.stage.water_spark.play();
}
_root.spaceOn = true;
} else if (_root.spaceOn == true) {
this.stage.character.spark.play();
}
} else {
_root.spaceOn = false;
}
if (Key.isDown(17) && (_root.itemValue == true)) {
_root.itemValue = false;
_root.itemDelay = true;
this.stage.character.moving.gotoAndPlay("item");
this.stage.character.dark_bg.gotoAndPlay("start");
_root.item_view.gotoAndPlay("end");
}
};
stop();
Frame 32
_root.mc.stage.character.moving.stop();
_root.timebar.bar.onEnterFrame = null;
_root.score = _root.score + ((_root.timebar.real_sec * 500) + (_root.level * 1000));
if (_root.itemValue == true) {
_root.itemValue = false;
_root.item_view.gotoAndPlay("end");
_root.score = _root.score + (_root.level * 5000);
}
_root.score_blink.gotoAndPlay("start");
stop();
Frame 40
_root.mc.onEnterFrame = null;
_root.mc.stage.character.moving.stop();
_root.mc.stage.character.dark_bg.gotoAndStop(1);
_root.timebar.bar.onEnterFrame = null;
stop();
Frame 50
_root.mc.onEnterFrame = null;
_root.mc.stage.character.moving.stop();
_root.timebar.bar.onEnterFrame = null;
_root.score_blink.gotoAndPlay("start");
stop();
Frame 60
_quality = "HIGH";
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 2
_root.spaceDelay = true;
Symbol 27 MovieClip Frame 6
_root.spaceDelay = false;
Symbol 28 MovieClip Frame 16
this.spark.gotoAndPlay("start");
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 106
_parent.gotoAndStop("ready");
Symbol 81 MovieClip Frame 9
if (_root.itemDelay == true) {
this.gotoAndPlay("item");
} else {
this.play();
}
Symbol 81 MovieClip Frame 18
if (_root.itemDelay == true) {
this.gotoAndPlay("item");
} else {
this.gotoAndPlay(2);
}
Symbol 81 MovieClip Frame 24
_parent.item_spark.gotoAndPlay("start");
stop();
Symbol 81 MovieClip Frame 29
gotoAndStop (1);
Symbol 98 Button
on (release) {
this.howtoplay = true;
this.play();
}
Symbol 99 Button
on (rollOver) {
this.spark.gotoAndPlay(2);
this.character.eyes.gotoAndPlay(30);
}
on (rollOut) {
this.character.eyes.gotoAndStop(1);
}
on (release) {
this.play();
_parent.play();
}
Symbol 100 Button
on (release) {
this.ranking = true;
this.play();
}
Symbol 101 Button
on (rollOver) {
this.spark.gotoAndPlay(2);
this.character.eyes.gotoAndPlay(30);
}
on (rollOut) {
this.character.eyes.gotoAndStop(1);
}
on (release) {
this.play();
_parent.play();
}
Symbol 144 MovieClip Frame 1
if (_root.itemDelay == true) {
this.stop();
} else {
this.play();
}
Symbol 183 MovieClip Frame 1
if (_root.itemDelay == true) {
this.stop();
} else {
this.play();
}
Symbol 202 Button
on (release) {
stopAllSounds();
this.gotoAndPlay("end");
}
Symbol 247 MovieClip Frame 8
if (_root.itemDelay == true) {
this.gotoAndPlay("item");
} else {
this.play();
}
Symbol 247 MovieClip Frame 18
if (_root.itemDelay == true) {
this.gotoAndPlay("item");
} else {
this.gotoAndPlay(2);
}
Symbol 247 MovieClip Frame 24
_parent.item_spark.gotoAndPlay("start");
stop();
Symbol 247 MovieClip Frame 29
gotoAndStop (1);
Symbol 262 MovieClip Frame 4
if (_parent.live == 1) {
this.stop();
} else {
this.play();
}
Symbol 262 MovieClip Frame 10
this.delay = random(20);
Symbol 262 MovieClip Frame 15
this.i = this.i + 1;
if (i >= this.delay) {
this.delay = 0;
delete this.i;
this.play();
} else {
this.gotoAndPlay(this._currentframe - 3);
}
Symbol 293 MovieClip Frame 1
if (_root.itemDelay == true) {
this.stop();
} else {
this.play();
}
Symbol 342 MovieClip Frame 8
if (_root.itemDelay == true) {
this.gotoAndPlay("item");
} else {
this.play();
}
Symbol 342 MovieClip Frame 18
if (_root.itemDelay == true) {
this.gotoAndPlay("item");
} else {
this.gotoAndPlay(2);
}
Symbol 342 MovieClip Frame 24
_parent.item_spark.gotoAndPlay("start");
stop();
Symbol 342 MovieClip Frame 29
gotoAndStop (1);
Symbol 357 MovieClip Frame 4
if (_parent.live == 1) {
this.stop();
} else {
this.play();
}
Symbol 357 MovieClip Frame 10
this.delay = random(20);
Symbol 357 MovieClip Frame 15
this.i = this.i + 1;
if (this.i >= this.delay) {
this.delay = 0;
delete this.i;
this.play();
} else {
this.gotoAndPlay(this._currentframe - 3);
}
Symbol 400 MovieClip Frame 10
if (_root.itemDelay == true) {
this.gotoAndPlay("item");
} else {
this.play();
}
Symbol 400 MovieClip Frame 18
if (_root.itemDelay == true) {
this.gotoAndPlay("item");
} else {
this.gotoAndPlay(2);
}
Symbol 400 MovieClip Frame 24
_parent.item_spark.gotoAndPlay("start");
stop();
Symbol 400 MovieClip Frame 29
gotoAndStop (1);
Instance of Symbol 184 MovieClip in Symbol 427 MovieClip Frame 1
onClipEvent (load) {
myColor = new Color(box);
myColorT = new Object();
myColorT = {ra:100, rb:75, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0};
myColor.setTransform(myColorT);
}
Instance of Symbol 301 MovieClip in Symbol 427 MovieClip Frame 81
onClipEvent (load) {
myColor = new Color(box);
myColorT = new Object();
myColorT = {ra:100, rb:75, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0};
myColor.setTransform(myColorT);
}
Instance of Symbol 358 MovieClip in Symbol 427 MovieClip Frame 171
onClipEvent (load) {
myColor = new Color(box);
myColorT = new Object();
myColorT = {ra:100, rb:75, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0};
myColor.setTransform(myColorT);
}
Instance of Symbol 359 MovieClip in Symbol 427 MovieClip Frame 190
onClipEvent (load) {
myColor = new Color(box);
myColorT = new Object();
myColorT = {ra:100, rb:75, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0};
myColor.setTransform(myColorT);
}
Instance of Symbol 298 MovieClip in Symbol 427 MovieClip Frame 270
onClipEvent (load) {
this.stop();
}
Symbol 427 MovieClip Frame 324
this.gotoAndPlay("loop");
Symbol 427 MovieClip Frame 330
_parent.gotoAndPlay("intro");
Instance of Symbol 81 MovieClip "character" in Symbol 428 MovieClip Frame 1
onClipEvent (load) {
this.eyes.gotoAndStop(1);
this.gotoAndStop(1);
}
Symbol 428 MovieClip Frame 5
this.title_spark1.play();
Symbol 428 MovieClip Frame 7
this.title_spark2.play();
Symbol 428 MovieClip Frame 11
this.spark.play();
stop();
Symbol 428 MovieClip Frame 18
if (this.howtoplay == true) {
delete this.howtoplay;
this.gotoAndStop("howto");
}
if (this.ranking == true) {
delete this.ranking;
_parent.gotoAndStop("ranking");
}
Symbol 428 MovieClip Frame 24
stop();
Symbol 428 MovieClip Frame 29
this.howtoplay = false;
Symbol 447 MovieClip Frame 1
this.bar.onEnterFrame = null;
this.bar._xscale = 100;
stop();
Symbol 447 MovieClip Frame 2
minustime = getTimer();
this.bar._xscale = 100;
scaleX = 100 / _root.limitTime;
this.bar.onEnterFrame = function () {
sec = Math.floor((getTimer() - minustime) / 1000);
real_sec = _root.limitTime - sec;
t_min = Math.floor(real_sec / 60);
t_sec = real_sec - (t_min * 60);
if (t_sec < 10) {
t_sec = "0" + t_sec;
}
txt_time = (t_min + " : ") + t_sec;
this._xscale = Math.floor(scaleX * real_sec);
if (real_sec <= 0) {
_parent.gotoAndStop("gameover");
this.onEnterFrame = null;
} else if (real_sec <= 20) {
play();
}
};
stop();
Symbol 447 MovieClip Frame 15
this.gotoAndPlay("loop");
Symbol 450 MovieClip Frame 1
stop();
Symbol 450 MovieClip Frame 10
_root.score = _root.score + 5000;
_root.score_blink.gotoAndPlay("start");
stop();
Symbol 451 MovieClip Frame 1
this.scoreColor = new TextFormat();
this.scoreColor.color = 0;
_parent.score_field.setTextFormat(this.scoreColor);
stop();
Symbol 451 MovieClip Frame 5
this.scoreColor.color = 16777215 /* 0xFFFFFF */;
_parent.score_field.setTextFormat(this.scoreColor);
Symbol 451 MovieClip Frame 10
this.scoreColor.color = 16711680 /* 0xFF0000 */;
_parent.score_field.setTextFormat(this.scoreColor);
Symbol 451 MovieClip Frame 15
this.i = this.i + 1;
if (this.i >= 5) {
delete this.i;
this.scoreColor.color = 16777215 /* 0xFFFFFF */;
_parent.score_field.setTextFormat(this.scoreColor);
this.play();
} else {
this.gotoAndPlay("start");
}
Symbol 478 MovieClip Frame 1
stop();
Symbol 479 MovieClip Frame 1
stop();
Symbol 479 MovieClip Frame 2
this.spark1.gotoAndPlay("start");
Symbol 479 MovieClip Frame 4
this.spark2.gotoAndPlay("start");
Symbol 479 MovieClip Frame 6
this.spark3.gotoAndPlay("start");
Symbol 479 MovieClip Frame 8
this.spark4.gotoAndPlay("start");
Symbol 491 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 5
if (this.hitTest(_parent.character.hit)) {
_root.itemValue = true;
_root.item_view.gotoAndPlay("start");
if (_root.itemHistory != true) {
_parent.character.item_usekey.gotoAndPlay("start");
}
this.play();
} else {
gotoAndPlay (1);
}
Symbol 502 MovieClip Frame 15
stop();
Symbol 503 MovieClip Frame 1
function upStop() {
if (Key.isDown(38)) {
if (this.hitTest(_parent.character.m_hit)) {
_root.upMove = 0;
}
} else {
_root.upMove = _root.moveSpeed;
}
}
function downStop() {
if (Key.isDown(40)) {
if (this.hitTest(_parent.character.m_hit)) {
_root.downMove = 0;
}
} else {
_root.downMove = _root.moveSpeed;
}
}
function leftStop() {
if (Key.isDown(37)) {
if (this.hitTest(_parent.character.m_hit)) {
_root.leftMove = 0;
}
} else {
_root.leftMove = _root.moveSpeed;
}
}
function rightStop() {
if (Key.isDown(39)) {
if (this.hitTest(_parent.character.m_hit)) {
_root.rightMove = 0;
}
} else {
_root.rightMove = _root.moveSpeed;
}
}
this._visible = false;
Symbol 504 MovieClip Frame 1
this._visible = false;
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 2
play();
_parent.hit._y = _parent.hit._y - 1000;
_parent.getColor();
this.onEnterFrame = function () {
_parent.smoothColor(0.2);
};
Symbol 508 MovieClip Frame 5
_parent.tank._x = 10;
Symbol 508 MovieClip Frame 6
_parent.tank._x = -10;
Symbol 508 MovieClip Frame 7
_parent.tank._x = 8;
Symbol 508 MovieClip Frame 8
_parent.tank._x = -8;
Symbol 508 MovieClip Frame 9
_parent.tank._x = 6;
Symbol 508 MovieClip Frame 10
_parent.tank._x = -6;
Symbol 508 MovieClip Frame 11
_parent.tank._x = 4;
Symbol 508 MovieClip Frame 12
_parent.tank._x = -4;
Symbol 508 MovieClip Frame 13
_parent.tank._x = 3;
Symbol 508 MovieClip Frame 14
_parent.tank._x = -3;
Symbol 508 MovieClip Frame 15
_parent.tank._x = 2;
Symbol 508 MovieClip Frame 16
_parent.tank._x = -2;
Symbol 508 MovieClip Frame 17
_parent.tank._x = 1;
Symbol 508 MovieClip Frame 18
_parent.tank._x = -1;
Symbol 508 MovieClip Frame 19
_parent.tank._x = 0;
Symbol 508 MovieClip Frame 20
this.onEnterFrame = null;
_parent.gotoAndStop("broken_" + _parent.bad_dir);
Symbol 508 MovieClip Frame 50
gotoAndStop (1);
Symbol 508 MovieClip Frame 80
gotoAndStop (1);
Instance of Symbol 108 MovieClip in Symbol 550 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 550 MovieClip Frame 3
stop();
Instance of Symbol 298 MovieClip in Symbol 551 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 551 MovieClip Frame 3
stop();
Instance of Symbol 298 MovieClip in Symbol 552 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 552 MovieClip Frame 3
stop();
Instance of Symbol 108 MovieClip in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 553 MovieClip Frame 3
stop();
Symbol 554 MovieClip Frame 1
this.onEnterFrame = null;
stop();
Symbol 554 MovieClip Frame 2
function directionXY() {
this.arrayXY = ["left", "up", "right", "down"];
this.bad_dir = this.arrayXY[random(4)];
this.gotoAndStop(this.bad_dir);
}
function randomXY() {
this.runCheck = 1;
this.leftTX = this._x - (((this.randomplus * 2) + random(160)) + random(240));
this.rightTX = this._x + (((this.randomplus * 2) + random(160)) + random(240));
this.upTX = this._y - (((this.randomplus * 3) + random(160)) + random(240));
this.downTX = this._y + (((this.randomplus * 3) + random(160)) + random(240));
}
function awayXY() {
if (this.bad_dir == "left") {
this._x = this._x + (this.speed * 2);
} else if (this.bad_dir == "right") {
this._x = this._x - (this.speed * 2);
} else if (this.bad_dir == "up") {
this._y = this._y + (this.speed * 2);
} else if (this.bad_dir == "down") {
this._y = this._y - (this.speed * 2);
}
}
function dirRandom(dir) {
if (this.tempArray.length <= 0) {
this.tempArray = ["left", "right", "up", "down"];
}
if (this.tempArray.length >= 4) {
if (dir == "left") {
this.tempArray.splice(0, 1);
} else if (dir == "right") {
this.tempArray.splice(1, 1);
} else if (dir == "up") {
this.tempArray.splice(2, 1);
} else if (dir == "down") {
this.tempArray.splice(3, 1);
}
}
this.runCheck = 1;
this.avoidRandom = random(this.tempArray.length);
this.bad_dir = tempArray[this.avoidRandom];
this.tempArray.splice(this.avoidRandom, 1);
}
function broken() {
this.onEnterFrame = function () {
i = i + 1;
if (i % 6) {
delete i;
if (((((((((((((this.brokenhit.hitTest(_parent["bad" + num[0]].hit) || (this.hitTest(_parent["bad" + num[1]].hit))) || (this.hitTest(_parent["bad" + num[2]].hit))) || (this.hitTest(_parent["bad" + num[3]].hit))) || (this.hitTest(_parent["bad" + num[4]].hit))) || (this.hitTest(_parent["bad" + num[5]].hit))) || (this.hitTest(_parent["bad" + num[6]].hit))) || (this.hitTest(_parent["bad" + num[7]].hit))) || (this.hitTest(_parent["bad" + num[8]].hit))) || (this.hitTest(_parent["bad" + num[9]].hit))) || (this.hitTest(_parent["bad" + num[10]].hit))) || (this.hitTest(_parent["bad" + num[11]].hit))) || (this.hitTest(_parent["bad" + num[12]].hit))) || (this.hitTest(_parent["bad" + num[13]].hit))) {
_root.brokenNum = _root.brokenNum - 1;
_root.score = _root.score - ((_root.level * 500) / 2);
this.shock_effect.gotoAndPlay("repair");
this.tank.live = 0;
this.onEnterFrame = null;
gotoAndPlay (2);
}
}
};
}
function runawayXY() {
cX = _parent.character._x;
cY = _parent.character._y;
xPlus = 200;
yPlus = 150;
if ((((this._x >= (cX - xPlus)) && (this._x <= (cX + xPlus))) && (this._y <= (cY + yPlus))) && (this._y >= (cY - yPlus))) {
this.dirRandom(this.bad_dir);
this.runCheck = 0;
}
}
function badhitCheck(dir) {
if (this.hit.hitTest(_parent.hit4)) {
this.awayXY();
this.randomXY();
this.bad_dir = "left";
} else if (this.hit.hitTest(_parent.hit3)) {
this.awayXY();
this.randomXY();
this.bad_dir = "right";
} else if (this.hit.hitTest(_parent.hit2)) {
this.awayXY();
this.randomXY();
this.bad_dir = "up";
} else if (this.hit.hitTest(_parent.hit1)) {
this.awayXY();
this.randomXY();
this.bad_dir = "down";
} else if ((((((((((((((((this.hit.hitTest(_parent.hit5) || (this.hit.hitTest(_parent.hit6))) || (this.hit.hitTest(_parent.hit7))) || (this.hit.hitTest(_parent.hit8))) || (this.hit.hitTest(_parent.hit9))) || (this.hit.hitTest(_parent.hit10))) || (this.hit.hitTest(_parent.hit11))) || (this.hit.hitTest(_parent.hit12))) || (this.hit.hitTest(_parent.hit13))) || (this.hit.hitTest(_parent.hit14))) || (this.hit.hitTest(_parent.hit15))) || (this.hit.hitTest(_parent.hit16))) || (this.hit.hitTest(_parent.hit17))) || (this.hit.hitTest(_parent.hit18))) || (this.hit.hitTest(_parent.hit19))) || (this.hit.hitTest(_parent.hit20))) || (this.hit.hitTest(_parent.hit21))) {
this.awayXY();
this.randomXY();
this.dirRandom(dir);
} else {
this.runCheck_delay = this.runCheck_delay + 1;
if (((this.runCheck_delay % 24) == 0) && (this.runCheck == 1)) {
delete this.runCheck_delay;
this.runawayXY();
}
}
this.gotoAndStop(this.bad_dir);
}
function setBadDie() {
this.shock_effect.gotoAndPlay("shock");
this.tank.live = 1;
this.tank.eyes.gotoAndPlay(1);
_root.brokenNum = _root.brokenNum + 1;
_root.score = _root.score + (_root.level * 500);
_root.score_blink.gotoAndPlay("start");
this.onEnterFrame = null;
}
function itemBroken() {
if (_root.itemDelay == true) {
this.tank.eyes.stop();
this.tank.caterpillar.stop();
this.onEnterFrame = null;
leftCheck = this._parent.character._x - 180;
rightCheck = this._parent.character._x + 180;
upCheck = this._parent.character._y - 120;
downCheck = this._parent.character._y + 120;
if ((((this._x >= leftCheck) && (this._x <= rightCheck)) && (this._y >= upCheck)) && (this._y <= downCheck)) {
this.onEnterFrame = function () {
if (_root.itemHit == true) {
setBadDie();
}
};
} else {
this.onEnterFrame = function () {
if (_root.itemDelay == false) {
this.onEnterFrame = null;
gotoAndPlay (2);
}
};
}
}
}
function getColor() {
get_ra = myColorT.ra;
get_rb = myColorT.rb;
get_ga = myColorT.ga;
get_gb = myColorT.gb;
get_ba = myColorT.ba;
get_bb = myColorT.bb;
get_aa = myColorT.aa;
get_ab = myColorT.ab;
}
function smoothColor(m) {
set_ra = (set_ga = (set_ba = 80));
set_aa = 100;
set_rb = (set_gb = (set_bb = (set_ab = 0)));
get_ra = Math.round(get_ra + (m * (set_ra - get_ra)));
get_rb = Math.round(get_rb + (m * (set_rb - get_rb)));
get_ga = Math.round(get_ga + (m * (set_ga - get_ga)));
get_gb = Math.round(get_gb + (m * (set_gb - get_gb)));
get_ba = Math.round(get_ba + (m * (set_ba - get_ba)));
get_bb = Math.round(get_bb + (m * (set_bb - get_bb)));
this.setColor(tank.box, get_ra, get_rb, get_ga, get_gb, get_ba, get_bb, get_aa, get_ab);
}
function setColor(name, r1, r2, g1, g2, b1, b2, a1, a2) {
myColor = new Color(name);
myColorT = new Object();
myColorT = {ra:r1, rb:r2, ga:g1, gb:g2, ba:b1, bb:b2, aa:a1, ab:a2};
myColor.setTransform(myColorT);
}
function boxColor() {
if (this.name == "red") {
this.setColor(tank.box, 100, 75, 0, 0, 0, 0, 100, 0);
} else if (this.name == "yellow") {
this.setColor(tank.box, 100, 200, 80, 80, 0, 0, 100, 0);
} else if (this.name == "blue") {
this.setColor(tank.box, 0, 0, 70, 0, 80, 80, 100, 0);
} else if (this.name == "green") {
this.setColor(tank.box, 0, 0, 100, 13, 0, 30, 100, 0);
}
}
this.speed = _root.bad_speed;
this.randomplus = 30;
this.tempArray = ["left", "right", "up", "down"];
this.directionXY();
this.randomXY();
this.onEnterFrame = function () {
if ((((this._x >= (_parent.character._x - 500)) && (this._x <= (_parent.character._x + 500))) && (this._y >= (_parent.character._y - 300))) && (this._y <= (_parent.character._y + 300))) {
i = i + 1;
if (i % 2) {
delete i;
itemBroken();
if (this.hit.hitTest(_parent.character.hit) && (_root.spaceDelay == true)) {
yeah_sd = new Sound();
yeah_sd.attachSound("yeah");
yeah_sd.start(0, 1);
_parent.character.spark.gotoAndPlay("start");
setBadDie();
} else if ((_root.waterHit == true) && (_root.spaceDelay == true)) {
if ((((this._x <= -220) && (this._x >= -550)) && (this._y <= 120)) && (this._y >= -90)) {
setBadDie();
} else if ((((this._x <= -100) && (this._x >= -220)) && (this._y <= 40)) && (this._y >= -20)) {
setBadDie();
}
}
}
if (this.bad_dir == "left") {
if (this._x <= this.leftTX) {
this.randomXY();
this.directionXY();
} else {
this._x = this._x - this.speed;
this.badhitCheck(this.bad_dir);
}
} else if (this.bad_dir == "right") {
if (this._x >= this.rightTX) {
this.randomXY();
this.directionXY();
} else {
this._x = this._x + this.speed;
this.badhitCheck(this.bad_dir);
}
} else if (this.bad_dir == "up") {
if (this._y <= this.upTX) {
this.randomXY();
this.directionXY();
} else {
this._y = this._y - this.speed;
this.badhitCheck(this.bad_dir);
}
} else if (this.bad_dir == "down") {
if (this._y >= this.downTX) {
this.randomXY();
this.directionXY();
} else {
this._y = this._y + this.speed;
this.badhitCheck(this.bad_dir);
}
}
}
};
this.hit._y = 0;
stop();
Symbol 554 MovieClip Frame 10
this.boxColor();
Symbol 554 MovieClip Frame 20
this.boxColor();
Symbol 554 MovieClip Frame 30
this.boxColor();
Symbol 554 MovieClip Frame 40
this.boxColor();
Symbol 554 MovieClip Frame 50
this.broken();
Symbol 554 MovieClip Frame 60
this.broken();
Symbol 554 MovieClip Frame 70
this.broken();
Symbol 554 MovieClip Frame 80
this.broken();
Symbol 558 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 10
stop();
Symbol 565 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 1
stop();
Instance of Symbol 565 MovieClip in Symbol 589 MovieClip Frame 7
onClipEvent (load) {
if (_root.cdirection == "down") {
frame = 1;
} else if (_root.cdirection == "up") {
frame = 2;
} else if (_root.cdirection == "left") {
frame = 3;
} else if (_root.cdirection == "right") {
frame = 4;
}
this.gotoAndStop(frame);
}
Instance of Symbol 565 MovieClip in Symbol 589 MovieClip Frame 10
onClipEvent (load) {
if (_root.cdirection == "down") {
frame = 1;
} else if (_root.cdirection == "up") {
frame = 2;
} else if (_root.cdirection == "left") {
frame = 3;
} else if (_root.cdirection == "right") {
frame = 4;
}
this.gotoAndStop(frame);
}
Instance of Symbol 565 MovieClip in Symbol 589 MovieClip Frame 12
onClipEvent (load) {
if (_root.cdirection == "down") {
frame = 1;
} else if (_root.cdirection == "up") {
frame = 2;
} else if (_root.cdirection == "left") {
frame = 3;
} else if (_root.cdirection == "right") {
frame = 4;
}
this.gotoAndStop(frame);
}
Symbol 589 MovieClip Frame 14
pulse = _parent._parent.item_pulse;
pulse._x = _parent._x;
pulse._y = _parent._y;
pulse.gotoAndPlay("start");
Instance of Symbol 565 MovieClip in Symbol 589 MovieClip Frame 14
onClipEvent (load) {
if (_root.cdirection == "down") {
frame = 1;
} else if (_root.cdirection == "up") {
frame = 2;
} else if (_root.cdirection == "left") {
frame = 3;
} else if (_root.cdirection == "right") {
frame = 4;
}
this.gotoAndStop(frame);
}
Symbol 589 MovieClip Frame 16
_root.itemHit = true;
Symbol 589 MovieClip Frame 20
function quake(n) {
path = _parent._parent;
path.bg._x = (path.tree._x = (path.water_tree._x = n));
}
quake(-5);
Symbol 589 MovieClip Frame 21
quake(5);
Symbol 589 MovieClip Frame 22
quake(-4);
Symbol 589 MovieClip Frame 23
quake(4);
Symbol 589 MovieClip Frame 24
quake(-3);
Symbol 589 MovieClip Frame 25
quake(3);
Symbol 589 MovieClip Frame 26
_parent.moving.play();
_parent.dark_bg.gotoAndPlay("end");
quake(-2);
Symbol 589 MovieClip Frame 27
quake(2);
Symbol 589 MovieClip Frame 28
quake(-1);
Symbol 589 MovieClip Frame 29
quake(1);
Symbol 589 MovieClip Frame 30
quake(0);
Symbol 589 MovieClip Frame 31
_root.itemDelay = false;
_root.itemHit = false;
Symbol 592 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 2
_root.itemHistory = true;
Symbol 599 MovieClip Frame 11
stop();
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = false;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
if (this.hitTest(_parent.character.m_hit)) {
_root.waterHit = true;
}
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
downStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
leftStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
rightStop();
}
Instance of Symbol 503 MovieClip in Symbol 600 MovieClip Frame 1
onClipEvent (enterFrame) {
upStop();
}
Instance of Symbol 554 MovieClip "bad2" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "yellow";
this.num = [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad3" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "blue";
this.num = [1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad4" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "green";
this.num = [1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad1" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "red";
this.num = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad5" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "red";
this.num = [1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad6" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "yellow";
this.num = [1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad7" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "blue";
this.num = [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad8" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "green";
this.num = [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad9" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "red";
this.num = [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad10" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "yellow";
this.num = [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad11" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "blue";
this.num = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad12" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "green";
this.num = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad13" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "red";
this.num = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14];
stop();
}
Instance of Symbol 554 MovieClip "bad14" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.startX = this._x;
this.startY = this._y;
this.name = "yellow";
this.num = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];
stop();
}
Instance of Symbol 593 MovieClip "character" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("c_front" + _root.characterNum);
this.moving.gotoAndStop(1);
}
Symbol 606 MovieClip Frame 10
_root.mc.stage.character.spark.play();
Symbol 606 MovieClip Frame 48
_parent.nextFrame();
stop();
Symbol 623 MovieClip Frame 20
if (_root.level >= 10) {
_root.levelclear = 1;
_parent.gotoAndStop("ending");
} else {
this.play();
}
Symbol 623 MovieClip Frame 83
_root.level = _root.level + 1;
_root.gotoAndStop("game_start");
Symbol 636 Button
on (release) {
_parent.gotoAndStop("ranking");
}
Symbol 637 Button
on (release) {
_root.score = 0;
_root.level = 1;
_parent.gotoAndStop("game_start");
}
Symbol 638 MovieClip Frame 30
stop();
Symbol 648 MovieClip Frame 40
_parent[this.name].gotoAndPlay(2);
Instance of Symbol 648 MovieClip "paper1" in Symbol 656 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndPlay(2);
this.name = "paper2";
}
Instance of Symbol 648 MovieClip "paper2" in Symbol 656 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(1);
this.name = "paper1";
}
Instance of Symbol 648 MovieClip "paper1" in Symbol 656 MovieClip Frame 19
onClipEvent (load) {
this.gotoAndPlay(2);
this.name = "paper2";
}
Instance of Symbol 648 MovieClip "paper2" in Symbol 656 MovieClip Frame 19
onClipEvent (load) {
this.gotoAndStop(1);
this.name = "paper1";
}
Symbol 656 MovieClip Frame 130
stop();
Symbol 671 Button
on (release, keyPress "<Enter>") {
if (this.name.length >= 1) {
_parent.save = true;
this.gotoAndPlay("save");
}
}
Symbol 678 Button
on (release) {
_root.score = 0;
_parent.gotoAndPlay("close");
}
Symbol 687 Button
on (release) {
this.gotoAndPlay("save");
}
Symbol 688 Button
on (release) {
_parent.gotoAndPlay("close");
}
Symbol 690 MovieClip Frame 1
Selection.setFocus("i_name");
stop();
Symbol 690 MovieClip Frame 5
name = this.name;
score = _root.score;
step = _root.level;
g_kind = "shock";
DataCheck = 0;
loadVariables (_root.siteURL + "DBSave.asp", "", "POST");
Symbol 690 MovieClip Frame 10
if (DataCheck == 1) {
DataCheck = 0;
_root.score = 0;
_parent.gotoAndPlay("close");
stop();
} else {
i = i + 1;
if (i >= 200) {
delete i;
this.gotoAndStop("error");
}
this.gotoAndPlay(this._currentframe - 2);
}
Symbol 690 MovieClip Frame 15
stop();
Symbol 691 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 2
play();
Symbol 691 MovieClip Frame 7
stop();
Symbol 691 MovieClip Frame 25
if (this.save == true) {
this.save = false;
_parent.gotoAndPlay(1);
}
Symbol 706 MovieClip Frame 1
stop();
Symbol 706 MovieClip Frame 15
gotoAndPlay (2);
Symbol 712 MovieClip Frame 1
stop();
Symbol 712 MovieClip Frame 15
gotoAndPlay (2);
Symbol 721 MovieClip Frame 1
stop();
Symbol 721 MovieClip Frame 15
stop();
Symbol 722 Button
on (rollOver) {
_parent[("m_arr" + this.menuNum) + "_1"].gotoAndPlay("over");
_parent[("m_arr" + this.menuNum) + "_2"].gotoAndPlay("over");
}
on (rollOut) {
_parent[("m_arr" + this.menuNum) + "_1"].gotoAndPlay("out");
_parent[("m_arr" + this.menuNum) + "_2"].gotoAndPlay("out");
}
on (release) {
i = 1;
while (i <= 5) {
_parent[("m_arr" + i) + "_1"].gotoAndStop(1);
_parent[("m_arr" + i) + "_2"].gotoAndStop(1);
_parent["m_btn" + i].gotoAndStop(1);
i++;
}
_parent[("m_arr" + this.menuNum) + "_1"].gotoAndStop(15);
_parent[("m_arr" + this.menuNum) + "_2"].gotoAndStop(15);
_parent._parent.page = Number(this.menuNum - 1);
trace("Page : " + _parent._parent.page);
_parent._parent.dataView(_parent._parent.page * 10);
_parent._parent.delayView();
this.gotoAndStop(5);
}
Symbol 723 MovieClip Frame 1
stop();
Symbol 724 Button
on (rollOver) {
this.prev.play();
}
on (rollOut) {
this.prev.gotoAndStop(1);
}
on (release) {
if (_parent.page != 0) {
i = 1;
while (i <= 5) {
this[("m_arr" + i) + "_1"].gotoAndStop(1);
this[("m_arr" + i) + "_2"].gotoAndStop(1);
this["m_btn" + i].gotoAndStop(1);
i++;
}
this[("m_arr" + _parent.page) + "_1"].gotoAndStop(15);
this[("m_arr" + _parent.page) + "_2"].gotoAndStop(15);
this["m_btn" + _parent.page].gotoAndStop(5);
_parent.page = Number(_parent.page - 1);
trace("Page : " + _parent.page);
_parent.dataView(_parent.page * 10);
_parent.delayView();
}
}
Symbol 725 Button
on (rollOver) {
this.next.play();
}
on (rollOut) {
this.next.gotoAndStop(1);
}
on (release) {
if (_parent.page < 4) {
i = 1;
while (i <= 5) {
this[("m_arr" + i) + "_1"].gotoAndStop(1);
this[("m_arr" + i) + "_2"].gotoAndStop(1);
this["m_btn" + i].gotoAndStop(1);
i++;
}
this[("m_arr" + (_parent.page + 2)) + "_1"].gotoAndStop(15);
this[("m_arr" + (_parent.page + 2)) + "_2"].gotoAndStop(15);
this["m_btn" + (_parent.page + 2)].gotoAndStop(5);
_parent.page = Number(_parent.page + 1);
trace("Page : " + _parent.page);
_parent.dataView(_parent.page * 10);
_parent.delayView();
}
}
Symbol 726 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "m_arr1_1" in Symbol 726 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(15);
}
Instance of Symbol 721 MovieClip "m_arr1_2" in Symbol 726 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(15);
}
Instance of Symbol 723 MovieClip "m_btn1" in Symbol 726 MovieClip Frame 2
onClipEvent (load) {
this.menuNum = 1;
this.gotoAndStop(5);
}
Instance of Symbol 723 MovieClip "m_btn2" in Symbol 726 MovieClip Frame 2
onClipEvent (load) {
this.menuNum = 2;
}
Instance of Symbol 723 MovieClip "m_btn3" in Symbol 726 MovieClip Frame 2
onClipEvent (load) {
this.menuNum = 3;
}
Instance of Symbol 723 MovieClip "m_btn4" in Symbol 726 MovieClip Frame 2
onClipEvent (load) {
this.menuNum = 4;
}
Instance of Symbol 723 MovieClip "m_btn5" in Symbol 726 MovieClip Frame 2
onClipEvent (load) {
this.menuNum = 5;
}
Symbol 739 MovieClip Frame 25
stop();
Symbol 744 Button
on (release) {
_quality = "LOW";
_parent.gotoAndPlay("ready");
}
Symbol 751 MovieClip Frame 1
stop();
Symbol 752 Button
on (release) {
this.gotoAndPlay(1);
}
Symbol 753 Button
on (release) {
_quality = "LOW";
_parent.gotoAndPlay("ready");
}
Symbol 755 MovieClip Frame 2
DataCheck = 0;
g_kind = "shock";
loadVariables (_root.siteURL + "RankingList.asp", "", "POST");
Symbol 755 MovieClip Frame 5
if (DataCheck == 1) {
this.play();
} else {
i = i + 1;
if (i >= 300) {
delete i;
this.error = true;
this.gotoAndPlay("start");
} else {
this.gotoAndPlay(this._currentframe - 1);
}
}
Symbol 755 MovieClip Frame 10
if (_root.score > this.score50) {
this.write_win.gotoAndPlay("write");
this.stop();
} else {
this.gotoAndPlay("start");
}
Symbol 755 MovieClip Frame 15
function dataView(addN) {
var i = 1;
while (i <= 10) {
this["list" + i]._visible = false;
this["line" + i]._visible = false;
this["list" + i].num = this["num" + (i + addN)];
this["list" + i].name = this["name" + (i + addN)];
this["list" + i].score = this["score" + (i + addN)];
this["list" + i].level = this["level" + (i + addN)];
this["list" + i].date = this["date" + (i + addN)];
i++;
}
}
function delayView() {
this.medal1._visible = (this.medal2._visible = (this.medal3._visible = false));
i = 0;
this.onEnterFrame = function () {
tempN = tempN + 1;
if (tempN % 24) {
delete tempN;
i = i + 1;
if (this["list" + i].name.length >= 1) {
this["list" + i]._visible = true;
this["line" + i]._visible = true;
if (this.page == 0) {
this["medal" + i]._visible = true;
}
}
if (i > 10) {
delete i;
this.onEnterFrame = null;
}
}
};
this.bottom.gotoAndStop(2);
}
this.page = 0;
dataView(0);
Symbol 755 MovieClip Frame 40
if (this.error == true) {
this.error = false;
this.gotoAndStop("data_err");
} else {
delayView();
stop();
}
Instance of Symbol 751 MovieClip "medal2" in Symbol 755 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 751 MovieClip "medal3" in Symbol 755 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop(3);
}
Symbol 755 MovieClip Frame 45
stop();
Symbol 759 MovieClip Frame 10
stop();