Frame 1
_quality = "low";
stop();
Instance of Symbol 12 MovieClip "code" in Frame 1
onClipEvent (load) {
pauseButton = "Key.RETURN";
actionButtonPlayer1 = 17;
jumpButtonPlayer1 = 32;
leftButtonPlayer1 = 37;
rightButtonPlayer1 = 39;
upButtonPlayer1 = 38;
downButtonPlayer1 = 40;
}
Symbol 12 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 29 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 32 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 35 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 38 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 41 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 44 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 47 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 50 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 53 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 56 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 59 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 60 MovieClip [bubble] Frame 1
function move(x, y) {
hit = true;
if (!_parent._parent.stage.limit.hittest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
hit = false;
}
}
function hitEnemy() {
i = 1;
while (_parent._parent.bub.enemiesNumber >= i) {
if (_parent._parent.enemy["e" + i].limits.hitTest(this)) {
_parent._parent.enemy["e" + i].gotoAndStop("capture");
removeMovieClip(this);
}
i++;
}
}
fallSpeed = 2;
stop();
Instance of Symbol 12 MovieClip in Symbol 60 MovieClip [bubble] Frame 1
onClipEvent (load) {
_parent._x = _parent._parent._parent.bub._x;
_parent._y = _parent._parent._parent.bub._y - 12;
if (_parent._parent._parent.bub._xscale == 100) {
speed = 3;
} else {
speed = -3;
}
distancex = 0;
distancexMAX = 14;
}
onClipEvent (enterFrame) {
_parent.move(speed);
_parent.hitEnemy();
distancex++;
if (_parent.hit || (distancex == distancexMAX)) {
_parent.gotoAndPlay("loop");
}
}
Symbol 60 MovieClip [bubble] Frame 2
counter = 0;
Instance of Symbol 12 MovieClip in Symbol 60 MovieClip [bubble] Frame 2
onClipEvent (load) {
value1 = random(32);
value2 = random(16);
}
onClipEvent (enterFrame) {
if ((64 + value2) < _parent._y) {
_parent._y = _parent._y - 0.5;
} else if (_parent._y < (24 - value2)) {
_parent._y = _parent._y + 0.5;
} else if (_parent._x < (96 + value1)) {
_parent._x = _parent._x + 0.5;
} else if ((144 - value1) < _parent._x) {
_parent._x = _parent._x - 0.5;
}
if (_parent.hitTest(_parent._parent._parent.bub.limits)) {
if (Key.isDown(_root.code.jumpButtonPlayer1) && (_parent._parent._parent.bub._y < (_parent._y + 8))) {
if (_parent._parent._parent.bub._currentframe == 6) {
_parent._parent._parent.bub.height = -5;
_parent._parent._parent.bub.gotoAndStop("jumpUp");
_parent._y = _parent._y + 3;
}
} else {
_parent._parent._parent.score10.gotoAndStop(_parent._parent._parent.score10._currentframe + 1);
_parent.gotoAndPlay("explosion");
}
}
}
Symbol 60 MovieClip [bubble] Frame 14
counter = counter + 1;
if (counter == 60) {
gotoAndPlay (15);
} else {
gotoAndPlay (3);
}
Symbol 60 MovieClip [bubble] Frame 15
bubbleSound = new Sound();
bubbleSound.attachSound("bubbleSound");
bubbleSound.start();
Symbol 60 MovieClip [bubble] Frame 48
removeMovieClip(this);
Instance of Symbol 12 MovieClip in Symbol 60 MovieClip [bubble] Frame 49
onClipEvent (load) {
_parent.move();
if (_parent.hit) {
fall = true;
} else {
fall = false;
}
}
onClipEvent (enterFrame) {
if (_parent.bonus._currentframe == 1) {
if (fall) {
_parent._y = _parent._y + _parent.fallSpeed;
_parent.move();
if (!_parent.hit) {
fall = false;
}
} else {
_parent.move(0, _parent.fallSpeed);
}
if (_parent.bonus.hitTest(_parent._parent._parent.bub.limits)) {
_parent._parent._parent.score100.gotoAndStop(_parent._parent._parent.score100._currentframe + 7);
_parent.bonus.gotoAndPlay(2);
}
}
}
Symbol 65 MovieClip Frame 28
gotoAndPlay (1);
Symbol 67 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 29
gotoAndPlay (1);
Symbol 80 MovieClip Frame 28
gotoAndPlay (1);
Symbol 85 MovieClip Frame 29
gotoAndPlay (1);
Symbol 99 MovieClip Frame 1
counter = 0;
Symbol 99 MovieClip Frame 27
counter = counter + 1;
if (counter == 40) {
gotoAndPlay (28);
} else {
gotoAndPlay (4);
}
Symbol 99 MovieClip Frame 28
counter = 1;
Symbol 99 MovieClip Frame 51
counter = counter + 1;
if (counter == 10) {
_parent.gotoAndStop("walkA");
} else {
gotoAndPlay (29);
}
Symbol 106 MovieClip Frame 25
gotoAndPlay (6);
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 111 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 112 MovieClip [enemy3] Frame 1
stop();
function move(x, y) {
hit = true;
if (!_parent._parent.stage.limit.hittest(_x + x, ((_y + y) + limit.ymax) - 4, true)) {
_x = (_x + x);
_y = (_y + y);
hit = false;
}
}
function captured() {
if ((64 + value2) < _y) {
_y = (_y - 0.5);
} else if (_y < (24 - value2)) {
_y = (_y + 0.5);
} else if (_x < (96 + value1)) {
_x = (_x + 0.5);
} else if ((144 - value1) < _x) {
_x = (_x - 0.5);
}
if (hitTest(_parent._parent.bub.limits)) {
if (Key.isDown(_root.code.jumpButtonPlayer1) && (_parent._parent.bub._y < (_y + 8))) {
if (_parent._parent.bub._currentframe == 6) {
_parent._parent.bub.height = -5;
_parent._parent.bub.gotoAndStop("jumpUp");
_y = (_y + 3);
}
} else {
if (_parent._parent.bub.enemiesTotal == 1) {
if (_parent._parent.bub.stageNumber == 2) {
for (i in ../_parent:bubble) {
_parent._parent.bubble[i].gotoAndStop("stage" + (_parent._parent.bub.stageNumber - 1));
}
} else if (_parent._parent.score10._currentframe == _parent._parent.score100._currentframe) {
for (i in ../_parent:bubble) {
_parent._parent.bubble[i].gotoAndStop("bonus" + (_parent._parent.score10._currentframe - 1));
}
} else {
for (i in ../_parent:bubble) {
_parent._parent.bubble[i].gotoAndPlay("explosion");
}
}
}
this.gotoAndStop("GameOver");
}
}
}
fallSpeed = 2;
limit = this.getbounds(this);
Instance of Symbol 67 MovieClip "limits" in Symbol 112 MovieClip [enemy3] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 12 MovieClip in Symbol 112 MovieClip [enemy3] Frame 2
onClipEvent (load) {
_parent.move();
if (hit) {
fall = true;
} else {
fall = false;
}
}
onClipEvent (enterFrame) {
if (fall) {
_parent._y = _parent._y + 2;
_parent.move();
if (!_parent.hit) {
fall = false;
}
} else {
_parent.move(0, 2);
if (_parent.hit) {
if (_parent._parent._parent.bub._y < (_parent._y - 24)) {
if (((_parent._x + 16) >= _parent._parent._parent.bub._x) && (_parent._parent._parent.bub._x >= (_parent._x - 16))) {
_parent.gotoAndStop("throw");
}
}
}
}
}
Instance of Symbol 75 MovieClip in Symbol 112 MovieClip [enemy3] Frame 3
onClipEvent (load) {
_y = originalHeight;
height = -3;
moving = true;
}
onClipEvent (enterFrame) {
if (hitTest(_parent._parent._parent.bub.limits)) {
if (!_parent._parent._parent.bub.invincible) {
_parent._parent._parent.bub.gotoAndStop("pressComp");
moving = false;
}
}
if (_y < ((originalHeight - height) - 2)) {
if (moving) {
height = height + 0.0416666666666667;
_y = (_y + height);
} else {
_parent._y = _parent._y - 1;
_y = (_y + 1);
}
} else {
_parent.gotoAndStop("walk");
}
}
Instance of Symbol 12 MovieClip in Symbol 112 MovieClip [enemy3] Frame 4
onClipEvent (load) {
_parent.move();
if (hit) {
fall = true;
} else {
fall = false;
}
}
onClipEvent (enterFrame) {
if (fall) {
_parent._y = _parent._y + 2;
_parent.move();
if (!_parent.hit) {
fall = false;
}
} else {
_parent.move(0, 2);
if (_parent.hit) {
if (_parent._parent._parent.bub._y < (_parent._y - 24)) {
if (((_parent._x + 16) >= _parent._parent._parent.bub._x) && (_parent._parent._parent.bub._x >= (_parent._x - 16))) {
_parent.gotoAndStop("throwA");
}
}
}
}
}
Instance of Symbol 88 MovieClip in Symbol 112 MovieClip [enemy3] Frame 5
onClipEvent (load) {
_y = originalHeight;
height = -3;
moving = true;
}
onClipEvent (enterFrame) {
if (hitTest(_parent._parent._parent.bub.limits)) {
if (!_parent._parent._parent.bub.invincible) {
_parent._parent._parent.bub.gotoAndStop("pressComp");
moving = false;
}
}
if (_y < ((originalHeight - height) - 2)) {
if (moving) {
height = height + 0.0416666666666667;
_y = (_y + height);
} else {
_parent._y = _parent._y - 1;
_y = (_y + 1);
}
} else {
_parent.gotoAndStop("walkA");
}
}
Instance of Symbol 12 MovieClip in Symbol 112 MovieClip [enemy3] Frame 6
onClipEvent (load) {
_parent.value1 = random(32);
_parent.value2 = random(16);
}
onClipEvent (enterFrame) {
_parent.captured();
}
Instance of Symbol 12 MovieClip in Symbol 112 MovieClip [enemy3] Frame 7
onClipEvent (load) {
hearSound = new Sound();
hearSound.attachSound("enemyGameOver");
hearSound.start();
_parent._parent._parent.score1000.gotoAndStop(_parent._parent._parent.score1000._currentframe + 1);
height = -4;
walkSpeed = random(4) - 2;
_parent._parent._parent.bub.enemiesTotal = _parent._parent._parent.bub.enemiesTotal - 1;
if (_parent._parent._parent.bub.enemiesTotal == 0) {
_parent._parent.nextFrame();
}
}
onClipEvent (enterFrame) {
height = height + 0.125;
if (4 >= height) {
_parent._y = _parent._y + height;
} else {
_parent.gotoAndStop("bonus");
}
_parent.move(walkSpeed);
}
Instance of Symbol 12 MovieClip in Symbol 112 MovieClip [enemy3] Frame 8
onClipEvent (load) {
if (_parent.hit) {
fall = true;
} else {
fall = false;
}
counter = 0;
}
onClipEvent (enterFrame) {
if (_parent.bonus._currentframe == 1) {
if (360 >= counter) {
counter++;
} else {
removeMovieClip(_parent);
}
if (fall) {
_parent._y = _parent._y + _parent.fallSpeed;
if (!_parent._parent._parent.stage.limit.hittest(_parent._x, ((_parent._y + _parent.y) + _parent.limit.ymax) - 4, true)) {
fall = false;
}
} else {
_parent.move(0, _parent.fallSpeed);
}
if (_parent.bonus.hitTest(_parent._parent._parent.bub.limits)) {
_parent._parent._parent.score100.gotoAndStop(_parent._parent._parent.score100._currentframe + 1);
_parent.bonus.gotoAndPlay(2);
}
}
}
Symbol 117 MovieClip Frame 12
gotoAndPlay (1);
Symbol 122 MovieClip Frame 10
gotoAndPlay (1);
Symbol 135 MovieClip Frame 1
counter = 0;
Symbol 135 MovieClip Frame 27
counter = counter + 1;
if (counter == 40) {
gotoAndPlay (28);
} else {
gotoAndPlay (4);
}
Symbol 135 MovieClip Frame 28
counter = 1;
Symbol 135 MovieClip Frame 51
counter = counter + 1;
if (counter == 10) {
_parent.gotoAndStop("walkA");
} else {
gotoAndPlay (29);
}
Symbol 142 MovieClip Frame 25
gotoAndPlay (6);
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 145 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 146 MovieClip [enemy2] Frame 1
stop();
function move(x, y) {
hit = true;
if (!_parent._parent.stage.limit.hittest(_x + x, ((_y + y) + limit.ymax) - 4, true)) {
_x = (_x + x);
_y = (_y + y);
hit = false;
}
}
function captured() {
if ((64 + value2) < _y) {
_y = (_y - 0.5);
} else if (_y < (24 - value2)) {
_y = (_y + 0.5);
} else if (_x < (96 + value1)) {
_x = (_x + 0.5);
} else if ((144 - value1) < _x) {
_x = (_x - 0.5);
}
if (hitTest(_parent._parent.bub.limits)) {
if (Key.isDown(_root.code.jumpButtonPlayer1) && (_parent._parent.bub._y < (_y + 8))) {
if (_parent._parent.bub._currentframe == 6) {
_parent._parent.bub.height = -5;
_parent._parent.bub.gotoAndStop("jumpUp");
_y = (_y + 3);
}
} else {
if (_parent._parent.bub.enemiesTotal == 1) {
if (_parent._parent.bub.stageNumber == 2) {
for (i in ../_parent:bubble) {
_parent._parent.bubble[i].gotoAndStop("stage" + (_parent._parent.bub.stageNumber - 1));
}
} else if (_parent._parent.score10._currentframe == _parent._parent.score100._currentframe) {
for (i in ../_parent:bubble) {
_parent._parent.bubble[i].gotoAndStop("bonus" + (_parent._parent.score10._currentframe - 1));
}
} else {
for (i in ../_parent:bubble) {
_parent._parent.bubble[i].gotoAndPlay("explosion");
}
}
}
this.gotoAndStop("GameOver");
}
}
}
function walk() {
_x = (_x + speedX);
_y = (_y + speedY);
if (_parent._parent.stage.limit.hittest(_x + speedX, _y, true)) {
speedX = speedX * -1;
_xscale = (_xscale * -1);
}
if (_parent._parent.stage.limit.hittest(_x, _y + speedY, true)) {
speedY = speedY * -1;
}
if (_y >= 260) {
_y = -10;
} else if (-12 >= _y) {
_y = 258;
}
}
fallSpeed = 2;
limit = this.getbounds(this);
Instance of Symbol 67 MovieClip "limits" in Symbol 146 MovieClip [enemy2] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 12 MovieClip in Symbol 146 MovieClip [enemy2] Frame 2
onClipEvent (load) {
if (_parent._xscale == 100) {
_parent.speedX = 1;
_parent.speedY = -1;
} else {
_parent.speedX = -1;
_parent.speedY = -1;
}
}
onClipEvent (enterFrame) {
_parent.walk();
}
Instance of Symbol 12 MovieClip in Symbol 146 MovieClip [enemy2] Frame 3
onClipEvent (load) {
if (_parent._xscale == 100) {
_parent.speedX = 2;
_parent.speedY = -2;
} else {
_parent.speedX = -2;
_parent.speedY = -2;
}
}
onClipEvent (enterFrame) {
_parent.walk();
}
Instance of Symbol 12 MovieClip in Symbol 146 MovieClip [enemy2] Frame 4
onClipEvent (load) {
_parent.value1 = random(32);
_parent.value2 = random(16);
}
onClipEvent (enterFrame) {
_parent.captured();
}
Instance of Symbol 12 MovieClip in Symbol 146 MovieClip [enemy2] Frame 5
onClipEvent (load) {
hearSound = new Sound();
hearSound.attachSound("enemyGameOver");
hearSound.start();
_parent._parent._parent.score1000.gotoAndStop(_parent._parent._parent.score1000._currentframe + 1);
height = -4;
walkSpeed = random(4) - 2;
_parent._parent._parent.bub.enemiesTotal = _parent._parent._parent.bub.enemiesTotal - 1;
if (_parent._parent._parent.bub.enemiesTotal == 0) {
_parent._parent.nextFrame();
}
}
onClipEvent (enterFrame) {
height = height + 0.125;
if (4 >= height) {
_parent._y = _parent._y + height;
} else {
_parent.gotoAndStop("bonus");
}
_parent.move(walkSpeed);
}
Instance of Symbol 12 MovieClip in Symbol 146 MovieClip [enemy2] Frame 6
onClipEvent (load) {
if (_parent.hit) {
fall = true;
} else {
fall = false;
}
counter = 0;
}
onClipEvent (enterFrame) {
if (_parent.bonus._currentframe == 1) {
if (360 >= counter) {
counter++;
} else {
removeMovieClip(_parent);
}
if (fall) {
_parent._y = _parent._y + _parent.fallSpeed;
if (!_parent._parent._parent.stage.limit.hittest(_parent._x, ((_parent._y + _parent.y) + _parent.limit.ymax) - 4, true)) {
fall = false;
}
} else {
_parent.move(0, _parent.fallSpeed);
}
if (_parent.bonus.hitTest(_parent._parent._parent.bub.limits)) {
_parent._parent._parent.score100.gotoAndStop(_parent._parent._parent.score100._currentframe + 1);
_parent.bonus.gotoAndPlay(2);
}
}
}
Symbol 155 MovieClip Frame 20
gotoAndPlay (1);
Symbol 160 MovieClip Frame 8
_parent._xscale = _parent._xscale * -1;
Symbol 160 MovieClip Frame 16
_parent.gotoAndStop("walk");
Symbol 161 MovieClip Frame 8
_parent._xscale = _parent._xscale * -1;
Symbol 161 MovieClip Frame 28
_parent._xscale = _parent._xscale * -1;
Symbol 161 MovieClip Frame 42
_parent.gotoAndStop("jump");
Symbol 170 MovieClip Frame 16
gotoAndPlay (1);
Symbol 175 MovieClip Frame 6
_parent._xscale = _parent._xscale * -1;
Symbol 175 MovieClip Frame 11
_parent.gotoAndStop("walkA");
Symbol 176 MovieClip Frame 6
_parent._xscale = _parent._xscale * -1;
Symbol 176 MovieClip Frame 17
_parent._xscale = _parent._xscale * -1;
Symbol 176 MovieClip Frame 30
_parent.gotoAndStop("jumpA");
Symbol 189 MovieClip Frame 1
counter = 0;
Symbol 189 MovieClip Frame 27
counter = counter + 1;
if (counter == 40) {
gotoAndPlay (28);
} else {
gotoAndPlay (4);
}
Symbol 189 MovieClip Frame 28
counter = 1;
Symbol 189 MovieClip Frame 51
counter = counter + 1;
if (counter == 10) {
_parent.gotoAndStop("walkA");
} else {
gotoAndPlay (29);
}
Symbol 196 MovieClip Frame 25
gotoAndPlay (6);
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
_parent._xscale = 100;
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 199 MovieClip Frame 60
removeMovieClip(_parent);
Symbol 200 MovieClip [enemy1] Frame 1
stop();
function move(x, y) {
hit = true;
if (!_parent._parent.stage.limit.hittest(_x + x, ((_y + y) + limit.ymax) - 4, true)) {
_x = (_x + x);
_y = (_y + y);
hit = false;
}
}
function captured() {
if ((64 + value2) < _y) {
_y = (_y - 0.5);
} else if (_y < (24 - value2)) {
_y = (_y + 0.5);
} else if (_x < (96 + value1)) {
_x = (_x + 0.5);
} else if ((144 - value1) < _x) {
_x = (_x - 0.5);
}
if (hitTest(_parent._parent.bub.limits)) {
if (Key.isDown(_root.code.jumpButtonPlayer1) && (_parent._parent.bub._y < (_y + 8))) {
if (_parent._parent.bub._currentframe == 6) {
_parent._parent.bub.height = -5;
_parent._parent.bub.gotoAndStop("jumpUp");
_y = (_y + 3);
}
} else {
if (_parent._parent.bub.enemiesTotal == 1) {
if (_parent._parent.bub.stageNumber == 2) {
for (i in ../_parent:bubble) {
_parent._parent.bubble[i].gotoAndStop("stage" + (_parent._parent.bub.stageNumber - 1));
}
} else if (_parent._parent.score10._currentframe == _parent._parent.score100._currentframe) {
for (i in ../_parent:bubble) {
_parent._parent.bubble[i].gotoAndStop("bonus" + (_parent._parent.score10._currentframe - 1));
}
} else {
for (i in ../_parent:bubble) {
_parent._parent.bubble[i].gotoAndPlay("explosion");
}
}
}
this.gotoAndStop("GameOver");
}
}
}
fallSpeed = 2;
limit = this.getbounds(this);
Instance of Symbol 67 MovieClip "limits" in Symbol 200 MovieClip [enemy1] Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 2
onClipEvent (load) {
if (_parent._xscale == 100) {
walkSpeed = 0.75;
} else {
walkSpeed = -0.75;
}
counter = 0;
randomTimer = random(120) + 20;
nextPositionTimer = new Array();
nextPositionTimer = ["turn", "turn", "jumpPreparation", "jumpPreparation", "jumpPreparation", "walk"];
nextPositionFall = new Array();
nextPositionFall = ["fall", "jump"];
}
onClipEvent (enterFrame) {
_parent.move(0, _parent.fallSpeed);
if (_parent.hit) {
if (_parent._parent._parent.stage.limit.hittest(_parent._x + walkSpeed, _parent._y - 4, true)) {
_parent.gotoAndStop("turn");
}
_parent.move(walkSpeed);
counter++;
if (counter >= randomTimer) {
_parent.gotoAndStop(nextPositionTimer[random(6)]);
counter = 0;
}
} else {
_parent.gotoAndStop(nextPositionFall[random(2)]);
}
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 3
onClipEvent (enterFrame) {
_parent.move(0, _parent.fallSpeed);
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 4
onClipEvent (enterFrame) {
_parent.move(0, _parent.fallSpeed);
if (_parent.hit) {
_parent.gotoAndStop(random(2) + 2);
}
if (_parent._y >= 260) {
_parent._y = 0;
}
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 5
onClipEvent (enterFrame) {
_parent.move(0, _parent.fallSpeed);
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 6
onClipEvent (load) {
speed = new Array();
if (_parent._xscale == 100) {
speed = [0, 0.75];
} else {
speed = [0, -0.75];
}
walkSpeed = speed[random(3)];
nextPosition = new Array();
nextPosition = ["jumpPreparation", "walk"];
height = -5;
fall = true;
}
onClipEvent (enterFrame) {
_parent.move(walkSpeed);
if (0 >= height) {
height = height + 0.25;
_parent._y = _parent._y + height;
} else {
if (2 >= height) {
height = height + 0.25;
}
if (fall) {
_parent._y = _parent._y + height;
_parent.move();
if (!_parent.hit) {
fall = false;
}
} else {
_parent.move(0, height);
if (_parent.hit) {
_parent.gotoAndStop(nextPosition[random(2)]);
}
}
if (_parent._y >= 260) {
_parent._y = 0;
}
}
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 7
onClipEvent (load) {
if (_parent._xscale == 100) {
walkSpeed = 1.5;
} else {
walkSpeed = -1.5;
}
counter = 0;
randomTimer = random(120) + 20;
nextPositionTimer = new Array();
nextPositionTimer = ["turnA", "turnA", "jumpPreparationA", "jumpPreparationA", "jumpPreparationA", "walkA"];
nextPositionFall = new Array();
nextPositionFall = ["fallA", "jumpA"];
}
onClipEvent (enterFrame) {
_parent.move(0, _parent.fallSpeed);
if (_parent.hit) {
if (_parent._parent._parent.stage.limit.hittest(_parent._x + walkSpeed, _parent._y - 4, true)) {
_parent.gotoAndStop("turnA");
}
_parent.move(walkSpeed);
counter++;
if (counter >= randomTimer) {
_parent.gotoAndStop(nextPositionTimer[random(6)]);
counter = 0;
}
} else {
_parent.gotoAndStop(nextPositionFall[random(2)]);
}
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 8
onClipEvent (enterFrame) {
_parent.move(0, _parent.fallSpeed);
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 9
onClipEvent (load) {
nextPositionFall = new Array();
nextPositionFall = ["walkA", "turnA"];
}
onClipEvent (enterFrame) {
_parent.move(0, _parent.fallSpeed);
if (_parent.hit) {
_parent.gotoAndStop(nextPositionFall[random(2)]);
}
if (_parent._y >= 260) {
_parent._y = 0;
}
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 10
onClipEvent (enterFrame) {
_parent.move(0, _parent.fallSpeed);
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 11
onClipEvent (load) {
speed = new Array();
if (_parent._xscale == 100) {
speed = [0, 1.5];
} else {
speed = [0, -1.5];
}
walkSpeed = speed[random(3)];
nextPosition = new Array();
nextPosition = ["jumpPreparation", "walk"];
height = -5;
fall = true;
}
onClipEvent (enterFrame) {
_parent.move(walkSpeed);
if (0 >= height) {
height = height + 0.25;
_parent._y = _parent._y + height;
} else {
if (2 >= height) {
height = height + 0.25;
}
if (fall) {
_parent._y = _parent._y + height;
_parent.move();
if (!_parent.hit) {
fall = false;
}
} else {
_parent.move(0, height);
if (_parent.hit) {
_parent.gotoAndStop(nextPosition[random(2)]);
}
}
if (_parent._y >= 260) {
_parent._y = 0;
}
}
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 12
onClipEvent (load) {
_parent.value1 = random(32);
_parent.value2 = random(16);
}
onClipEvent (enterFrame) {
_parent.captured();
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 13
onClipEvent (load) {
hearSound = new Sound();
hearSound.attachSound("enemyGameOver");
hearSound.start();
_parent._parent._parent.score1000.gotoAndStop(_parent._parent._parent.score1000._currentframe + 1);
height = -4;
walkSpeed = random(4) - 2;
_parent._parent._parent.bub.enemiesTotal = _parent._parent._parent.bub.enemiesTotal - 1;
if (_parent._parent._parent.bub.enemiesTotal == 0) {
_parent._parent.nextFrame();
}
}
onClipEvent (enterFrame) {
height = height + 0.125;
if (4 >= height) {
_parent._y = _parent._y + height;
} else {
_parent.gotoAndStop("bonus");
}
_parent.move(walkSpeed);
}
Instance of Symbol 12 MovieClip in Symbol 200 MovieClip [enemy1] Frame 14
onClipEvent (load) {
if (_parent.hit) {
fall = true;
} else {
fall = false;
}
counter = 0;
}
onClipEvent (enterFrame) {
if (_parent.bonus._currentframe == 1) {
if (360 >= counter) {
counter++;
} else {
removeMovieClip(_parent);
}
if (fall) {
_parent._y = _parent._y + _parent.fallSpeed;
if (!_parent._parent._parent.stage.limit.hittest(_parent._x, ((_parent._y + _parent.y) + _parent.limit.ymax) - 4, true)) {
fall = false;
}
} else {
_parent.move(0, _parent.fallSpeed);
}
if (_parent.bonus.hitTest(_parent._parent._parent.bub.limits)) {
_parent._parent._parent.score100.gotoAndStop(_parent._parent._parent.score100._currentframe + 1);
_parent.bonus.gotoAndPlay(2);
}
}
}
Symbol 225 MovieClip [stage0] Frame 12
gotoAndPlay (1);
Symbol 226 MovieClip [simpleBubble] Frame 12
gotoAndPlay (1);
Symbol 230 MovieClip Frame 119
counter = 0;
Instance of Symbol 12 MovieClip in Symbol 230 MovieClip Frame 120
onClipEvent (keyDown) {
if (Key.isDown(_root.code.actionButtonPlayer1)) {
_parent.gotoAndPlay("continue");
}
}
Symbol 230 MovieClip Frame 121
counter = counter + 1;
if (180 >= counter) {
gotoAndPlay (120);
} else {
gotoAndPlay (122);
}
Symbol 230 MovieClip Frame 181
_parent.nextFrame();
Symbol 234 MovieClip Frame 120
_parent._parent.music.gotoAndStop("title");
Instance of Symbol 12 MovieClip in Symbol 234 MovieClip Frame 121
onClipEvent (keyDown) {
if (Key.isDown(_root.code.actionButtonPlayer1)) {
_parent.gotoAndPlay("continue");
}
}
Symbol 234 MovieClip Frame 180
gotoAndPlay (121);
Symbol 234 MovieClip Frame 181
hearSound = new Sound();
hearSound.attachSound("bonusOK");
hearSound.start();
Symbol 234 MovieClip Frame 280
_parent.nextFrame();
Symbol 241 MovieClip Frame 1
stop();
Instance of Symbol 241 MovieClip "limit" in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 247 MovieClip Frame 33
gotoAndPlay (1);
Instance of Symbol 12 MovieClip in Symbol 248 MovieClip Frame 120
onClipEvent (keyDown) {
if (Key.isDown(_root.code.actionButtonPlayer1)) {
for (i in ..:_parent) {
_parent._parent[i].removeMovieClip();
}
_parent._parent.nextFrame();
}
}
Symbol 248 MovieClip Frame 181
counter = 0;
Symbol 248 MovieClip Frame 193
counter = counter + 1;
if (counter == 14) {
for (i in _parent) {
_parent[i].removeMovieClip();
}
_parent.nextFrame();
} else {
gotoAndPlay (182);
}
Symbol 261 MovieClip Frame 24
gotoAndPlay (1);
Symbol 264 MovieClip Frame 1
_parent.depth = _parent.depth + 1;
_parent._parent.bubble.attachMovie("bubble", "b" + _parent.depth, _parent.depth);
attackSound = new Sound();
attackSound.attachSound("attackSound");
attackSound.start();
Symbol 264 MovieClip Frame 14
_parent.gotoAndStop("stand");
Symbol 269 MovieClip Frame 1
JumpSound = new Sound();
JumpSound.attachSound("jumpSound");
JumpSound.start();
Symbol 269 MovieClip Frame 9
gotoAndPlay (2);
Symbol 274 MovieClip Frame 8
gotoAndPlay (1);
Symbol 275 MovieClip Frame 1
_parent.depth = _parent.depth + 1;
_parent._parent.bubble.attachMovie("bubble", "b" + _parent.depth, _parent.depth);
attackSound = new Sound();
attackSound.attachSound("attackSound");
attackSound.start();
Symbol 275 MovieClip Frame 14
_parent.gotoAndStop("jumpUp");
Symbol 276 MovieClip Frame 1
_parent.depth = _parent.depth + 1;
_parent._parent.bubble.attachMovie("bubble", "b" + _parent.depth, _parent.depth);
attackSound = new Sound();
attackSound.attachSound("attackSound");
attackSound.start();
Symbol 276 MovieClip Frame 14
_parent.gotoAndStop("jumpDown");
Symbol 284 MovieClip Frame 20
gotoAndPlay (1);
Symbol 293 MovieClip Frame 73
_parent.gotoAndStop("gameOver");
Symbol 294 MovieClip Frame 1
stop();
function move(x, y) {
walking = true;
if (!_parent.stage.limit.hittest((_x + x) + distance, ((_y + y) + limit.ymin) + 14, true)) {
if (!_parent.stage.limit.hittest((_x + x) + distance, ((_y + y) + limit.ymax) - 4, true)) {
if (!_parent.stage.limit.hittest((_x + x) - distance, ((_y + y) + limit.ymin) + 14, true)) {
if (!_parent.stage.limit.hittest((_x + x) - distance, ((_y + y) + limit.ymax) - 4, true)) {
_x = (_x + x);
_y = (_y + y);
walking = false;
}
}
}
}
}
function KeyPressHorizontalWalk() {
if (Key.isDown(_parent._parent.code.leftButtonPlayer1)) {
move(-walkSpeed);
_xscale = -100;
distance = -4;
} else if (Key.isDown(_parent._parent.code.rightButtonPlayer1)) {
move(walkSpeed);
_xscale = 100;
distance = 4;
}
}
function KeyPressHorizontalJump() {
if (Key.isDown(_parent._parent.code.leftButtonPlayer1)) {
move(-jumpSpeed);
_xscale = -100;
} else if (Key.isDown(_parent._parent.code.rightButtonPlayer1)) {
move(jumpSpeed);
_xscale = 100;
}
}
walkSpeed = 1.5;
jumpSpeed = 1;
fallSpeed = 2;
invincible = false;
distance = 4;
limit = this.getbounds(this);
actionKeyPressed = false;
jumpKeyPressed = false;
depth = 1;
Instance of Symbol 67 MovieClip "limits" in Symbol 294 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (!_parent.invincible) {
i = 1;
while (_parent.enemiesNumber >= i) {
if (hitTest(_parent._parent.enemy["e" + i].limits)) {
_parent.gotoAndStop("gameOver");
}
i++;
}
} else {
if (_parent._visible == true) {
_parent._visible = false;
} else if (_parent._visible == false) {
_parent._visible = true;
}
if (180 >= counter) {
counter++;
} else {
counter = 0;
_parent.invincible = false;
_parent._visible = true;
}
}
if (_parent._y >= 256) {
_parent._y = 0;
}
}
Instance of Symbol 12 MovieClip in Symbol 294 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(_parent._parent._parent.code.leftButtonPlayer1) || (Key.isDown(_parent._parent._parent.code.rightButtonPlayer1))) {
_parent.gotoAndStop("walk");
}
}
onClipEvent (keyDown) {
if (Key.isDown(_parent._parent._parent.code.jumpButtonPlayer1)) {
_parent.height = -5;
_parent.gotoAndStop("jumpUp");
} else if (Key.isDown(_parent._parent._parent.code.actionButtonPlayer1)) {
_parent.gotoAndStop("attack");
}
}
Instance of Symbol 12 MovieClip in Symbol 294 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent.move(0, _parent.fallSpeed);
if (!_parent.walking) {
_parent.gotoAndStop("jumpDown");
}
}
Instance of Symbol 12 MovieClip in Symbol 294 MovieClip Frame 3
onClipEvent (enterFrame) {
_parent.KeyPressHorizontalWalk();
}
onClipEvent (keyDown) {
if (Key.isDown(_parent._parent._parent.code.actionButtonPlayer1)) {
_parent.gotoAndStop("attack");
} else if (Key.isDown(_parent._parent._parent.code.jumpButtonPlayer1)) {
_parent.height = -5;
_parent.gotoAndStop("jumpUp");
}
}
onClipEvent (keyUp) {
if ((Key.getCode() == _parent._parent._parent.code.leftButtonPlayer1) || (Key.getCode() == _parent._parent._parent.code.rightButtonPlayer1)) {
_parent.gotoAndStop("stand");
}
}
Instance of Symbol 12 MovieClip in Symbol 294 MovieClip Frame 4
onClipEvent (enterFrame) {
_parent.KeyPressHorizontalJump();
}
onClipEvent (keyDown) {
if (Key.isDown(_root.code.jumpButtonPlayer1)) {
_parent.height = -5;
_parent.gotoAndStop("jumpUp");
}
}
Instance of Symbol 12 MovieClip in Symbol 294 MovieClip Frame 5
onClipEvent (enterFrame) {
_parent.KeyPressHorizontalJump();
_parent.height = _parent.height + 0.25;
_parent._y = _parent._y + _parent.height;
if (_parent.height == 0) {
_parent._y = _parent._y - 2;
_parent.gotoAndStop("jumpDown");
}
}
onClipEvent (keyDown) {
if (Key.isDown(_parent._parent._parent.code.actionButtonPlayer1)) {
_parent.gotoAndStop("jumpUpAttack");
}
}
Instance of Symbol 12 MovieClip in Symbol 294 MovieClip Frame 6
onClipEvent (load) {
_parent.move();
if (_parent.walking) {
fall = true;
} else {
fall = false;
}
}
onClipEvent (enterFrame) {
_parent.KeyPressHorizontalJump();
if (2 >= _parent.height) {
_parent.height = _parent.height + 0.25;
}
if (fall) {
_parent._y = _parent._y + _parent.height;
_parent.move();
if (!_parent.walking) {
fall = false;
}
} else {
_parent.move(0, _parent.height);
if (_parent.walking) {
_parent.gotoAndStop("stand");
}
}
}
onClipEvent (keyDown) {
if (Key.isDown(_parent._parent._parent.code.actionButtonPlayer1)) {
_parent.gotoAndStop("jumpDownAttack");
}
}
Instance of Symbol 12 MovieClip in Symbol 294 MovieClip Frame 7
onClipEvent (enterFrame) {
_parent.KeyPressHorizontalJump();
if (2 >= _parent.height) {
_parent.height = _parent.height + 0.25;
}
_parent._y = _parent._y + _parent.height;
if (_parent.height == 0) {
_parent._y = _parent._y - 2;
_parent.gotoAndStop("jumpDown");
}
}
Instance of Symbol 12 MovieClip in Symbol 294 MovieClip Frame 8
onClipEvent (load) {
_parent.move();
if (_parent.walking) {
fall = true;
} else {
fall = false;
}
}
onClipEvent (enterFrame) {
_parent.KeyPressHorizontalJump();
if (2 >= _parent.height) {
_parent.height = _parent.height + 0.25;
}
if (fall) {
_parent._y = _parent._y + _parent.height;
_parent.move();
if (!_parent.walking) {
fall = false;
}
} else {
_parent.move(0, _parent.height);
if (_parent.walking) {
_parent.gotoAndStop("stand");
}
}
}
Instance of Symbol 12 MovieClip in Symbol 294 MovieClip Frame 9
onClipEvent (load) {
height = -4;
hearSound = new Sound();
hearSound.attachSound("gameOver");
hearSound.start();
}
onClipEvent (enterFrame) {
height = height + 0.25;
_parent._y = _parent._y + height;
if (_parent._y >= 280) {
if (_parent._parent.life._currentframe != 1) {
_parent._parent.life.prevFrame();
_parent._xscale = 100;
_parent._x = 30;
_parent._y = 210;
_parent.invincible = true;
_parent.gotoAndStop("stand");
} else {
_parent._parent.fade.play();
}
}
}
Instance of Symbol 12 MovieClip in Symbol 294 MovieClip Frame 10
onClipEvent (load) {
scrollingValue = 0;
scrollingOver = false;
_parent._parent.stage.attachMovie("stage" + _parent.stageNumber, "s" + _parent.stageNumber, _parent.stageNumber);
_parent._parent.stage["s" + _parent.stageNumber]._y = 240;
_parent._parent.stage.limit.gotoAndStop("stage" + _parent.stageNumber);
for (i in ../_parent:bubble) {
_parent._parent.bubble[i].gotoAndPlay("explosion");
}
_parent.depth = 1;
}
onClipEvent (enterFrame) {
if (scrollingValue != 240) {
scrollingValue = scrollingValue + 2;
for (i in ../_parent:stage) {
if (i != "limit") {
_parent._parent.stage[i]._y = _parent._parent.stage[i]._y - 2;
}
}
for (i in ../_parent:bubble) {
_parent._parent.bubble[i]._y = _parent._parent.bubble[i]._y - 2;
}
for (i in ../_parent:enemy) {
_parent._parent.enemy[i].removeMovieClip();
}
} else if (!scrollingOver) {
removeMovieClip(_parent._parent.stage["s" + (_parent.stageNumber - 1)]);
scrollingOver = true;
} else if (_parent._y < 210) {
_parent._y = _parent._y + 1.5;
} else if (32 < _parent._x) {
_parent._x = _parent._x - 1.5;
} else if (_parent._x < 28) {
_parent._x = _parent._x + 1.5;
} else {
_parent._parent.enemy.gotoAndStop("stage" + _parent.stageNumber);
_parent.stageNumber = _parent.stageNumber + 1;
_parent._xscale = 100;
_parent.gotoAndStop(1);
}
}
Symbol 319 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 1
counter = 0;
Symbol 322 MovieClip Frame 3
counter = counter + 1;
if (counter == 240) {
_parent._parent.bub.gotoAndStop("nextLevel");
gotoAndStop (4);
} else {
gotoAndPlay (2);
}
Symbol 323 MovieClip Frame 1
stop();
Instance of Symbol 319 MovieClip in Symbol 323 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(_parent._parent.bub.stageNumber);
}
Instance of Symbol 12 MovieClip in Symbol 323 MovieClip Frame 2
onClipEvent (load) {
_parent._parent.bub.enemiesNumber = 6;
_parent._parent.bub.enemiesTotal = 6;
i = 1;
while (_parent._parent.bub.enemiesNumber >= i) {
_parent.attachMovie("enemy1", "e" + i, i);
i++;
}
_parent.e1._x = 48;
_parent.e2._x = 80;
_parent.e3._x = 112;
_parent.e4._x = 144;
_parent.e5._x = 176;
_parent.e6._x = 208;
}
onClipEvent (enterFrame) {
if (168 >= _parent.e1._y) {
_parent.e1._y = _parent.e1._y + 2;
}
if (128 >= _parent.e2._y) {
_parent.e2._y = _parent.e2._y + 2;
}
if (88 >= _parent.e3._y) {
_parent.e3._y = _parent.e3._y + 2;
}
if (88 >= _parent.e4._y) {
_parent.e4._y = _parent.e4._y + 2;
}
if (128 >= _parent.e5._y) {
_parent.e5._y = _parent.e5._y + 2;
}
if (168 >= _parent.e6._y) {
_parent.e6._y = _parent.e6._y + 2;
} else {
i = 1;
while (_parent._parent.bub.enemiesNumber >= i) {
_parent["e" + i].gotoAndStop(random(2) + 2);
i++;
}
_parent._parent.bub.gotoAndStop("stand");
_parent.nextFrame();
}
}
Instance of Symbol 319 MovieClip in Symbol 323 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndPlay(_parent._parent.bub.stageNumber);
}
Instance of Symbol 12 MovieClip in Symbol 323 MovieClip Frame 5
onClipEvent (load) {
_parent._parent.bub.enemiesNumber = 5;
_parent._parent.bub.enemiesTotal = 5;
i = 1;
while (3 >= i) {
_parent.attachMovie("enemy1", "e" + i, i);
i++;
}
i = 4;
while (5 >= i) {
_parent.attachMovie("enemy2", "e" + i, i);
i++;
}
_parent.e1._x = 80;
_parent.e2._x = 128;
_parent.e3._x = 176;
_parent.e4._x = 96;
_parent.e5._x = 160;
_parent.e5._xscale = -100;
}
onClipEvent (enterFrame) {
i = 1;
while (3 >= i) {
if (168 >= _parent["e" + i]._y) {
_parent["e" + i]._y = _parent["e" + i]._y + 2;
} else {
i = 1;
while (3 >= i) {
_parent["e" + i].gotoAndStop(random(2) + 2);
i++;
}
i = 4;
while (5 >= i) {
_parent["e" + i].gotoAndStop(2);
i++;
}
_parent._parent.bub.gotoAndStop("stand");
_parent.nextFrame();
}
i++;
}
i = 4;
while (5 >= i) {
if (48 >= _parent["e" + i]._y) {
_parent["e" + i]._y = _parent["e" + i]._y + 2;
}
i++;
}
}
Instance of Symbol 319 MovieClip in Symbol 323 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndPlay(_parent._parent.bub.stageNumber);
}
Instance of Symbol 12 MovieClip in Symbol 323 MovieClip Frame 8
onClipEvent (load) {
_parent._parent.bub.enemiesNumber = 4;
_parent._parent.bub.enemiesTotal = 4;
i = 1;
while (2 >= i) {
_parent.attachMovie("enemy1", "e" + i, i);
i++;
}
i = 3;
while (4 >= i) {
_parent.attachMovie("enemy3", "e" + i, i);
i++;
}
_parent.e1._x = 96;
_parent.e2._x = 160;
_parent.e3._x = 64;
_parent.e4._x = 192;
}
onClipEvent (enterFrame) {
i = 1;
while (2 >= i) {
if (86 >= _parent["e" + i]._y) {
_parent["e" + i]._y = _parent["e" + i]._y + 2;
}
i++;
}
i = 3;
while (4 >= i) {
if (168 >= _parent["e" + i]._y) {
_parent["e" + i]._y = _parent["e" + i]._y + 2;
} else {
i = 1;
while (_parent._parent.bub.enemiesNumber >= i) {
_parent["e" + i].gotoAndStop(2);
i++;
}
_parent._parent.bub.gotoAndStop("stand");
_parent.nextFrame();
}
i++;
}
}
Instance of Symbol 319 MovieClip in Symbol 323 MovieClip Frame 11
onClipEvent (load) {
this.gotoAndPlay(_parent._parent.bub.stageNumber);
}
Instance of Symbol 12 MovieClip in Symbol 323 MovieClip Frame 11
onClipEvent (load) {
_parent._parent.bub.enemiesNumber = 5;
_parent._parent.bub.enemiesTotal = 5;
i = 1;
while (4 >= i) {
_parent.attachMovie("enemy1", "e" + i, i);
i++;
}
i = 5;
while (5 >= i) {
_parent.attachMovie("enemy3", "e" + i, i);
i++;
}
_parent.e1._x = 88;
_parent.e2._x = 172;
_parent.e3._x = 88;
_parent.e4._x = 172;
_parent.e5._x = 128;
}
onClipEvent (enterFrame) {
i = 1;
while (2 >= i) {
if (88 >= _parent["e" + i]._y) {
_parent["e" + i]._y = _parent["e" + i]._y + 2;
}
i++;
}
i = 3;
while (4 >= i) {
if (136 >= _parent["e" + i]._y) {
_parent["e" + i]._y = _parent["e" + i]._y + 2;
}
i++;
}
i = 5;
while (5 >= i) {
if (144 >= _parent["e" + i]._y) {
_parent["e" + i]._y = _parent["e" + i]._y + 2;
} else {
i = 1;
while (_parent._parent.bub.enemiesNumber >= i) {
_parent["e" + i].gotoAndStop(2);
i++;
}
_parent._parent.bub.gotoAndStop("stand");
_parent.nextFrame();
}
i++;
}
}
Instance of Symbol 319 MovieClip in Symbol 323 MovieClip Frame 14
onClipEvent (load) {
this.gotoAndPlay(_parent._parent.bub.stageNumber);
}
Instance of Symbol 12 MovieClip in Symbol 323 MovieClip Frame 14
onClipEvent (load) {
_parent._parent.bub.enemiesNumber = 7;
_parent._parent.bub.enemiesTotal = 7;
i = 1;
while (6 >= i) {
_parent.attachMovie("enemy3", "e" + i, i);
i++;
}
i = 7;
while (7 >= i) {
_parent.attachMovie("enemy2", "e" + i, i);
i++;
}
_parent.e1._x = 32;
_parent.e2._x = 224;
_parent.e3._x = 112;
_parent.e4._x = 144;
_parent.e5._x = 48;
_parent.e6._x = 208;
_parent.e7._x = 128;
}
onClipEvent (enterFrame) {
i = 1;
while (2 >= i) {
if (88 >= _parent["e" + i]._y) {
_parent["e" + i]._y = _parent["e" + i]._y + 2;
}
i++;
}
i = 3;
while (4 >= i) {
if (72 >= _parent["e" + i]._y) {
_parent["e" + i]._y = _parent["e" + i]._y + 2;
}
i++;
}
i = 5;
while (6 >= i) {
if (168 >= _parent["e" + i]._y) {
_parent["e" + i]._y = _parent["e" + i]._y + 2;
} else {
i = 1;
while (_parent._parent.bub.enemiesNumber >= i) {
_parent["e" + i].gotoAndStop(2);
i++;
}
_parent._parent.bub.gotoAndStop("stand");
_parent.nextFrame();
}
i++;
}
i = 7;
while (7 >= i) {
if (112 >= _parent["e" + i]._y) {
_parent["e" + i]._y = _parent["e" + i]._y + 2;
}
i++;
}
}
Instance of Symbol 319 MovieClip in Symbol 323 MovieClip Frame 17
onClipEvent (load) {
this.gotoAndPlay(_parent._parent.bub.stageNumber);
}
Instance of Symbol 319 MovieClip in Symbol 323 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndPlay(_parent._parent.bub.stageNumber);
}
Instance of Symbol 319 MovieClip in Symbol 323 MovieClip Frame 23
onClipEvent (load) {
this.gotoAndPlay(_parent._parent.bub.stageNumber);
}
Symbol 343 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 11
_parent[addition].gotoAndStop(_parent[addition]._currentframe + 1);
gotoAndStop(_currentframe - 10);
Symbol 344 MovieClip Frame 12
_parent[addition].gotoAndStop(_parent[addition]._currentframe + 1);
gotoAndStop(_currentframe - 10);
Symbol 344 MovieClip Frame 13
_parent[addition].gotoAndStop(_parent[addition]._currentframe + 1);
gotoAndStop(_currentframe - 10);
Symbol 344 MovieClip Frame 14
_parent[addition].gotoAndStop(_parent[addition]._currentframe + 1);
gotoAndStop(_currentframe - 10);
Symbol 344 MovieClip Frame 15
_parent[addition].gotoAndStop(_parent[addition]._currentframe + 1);
gotoAndStop(_currentframe - 10);
Symbol 344 MovieClip Frame 16
_parent[addition].gotoAndStop(_parent[addition]._currentframe + 1);
gotoAndStop(_currentframe - 10);
Symbol 344 MovieClip Frame 17
_parent[addition].gotoAndStop(_parent[addition]._currentframe + 1);
gotoAndStop(_currentframe - 10);
Symbol 344 MovieClip Frame 18
_parent[addition].gotoAndStop(_parent[addition]._currentframe + 1);
gotoAndStop(_currentframe - 10);
Symbol 344 MovieClip Frame 19
_parent[addition].gotoAndStop(_parent[addition]._currentframe + 1);
gotoAndStop(_currentframe - 10);
Symbol 344 MovieClip Frame 20
_parent[addition].gotoAndStop(_parent[addition]._currentframe + 1);
gotoAndStop(_currentframe - 10);
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 69
_parent.nextFrame();
Symbol 345 MovieClip Frame 88
gotoAndStop (1);
Symbol 345 MovieClip Frame 140
_parent.gotoAndStop("title");
Symbol 348 MovieClip Frame 1
stop();
Instance of Symbol 12 MovieClip in Symbol 348 MovieClip Frame 1
onClipEvent (load) {
counter = 0;
}
onClipEvent (enterFrame) {
counter++;
if (counter >= 180) {
if (Key.isDown(_parent._parent._parent.code.actionButtonPlayer1)) {
_parent._parent.fade.gotoAndPlay("fadeIn");
_parent.nextFrame();
} else if (counter >= 540) {
_parent._parent.fade.gotoAndPlay("fadeIn");
_parent.nextFrame();
}
}
}
Symbol 349 MovieClip Frame 1
_parent.music.gotoAndStop(1);
stop();
Symbol 349 MovieClip Frame 3
this.stage.attachMovie("stage0", "s0", 0);
_parent.music.gotoAndStop("stage1");
Instance of Symbol 247 MovieClip in Symbol 349 MovieClip Frame 3
onClipEvent (load) {
bubbles = 1;
timer = 0;
counter = random(30);
radius = 0;
posX = _x;
posY = _y;
}
onClipEvent (enterFrame) {
if (32 >= radius) {
radius = radius + 0.025;
}
_x = (posX + (Math.cos(speed) * radius));
_y = (posY + (Math.sin(speed) * radius));
speed = speed + 0.1;
_parent.posAX = _x;
_parent.posAY = _y;
if (counter >= timer) {
timer++;
} else {
counter = random(30);
timer = 0;
_parent.attachMovie("simpleBubble", "b" + bubbles, bubbles);
_parent["b" + bubbles]._x = this._x;
_parent["b" + bubbles]._y = this._y - 8;
_parent["sx" + bubbles] = (random(200) - 100) / 50;
_parent["sy" + bubbles] = (random(200) - 100) / 50;
bubbles = bubbles + 1;
}
i = 1;
while (bubbles >= i) {
_parent["b" + i]._x = _parent["b" + i]._x + _parent["sx" + i];
_parent["b" + i]._y = _parent["b" + i]._y + _parent["sy" + i];
if ((((-8 >= _parent["b" + i]._x) || (_parent["b" + i]._x >= 264)) || (-8 >= _parent["b" + i]._y)) || (_parent["b" + i]._y >= 248)) {
removeMovieClip(_parent["b" + i]);
}
i++;
}
}
Symbol 349 MovieClip Frame 4
this.bub.stageNumber = 1;
this.bub.gotoAndStop("nextLevel");
this.bub._x = this.posAX;
this.bub._y = this.posAY;
this.life.gotoAndStop(5);
stop();
Instance of Symbol 344 MovieClip "score10" in Symbol 349 MovieClip Frame 4
onClipEvent (load) {
addition = "score100";
}
Instance of Symbol 344 MovieClip "score1000" in Symbol 349 MovieClip Frame 4
onClipEvent (load) {
addition = "score10000";
}
Instance of Symbol 344 MovieClip "score100" in Symbol 349 MovieClip Frame 4
onClipEvent (load) {
addition = "score1000";
}
Instance of Symbol 344 MovieClip "score100000" in Symbol 349 MovieClip Frame 4
onClipEvent (load) {
addition = "score1000000";
}
Instance of Symbol 344 MovieClip "score10000" in Symbol 349 MovieClip Frame 4
onClipEvent (load) {
addition = "score100000";
}
Symbol 349 MovieClip Frame 5
_parent.music.gotoAndStop("gameOver");
Symbol 350 MovieClip Frame 1
stopAllSounds();
stop();
Symbol 350 MovieClip Frame 2
stopAllSounds();
hearSound = new Sound();
hearSound.attachSound("titleMusic");
hearSound.start();
Symbol 350 MovieClip Frame 3
stopAllSounds();
hearSound = new Sound();
hearSound.attachSound("stage1music");
introEndPos = 5.133;
hearSound.onSoundComplete = function () {
hearSound.start(introEndPos, 9999);
};
hearSound.start();
Symbol 350 MovieClip Frame 4
stopAllSounds();
hearSound = new Sound();
hearSound.attachSound("gameOverMusic");
hearSound.start(1, 9999);