Frame 1
Stage.showMenu = false;
_root.splatoffset = 0.11;
Instance of Symbol 10 MovieClip "middleground" in Frame 1
onClipEvent (enterFrame) {
if (this.fall) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
this._y = this._y + 15;
if (this._y >= 350) {
if (!_root.stickguy1.dead) {
_root.stickguy1.gotoAndPlay(60);
_root.stickguy1.dead = true;
}
this._rotation = this._rotation - 10;
}
} else if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 7;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.fall = false;
}
Instance of Symbol 25 MovieClip "ball" in Frame 1
onClipEvent (enterFrame) {
if (replay) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 5;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 5;
}
}
this._rotation = this._rotation + ball_velocityX;
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 5;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 5;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 5;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
reloadstage = false;
replay = false;
stageframe = 1;
}
Instance of Symbol 33 MovieClip in Frame 1
/* no clip actions */
Instance of Symbol 68 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.ball.dead && (_root.playsound)) {
if ((_root._currentframe == 60) || (_root._currentframe == 65)) {
_root.splat = new Sound();
_root.playsound = false;
_root.splat.attachSound("explosion");
_root.splat.start();
} else {
_root.splat = new Sound();
_root.playsound = false;
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
}
}
}
onClipEvent (load) {
_root.playsound = true;
}
Frame 2
gamefinished = false;
firsttime = true;
gotoAndStop (2);
_root.stageframe = 2;
Instance of Symbol 70 MovieClip "tilty1" in Frame 2
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._rotation == 90) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 20;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else if ((_root.ball._x + _root.ball._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.ball._width / 2)) - 1;
_root.ball.sidecollision = true;
this._rotation = this._rotation + 5;
}
}
}
}
Instance of Symbol 72 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.stageframe = 10;
_root.gotoAndStop(10);
}
}
}
Instance of Symbol 75 MovieClip "ground2" in Frame 2
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 7;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 75 MovieClip "ground1" in Frame 2
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 7;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 75 MovieClip "ground3" in Frame 2
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 7;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 80 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (!_root.gamefinished) {
_root.curTime = (getTimer() - _root.startTime) / 1000;
}
if (_root._currentframe == 110) {
_root.nametxt._y = 250;
}
}
Instance of Symbol 16 MovieClip "blood" in Frame 2
onClipEvent (enterFrame) {
this._x = this._x + xvel;
this._y = this._y + yvel;
yvel = yvel + 3;
}
onClipEvent (load) {
xvel = random(50) - 25;
yvel = random(50) - 25;
_xscale = random(80);
_yscale = random(80);
}
Instance of Symbol 16 MovieClip "spark2" in Frame 2
onClipEvent (enterFrame) {
this._x = this._x + xvel;
this._y = this._y + yvel;
yvel = yvel + 1;
}
onClipEvent (load) {
xvel = random(5) - 2.5;
yvel = random(6) * -1;
_xscale = random(40);
_yscale = random(40);
}
Instance of Symbol 84 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.startTime = getTimer();
_root.gotoAndStop(2);
}
Instance of Symbol 84 MovieClip in Frame 4
onClipEvent (enterFrame) {
_root.playsound = true;
_root.gotoAndStop(_root.stageframe);
}
Instance of Symbol 84 MovieClip in Frame 5
onClipEvent (enterFrame) {
}
Frame 10
gotoAndStop (10);
Instance of Symbol 86 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if ((_root.ball._x + _root.ball._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.ball._width / 2)) - 1;
_root.ball.sidecollision = true;
}
}
}
}
Instance of Symbol 94 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 4;
totalmovement = totalmovement + 4;
} else {
this._y = this._y - 4;
totalmovement = totalmovement - 4;
}
if (totalmovement >= 70) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
}
onClipEvent (load) {
movedown = true;
totalmovement = 0;
}
Instance of Symbol 166 MovieClip "stickguy1" in Frame 10
onClipEvent (enterFrame) {
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 100) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
this._x = this._x - 3;
} else {
this._x = this._x + 3;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
gotoAndPlay (60);
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
}
Instance of Symbol 168 MovieClip "switchhandle1" in Frame 10
onClipEvent (enterFrame) {
if (_root.stickguy1.pullswitch) {
if (this._rotation < 100) {
this._rotation = this._rotation + 15;
} else {
_root.middleground.fall = true;
}
}
}
Instance of Symbol 72 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.stageframe = 15;
_root.gotoAndStop(15);
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 10
onClipEvent (enterFrame) {
if (replay) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 5;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 5;
}
}
this._rotation = this._rotation + ball_velocityX;
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 5;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 5;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 5;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
}
Instance of Symbol 172 MovieClip "collisionbox" in Frame 10
onClipEvent (enterFrame) {
this._x = _root.ball._x + (_root.ball.ball_velocityX / 5);
this._y = _root.ball._y + _root.ball.ball_velocityY;
}
onClipEvent (load) {
this._visible = false;
_root.rockfallspeed = 15;
}
Instance of Symbol 75 MovieClip "ground1" in Frame 10
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 7;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 10 MovieClip "middleground" in Frame 10
onClipEvent (enterFrame) {
if (this.fall) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
this._y = this._y + 15;
if (this._y >= 350) {
if (!_root.stickguy1.dead) {
_root.stickguy1.gotoAndPlay(60);
_root.stickguy1.dead = true;
}
this._rotation = this._rotation - 10;
}
} else if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 7;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.fall = false;
}
Instance of Symbol 174 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 7;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Frame 15
gotoAndStop (15);
Instance of Symbol 208 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (!this.stopthis) {
if (this.hitTest(_root.ball) && (this.hitTest(_root.rope2))) {
_root.rope2.grab = true;
_root.ball.noupdate = true;
_root.invisiblethingy.stopthis = true;
}
}
}
onClipEvent (load) {
this._visible = false;
this.stopthis = false;
}
Instance of Symbol 210 MovieClip "rope2" in Frame 15
onClipEvent (enterFrame) {
if (!rotateleft) {
this._rotation = this._rotation + 4.5;
} else {
this._rotation = this._rotation - 4.5;
}
if (this._rotation > 60) {
rotateleft = true;
}
if (this._rotation < -60) {
if (grab) {
_root.ball.noupdate = false;
_root.ball.ball_velocityX = 100;
_root.ball.ball_velocityY = -20;
grab = false;
}
rotateleft = false;
}
if (grab) {
somex = this._x - (this._rotation * 1.4);
somey = (this._y + this._height) - 20;
_root.ball._x = somex;
_root.ball._y = somey;
_root.ball.noupdate = true;
_root.invisiblethingy.stopthis = true;
}
}
onClipEvent (load) {
rotateleft = true;
this._visible = false;
grab = false;
}
Instance of Symbol 166 MovieClip "stickguy3" in Frame 15
onClipEvent (enterFrame) {
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 0) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
this._x = this._x - 3;
} else {
this._x = this._x + 3;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
gotoAndPlay (60);
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
this.dead = true;
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
}
Instance of Symbol 166 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 100) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 3;
} else {
this._x = this._x + 3;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
gotoAndPlay (60);
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
this.dead = true;
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
}
Instance of Symbol 166 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 100) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 3;
} else {
this._x = this._x + 3;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
gotoAndPlay (60);
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
this.dead = true;
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
}
Instance of Symbol 166 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 100) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 42) {
this.fall = true;
}
this._x = this._x - 3;
} else {
this._x = this._x + 3;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
gotoAndPlay (60);
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
this.dead = true;
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
}
Instance of Symbol 166 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 100) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 3;
} else {
this._x = this._x + 3;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
gotoAndPlay (60);
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
this.dead = true;
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
}
Instance of Symbol 166 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 100) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 40) {
this.fall = true;
}
this._x = this._x - 3;
} else {
this._x = this._x + 3;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
gotoAndPlay (60);
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
this.dead = true;
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
}
Instance of Symbol 166 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 100) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 3;
} else {
this._x = this._x + 3;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
gotoAndPlay (60);
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
this.dead = true;
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
}
Instance of Symbol 166 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 100) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 3;
} else {
this._x = this._x + 3;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
gotoAndPlay (60);
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
this.dead = true;
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
}
Instance of Symbol 166 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 100) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 3;
} else {
this._x = this._x + 3;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
gotoAndPlay (60);
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
this.dead = true;
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
}
Instance of Symbol 166 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 100) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 3;
} else {
this._x = this._x + 3;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
gotoAndPlay (60);
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
this.dead = true;
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
}
Instance of Symbol 72 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.stageframe = 20;
_root.gotoAndStop(20);
}
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 25 MovieClip "ball" in Frame 15
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 5;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 5;
}
}
this._rotation = this._rotation + ball_velocityX;
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 5;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 5;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 5;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
}
Instance of Symbol 214 MovieClip "fallingobj1" in Frame 15
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
this._y = this._y + 8;
_root.ball._y = (this._y - this._height) - 8;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 216 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) - 7;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 216 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 7;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 216 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) - 7;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 218 MovieClip "invisthingy" in Frame 15
onClipEvent (enterFrame) {
if (!this.stopthis) {
if (this.hitTest(_root.ball)) {
this._x = this._x + 8;
this._y = this._y + 3.2;
somex = this._x;
somey = this._y - 7;
_root.ball._x = somex;
_root.ball._y = somey;
_root.ball.noupdate = true;
}
}
}
onClipEvent (load) {
this._visible = false;
this.stopthis = false;
}
Instance of Symbol 218 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.noupdate = false;
_root.ball.ball_velocityY = 0;
_root.ball.ball_velocityX = 0;
_root.invisthingy.stopthis = true;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 220 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
_root.ball._y = this._y - this._height;
}
}
onClipEvent (load) {
this._visible = false;
}
Frame 20
gotoAndStop (20);
_root.killball = false;
Instance of Symbol 208 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (!this.stopthis) {
if (this.hitTest(_root.ball) && (this.hitTest(_root.rope2))) {
_root.rope2.grab = true;
_root.ball.noupdate = true;
_root.invisiblethingy.stopthis = true;
}
}
}
onClipEvent (load) {
this._visible = false;
this.stopthis = false;
}
Instance of Symbol 94 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 4;
totalmovement = totalmovement + 4;
} else {
this._y = this._y - 4;
totalmovement = totalmovement - 4;
}
if (totalmovement >= 55) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
}
onClipEvent (load) {
movedown = true;
totalmovement = 0;
}
Instance of Symbol 94 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 4;
totalmovement = totalmovement + 4;
} else {
this._y = this._y - 4;
totalmovement = totalmovement - 4;
}
if (totalmovement >= 55) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
}
onClipEvent (load) {
movedown = true;
totalmovement = 0;
}
Instance of Symbol 94 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 4;
totalmovement = totalmovement + 4;
} else {
this._y = this._y - 4;
totalmovement = totalmovement - 4;
}
if (totalmovement >= 55) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
}
onClipEvent (load) {
movedown = false;
totalmovement = 50;
}
Instance of Symbol 94 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 4;
totalmovement = totalmovement + 4;
} else {
this._y = this._y - 4;
totalmovement = totalmovement - 4;
}
if (totalmovement >= 55) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
}
onClipEvent (load) {
movedown = true;
totalmovement = 55;
}
Instance of Symbol 94 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 4;
totalmovement = totalmovement + 4;
} else {
this._y = this._y - 4;
totalmovement = totalmovement - 4;
}
if (totalmovement >= 55) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
}
onClipEvent (load) {
movedown = true;
totalmovement = 0;
}
Instance of Symbol 222 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (movedown) {
this._x = this._x + 25;
totalmovement = totalmovement + 25;
} else {
this._x = this._x - 25;
totalmovement = totalmovement - 25;
}
if (totalmovement >= 475) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
onClipEvent (load) {
movedown = true;
totalmovement = 0;
}
Instance of Symbol 225 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.boss)) {
_root.boss.jumpright1 = true;
_root.boss.gotoAndStop(35);
_root.boss.moveright1 = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 225 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.boss) && (_root.boss.jumpright1)) {
_root.boss.jumpright1 = false;
_root.boss.gotoAndPlay(36);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 225 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.boss) && (_root.boss.jumpleft1)) {
_root.boss.jumpleft1 = false;
_root.boss.fallleft1 = true;
_root.boss.gotoAndPlay(41);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 225 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.boss)) {
_root.boss.fallleft2 = true;
_root.boss.moveleft1 = false;
_root.boss.gotoAndStop(41);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 225 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.boss)) {
if (_root.boss.attackleft || (_root.boss.attackright)) {
return(undefined);
}
_root.boss.fallleft2 = false;
_root.boss.moveright2 = true;
_root.boss._y = _root.boss._y - 0;
_root.boss.gotoAndPlay(15);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 72 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.stageframe = 25;
_root.gotoAndStop(25);
}
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 25 MovieClip "ball" in Frame 20
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 5;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 5;
}
}
this._rotation = this._rotation + ball_velocityX;
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 5;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 5;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 5;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
}
Instance of Symbol 233 MovieClip "box1" in Frame 20
onClipEvent (enterFrame) {
if (this.dead) {
return(undefined);
}
if (this.hitTest(_root.groundstage4_1)) {
this._y = _root.groundstage4_1._y - 16;
} else {
if (this.hitTest(_root.groundstage4_2)) {
this._y = _root.groundstage4_2._y - 25;
this.dead = true;
_root.boss.startaction = true;
this.gotoAndPlay(2);
return(undefined);
}
this._y = this._y + 15;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._rotation == 90) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 20;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else if ((_root.ball._x + _root.ball._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.ball._width / 2)) - 20;
_root.ball.sidecollision = true;
this._x = this._x + 5;
}
}
}
}
onClipEvent (load) {
this.dead = false;
}
Instance of Symbol 235 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.box1) && (!dontdoagain)) {
_root.slantedramp.fall = true;
_root.splat = new Sound();
_root.splat.attachSound("punch");
_root.splat.start();
dontdoagain = true;
}
}
onClipEvent (load) {
this._visible = false;
dontdoagain = false;
}
Instance of Symbol 172 MovieClip "collisionbox" in Frame 20
onClipEvent (enterFrame) {
this._x = _root.ball._x + (_root.ball.ball_velocityX / 5);
this._y = _root.ball._y + _root.ball.ball_velocityY;
}
onClipEvent (load) {
this._visible = false;
_root.rockfallspeed = 15;
}
Instance of Symbol 216 MovieClip "groundstage4_1" in Frame 20
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) - 5;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 216 MovieClip "groundstage4_2" in Frame 20
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = this._y - this._height;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 238 MovieClip "slantedramp" in Frame 20
onClipEvent (enterFrame) {
if (this.fall && (this._y < 160)) {
this._rotation = this._rotation - 35;
this._y = this._y + 15;
this._x = this._x + 15;
}
if ((_root.ball.replay == false) && (this._y > 150)) {
if (this.hitTest(_root.ball)) {
_root.ball._x = (this._x - _root.ball._width) - 45;
_root.ball.sidecollision = true;
}
}
}
onClipEvent (load) {
this.fall = false;
}
Instance of Symbol 166 MovieClip "boss" in Frame 20
onClipEvent (enterFrame) {
if (this.attackleft || (this.attackright)) {
this._rotation = 0;
if ((this._currentframe == 77) || (this._currentframe == 87)) {
_root.ball.dead = true;
}
return(undefined);
}
if (this.shootup) {
if (_root.killball) {
_root.ball.dead = true;
}
return(undefined);
}
if (this.fallleft2) {
this._y = this._y + 8;
this._x = this._x - 2.3;
}
if (this.moveleft1) {
this._x = this._x - 3;
}
if (this.moveright2) {
this._x = this._x + 3;
}
if (this.startaction) {
this.gotoAndPlay(15);
this.startaction = false;
this.moveright1 = true;
}
if (this.moveright1) {
this._x = this._x + 4;
}
if (this.jumpright1) {
this._x = this._x + 5;
this._y = this._y - 6;
}
if (this.jumpleft1) {
this._x = this._x - 9;
this._y = this._y - 6;
this._rotation = this._rotation - 20;
}
if (this.fallleft1) {
if (!this.hitTest(_root.groundstage4_2)) {
this._x = this._x - 5;
this._y = this._y + 9;
this._rotation = this._rotation - 25;
} else {
this._rotation = 0;
this._y = this._y - 5;
if (_root.ball._y < 150) {
this.shootup = true;
this.gotoAndPlay(90);
return(undefined);
}
this.moveleft1 = true;
this.fallleft1 = false;
this.gotoAndPlay(5);
}
}
if (this.hitTest(_root.ball)) {
if (_root.ball._x >= this._x) {
this.attackright = true;
this.gotoAndPlay(70);
} else {
this.attackleft = true;
this.gotoAndPlay(80);
}
this._rotation = 0;
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.startaction = false;
this.moveright1 = false;
this.jumpright1 = false;
this.fallleft1 = false;
this.attackleft = false;
this.attackright = false;
this.shootup = false;
this.moveleft1 = false;
this.fallleft2 = false;
this.moveright2 = false;
}
Instance of Symbol 216 MovieClip "groundstage4_3" in Frame 20
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 70) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - (this._height / 2)) - 10;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 222 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 10;
totalmovement = totalmovement + 10;
} else {
this._y = this._y - 10;
totalmovement = totalmovement - 10;
}
if (totalmovement >= 200) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
onClipEvent (load) {
movedown = true;
totalmovement = 0;
}
Instance of Symbol 70 MovieClip "tilty1" in Frame 25
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._rotation == 90) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 12;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else if ((_root.ball._x + _root.ball._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.ball._width / 2)) - 1;
_root.ball.sidecollision = true;
this._rotation = this._rotation + 1;
}
}
}
}
Instance of Symbol 216 MovieClip "groundstage5_2" in Frame 25
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 3;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 216 MovieClip "groundstage5_4" in Frame 25
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 0) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 12;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 3;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 72 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.stageframe = 30;
_root.gotoAndStop(30);
}
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 25 MovieClip "ball" in Frame 25
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 5;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 5;
}
}
this._rotation = this._rotation + ball_velocityX;
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 5;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 5;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 5;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ball) && (!_root.boss.moveright2)) && (!_root.boss.startstage6)) {
_root.boss.startstage6 = true;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball) && (!this.stopit)) {
_root.pulley.fall = true;
this.stopit = true;
}
}
onClipEvent (load) {
this._visible = false;
this.stopit = false;
}
Instance of Symbol 216 MovieClip "groundstage5_1" in Frame 25
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 3;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 166 MovieClip "boss" in Frame 25
onClipEvent (enterFrame) {
if (this.attackleft || (this.attackright)) {
this._rotation = 0;
if ((this._currentframe == 77) || (this._currentframe == 87)) {
_root.ball.dead = true;
}
return(undefined);
}
if (this.dead) {
return(undefined);
}
if ((this.hitTest(_root.ball) && (!this.attackleft)) && (!this.attackright)) {
if (_root.ball._x >= this._x) {
this.attackright = true;
this.moveright2 = false;
this.gotoAndPlay(70);
} else {
this.attackleft = true;
this.moveright2 = false;
this.gotoAndPlay(80);
}
this._rotation = 0;
return(undefined);
}
if (this.startstage6) {
this._y = this._y + 8;
if (this._y > 130) {
this.startstage6 = false;
this.moveright2 = true;
this.gotoAndPlay(15);
}
}
if (this.shootup) {
if (_root.killball) {
_root.ball.dead = true;
}
return(undefined);
}
if (this.fallleft2) {
this._y = this._y + 8;
this._x = this._x - 2.3;
}
if (this.moveleft1) {
this._x = this._x - 3;
}
if (this.moveright2) {
this._x = this._x + 5;
}
if (this.startaction) {
this.gotoAndPlay(15);
this.startaction = false;
this.moveright1 = true;
}
if (this.moveright1) {
this._x = this._x + 4;
}
if (this.jumpright1) {
this._x = this._x + 5;
this._y = this._y - 6;
}
if (this.jumpleft1) {
this._x = this._x - 9;
this._y = this._y - 6;
this._rotation = this._rotation - 20;
}
if (this.fallleft1) {
if (!this.hitTest(_root.groundstage4_2)) {
this._x = this._x - 5;
this._y = this._y + 9;
this._rotation = this._rotation - 25;
} else {
this._rotation = 0;
this._y = this._y + 5;
if (_root.ball._y < 150) {
this.shootup = true;
this.gotoAndPlay(90);
return(undefined);
}
this.moveleft1 = true;
this.fallleft1 = false;
this.gotoAndPlay(5);
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.startaction = false;
this.moveright1 = false;
this.jumpright1 = false;
this.fallleft1 = false;
this.attackleft = false;
this.attackright = false;
this.shootup = false;
this.moveleft1 = false;
this.fallleft2 = false;
this.moveright2 = false;
this.startstage6 = false;
}
Instance of Symbol 273 MovieClip "pulley" in Frame 25
onClipEvent (enterFrame) {
if (this.fall) {
gotoAndPlay (2);
this.fall = false;
}
}
onClipEvent (load) {
this.fall = false;
}
Instance of Symbol 289 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball) && (!this.bounce)) {
this.gotoAndPlay(5);
this.bounce = true;
_root.ball.noupdate = true;
}
}
onClipEvent (load) {
this.bounce = false;
}
Instance of Symbol 216 MovieClip "groundstage5_3" in Frame 25
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 3;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 289 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball) && (!this.bounce)) {
this.gotoAndPlay(5);
this.bounce = true;
_root.ball.noupdate = true;
}
}
onClipEvent (load) {
this.bounce = false;
}
Instance of Symbol 291 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.tunnel.begin) {
this._visible = false;
}
}
Instance of Symbol 72 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.tunnel)) {
_root.stageframe = 35;
_root.gotoAndStop(35);
}
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 25 MovieClip "ball" in Frame 30
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 5;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 5;
}
}
this._rotation = this._rotation + ball_velocityX;
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 5;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 5;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 5;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
}
Instance of Symbol 216 MovieClip "groundstage5_1" in Frame 30
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 3;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 301 MovieClip "tunnel" in Frame 30
onClipEvent (enterFrame) {
if ((!this.begin) && (_root.newguy._currentframe == 77)) {
this.gotoAndPlay(11);
this.begin = true;
}
}
onClipEvent (load) {
this.begin = false;
}
Instance of Symbol 303 MovieClip in Frame 30
onClipEvent (enterFrame) {
if ((!this.begin) && (this.hitTest(_root.ball))) {
this.begin = true;
_root.tunnel.gotoAndPlay(2);
_root.ball._visible = false;
_root.ball.noupdate = true;
_root.newguy.startaction = true;
}
}
onClipEvent (load) {
this._visible = false;
this.begin = false;
}
Instance of Symbol 166 MovieClip "newguy" in Frame 30
onClipEvent (enterFrame) {
if (this.attackleft || (this.attackright)) {
this._rotation = 0;
if ((this._currentframe == 77) || (this._currentframe == 87)) {
_root.ball.dead = true;
}
return(undefined);
}
if (this.dead) {
return(undefined);
}
if (this.moveright1) {
this._x = this._x + 3;
}
if (this.startaction) {
this.gotoAndPlay(15);
this.startaction = false;
this.moveright1 = true;
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.startaction = false;
this.moveright1 = false;
this.jumpright1 = false;
this.fallleft1 = false;
this.attackleft = false;
this.attackright = false;
this.shootup = false;
this.moveleft1 = false;
this.fallleft2 = false;
this.moveright2 = false;
this.startstage6 = false;
}
Instance of Symbol 303 MovieClip in Frame 30
onClipEvent (enterFrame) {
if ((!this.begin) && (this.hitTest(_root.newguy))) {
_root.punch = new Sound();
_root.punch.attachSound("punch");
_root.punch.start();
this.begin = true;
_root.newguy.moveright1 = false;
_root.newguy.gotoAndPlay(70);
}
}
onClipEvent (load) {
this._visible = false;
this.begin = false;
}
Instance of Symbol 72 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.stageframe = 40;
_root.gotoAndStop(40);
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 35
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 5;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 5;
}
}
this._rotation = this._rotation + ball_velocityX;
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 5;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 5;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 5;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
this._visible = false;
}
Instance of Symbol 216 MovieClip "groundstage5_1" in Frame 35
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 3;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 319 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._y = this._y + 45;
if (this._y >= 450) {
_root.ball._visible = true;
_root.ball.ball_velocityY = 35;
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 216 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 8;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else {
_root.ball.dead = true;
}
}
}
if (this.changeY > 300) {
this.moveup = true;
}
if (this.changeY < 0) {
this.moveup = false;
}
if (this.moveup) {
this._y = this._y - 3;
this.changeY = this.changeY - 3;
} else {
this._y = this._y + 3;
this.changeY = this.changeY + 3;
}
}
onClipEvent (load) {
this.moveup = false;
this.changeY = 0;
}
Instance of Symbol 216 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 5;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else {
_root.ball.dead = true;
}
}
}
if (this.changeY > 300) {
this.moveup = true;
}
if (this.changeY < 0) {
this.moveup = false;
}
if (this.moveup) {
this._y = this._y - 3;
this.changeY = this.changeY - 3;
} else {
this._y = this._y + 3;
this.changeY = this.changeY + 3;
}
}
onClipEvent (load) {
this.moveup = true;
this.changeY = 300;
}
Instance of Symbol 216 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 8;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else {
_root.ball.dead = true;
}
}
}
if (this.changeY > 300) {
this.moveup = true;
}
if (this.changeY < 0) {
this.moveup = false;
}
if (this.moveup) {
this._y = this._y - 3;
this.changeY = this.changeY - 3;
} else {
this._y = this._y + 3;
this.changeY = this.changeY + 3;
}
}
onClipEvent (load) {
this.moveup = false;
this.changeY = 0;
}
Instance of Symbol 216 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 5;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else {
_root.ball.dead = true;
}
}
}
if (this.changeY > 300) {
this.moveup = true;
}
if (this.changeY < 0) {
this.moveup = false;
}
if (this.moveup) {
this._y = this._y - 3;
this.changeY = this.changeY - 3;
} else {
this._y = this._y + 3;
this.changeY = this.changeY + 3;
}
}
onClipEvent (load) {
this.moveup = true;
this.changeY = 300;
}
Instance of Symbol 216 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 8;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else {
_root.ball.dead = true;
}
}
}
if (this.changeY > 300) {
this.moveup = true;
}
if (this.changeY < 0) {
this.moveup = false;
}
if (this.moveup) {
this._y = this._y - 3;
this.changeY = this.changeY - 3;
} else {
this._y = this._y + 3;
this.changeY = this.changeY + 3;
}
}
onClipEvent (load) {
this.moveup = false;
this.changeY = 0;
}
Instance of Symbol 216 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = (this._y - this._height) + 3;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Frame 40
frame40fall = false;
rockfall = false;
rockfallspeed = 15;
moverock = false;
stageshift = false;
shiftspeed = 3;
totalshift = 400;
Instance of Symbol 321 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer >= 21) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
if ((_root.ball._x - _root.ball._width) <= (this._x + (this._width / 2))) {
_root.ball._x = (this._x + _root.collisionbox._width) + 8;
_root.ball.sidecollision = true;
}
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 321 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 8) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
if ((_root.ball._x - _root.ball._width) <= (this._x + (this._width / 2))) {
_root.ball._x = (this._x + _root.collisionbox._width) + 8;
_root.ball.sidecollision = true;
}
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 321 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 8) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
if ((_root.ball._x - _root.ball._width) <= (this._x + (this._width / 2))) {
_root.ball._x = (this._x + _root.collisionbox._width) + 8;
_root.ball.sidecollision = true;
}
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 86 MovieClip "ground3" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (_root.frame40fall && (this._y < 330)) {
this._y = this._y + 8;
}
if (this.hitTest(_root.collisionbox) && (!_root.frame40fall)) {
if ((_root.collisionbox._x + _root.collisionbox._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.collisionbox._width / 2)) - 5;
_root.ball.sidecollision = true;
}
}
}
}
Instance of Symbol 329 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((_root.ball.replay == false) && (!shatter)) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 35) {
gotoAndPlay (2);
shatter = true;
}
if (_root.ball.ball_velocityY > 100) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
shatter = false;
}
Instance of Symbol 321 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 15;
this._yscale = this._yscale - 22;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 12) {
this.caught = true;
_root.frame40fall = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 5);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 5);
return(undefined);
}
if ((_root.ball._x - _root.ball._width) <= (this._x + (this._width / 2))) {
_root.ball._x = (this._x + _root.collisionbox._width) + 8;
_root.ball.sidecollision = true;
}
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 94 MovieClip "jabber1" in Frame 40
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 3;
totalmovement = totalmovement + 3;
} else {
this._y = this._y - 3;
totalmovement = totalmovement - 3;
}
if (totalmovement >= 55) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
}
onClipEvent (load) {
movedown = true;
totalmovement = 0;
}
Instance of Symbol 94 MovieClip "jabber2" in Frame 40
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 3;
totalmovement = totalmovement + 3;
} else {
this._y = this._y - 3;
totalmovement = totalmovement - 3;
}
if (totalmovement >= 55) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
}
onClipEvent (load) {
movedown = true;
totalmovement = 0;
}
Instance of Symbol 334 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 336 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 338 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 340 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 342 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 344 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 346 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 348 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 350 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 334 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 336 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 338 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 340 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.moverock = true;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 342 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 344 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 346 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 348 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 350 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 334 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 336 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 338 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 340 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 342 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 344 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 348 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 350 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 334 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 336 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 338 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 340 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 342 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 344 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 346 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 348 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 350 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 334 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 336 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 338 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 340 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 342 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 344 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 346 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 348 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 350 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.rockfall) {
if (this._y < 480) {
this._y = this._y + _root.rockfallspeed;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 352 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.dead) {
return(undefined);
}
if (this.hitTest(_root.groundstage4_1)) {
this._y = _root.groundstage4_1._y - (this._height / 2);
} else {
this._y = this._y + 15;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._rotation == 90) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 20;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else if ((_root.ball._x + _root.ball._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.ball._width / 2)) - (this._width / 2);
_root.ball.sidecollision = true;
if (_root.moverock) {
this._x = this._x + 10;
}
}
}
}
}
onClipEvent (load) {
this.dead = false;
}
Instance of Symbol 352 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.dead) {
return(undefined);
}
if (this.hitTest(_root.groundstage7_1)) {
this._y = _root.groundstage7_1._y - (this._height / 2);
} else {
this._y = this._y + 15;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._rotation == 90) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 20;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else if ((_root.ball._x + _root.ball._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.ball._width / 2)) - (this._width / 2);
_root.ball.sidecollision = true;
if (_root.moverock) {
this._x = this._x + 10;
}
}
}
}
}
onClipEvent (load) {
this.dead = false;
}
Instance of Symbol 72 MovieClip "stageend" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.stageframe = 45;
_root.gotoAndStop(45);
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 40
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 3;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 3;
}
}
this._rotation = this._rotation + (ball_velocityX / (25 + this.buffer));
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 3;
}
if (lastbuffer != this.buffer) {
_root.popnoise = new Sound();
_root.popnoise.attachSound("pop");
_root.popnoise.start();
}
lastbuffer = this.buffer;
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 1;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 172 MovieClip "collisionbox" in Frame 40
onClipEvent (enterFrame) {
this._x = _root.ball._x + (_root.ball.ball_velocityX / 5);
this._y = _root.ball._y + _root.ball.ball_velocityY;
}
onClipEvent (load) {
this._visible = false;
_root.rockfallspeed = 15;
}
Instance of Symbol 354 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = 0;
this.rot0 = _root.ball._rotation;
return(undefined);
}
}
}
onClipEvent (load) {
buffer = 0;
caught = false;
}
Instance of Symbol 216 MovieClip "ground1" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 216 MovieClip "groundstage7_1" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (_root.frame40fall && (this._y < 300)) {
this._y = this._y + 8;
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 166 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 166 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 166 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 166 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 166 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 166 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 166 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 216 MovieClip "ground4" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (_root.frame40fall) {
if (this._y < 360) {
this._y = this._y + 8;
} else {
_root.rockfall = true;
}
}
if (this.hitTest(_root.collisionbox)) {
if (_root.frame40fall) {
_root.ball.dead = true;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 216 MovieClip "ground6" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 357 MovieClip "ground2" in Frame 40
onClipEvent (enterFrame) {
if (_root.frame40fall && (this._y < 330)) {
this._y = this._y + 8;
}
}
Instance of Symbol 359 MovieClip "ground5" in Frame 40
onClipEvent (enterFrame) {
if (_root.frame40fall && (this._y < 360)) {
this._y = this._y + 8;
}
}
Instance of Symbol 216 MovieClip "groundstage4_1" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 216 MovieClip "ground7" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 361 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.ball._y <= 0) {
_root.ball.dead = true;
}
if (_root.ball._y > 500) {
_root.stageshift = true;
_root.frame40fall = false;
}
if (_root.stageshift) {
_root.ball._y = _root.ball._y - _root.shiftspeed;
_root.ground1._y = _root.ground1._y - _root.shiftspeed;
_root.ground2._y = _root.ground2._y - _root.shiftspeed;
_root.ground3._y = _root.ground3._y - _root.shiftspeed;
_root.ground4._y = _root.ground4._y - _root.shiftspeed;
_root.ground5._y = _root.ground5._y - _root.shiftspeed;
_root.ground6._y = _root.ground6._y - _root.shiftspeed;
_root.ground7._y = _root.ground7._y - _root.shiftspeed;
_root.ground8._y = _root.ground8._y - _root.shiftspeed;
_root.ground9._y = _root.ground9._y - _root.shiftspeed;
_root.ground10._y = _root.ground10._y - _root.shiftspeed;
_root.ground11._y = _root.ground11._y - _root.shiftspeed;
_root.ground12._y = _root.ground12._y - _root.shiftspeed;
_root.spikes._y = _root.spikes._y - _root.shiftspeed;
_root.spikedeath._y = _root.spikedeath._y - _root.shiftspeed;
_root.stageend._y = _root.stageend._y - _root.shiftspeed;
_root.fallingobj1._y = _root.fallingobj1._y - _root.shiftspeed;
_root.fallingobj2._y = _root.fallingobj2._y - _root.shiftspeed;
_root.fallingobj3._y = _root.fallingobj3._y - _root.shiftspeed;
_root.fallingobj4._y = _root.fallingobj4._y - _root.shiftspeed;
_root.fallingobj5._y = _root.fallingobj5._y - _root.shiftspeed;
_root.fallingobj6._y = _root.fallingobj6._y - _root.shiftspeed;
_root.fallingobj7._y = _root.fallingobj7._y - _root.shiftspeed;
_root.fallingobj8._y = _root.fallingobj8._y - _root.shiftspeed;
_root.jabber1._y = _root.jabber1._y - _root.shiftspeed;
_root.jabber2._y = _root.jabber2._y - _root.shiftspeed;
_root.pipe1._y = _root.pipe1._y - _root.shiftspeed;
_root.pipe2._y = _root.pipe2._y - _root.shiftspeed;
_root.endpipe1._y = _root.endpipe1._y - _root.shiftspeed;
_root.endpipe2._y = _root.endpipe2._y - _root.shiftspeed;
_root.groundstage7_1._y = _root.groundstage7_1._y - _root.shiftspeed;
_root.groundstage4_1._y = _root.groundstage4_1._y - _root.shiftspeed;
_root.totalshift = _root.totalshift - _root.shiftspeed;
}
if (_root.totalshift <= 0) {
_root.ball.noupdate = false;
}
}
Instance of Symbol 216 MovieClip "ground8" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 216 MovieClip "ground9" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 216 MovieClip "ground10" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 214 MovieClip "fallingobj1" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
this._y = this._y + 6;
_root.ball._y = (this._y - this._height) - 8;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 214 MovieClip "fallingobj2" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
this._y = this._y + 6;
_root.ball._y = (this._y - this._height) - 8;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 214 MovieClip "fallingobj3" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
this._y = this._y + 6;
_root.ball._y = (this._y - this._height) - 8;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 214 MovieClip "fallingobj4" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
this._y = this._y + 6;
_root.ball._y = (this._y - this._height) - 8;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 214 MovieClip "fallingobj5" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
this._y = this._y + 6;
_root.ball._y = (this._y - this._height) - 8;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 214 MovieClip "fallingobj6" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
this._y = this._y + 6;
_root.ball._y = (this._y - this._height) - 8;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 214 MovieClip "fallingobj7" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 40) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
this._y = this._y + 6;
_root.ball._y = (this._y - this._height) - 8;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
Instance of Symbol 216 MovieClip "ground11" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 220 MovieClip "spikedeath" in Frame 40
onClipEvent (enterFrame) {
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.ball._y = this._y - this._height;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 216 MovieClip "ground12" in Frame 40
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 86 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 66) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
_root.ground2.fall = true;
return(undefined);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if ((_root.collisionbox._x + _root.collisionbox._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.collisionbox._width / 2)) - 11;
_root.ball.sidecollision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
}
Instance of Symbol 86 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 66) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if ((_root.collisionbox._x - _root.collisionbox._width) <= (this._x + (this._width / 2))) {
_root.ball._x = (this._x + (_root.collisionbox._width / 2)) + 11;
_root.ball.sidecollision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
}
Instance of Symbol 86 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 62) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
}
if (this.dead) {
return(undefined);
}
if (this.hitTest(_root.ground1)) {
this._y = (_root.ground1._y - this._height) + 23;
} else {
this._y = this._y + 15;
}
if (this.hitTest(_root.collisionbox)) {
if ((_root.collisionbox._x + _root.collisionbox._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.collisionbox._width / 2)) - 11;
_root.ball.sidecollision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
}
Instance of Symbol 86 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 66) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if ((_root.collisionbox._x - _root.collisionbox._width) <= (this._x + (this._width / 2))) {
_root.ball._x = (this._x + (_root.collisionbox._width / 2)) + 11;
_root.ball.sidecollision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
}
Instance of Symbol 399 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (_root.ground2.fall && (!caughtball)) {
if (this._y < 165) {
this._y = this._y + 3;
this._x = this._x + 2;
}
}
if (caughtball) {
_root.ball._x = this._x;
_root.ball._y = this._y + 140;
this._x = this._x + 4;
this._y = this._y - 2;
}
if ((!caught) && (this.hitTest(_root.ball))) {
_root.ball.noupdate = true;
this.caughtball = true;
}
}
onClipEvent (load) {
caughtball = false;
}
Instance of Symbol 352 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 8) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
}
if (this.dead) {
return(undefined);
}
if (this.hitTest(_root.ground1)) {
this._y = (_root.ground1._y - this._height) + 6;
} else {
this._y = this._y + 15;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._rotation == 90) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = (this._y - this._height) - 20;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else if ((_root.ball._x + _root.ball._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.ball._width / 2)) - (this._width / 2);
_root.ball.sidecollision = true;
if (_root.moverock) {
this._x = this._x + 10;
}
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
}
Instance of Symbol 72 MovieClip "stageend" in Frame 45
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.stageframe = 50;
_root.gotoAndStop(50);
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 45
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 3;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 3;
}
}
this._rotation = this._rotation + (ball_velocityX / (25 + this.buffer));
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 3;
}
if (lastbuffer != this.buffer) {
_root.popnoise = new Sound();
_root.popnoise.attachSound("pop");
_root.popnoise.start();
}
lastbuffer = this.buffer;
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 1;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 172 MovieClip "collisionbox" in Frame 45
onClipEvent (enterFrame) {
this._x = _root.ball._x + (_root.ball.ball_velocityX / 5);
this._y = _root.ball._y + _root.ball.ball_velocityY;
}
onClipEvent (load) {
this._visible = false;
_root.rockfallspeed = 15;
}
Instance of Symbol 216 MovieClip "ground1" in Frame 45
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 3000) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.ball._y < this._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
Instance of Symbol 361 MovieClip in Frame 45
onClipEvent (enterFrame) {
}
onClipEvent (load) {
_root.ball.ball_velocityX = 63;
}
Instance of Symbol 402 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = 0;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 404 MovieClip "spring" in Frame 45
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
}
if (this.jump) {
this.jump = false;
_root.ball.ball_velocityY = _root.ball.ball_velocityY - this.jumpamount;
this.jumpamount = 0;
}
if ((Key.isDown(32) && (_root.ball.ball_velocityY > -0.1)) && (_root.ball.ball_velocityY < 0.1)) {
if (this._yscale > 10) {
this._yscale = this._yscale - 2;
if (this.jumpamount > -65) {
this.jumpamount = this.jumpamount - 5;
}
}
} else if (this.jumpamount != 0) {
this.jump = true;
} else {
this._yscale = this.theyscale;
this.jump = false;
this.jumpamount = 0;
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = 0;
this._x = _root.ball._x;
this._y = _root.ball._y + 20;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = 0;
this.rot0 = 0;
_root.ball.buffer = 60;
gotoAndStop (1);
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
this.theyscale = this._yscale;
this.jump = false;
this.jumpamount = 0;
}
Instance of Symbol 216 MovieClip "ground2" in Frame 45
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 66) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
}
if (fall) {
this._y = this._y + 14;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 3000) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Frame 50
numberblocks = 0;
Instance of Symbol 399 MovieClip "helicopter" in Frame 50
onClipEvent (enterFrame) {
if (this.dead || (dead2)) {
if (this._currentframe == 1) {
if (dead) {
this._y = this._y + 1;
gotoAndPlay (2);
}
if (dead2) {
gotoAndPlay (15);
}
}
_root.ball.dead = true;
_root.ball.noupdate = false;
}
if (_root.ball.buffer > 36) {
this._y = this._y + ((_root.ball.buffer - 36) * 0.1);
}
if (caughtball) {
if (this._x < 0) {
this._x = 1;
}
if (this._x > 500) {
this._x = 499;
}
if (this._y < 0) {
this._y = 1;
}
_root.ball._x = this._x + balloffshift;
_root.ball._y = this._y + 50;
if (this.dead || (this.dead2)) {
return(undefined);
}
if (Key.isDown(39)) {
this._x = this._x + 4;
}
if (Key.isDown(37)) {
this._x = this._x - 4;
}
if (Key.isDown(38)) {
this._y = this._y - 4;
}
if (Key.isDown(40)) {
this._y = this._y + 4;
}
if (Key.isDown(32)) {
if (!_root.bullet1.fired) {
_root.fire = new Sound();
_root.fire.attachSound("fire");
_root.fire.start(0.1);
_root.bullet1.fired = true;
_root.bullet1._x = this._x + 30;
_root.bullet1.startingx = _root.bullet1._x;
_root.bullet1._y = this._y + 7;
}
}
}
if ((!caught) && (this.hitTest(_root.ball))) {
_root.ball.noupdate = true;
this.caughtball = true;
}
}
onClipEvent (load) {
caughtball = false;
balloffshift = 0;
}
Instance of Symbol 408 MovieClip "bullet1" in Frame 50
onClipEvent (enterFrame) {
if (fired) {
this._x = this._x + speed;
this.totaldistance = this.totaldistance + speed;
if ((this.totaldistance - this.startingx) > 300) {
fired = false;
totaldistance = 0;
this._x = -300;
}
}
}
onClipEvent (load) {
speed = 30;
totaldistance = 0;
startingx = 0;
fired = false;
}
Instance of Symbol 70 MovieClip "tilty1" in Frame 50
onClipEvent (enterFrame) {
if (collision) {
this._rotation = this._rotation + speed;
speed = speed + 1;
if (fall) {
this._y = this._y + speed;
}
if (this._rotation > 90) {
fall = true;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 33) {
this.collision = true;
} else {
_root.helicopter._x = (this._x - _root.helicopter._width) - 1;
}
}
}
}
onClipEvent (load) {
collision = false;
speed = 0;
fall = false;
}
Instance of Symbol 216 MovieClip "thrown" in Frame 50
onClipEvent (enterFrame) {
if ((!this.caught) && (this.hitTest(_root.helicopter.helibox))) {
_root.helicopter.dead = true;
}
if (_root.ball.dead) {
this._x = -500;
this.caught = false;
}
if (this._x < -50) {
return(undefined);
}
if (this.caught) {
if ((this._currentframe != 50) || (this._currentframe != 55)) {
this._visible = false;
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this._rotation = random(360);
this.rot0 = random(360);
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
this._x = this._x - 15;
this._y = this._y + drag;
drag = drag + 0.5;
this._rotation = this._rotation - 25;
if (fall) {
this._y = this._y + 14;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 3000) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
drag = 0;
}
Instance of Symbol 72 MovieClip "stageend" in Frame 50
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.stageframe = 55;
_root.gotoAndStop(55);
}
}
this._visible = false;
}
Instance of Symbol 25 MovieClip "ball" in Frame 50
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 3;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 3;
}
}
this._rotation = this._rotation + (ball_velocityX / (25 + this.buffer));
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 3;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 172 MovieClip "collisionbox" in Frame 50
onClipEvent (enterFrame) {
this._x = _root.ball._x + (_root.ball.ball_velocityX / 5);
this._y = _root.ball._y + _root.ball.ball_velocityY;
}
onClipEvent (load) {
this._visible = false;
_root.rockfallspeed = 15;
}
Instance of Symbol 86 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.helicopter)) {
_root.helicopter.dead = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
}
Instance of Symbol 86 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.helicopter)) {
_root.helicopter.dead = true;
}
if (this.hitTest(_root.bullet1)) {
_root.bullet1.totaldistance = 3000;
this._xscale = this._xscale - 2;
if (this._xscale < 12) {
this._y = -300;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
}
Instance of Symbol 415 MovieClip in Frame 50
onClipEvent (enterFrame) {
this.gotoAndStop(1);
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = 0;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 216 MovieClip "ground1" in Frame 50
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.helicopter.dead2 = true;
_root.helicopter._y = (((this._y - this._height) - _root.collisionbox._height) - (_root.helicopter._height / 2)) - 2;
} else if (this.hitTest(_root.helicopter)) {
_root.helicopter.dead = true;
}
}
}
Instance of Symbol 216 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this._rotation = 265;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
if (fall) {
this._y = this._y + 14;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 3000) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this._rotation = 128;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
if (fall) {
this._y = this._y + 14;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 3000) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this._rotation = 45;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
if (fall) {
this._y = this._y + 14;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 3000) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this._rotation = 345;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
if (fall) {
this._y = this._y + 14;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 3000) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.helicopter.dead2 = true;
_root.helicopter._y = (((this._y - this._height) - _root.collisionbox._height) - (_root.helicopter._height / 2)) - 2;
} else if (this.hitTest(_root.helicopter)) {
_root.helicopter.dead = true;
}
}
}
Instance of Symbol 216 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.helicopter.dead2 = true;
_root.helicopter._y = (((this._y - this._height) - _root.collisionbox._height) - (_root.helicopter._height / 2)) - 2;
} else if (this.hitTest(_root.helicopter)) {
_root.helicopter.dead = true;
}
}
}
Instance of Symbol 419 MovieClip "cata" in Frame 50
onClipEvent (enterFrame) {
if (this._x < 300) {
moveleft = false;
}
if (this._x > 400) {
moveleft = true;
}
if (moveleft) {
this._x = this._x - 1.5;
} else {
this._x = this._x + 1.5;
}
}
onClipEvent (load) {
this.moveleft = true;
}
Instance of Symbol 399 MovieClip "helicopter" in Frame 55
onClipEvent (enterFrame) {
if (noupdate) {
if (this.hitTest(_root.bullet2)) {
_root.ball.noupdate = false;
}
return(undefined);
}
if (this.dead || (dead2)) {
if (this._currentframe == 1) {
if (dead) {
this._y = this._y + 1;
gotoAndPlay (2);
}
if (dead2) {
gotoAndPlay (15);
}
}
_root.ball.dead = true;
_root.ball.noupdate = false;
}
if (_root.ball.buffer > 36) {
this._y = this._y + ((_root.ball.buffer - 36) * 0.1);
}
if (caughtball) {
if (this._x < 0) {
this._x = 1;
}
if (this._x > 500) {
this._x = 499;
}
if (this._y < 0) {
this._y = 1;
}
_root.ball._x = this._x + balloffshift;
_root.ball._y = this._y + 50;
if (this.dead || (this.dead2)) {
return(undefined);
}
if (Key.isDown(39)) {
this._x = this._x + 4;
}
if (Key.isDown(37)) {
this._x = this._x - 4;
}
if (Key.isDown(38)) {
this._y = this._y - 4;
}
if (Key.isDown(40)) {
this._y = this._y + 4;
}
if (Key.isDown(32)) {
if (!_root.bullet1.fired) {
_root.bullet1.fired = true;
_root.bullet1._x = this._x + 30;
_root.bullet1.startingx = _root.bullet1._x;
_root.bullet1._y = this._y + 7;
}
}
}
if ((!caught) && (this.hitTest(_root.ball))) {
_root.ball.noupdate = true;
this.caughtball = true;
}
}
onClipEvent (load) {
caughtball = false;
balloffshift = 0;
noupdate = false;
}
Instance of Symbol 408 MovieClip "bullet1" in Frame 55
onClipEvent (enterFrame) {
if (fired) {
this._x = this._x + speed;
this.totaldistance = this.totaldistance + speed;
if ((this.totaldistance - this.startingx) > 250) {
fired = false;
totaldistance = 0;
this._x = -300;
}
}
}
onClipEvent (load) {
speed = 30;
totaldistance = 0;
startingx = 0;
fired = false;
}
Instance of Symbol 408 MovieClip "bullet2" in Frame 55
onClipEvent (enterFrame) {
if (fired) {
this._x = this._x - speed;
}
}
onClipEvent (load) {
speed = 30;
totaldistance = 0;
startingx = 0;
fired = false;
}
Instance of Symbol 72 MovieClip "stageend" in Frame 55
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.stageframe = 60;
_root.gotoAndStop(60);
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 55
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 3;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 3;
}
}
this._rotation = this._rotation + (ball_velocityX / (25 + this.buffer));
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 3;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 172 MovieClip "collisionbox" in Frame 55
onClipEvent (enterFrame) {
this._x = _root.ball._x + (_root.ball.ball_velocityX / 5);
this._y = _root.ball._y + _root.ball.ball_velocityY;
}
onClipEvent (load) {
this._visible = false;
_root.rockfallspeed = 15;
}
Instance of Symbol 86 MovieClip in Frame 55
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.helicopter)) {
_root.helicopter.dead = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
}
Instance of Symbol 86 MovieClip in Frame 55
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.helicopter)) {
_root.helicopter.dead = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
}
Instance of Symbol 216 MovieClip "ground1" in Frame 55
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.helicopter.dead2 = true;
_root.helicopter._y = (((this._y - this._height) - _root.collisionbox._height) - (_root.helicopter._height / 2)) - 2;
} else if (this.hitTest(_root.helicopter)) {
_root.helicopter.dead = true;
}
}
}
Instance of Symbol 216 MovieClip "thrown" in Frame 55
onClipEvent (enterFrame) {
if ((!this.caught) && (this.hitTest(_root.helicopter.helibox))) {
_root.helicopter.dead = true;
}
if (_root.ball.dead) {
this._x = -500;
this.caught = false;
}
if (this._x < -50) {
return(undefined);
}
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
this.caught = true;
this.buffer = _root.ball.buffer;
this._rotation = random(360);
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
this._x = this._x - 15;
this._y = this._y + drag;
drag = drag + 0.5;
this._rotation = this._rotation - 25;
if (fall) {
this._y = this._y + 14;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 3000) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
drag = 0;
}
Instance of Symbol 421 MovieClip in Frame 55
onClipEvent (enterFrame) {
this.gotoAndStop(1);
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = 0;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 216 MovieClip "ground1" in Frame 55
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.helicopter.dead2 = true;
_root.helicopter._y = (((this._y - this._height) - _root.collisionbox._height) - (_root.helicopter._height / 2)) - 2;
} else if (this.hitTest(_root.helicopter)) {
_root.helicopter.dead = true;
}
}
}
Instance of Symbol 423 MovieClip in Frame 55
onClipEvent (enterFrame) {
if (this.hitTest(_root.helicopter)) {
_root.helicopter.noupdate = true;
_root.bullet2.fired = true;
_root.bullet2._y = _root.helicopter._y + 20;
}
}
Frame 60
fallspeed = 25;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
Instance of Symbol 72 MovieClip "stageend" in Frame 60
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.stageframe = 65;
_root.gotoAndStop(65);
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 60
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
_root.stagestart = getTimer();
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 5;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 5;
}
}
this._rotation = this._rotation + (ball_velocityX / (25 + this.buffer));
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 5;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 5;
}
}
if (!collision) {
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 172 MovieClip "collisionbox" in Frame 60
onClipEvent (enterFrame) {
this._x = _root.ball._x + (_root.ball.ball_velocityX / 5);
this._y = _root.ball._y + _root.ball.ball_velocityY;
if ((getTimer() - _root.stagestart) > 20000) {
_root.ball._y = _root.ball._y + 30;
}
}
onClipEvent (load) {
_root.stagestart = getTimer();
this._visible = false;
_root.rockfallspeed = 15;
}
Instance of Symbol 421 MovieClip "garbage" in Frame 60
onClipEvent (enterFrame) {
this.gotoAndStop(1);
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
_root.stagestart = getTimer();
this.caught = true;
this.buffer = 0;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if (((getTimer() - _root.stagestart) / 1000) > 2) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
_root.warning10._visible = false;
_root.warning20._visible = false;
} else if (!warningnomore) {
_root.warning10._visible = true;
_root.warning20._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
}
}
}
onClipEvent (load) {
offscreen = false;
}
Instance of Symbol 429 MovieClip "warning10" in Frame 60
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if (((getTimer() - _root.stagestart) / 1000) > 4) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
_root.warning30._visible = false;
_root.warning40._visible = false;
} else if (!warningnomore) {
_root.warning30._visible = true;
_root.warning40._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 5300) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
_root.warning20._visible = false;
warningnomore = true;
} else if (!warningnomore) {
_root.warning20._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 7000) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
_root.warning30._visible = false;
_root.warning20._visible = false;
} else if (!warningnomore) {
_root.warning30._visible = true;
_root.warning20._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 0) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
return(undefined);
}
_root.warning3._visible = true;
_root.warning4._visible = true;
_root.warning1._visible = true;
_root.warning2._visible = true;
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
offscreen = false;
}
Instance of Symbol 429 MovieClip "warning20" in Frame 60
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 429 MovieClip "warning30" in Frame 60
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 429 MovieClip "warning40" in Frame 60
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 8200) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
_root.warning30._visible = false;
_root.warning40._visible = false;
} else if (!warningnomore) {
_root.warning30._visible = true;
_root.warning40._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 8600) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
_root.warning10._visible = false;
} else if (!warningnomore) {
_root.warning10._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 9450) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 700) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
_root.warning10._visible = false;
_root.warning20._visible = false;
_root.warning30._visible = false;
} else if (!warningnomore) {
_root.warning10._visible = true;
_root.warning20._visible = true;
_root.warning30._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
}
}
}
onClipEvent (load) {
offscreen = false;
warningnomore = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 10400) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
_root.warning40._visible = false;
} else if (!warningnomore) {
_root.warning40._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
offscreen = false;
warningnomore = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 11000) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
_root.warning10._visible = false;
_root.warning20._visible = false;
} else if (!warningnomore) {
_root.warning10._visible = true;
_root.warning20._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
}
}
}
onClipEvent (load) {
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 13000) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 700) < _root.ball._y) && (!warningnomore)) {
_root.warning40._visible = false;
warningnomore = true;
} else if (!warningnomore) {
_root.warning40._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 13150) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 700) < _root.ball._y) && (!warningnomore)) {
_root.warning30._visible = false;
warningnomore = true;
} else if (!warningnomore) {
_root.warning30._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 13300) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 700) < _root.ball._y) && (!warningnomore)) {
_root.warning20._visible = false;
warningnomore = true;
} else if (!warningnomore) {
_root.warning20._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 14000) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
_root.warning10._visible = false;
warningnomore = true;
} else if (!warningnomore) {
_root.warning10._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 15800) {
if (this._y < -600) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 700) < _root.ball._y) && (!warningnomore)) {
_root.warning40._visible = false;
warningnomore = true;
} else if (!warningnomore) {
_root.warning40._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 14800) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
_root.warning30._visible = false;
warningnomore = true;
} else if (!warningnomore) {
_root.warning30._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 14500) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
_root.warning20._visible = false;
warningnomore = true;
} else if (!warningnomore) {
_root.warning20._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 15800) {
if (this._y < -500) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 200) < _root.ball._y) && (!warningnomore)) {
_root.warning20._visible = false;
_root.warning10._visible = false;
warningnomore = true;
} else if (!warningnomore) {
_root.warning20._visible = true;
_root.warning10._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if ((getTimer() - _root.stagestart) > 14500) {
if (this._y < 0) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
_root.warning10._visible = false;
warningnomore = true;
} else if (!warningnomore) {
_root.warning10._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
_root.warning1._visible = false;
_root.warning2._visible = false;
_root.warning3._visible = false;
_root.warning4._visible = false;
}
}
}
onClipEvent (load) {
warningnomore = false;
offscreen = false;
}
Frame 65
fallspeed = 16;
Instance of Symbol 72 MovieClip "stageend" in Frame 65
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.stageframe = 70;
_root.gotoAndStop(70);
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 65
onClipEvent (enterFrame) {
if (this._y < 92) {
this._y = this._y + 2;
}
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
_root.stagestart = getTimer();
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 5;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 5;
}
}
this._rotation = this._rotation + (ball_velocityX / (25 + this.buffer));
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 5;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 5;
}
}
if (!collision) {
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 172 MovieClip "collisionbox" in Frame 65
onClipEvent (enterFrame) {
this._x = _root.ball._x + (_root.ball.ball_velocityX / 5);
this._y = _root.ball._y + _root.ball.ball_velocityY;
}
onClipEvent (load) {
_root.stagestart = getTimer();
this._visible = false;
_root.rockfallspeed = 15;
}
Instance of Symbol 421 MovieClip "garbage" in Frame 65
onClipEvent (enterFrame) {
this.gotoAndStop(1);
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
_root.stagestart = getTimer();
this.caught = true;
this.buffer = 0;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 216 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if (((getTimer() - _root.stagestart) / 1000) > 2) {
if (this._y < -500) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
_root.warning10._visible = false;
} else if (!warningnomore) {
_root.warning10._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
}
}
}
onClipEvent (load) {
offscreen = false;
}
Instance of Symbol 429 MovieClip "warning10" in Frame 65
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 429 MovieClip "warning20" in Frame 65
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 429 MovieClip "warning30" in Frame 65
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 429 MovieClip "warning40" in Frame 65
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 216 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if (((getTimer() - _root.stagestart) / 1000) > 2) {
if (this._y < -500) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
_root.warning30._visible = false;
_root.warning40._visible = false;
} else if (!warningnomore) {
_root.warning30._visible = true;
_root.warning40._visible = true;
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
}
}
}
onClipEvent (load) {
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if (((getTimer() - _root.stagestart) / 1000) > 2) {
if (this._y < -500) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
} else if (!warningnomore) {
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
}
}
}
onClipEvent (load) {
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if (((getTimer() - _root.stagestart) / 1000) > 2) {
if (this._y < -500) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
} else if (!warningnomore) {
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
}
}
}
onClipEvent (load) {
offscreen = false;
}
Instance of Symbol 216 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (offscreen) {
return(undefined);
}
if (_root.ball.replay == false) {
if (((getTimer() - _root.stagestart) / 1000) > 2) {
if (this._y < -500) {
offscreen = true;
this._visible = false;
return(undefined);
}
if (((this._y - 400) < _root.ball._y) && (!warningnomore)) {
warningnomore = true;
} else if (!warningnomore) {
}
this._y = this._y - _root.fallspeed;
}
if (this.hitTest(_root.collisionbox)) {
_root.ball.dead = true;
_root.lines._visible = false;
_root.ball._visible = false;
_root.garbage._visible = false;
_root.explosion.gotoAndPlay(1);
_root.explosion._x = this._x;
_root.explosion._y = this._y;
}
}
}
onClipEvent (load) {
offscreen = false;
}
Instance of Symbol 399 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (((getTimer() - _root.stagestart) / 1000) > 5) {
this._visible = true;
if (this._xscale > 50) {
this._xscale = this._xscale - 1;
this._yscale = this._yscale - 1;
this._x = this._x + (_xscale / 50);
} else {
cancatch = true;
}
if (caughtball) {
this._x = this._x + 5;
}
}
if (_root.ground2.fall && (!caughtball)) {
if (this._y < 165) {
this._x = this._x + 5;
}
}
if (caughtball) {
_root.ball._x = this._x + 25;
_root.ball._y = this._y + 70;
this._x = this._x + 4;
this._y = this._y - 2;
}
if (((!caught) && (this.hitTest(_root.ball))) && (cancatch)) {
_root.ball.noupdate = true;
this.caughtball = true;
}
}
onClipEvent (load) {
caughtball = false;
cancatch = false;
this._visible = false;
}
Instance of Symbol 399 MovieClip "helicopter" in Frame 70
onClipEvent (enterFrame) {
if (noupdate) {
this._y = this._y - 3;
_root.ball.noupdate = false;
return(undefined);
}
_root.ball.noupdate = true;
if ((this._y < 45) && (!noupdate)) {
this._y = this._y + 3;
} else {
noupdate = true;
}
if (this.dead || (dead2)) {
if (this._currentframe == 1) {
if (dead) {
this._y = this._y + 1;
gotoAndPlay (2);
}
if (dead2) {
gotoAndPlay (15);
}
}
_root.ball.dead = true;
_root.ball.noupdate = false;
}
if (_root.ball.buffer > 36) {
this._y = this._y + ((_root.ball.buffer - 36) * 0.1);
}
if (caughtball) {
if (this._x < 0) {
this._x = 1;
}
if (this._x > 500) {
this._x = 499;
}
if (this._y < 0) {
this._y = 1;
}
_root.ball._x = this._x + balloffshift;
_root.ball._y = this._y + 50;
if (this.dead || (this.dead2)) {
return(undefined);
}
}
if ((!caught) && (this.hitTest(_root.ball))) {
_root.ball.noupdate = true;
this.caughtball = true;
}
}
onClipEvent (load) {
caughtball = false;
balloffshift = 0;
noupdate = false;
}
Instance of Symbol 72 MovieClip "stageend" in Frame 70
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox)) {
_root.stageframe = 75;
_root.gotoAndStop(75);
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 70
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 3;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 3;
}
}
this._rotation = this._rotation + (ball_velocityX / (25 + this.buffer));
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 3;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 172 MovieClip "collisionbox" in Frame 70
onClipEvent (enterFrame) {
this._x = _root.ball._x + (_root.ball.ball_velocityX / 5);
this._y = _root.ball._y + _root.ball.ball_velocityY;
if (_root.ball._y < -35) {
_root.ball.dead = true;
_root.garbage.dead = true;
}
}
onClipEvent (load) {
this._visible = false;
_root.rockfallspeed = 15;
}
Instance of Symbol 421 MovieClip in Frame 70
onClipEvent (enterFrame) {
this.gotoAndStop(1);
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
this._rotation = _root.ball._rotation * 25;
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = 0;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 423 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root.helicopter)) {
_root.helicopter.noupdate = true;
_root.bullet2.fired = true;
_root.bullet2._y = _root.helicopter._y + 20;
}
}
Instance of Symbol 216 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 66) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
}
if (fall) {
this._y = this._y + 14;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 3000) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 66) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
}
if (fall) {
this._y = this._y + 14;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 3000) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.trigger.trigger) {
this._x = this._x + 3;
_root.ball._x = _root.ball._x + 3;
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
this._y = this._y + 0.5;
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 66) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
}
if (fall) {
this._y = this._y + 14;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 30) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (_root.trigger.trigger) {
this._x = this._x - 5;
_root.ball._x = _root.ball._x - 5;
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 66) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
}
if (fall) {
this._y = this._y + 14;
}
if (this._x >= 450) {
this._y = this._y - 5;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 30) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (this._x < 450) {
this._x = this._x + 5;
_root.ball._x = _root.ball._x + 5;
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip "trigger" in Frame 70
onClipEvent (enterFrame) {
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (this.hitTest(_root.collisionbox)) {
if (_root.ball.buffer > 66) {
this.caught = true;
this.buffer = _root.ball.buffer;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + (_root.ball.bufferinc * 2);
_root.collisionbox._xscale = _root.collisionbox._xscale + (_root.ball.scalefactor + 10);
_root.collisionbox._yscale = _root.collisionbox._yscale + (_root.ball.scalefactor + 10);
return(undefined);
}
}
if (fall) {
this._y = this._y + 14;
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.collisionbox) && (_root.spring.jump != true)) {
if (_root.ball.ball_velocityY > 3000) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.collisionbox._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
trigger = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
trigger = false;
}
Instance of Symbol 433 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.trigger.trigger) {
this._y = this._y + 0.75;
}
if (this._y > 530) {
this._visible = false;
this._x = 2500;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 435 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.trigger.trigger) {
this._x = this._x - 0.85;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 429 MovieClip "warning40" in Frame 70
onClipEvent (enterFrame) {
if (_root.trigger.trigger) {
if (thetimer == 0) {
_visible = true;
thetimer = getTimer();
}
if ((getTimer() - thetimer) > 2000) {
_visible = false;
}
}
}
onClipEvent (load) {
_visible = false;
thetimer = 0;
}
Instance of Symbol 86 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if ((_root.ball._x + _root.ball._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.ball._width / 2)) - 1;
_root.ball.sidecollision = true;
}
}
}
}
Instance of Symbol 86 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if ((_root.ball._x + _root.ball._width) >= (this._x - this._width)) {
_root.ball._x = (this._x - _root.ball._width) - 1;
_root.ball.sidecollision = true;
}
}
}
}
Instance of Symbol 72 MovieClip "stageend" in Frame 75
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.stageframe = 80;
_root.gotoAndStop(80);
stopAllSounds();
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 75
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 3;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 3;
}
}
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 3;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 86 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if ((_root.ball._x - _root.ball._width) <= (this._x + (this._width / 2))) {
_root.ball._x = (this._x + (_root.ball._width / 2)) + 15;
_root.ball.sidecollision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
}
Instance of Symbol 86 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if ((_root.ball._x - _root.ball._width) <= (this._x + (this._width / 2))) {
_root.ball._x = (this._x + (_root.ball._width / 2)) + 15;
_root.ball.sidecollision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
}
Instance of Symbol 86 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if ((_root.ball._x - _root.ball._width) <= (this._x + (this._width / 2))) {
_root.ball._x = (this._x + (_root.ball._width / 2)) + 15;
_root.ball.sidecollision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
}
Instance of Symbol 421 MovieClip "garbage" in Frame 75
onClipEvent (enterFrame) {
if (this.caught) {
ballx = _root.ball._x;
bally = _root.ball._y;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + (_root.ball.ball_velocityY / 5);
return(undefined);
}
if (this.fall) {
if (this._y < 265) {
this._y = this._y + 15;
// unexpected jump
}
this.dead = true;
this._rotation = 24;
return(undefined);
}
if (this.dead) {
} else if (!this.pullswitch) {
distance = Math.round(Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)));
if (distance <= 50) {
if (!this.running) {
if (this._x < _root.ball._x) {
gotoAndPlay (5);
} else {
gotoAndPlay (15);
}
this.running = true;
}
}
if (this.running) {
if (this._x < _root.ball._x) {
if (this._x < 45) {
this.fall = true;
}
this._x = this._x - 2;
} else if (this._x < 360) {
this._x = this._x + 2;
}
} else {
this.running = false;
gotoAndStop (1);
}
if (this.hitTest(_root.ball)) {
this.caught = true;
this.buffer = 0;
this.rot0 = _root.ball._rotation;
_root.ball.buffer = _root.ball.buffer + _root.ball.bufferinc;
_root.collisionbox._xscale = _root.collisionbox._xscale + _root.ball.scalefactor;
_root.collisionbox._yscale = _root.collisionbox._yscale + _root.ball.scalefactor;
gotoAndStop (1);
}
if (this.hitTest(_root.fallingobj1)) {
gotoAndPlay (60);
this.dead = true;
}
if (this.hitTest(_root.switch1)) {
gotoAndPlay (25);
this.pullswitch = true;
}
}
}
onClipEvent (load) {
this.dead = false;
this.running = false;
this.pullswitch = false;
this.fall = false;
this.caught = false;
this.buffer = 0;
this.rot0 = 0;
}
Instance of Symbol 216 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (movingup) {
if (totalmovement != 0) {
this._y = this._y + 5;
totalmovement = totalmovement - 5;
} else if (stopTime == 0) {
stopTime = getTimer();
} else if ((getTimer() - stopTime) > 1000) {
movingup = false;
stopTime = 0;
}
} else {
this._y = this._y - 5;
totalmovement = totalmovement + 5;
if (totalmovement == 85) {
movingup = true;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y < _root.ball._y) {
_root.ball.dead = true;
} else {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
movingup = true;
totalmovement = 85;
stopTime = 0;
}
Instance of Symbol 216 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 439 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (movingup) {
if (totalmovement != 0) {
this._y = this._y + 5;
totalmovement = totalmovement - 5;
} else if (stopTime == 0) {
stopTime = getTimer();
} else if ((getTimer() - stopTime) > 1000) {
movingup = false;
stopTime = 0;
}
} else {
this._y = this._y - 5;
totalmovement = totalmovement + 5;
if (totalmovement == 85) {
movingup = true;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y < _root.ball._y) {
_root.ball.dead = true;
} else {
_root.ball._y = ((this._y - (this._height / 4)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
movingup = true;
totalmovement = 0;
stopTime = 0;
}
Instance of Symbol 216 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
_visible = false;
}
Instance of Symbol 216 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (_root.ball.ball_velocityY > 50) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (this.hitTest(_root.ball)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
_visible = false;
}
Instance of Symbol 433 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (_root.trigger.trigger) {
this._y = this._y + 0.25;
}
if (this._y > 530) {
this._visible = false;
this._x = 2500;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 86 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (this._visible && (_root.ball.replay == false)) {
if (this.hitTest(_root.ball)) {
if ((_root.ball._x + _root.ball._width) >= (this._x - (this._width / 2))) {
_root.ball._x = (this._x - (_root.ball._width / 2)) - 8;
_root.ball.sidecollision = true;
}
}
}
if (_root.block1.myturn) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 442 MovieClip "tunnel2" in Frame 80
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 72 MovieClip "stageend" in Frame 80
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.block19._alpha > 0) {
_root.stageframe = 85;
_root.gotoAndStop(85);
}
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 80
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 3;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 3;
}
}
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 3;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 216 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip "block1" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 100) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block2.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = true;
this._alpha = 0;
}
Instance of Symbol 445 MovieClip in Frame 80
onClipEvent (load) {
_root.apearspeed = 4;
_root.time = 600;
}
Instance of Symbol 216 MovieClip "block2" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 100) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block3.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block3" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 100) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block4.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block4" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 100) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block5.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block5" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 175) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block6.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block6" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 175) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block7.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block7" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 175) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block8.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block8" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 175) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block9.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block9" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 100) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block10.myturn = true;
} else if (((getTimer() - this.apeartime) > (_root.time * 2)) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block10" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 175) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block11.myturn = true;
} else if (((getTimer() - this.apeartime) > (_root.time * 2)) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block11" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 100) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block12.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block12" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 175) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block13.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block13" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 175) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block14.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block14" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 100) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block15.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block15" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 100) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block16.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block16" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 100) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block17.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block17" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 100) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block18.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block18" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 175) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block19.myturn = true;
} else if (((getTimer() - this.apeartime) > _root.time) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 216 MovieClip "block19" in Frame 80
onClipEvent (enterFrame) {
if (myturn) {
if ((this._alpha > 100) && (this.apeartime == 0)) {
this.apeartime = getTimer();
_root.block1.myturn = true;
} else if (((getTimer() - this.apeartime) > (_root.time * 2)) && (this.apeartime != 0)) {
this.myturn = false;
this._alpha = 0;
_root.tunnel1._alpha = 0;
_root.tunnel2._alpha = 0;
this.apeartime = 0;
} else {
this._alpha = this._alpha + _root.apearspeed;
_root.tunnel1._alpha = _root.tunnel1._alpha + _root.apearspeed;
_root.tunnel2._alpha = _root.tunnel2._alpha + _root.apearspeed;
}
}
if (_root.ball.replay == false) {
if ((this._alpha != 0) && (this.hitTest(_root.ball))) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
this.apeartime = 0;
this.myturn = false;
this._alpha = 0;
}
Instance of Symbol 447 MovieClip "tunnel1" in Frame 80
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 433 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (_root.trigger.trigger) {
this._y = this._y + 0.25;
}
if (this._y > 530) {
this._visible = false;
this._x = 2500;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 72 MovieClip "stageend" in Frame 85
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.stageframe = 90;
_root.gotoAndStop(90);
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 85
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 3;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 3;
}
}
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 3;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 216 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 445 MovieClip in Frame 85
onClipEvent (load) {
_root.apearspeed = 4;
_root.time = 600;
}
Instance of Symbol 216 MovieClip "movingblock" in Frame 85
onClipEvent (enterFrame) {
if (moveright) {
if (this._x < 333) {
this._x = this._x + 5;
} else {
moveright = false;
}
} else if (this._x > 130) {
this._x = this._x - 5;
} else {
moveright = true;
}
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (_root.ball.ball_velocityY > 30) {
_root.ball.dead = true;
_root.ball._y = ((this._y - this._height) - _root.ball.ball_velocityY) - 16;
return(undefined);
}
if (this._x < 450) {
if (this.moveright) {
_root.ball._x = _root.ball._x + 5;
} else {
_root.ball._x = _root.ball._x - 5;
}
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
moveright = false;
}
Instance of Symbol 216 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 85
onClipEvent (enterFrame) {
}
onClipEvent (load) {
}
Instance of Symbol 216 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (spin) {
if (totalrot == 150) {
totalrot = 0;
spin = false;
} else {
this._rotation = this._rotation - 30;
totalrot = totalrot + 30;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y > _root.ball._y) {
this._rotation = this._rotation - 30;
spin = true;
_root.ball.ball_velocityY = 55;
_root.ball.ball_velocityX = -132;
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
spin = false;
totalrot = 0;
}
Instance of Symbol 216 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (spin) {
if (totalrot == 150) {
totalrot = 0;
spin = false;
} else {
this._rotation = this._rotation + 30;
totalrot = totalrot + 30;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
this._rotation = this._rotation + 30;
spin = true;
_root.ball.ball_velocityY = -32;
_root.ball.ball_velocityX = 81;
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
spin = false;
totalrot = 0;
}
Instance of Symbol 216 MovieClip in Frame 85
onClipEvent (enterFrame) {
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip "movingblock2" in Frame 85
onClipEvent (enterFrame) {
if (moveright) {
if (this._x < 250) {
this._x = this._x + 5;
} else {
moveright = false;
}
} else if (this._x > 0) {
this._x = this._x - 5;
} else {
moveright = true;
}
if (this.caught) {
if (_root.ball.dead) {
if (this._xscale >= 0) {
this._xscale = this._xscale - 18;
this._yscale = this._yscale - 18;
}
}
ballx = _root.ball._x;
bally = _root.ball._y;
this._rotation = _root.ball._rotation;
rotx = (Math.cos(this._rotation + this.rot0) * ballx) - (Math.sin(this._rotation + this.rot0) * bally);
roty = (Math.sin(this._rotation + this.rot0) * ballx) + (Math.cos(this._rotation + this.rot0) * bally);
rotx = ((rotx * 0.01) * this.buffer) * 0.1;
roty = ((roty * 0.01) * this.buffer) * 0.1;
this._x = (_root.ball._x + rotx) + (_root.ball.ball_velocityX / 5);
this._y = (_root.ball._y + roty) + _root.ball.ball_velocityY;
this._rotation = _root.ball._rotation * 50;
return(undefined);
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._x < 450) {
if (this.moveright) {
_root.ball._x = _root.ball._x + 5;
} else {
_root.ball._x = _root.ball._x - 5;
}
}
if ((_root.ball.ball_velocityY < 1) && (_root.ball.ball_velocityY > -1)) {
this._rotation = this._rotation + 30;
spin = true;
_root.ball.ball_velocityY = -62;
_root.ball.ball_velocityX = 81;
_root.ball.collision = true;
return(undefined);
}
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
moveright = true;
}
Instance of Symbol 216 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (spin) {
if (totalrot == 150) {
totalrot = 0;
spin = false;
} else {
this._rotation = this._rotation - 30;
totalrot = totalrot + 30;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this.hitTest(_root.ball)) {
this._rotation = this._rotation + 30;
spin = true;
_root.ball.ball_velocityY = -43;
_root.ball.ball_velocityX = -71;
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
spin = false;
totalrot = 0;
}
Instance of Symbol 433 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (_root.trigger.trigger) {
this._y = this._y + 0.25;
}
if (this._y > 530) {
this._visible = false;
this._x = 2500;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 433 MovieClip in Frame 85
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Frame 88
_root.xrot = 0;
_root.yrot = 0;
Instance of Symbol 449 MovieClip in Frame 88
onClipEvent (load) {
cubeData = [{colour:16750848, Sides:[{x:-50, y:50, z:50}, {x:-50, y:50, z:-50}, {x:50, y:50, z:-50}, {x:50, y:50, z:50}]}, {colour:16750848, Sides:[{x:-50, y:-50, z:-50}, {x:-50, y:-50, z:50}, {x:50, y:-50, z:50}, {x:50, y:-50, z:-50}]}, {colour:16746496, Sides:[{x:50, y:-50, z:50}, {x:50, y:50, z:50}, {x:50, y:50, z:-50}, {x:50, y:-50, z:-50}]}, {colour:16746496, Sides:[{x:-50, y:-50, z:-50}, {x:-50, y:50, z:-50}, {x:-50, y:50, z:50}, {x:-50, y:-50, z:50}]}, {colour:16755200, Sides:[{x:-50, y:50, z:-50}, {x:-50, y:-50, z:-50}, {x:50, y:-50, z:-50}, {x:50, y:50, z:-50}]}, {colour:16755200, Sides:[{x:50, y:50, z:50}, {x:50, y:-50, z:50}, {x:-50, y:-50, z:50}, {x:-50, y:50, z:50}]}];
Objekt3d = function (data3d) {
this.data3d = data3d;
this.move3d = function (x, y, z) {
var k = 0;
while (k < this.data3d.length) {
var i = 0;
while (i < this.data3d[k].Sides.length) {
this.data3d[k].Sides[i].x = this.data3d[k].Sides[i].x + x;
this.data3d[k].Sides[i].y = this.data3d[k].Sides[i].y + y;
this.data3d[k].Sides[i].z = this.data3d[k].Sides[i].z + z;
i++;
}
k++;
}
};
this.scale3d = function (x, y, z) {
var k = 0;
while (k < this.data3d.length) {
var i = 0;
while (i < this.data3d[k].Sides.length) {
this.data3d[k].Sides[i].x = this.data3d[k].Sides[i].x * x;
this.data3d[k].Sides[i].y = this.data3d[k].Sides[i].y * y;
this.data3d[k].Sides[i].z = this.data3d[k].Sides[i].z * z;
i++;
}
k++;
}
};
this.rotate3d = function (xa, ya) {
var rad = (Math.PI/180);
var px;
var py;
var pz;
var sin_xa;
var sin_ya;
var cos_xa;
var cos_ya;
var tempz;
var k = 0;
while (k < this.data3d.length) {
var i = 0;
while (i < this.data3d[k].Sides.length) {
px = this.data3d[k].Sides[i].x;
py = this.data3d[k].Sides[i].y;
pz = this.data3d[k].Sides[i].z;
cos_ya = Math.cos(ya * rad);
sin_ya = Math.sin(ya * rad);
cos_xa = Math.cos(xa * rad);
sin_xa = Math.sin(xa * rad);
tempz = (pz * cos_ya) - (px * sin_ya);
this.data3d[k].Sides[i].x = (pz * sin_ya) + (px * cos_ya);
this.data3d[k].Sides[i].y = (py * cos_xa) - (tempz * sin_xa);
this.data3d[k].Sides[i].z = (py * sin_xa) + (tempz * cos_xa);
i++;
}
k++;
}
};
};
Kamera3d = function (Objekt3d, distance, angle, loc) {
this.Objekt3d = Objekt3d;
this.distance = distance;
this.angle = angle;
this.loc = loc;
this.mc = this.create();
};
Kamera3d.prototype.create = function () {
return(this.loc.createEmptyMovieClip("camMC" + Stage.camNum, Stage.camNum++));
};
Kamera3d.prototype.render = function () {
this.mc.clear();
var z;
var pers;
var sx;
var sy;
var tx;
var ty;
var polygon;
var k = 0;
while (k < this.Objekt3d.data3d.length) {
polygon = [];
var i = 0;
while (i < this.Objekt3d.data3d[k].Sides.length) {
z = this.Objekt3d.data3d[k].Sides[i].z + this.distance;
pers = this.angle / z;
sx = this.Objekt3d.data3d[k].Sides[i].x * pers;
sy = this.Objekt3d.data3d[k].Sides[i].y * pers;
polygon.push({sx:sx, sy:sy});
i++;
}
z = ((polygon[1].sx - polygon[0].sx) * (polygon[2].sy - polygon[0].sy)) - ((polygon[1].sy - polygon[0].sy) * (polygon[2].sx - polygon[0].sx));
if (z > 0) {
this.mc.beginFill(this.Objekt3d.data3d[k].colour, this.Objekt3d.data3d[k].colour);
this.mc.moveTo(polygon[0].sx, polygon[0].sy);
this.mc.lineTo(polygon[1].sx, polygon[1].sy);
this.mc.lineTo(polygon[2].sx, polygon[2].sy);
this.mc.lineTo(polygon[3].sx, polygon[3].sy);
this.mc.lineTo(polygon[0].sx, polygon[0].sy);
}
k++;
}
};
Cube3d = new Objekt3d(cubeData);
Szene3D = new Kamera3d(Cube3d, 200, 400, _root);
Szene3D.render();
Szene3D.mc._x = 275;
Szene3D.mc._y = 175;
totalrot = 0;
_root.onEnterFrame = function () {
if (_root.ball._x < 225) {
if (totalrot > -45) {
Cube3d.rotate3d(0, 10);
totalrot = totalrot - 10;
}
} else if (_root.ball._x > 275) {
if (totalrot < 45) {
Cube3d.rotate3d(0, -10);
totalrot = totalrot + 10;
}
} else if (totalrot > 0) {
Cube3d.rotate3d(0, 10);
totalrot = totalrot - 10;
} else if (totalrot < 0) {
Cube3d.rotate3d(0, -10);
totalrot = totalrot + 10;
}
Szene3D.render();
};
}
Instance of Symbol 451 MovieClip in Frame 88
onClipEvent (enterFrame) {
}
onClipEvent (load) {
totalnodes = 7;
if ((currentNode == _root.node1) && (goalNode == _root.node2)) {
travelList[0] = path1;
} else if ((currentNode == _root.node1) && (goalNode == _root.node3)) {
travelList[0] = path2;
} else if ((currentNode == _root.node1) && (goalNode == _root.node4)) {
travelList[0] = path1;
travelList[1] = path3;
} else if ((currentNode == _root.node1) && (goalNode == _root.node5)) {
travelList[0] = path1;
travelList[1] = path3;
travelList[2] = path5;
}
_global.bestfirst = function (badguy) {
startx = badguy._x;
starty = badguy._y;
goalx = _root.ball._x;
goaly = _root.ball._y;
foundgoal = false;
currentnode = 0;
openlist = new Array();
closedlist = new Array();
currentnode = _root.node1;
openlistsize = 0;
closedlistsize = 0;
if (currentnode) {
while (!foundgoal) {
if (currentnode == node2) {
foundgoal = true;
}
j = 0;
while (j < currentnode.connectedNodes.length) {
foundnode = true;
z = 0;
while (z < openlistsize) {
if (openlist[z] == currentnode.connectedNodes[j]) {
foundnode = true;
}
z++;
}
if (!foundnode) {
openlist.push(currentnode.connectedNodes[j]);
}
j++;
}
}
}
};
}
Instance of Symbol 453 MovieClip "path3" in Frame 88
onClipEvent (load) {
dx = 0;
dy = -1;
_visible = false;
}
Instance of Symbol 453 MovieClip "path2" in Frame 88
onClipEvent (load) {
dx = 0;
dy = -1;
_visible = false;
}
Instance of Symbol 455 MovieClip "node1" in Frame 88
onClipEvent (load) {
connectedNodes = new Array();
connectedNodes[0] = _root.node2;
connectedNodes[1] = _root.node3;
heuristicCost = 1;
}
Instance of Symbol 453 MovieClip "path1" in Frame 88
onClipEvent (load) {
dx = 1;
dy = 0;
_visible = false;
}
Instance of Symbol 72 MovieClip "stageend" in Frame 90
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.stageframe = 95;
_root.gotoAndStop(95);
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 90
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 3;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 3;
}
}
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 3;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 216 MovieClip in Frame 90
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle1.activate)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 445 MovieClip in Frame 90
onClipEvent (load) {
_root.apearspeed = 4;
_root.time = 600;
}
Instance of Symbol 216 MovieClip in Frame 90
onClipEvent (enterFrame) {
if (spin) {
if (totalrot == 150) {
totalrot = 0;
spin = false;
} else {
this._rotation = this._rotation + 30;
totalrot = totalrot + 30;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
this._rotation = this._rotation + 30;
spin = true;
_root.ball.ball_velocityY = -27;
_root.ball.ball_velocityX = 81;
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
spin = false;
totalrot = 0;
}
Instance of Symbol 439 MovieClip in Frame 90
onClipEvent (enterFrame) {
if (movingup) {
if (totalmovement != 0) {
this._y = this._y + 7;
totalmovement = totalmovement - 7;
} else if (stopTime == 0) {
stopTime = getTimer();
} else if ((getTimer() - stopTime) > 1000) {
movingup = false;
stopTime = 0;
}
} else {
this._y = this._y - 7;
totalmovement = totalmovement + 7;
if (totalmovement > 85) {
movingup = true;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y < _root.ball._y) {
_root.ball.dead = true;
} else {
_root.ball._y = ((this._y - (this._height / 4)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
movingup = true;
totalmovement = 0;
stopTime = 0;
}
Instance of Symbol 216 MovieClip "paddle1" in Frame 90
onClipEvent (enterFrame) {
if (spin) {
if (totalrot == 150) {
totalrot = 0;
spin = false;
} else {
this._rotation = this._rotation - 30;
totalrot = totalrot + 30;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
this._rotation = this._rotation - 30;
spin = true;
_root.ball.ball_velocityY = -28;
_root.ball.ball_velocityX = 0;
activate = true;
} else {
activate = false;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
spin = false;
totalrot = 0;
activate = false;
}
Instance of Symbol 216 MovieClip in Frame 90
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle1.activate)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 90
onClipEvent (enterFrame) {
if (spin) {
if (totalrot == 150) {
totalrot = 0;
spin = false;
} else {
this._rotation = this._rotation + 30;
totalrot = totalrot + 30;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
this._rotation = this._rotation + 30;
spin = true;
_root.ball.ball_velocityY = -27;
_root.ball.ball_velocityX = 81;
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
spin = false;
totalrot = 0;
}
Instance of Symbol 216 MovieClip in Frame 90
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle2.activate)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 439 MovieClip in Frame 90
onClipEvent (enterFrame) {
if (movingup) {
if (totalmovement != 0) {
this._y = this._y + 6.5;
totalmovement = totalmovement - 6.5;
} else if (stopTime == 0) {
stopTime = getTimer();
} else if ((getTimer() - stopTime) > 1000) {
movingup = false;
stopTime = 0;
}
} else {
this._y = this._y - 6.5;
totalmovement = totalmovement + 6.5;
if (totalmovement > 85) {
movingup = true;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y < _root.ball._y) {
_root.ball.dead = true;
} else {
_root.ball._y = ((this._y - (this._height / 4)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
movingup = true;
totalmovement = 0;
stopTime = 0;
}
Instance of Symbol 216 MovieClip "paddle2" in Frame 90
onClipEvent (enterFrame) {
if (spin) {
if (totalrot == 150) {
totalrot = 0;
spin = false;
} else {
this._rotation = this._rotation - 30;
totalrot = totalrot + 30;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
this._rotation = this._rotation - 30;
spin = true;
_root.ball.ball_velocityY = -28;
_root.ball.ball_velocityX = 0;
activate = true;
} else {
activate = false;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
spin = false;
totalrot = 0;
activate = false;
}
Instance of Symbol 216 MovieClip in Frame 90
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
if ((_root.ball.ball_velocityY < 1) && (_root.ball.ball_velocityY > -1)) {
this._rotation = this._rotation + 30;
spin = true;
_root.ball.ball_velocityY = -62;
_root.ball.ball_velocityX = 81;
_root.ball.collision = true;
return(undefined);
}
}
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle2.activate)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 72 MovieClip "stageend" in Frame 95
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.stageframe = 100;
_root.gotoAndStop(100);
}
}
}
Instance of Symbol 25 MovieClip "ball" in Frame 95
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 3;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 3;
}
}
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 3;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 445 MovieClip in Frame 95
onClipEvent (load) {
_root.apearspeed = 4;
_root.time = 600;
}
Instance of Symbol 216 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (spin) {
if (totalrot == 150) {
totalrot = 0;
spin = false;
} else {
this._rotation = this._rotation + 30;
totalrot = totalrot + 30;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
this._rotation = this._rotation + 30;
spin = true;
_root.ball.ball_velocityY = -15;
_root.ball.ball_velocityX = 150;
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
spin = false;
totalrot = 0;
}
Instance of Symbol 216 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
if (firstcollision) {
firstcollision = false;
_root.ball.ball_velocityX = 35;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
firstcollision = true;
}
Instance of Symbol 216 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle2.activate)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle2.activate)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle2.activate)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle2.activate)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle2.activate)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 457 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this._x < 500) {
this._x = this._x + 4.5;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 457 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this._x < 500) {
this._x = this._x + 7;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 457 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this._x < 500) {
this._x = this._x + 6;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 457 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this._x > 0) {
this._x = this._x - 7;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 457 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this._x > 0) {
this._x = this._x - 4.35;
}
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 462 MovieClip "bar" in Frame 100
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
i = 0;
if (this.collidebox.hitTest(_root.ball)) {
_root.ball._x = _root.ball._x - _root.ball.ball_velocityX;
_root.ball._y = _root.ball._y - _root.ball.ball_velocityY;
i++;
if (i > 20) {
}
} else {
do {
if (!this.hitTest(_root.ball)) {
break;
}
_root.ball._x = _root.ball._x - _root.ball.ball_velocityX;
_root.ball._y = _root.ball._y - _root.ball.ball_velocityY;
i++;
} while (i <= 20);
}
} else if (_root.baddy1.dead) {
if (_root.ball.hitTest(_root.theswitch)) {
if (this._x > (195 + (_width / 2))) {
this._x = this._x - speed;
speed = speed + 1;
} else {
this._x = 195 + (_width / 2);
speed = 1;
}
} else if (speed < 15) {
this._x = this._x + speed;
speed = speed + 1;
}
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 491 MovieClip "baddy2" in Frame 100
onClipEvent (load) {
location = 0;
goalX = 0;
goalY = 0;
getReadyToFireTimer = 0;
randomwait = 0;
gotoAndStop (1);
state = "stop";
alerttimer = 0;
patroltime = 2000;
velx = 5;
vely = 5;
pathFind = function () {
if (location == 0) {
targetRotation = getAngle(_x, _root.point0._x, _y, _root.point0._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
if (this.collidebox2.hitTest(_root.point0)) {
location = 1;
}
} else if (location == 1) {
targetRotation = getAngle(_x, _root.point1._x, _y, _root.point1._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
if (this.collidebox2.hitTest(_root.point1)) {
if (_root.ball._x < this._x) {
location = 2;
} else {
location = 3;
}
}
} else if (location == 2) {
targetRotation = getAngle(_x, _root.point2._x, _y, _root.point2._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
if (this.collidebox2.hitTest(_root.point2)) {
if (_root.ball._y < this._y) {
location = 4;
} else {
location = 5;
}
}
} else if (location == 3) {
targetRotation = getAngle(_x, _root.point3._x, _y, _root.point3._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
if (this.collidebox2.hitTest(_root.point3)) {
if (_root.ball._y > this._y) {
location = 6;
} else {
location = 2;
}
}
} else if (location == 4) {
targetRotation = getAngle(_x, _root.point4._x, _y, _root.point4._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
if (this.collidebox2.hitTest(_root.point4)) {
if (_root.ball._x < _root.bar2._x) {
location = 2;
} else {
location = 7;
}
}
} else if (location == 5) {
targetRotation = getAngle(_x, _root.point5._x, _y, _root.point5._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
if (this.collidebox2.hitTest(_root.point5)) {
if (_root.ball._y > _root.point3._y) {
location = 6;
} else {
location = 2;
}
}
} else if (location == 6) {
targetRotation = getAngle(_x, _root.point6._x, _y, _root.point6._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
if (this.collidebox2.hitTest(_root.point6)) {
if (_root.ball._y > _root.point3._y) {
location = 5;
} else {
location = 3;
}
}
} else if (location == 7) {
targetRotation = getAngle(_x, _root.point7._x, _y, _root.point7._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
if (this.collidebox2.hitTest(_root.point7)) {
if (_root.ball._x < _root.bar2._x) {
location = 4;
} else {
location = 1;
}
}
}
};
smartRotation = function (currentRotation, targetRotation, rotationAmount) {
if (Math.abs(currentRotation - targetRotation) <= rotationAmount) {
currentRotation = targetRotation;
} else if (currentRotation != targetRotation) {
if ((currentRotation >= 0) && (targetRotation >= 0)) {
if (currentRotation > targetRotation) {
currentRotation = currentRotation - rotationAmount;
} else if (currentRotation < targetRotation) {
currentRotation = currentRotation + rotationAmount;
}
} else if ((currentRotation < 0) && (targetRotation < 0)) {
if (currentRotation > targetRotation) {
currentRotation = currentRotation - rotationAmount;
} else if (currentRotation < targetRotation) {
currentRotation = currentRotation + rotationAmount;
}
} else if ((currentRotation < 0) && (targetRotation >= 0)) {
if ((Math.abs(currentRotation) + Math.abs(targetRotation)) <= 180) {
currentRotation = currentRotation + rotationAmount;
} else if ((Math.abs(currentRotation) + Math.abs(targetRotation)) > 180) {
currentRotation = currentRotation - rotationAmount;
}
} else if ((currentRotation >= 0) && (targetRotation < 0)) {
if ((Math.abs(currentRotation) + Math.abs(targetRotation)) < 180) {
currentRotation = currentRotation - rotationAmount;
} else if ((Math.abs(currentRotation) + Math.abs(targetRotation)) >= 180) {
currentRotation = currentRotation + rotationAmount;
}
}
}
return(currentRotation);
};
getAngle = function (x1, x2, y1, y2) {
velx = (getAngle_delta_x = x1 - x2);
vely = (getAngle_delta_y = y1 - y2);
vectorlength = Math.sqrt((velx * velx) + (vely * vely));
if (vectorlength == 0) {
vectorlength = 0.0001;
}
velx = velx * (1 / vectorlength);
vely = vely * (1 / vectorlength);
getAngle_rotation = (-Math.atan2(getAngle_delta_x, getAngle_delta_y)) / (Math.PI/180);
return(getAngle_rotation);
};
turnSpeed = 7;
}
onClipEvent (enterFrame) {
if (this._currentframe > 50) {
return(undefined);
}
if (this.dead) {
gotoAndPlay (50);
return(undefined);
}
if ((state != "fire") && (this.hitTest(_root.ball))) {
state = "attack";
if (this._currentframe == 1) {
getReadyToFireTimer = getTimer();
randomwait = random(2000) + 2000;
this.gotoAndPlay(2);
}
alerttimer = getTimer();
}
if (state == "attack") {
if ((getTimer() - getReadyToFireTimer) > randomwait) {
state = "fire";
this.gotoAndPlay(15);
}
pathFind();
this._y = this._y - (vely * 2.5);
this._x = this._x - (velx * 2.5);
}
if (state == "fire") {
if (this._currentframe == 24) {
_root.splat = new Sound();
_root.playsound = false;
_root.splat.attachSound("fire");
_root.splat.start(_root.splatoffset);
_root.bullet2._x = this._x;
_root.bullet2._y = this._y;
_root.bullet2.velx = -velx;
_root.bullet2.vely = -vely;
}
targetRotation = getAngle(_x, _root.ball._x, _y, _root.ball._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
if (this._currentframe == 40) {
state = "attack";
getReadyToFireTimer = getTimer();
randomwait = random(1350) + 500;
this.gotoAndPlay(2);
}
}
while (_root.wall2.hitTest(this.collidebox2)) {
this._x = this._x - 1;
}
while (_root.wall3.hitTest(this.collidebox2)) {
this._x = this._x + 1;
}
while (_root.wall4.hitTest(this.collidebox2)) {
this._y = this._y - 1;
}
while (_root.wall5.hitTest(this.collidebox2)) {
this._y = this._y + 1;
}
while (_root.ball.hitTest(this.collidebox2) && (!_root.ball.dead)) {
this._x = this._x + velx;
this._y = this._y + vely;
}
if (_root.bar.smallbox.hitTest(this.collidebox2)) {
this._x = this._x - 10;
if (this.collidebox2.hitTest(_root.wall3)) {
this.dead = true;
}
}
}
Instance of Symbol 493 MovieClip "spikecollisionbox" in Frame 100
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 462 MovieClip "bar2" in Frame 100
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
i = 0;
do {
if (!this.hitTest(_root.ball)) {
break;
}
_root.ball._x = _root.ball._x - _root.ball.ball_velocityX;
_root.ball._y = _root.ball._y - _root.ball.ball_velocityY;
i++;
} while (i <= 20);
} else if (_root.baddy1.dead) {
this._y = this._y - speed;
speed = speed + 1;
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 495 MovieClip "point0" in Frame 100
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 495 MovieClip "point1" in Frame 100
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 495 MovieClip "point2" in Frame 100
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 495 MovieClip "point3" in Frame 100
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 495 MovieClip "point4" in Frame 100
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 495 MovieClip "point5" in Frame 100
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 495 MovieClip "point6" in Frame 100
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 495 MovieClip "point7" in Frame 100
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 511 MovieClip "baddy1" in Frame 100
onClipEvent (load) {
goalX = 0;
goalY = 0;
getReadyToFireTimer = 0;
randomwait = 0;
gotoAndStop (1);
state = "stop";
alerttimer = 0;
patroltime = 2000;
velx = 5;
vely = 5;
slide = 1;
smartRotation = function (currentRotation, targetRotation, rotationAmount) {
if (Math.abs(currentRotation - targetRotation) <= rotationAmount) {
currentRotation = targetRotation;
} else if (currentRotation != targetRotation) {
if ((currentRotation >= 0) && (targetRotation >= 0)) {
if (currentRotation > targetRotation) {
currentRotation = currentRotation - rotationAmount;
} else if (currentRotation < targetRotation) {
currentRotation = currentRotation + rotationAmount;
}
} else if ((currentRotation < 0) && (targetRotation < 0)) {
if (currentRotation > targetRotation) {
currentRotation = currentRotation - rotationAmount;
} else if (currentRotation < targetRotation) {
currentRotation = currentRotation + rotationAmount;
}
} else if ((currentRotation < 0) && (targetRotation >= 0)) {
if ((Math.abs(currentRotation) + Math.abs(targetRotation)) <= 180) {
currentRotation = currentRotation + rotationAmount;
} else if ((Math.abs(currentRotation) + Math.abs(targetRotation)) > 180) {
currentRotation = currentRotation - rotationAmount;
}
} else if ((currentRotation >= 0) && (targetRotation < 0)) {
if ((Math.abs(currentRotation) + Math.abs(targetRotation)) < 180) {
currentRotation = currentRotation - rotationAmount;
} else if ((Math.abs(currentRotation) + Math.abs(targetRotation)) >= 180) {
currentRotation = currentRotation + rotationAmount;
}
}
}
return(currentRotation);
};
getAngle = function (x1, x2, y1, y2) {
velx = (getAngle_delta_x = x1 - x2);
vely = (getAngle_delta_y = y1 - y2);
vectorlength = Math.sqrt((velx * velx) + (vely * vely));
if (vectorlength == 0) {
vectorlength = 0.0001;
}
velx = velx * (1 / vectorlength);
vely = vely * (1 / vectorlength);
getAngle_rotation = (-Math.atan2(getAngle_delta_x, getAngle_delta_y)) / (Math.PI/180);
return(getAngle_rotation);
};
turnSpeed = 7;
}
onClipEvent (enterFrame) {
if (this._currentframe > 50) {
return(undefined);
}
if (this.dead) {
gotoAndPlay (50);
return(undefined);
}
if ((getTimer() - alerttimer) > patroltime) {
state = "stop";
this.gotoAndStop(1);
}
if (this._x < 0) {
this._x = 1;
}
if (this._y < 0) {
this._y = 1;
}
if ((state != "fire") && (this.hitTest(_root.ball))) {
state = "attack";
if (this._currentframe == 1) {
getReadyToFireTimer = getTimer();
randomwait = random(2000) + 3500;
this.gotoAndPlay(2);
}
alerttimer = getTimer();
}
if (state == "attack") {
if ((slide == 1) && ((getTimer() - getReadyToFireTimer) > randomwait)) {
state = "fire";
this.gotoAndPlay(15);
}
targetRotation = getAngle(_x, _root.ball._x, _y, _root.ball._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
this._y = this._y - ((vely * 2.5) * slide);
this._x = this._x - ((velx * 2.5) * slide);
if (slide < 1) {
slide = slide + 1;
}
}
if (state == "fire") {
if (this._currentframe == 24) {
_root.splat = new Sound();
_root.playsound = false;
_root.splat.attachSound("fire");
_root.splat.start(_root.splatoffset);
_root.bullet1._x = this._x;
_root.bullet1._y = this._y;
_root.bullet1.velx = -velx;
_root.bullet1.vely = -vely;
if (slide < 1) {
this._y = this._y - ((vely * 2.5) * slide);
this._x = this._x - ((velx * 2.5) * slide);
slide = slide + 1;
}
}
targetRotation = getAngle(_x, _root.ball._x, _y, _root.ball._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
if (this._currentframe == 40) {
state = "attack";
getReadyToFireTimer = getTimer();
randomwait = random(2000) + 3500;
this.gotoAndPlay(2);
}
}
while (_root.wall2.hitTest(this.collidebox)) {
this._x = this._x - 1;
}
while (_root.wall3.hitTest(this.collidebox)) {
this._x = this._x + 1;
}
while (_root.wall4.hitTest(this.collidebox)) {
this._y = this._y - 1;
}
while (_root.wall5.hitTest(this.collidebox)) {
this._y = this._y + 1;
}
while (_root.ball.hitTest(this.collidebox) && (!_root.ball.dead)) {
this._x = this._x + velx;
this._y = this._y + vely;
slide = -10;
state = "attack";
}
}
Instance of Symbol 16 MovieClip "blood2" in Frame 100
onClipEvent (enterFrame) {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
if (dy < 0) {
this.dy = this.dy + 1;
this._yscale = this._yscale + (this.dy * 15);
} else {
this.dy = 0;
}
if (this.sprayleft) {
if (this.dx < 0) {
this.dx = this.dx + 1;
this._xscale = this._xscale + (this.dx * 5);
} else {
this.dx = 0;
}
}
if (!this.sprayleft) {
if (this.dx > 0) {
this.dx = this.dx - 1;
this._xscale = this._xscale + (this.dx * 5);
} else {
this.dx = 0;
}
}
}
onClipEvent (load) {
this.dx = random(8) - 4;
this.sprayleft = false;
if (this.dx > 0) {
this.sprayleft = false;
} else {
this.sprayleft = true;
}
this.dy = -1 * random(8);
_xscale = random(25);
_yscale = random(55);
}
Instance of Symbol 513 MovieClip "endstage" in Frame 100
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.baddy2.dead) {
_visible = true;
}
if (_visible) {
if (hitTest(_root.ball)) {
endthiscraziness = true;
}
if (endthiscraziness) {
_root.ball._yscale = _root.ball._yscale + 5;
_root.ball._xscale = _root.ball._xscale + 5;
_root.ball._y = _root.ball._y + 0.5;
if (_root.ball._xscale > 300) {
_root.stageframe = 105;
_root.gotoAndStop(105);
}
}
}
}
Instance of Symbol 433 MovieClip "spikes" in Frame 100
onClipEvent (enterFrame) {
if ((!_root.baddy1.dead) && (_root.spikecollisionbox.hitTest(_root.ball))) {
_root.ball.dead = true;
}
if ((!_root.baddy1.dead) && (_root.spikecollisionbox.hitTest(_root.baddy1.collidebox))) {
_root.baddy1.dead = true;
gotoAndStop (2);
}
}
Instance of Symbol 216 MovieClip "wall1" in Frame 100
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.ball.noupdate)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) - 1;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
this.collision = true;
}
} else {
collision = false;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
collision1 = false;
}
Instance of Symbol 445 MovieClip in Frame 100
onClipEvent (load) {
_root.apearspeed = 4;
_root.time = 600;
bouncevalue = 10;
_root.ball._yscale = 600;
_root.ball._xscale = 600;
_root.ball.noupdate = true;
}
onClipEvent (enterFrame) {
if (_root.endstage.endthiscraziness) {
return(undefined);
}
if (_root.ball._xscale > 30) {
_root.ball._xscale = _root.ball._xscale - bouncevalue;
_root.ball._yscale = _root.ball._yscale - bouncevalue;
} else {
if ((bouncevalue > -3) && (bouncevalue < 3)) {
_root.ball.noupdate = false;
bouncevalue = 0;
}
bouncevalue = (-bouncevalue) * 0.7;
_root.ball._xscale = _root.ball._xscale - bouncevalue;
_root.ball._yscale = _root.ball._yscale - bouncevalue;
}
bouncevalue = bouncevalue + 1;
}
Instance of Symbol 216 MovieClip "wall5" in Frame 100
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.ball.noupdate)) {
_root.ball._y = ((this._y + (this._height / 2)) + (_root.ball._height / 2)) + 1;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 100
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.ball.noupdate)) {
_root.ball._y = ((this._y + (this._height / 2)) + (_root.ball._height / 2)) + 1;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 100
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.ball.noupdate)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) - 1;
_root.ball.collision = true;
}
}
bestfirst(this);
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip "wall4" in Frame 100
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.ball.noupdate)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) - 1;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
this.collision = true;
}
} else {
collision = false;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
collision1 = false;
}
Instance of Symbol 86 MovieClip "wall2" in Frame 100
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.ball.noupdate)) {
while (this.hitTest(_root.ball)) {
_root.ball._x = _root.ball._x - 2;
}
_root.ball.sidecollision = true;
}
}
}
Instance of Symbol 86 MovieClip "wall3" in Frame 100
onClipEvent (enterFrame) {
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.ball.noupdate)) {
while (this.hitTest(_root.ball)) {
_root.ball._x = _root.ball._x + 2;
}
_root.ball.sidecollision = true;
}
}
}
Instance of Symbol 515 MovieClip "bullet1" in Frame 100
onClipEvent (enterFrame) {
this._x = this._x + (velx * 10);
this._y = this._y + (vely * 10);
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
onClipEvent (load) {
velx = 0;
vely = 0;
}
Instance of Symbol 515 MovieClip "bullet2" in Frame 100
onClipEvent (enterFrame) {
this._x = this._x + (velx * 15);
this._y = this._y + (vely * 15);
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
onClipEvent (load) {
velx = 0;
vely = 0;
}
Instance of Symbol 25 MovieClip "ball" in Frame 100
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
moving2 = false;
if (this._y < 0) {
this._y = 1;
}
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 2;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 2;
}
}
if (Key.isDown(40)) {
moving2 = true;
if (ball_velocityY <= ball_maxrotspeed) {
ball_velocityY = ball_velocityY + 2;
}
}
if (Key.isDown(38)) {
moving2 = true;
if (ball_velocityY >= (-ball_maxrotspeed)) {
ball_velocityY = ball_velocityY - 2;
}
}
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if (!sidecollision) {
this._y = this._y + (ball_velocityY / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!moving2) {
if ((ball_velocityY < 2) && (ball_velocityY > -2)) {
ball_velocityY = 0;
}
if ((ball_velocityX < 2) && (ball_velocityX > -2)) {
ball_velocityX = 0;
}
if (ball_velocityY > 0) {
ball_velocityY = ball_velocityY - 1;
} else if (ball_velocityY < 0) {
ball_velocityY = ball_velocityY + 1;
}
}
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 26;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = true;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
moving2 = false;
}
Frame 105
numbersparks = 0;
Instance of Symbol 94 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 4;
totalmovement = totalmovement + 4;
} else {
this._y = this._y - 4;
totalmovement = totalmovement - 4;
}
if (totalmovement >= 55) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
this._y = this._y + _root.speed;
}
onClipEvent (load) {
movedown = true;
totalmovement = 55;
}
Instance of Symbol 94 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 4;
totalmovement = totalmovement + 4;
} else {
this._y = this._y - 4;
totalmovement = totalmovement - 4;
}
if (totalmovement >= 55) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
this._y = this._y + _root.speed;
}
onClipEvent (load) {
movedown = true;
totalmovement = 55;
}
Instance of Symbol 94 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (movedown) {
this._y = this._y + 4;
totalmovement = totalmovement + 4;
} else {
this._y = this._y - 4;
totalmovement = totalmovement - 4;
}
if (totalmovement >= 55) {
movedown = false;
}
if (totalmovement < 0) {
movedown = true;
}
this._y = this._y + _root.speed;
}
onClipEvent (load) {
movedown = true;
totalmovement = 55;
}
Instance of Symbol 517 MovieClip in Frame 105
onClipEvent (enterFrame) {
this._y = this._y + _root.speed;
}
Instance of Symbol 517 MovieClip in Frame 105
onClipEvent (enterFrame) {
this._y = this._y + _root.speed;
}
Instance of Symbol 517 MovieClip in Frame 105
onClipEvent (enterFrame) {
this._y = this._y + _root.speed;
}
Instance of Symbol 25 MovieClip "ball" in Frame 105
onClipEvent (enterFrame) {
if (replay || (noupdate)) {
return(undefined);
}
if (dead) {
gotoAndPlay (1);
replay = true;
}
moving = false;
if (Key.isDown(39)) {
moving = true;
if (ball_velocityX <= ball_maxrotspeed) {
ball_velocityX = ball_velocityX + 3;
}
}
if (Key.isDown(37)) {
moving = true;
if (ball_velocityX >= (-ball_maxrotspeed)) {
ball_velocityX = ball_velocityX - 3;
}
}
if (!sidecollision) {
this._x = this._x + (ball_velocityX / 5);
}
if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
}
if ((this._x + (this._width / 2)) > SIZEOFSTAGE) {
this._x = SIZEOFSTAGE - (this._width / 2);
}
if (!moving) {
if (ball_velocityX > 0) {
ball_velocityX = ball_velocityX - 3;
} else if (ball_velocityX < 0) {
ball_velocityX = ball_velocityX + 3;
}
}
if (!collision) {
ball_velocityY = ball_velocityY + 2.25;
}
this._y = this._y + ball_velocityY;
collision = false;
sidecollision = false;
nofall = false;
}
onClipEvent (load) {
collision = false;
sidecollision = false;
ball_maxrotspeed = 50;
SIZEOFSTAGE = 500;
ball_velocityX = 0;
ball_velocityY = 0;
dead = false;
gotoAndStop (1);
replay = false;
noupdate = false;
buffer = 20;
bufferinc = 3;
scalefactor = 10;
}
Instance of Symbol 216 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle1.activate)) {
if (this._y > _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 445 MovieClip in Frame 105
onClipEvent (load) {
_root.speed = 1;
}
Instance of Symbol 216 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (spin) {
if (totalrot == 150) {
totalrot = 0;
spin = false;
} else {
this._rotation = this._rotation + 30;
totalrot = totalrot + 30;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
this._rotation = this._rotation + 30;
spin = true;
_root.ball.ball_velocityY = -27;
_root.ball.ball_velocityX = 81;
_root.ball.collision = true;
}
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
spin = false;
totalrot = 0;
}
Instance of Symbol 216 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
if (this._y >= _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else {
_root.ball.dead = true;
}
}
}
this._y = this._y + _root.speed;
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle2.collision)) {
if (this._y >= _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else {
_root.ball.dead = true;
}
}
}
this._y = this._y + _root.speed;
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle1.collision)) {
if (((this._y + (this._height / 2)) - 10) >= _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else {
_root.ball.dead = true;
}
}
}
this._y = this._y + _root.speed;
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip "block1" in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball) && (!_root.paddle2.collision)) {
if (((this._y + (this._height / 2)) - 10) >= _root.ball._y) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
} else {
_root.ball.dead = true;
}
}
}
if (((this._y + (this._height / 2)) - 15) < 500) {
this._y = this._y + _root.speed;
} else {
_root.speed = 0;
_root.missle1.state = "attack";
}
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.garbage)) {
if (_root.garbage._currentframe == 1) {
_root.garbage.gotoAndPlay(2);
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
_root.ball._y = ((this._y - (this._height / 2)) - (_root.ball._height / 2)) + 4;
_root.ball.ball_velocityY = -(_root.ball.ball_velocityY / 2);
_root.ball.collision = true;
}
}
this._y = this._y + _root.speed;
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
}
Instance of Symbol 216 MovieClip "paddle1" in Frame 105
onClipEvent (enterFrame) {
if (spin) {
if (_rotation >= 180) {
totalrot = 0;
spin = false;
} else {
this._rotation = 0;
totalrot = totalrot + 30;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
this._rotation = this._rotation + 30;
spin = true;
_root.ball.ball_velocityY = -40;
_root.ball.ball_velocityX = 0;
_root.ball.collision = true;
collision = true;
} else {
collision = false;
}
}
this._y = this._y + _root.speed;
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
spin = false;
totalrot = 0;
collision = false;
}
Instance of Symbol 216 MovieClip "paddle2" in Frame 105
onClipEvent (enterFrame) {
if (spin) {
if (_rotation >= 180) {
totalrot = 0;
spin = false;
} else {
this._rotation = 0;
totalrot = totalrot + 30;
}
}
if (_root.ball.replay == false) {
if (this.hitTest(_root.ball)) {
this._rotation = this._rotation + 30;
spin = true;
_root.ball.ball_velocityY = -40;
_root.ball.ball_velocityX = 0;
_root.ball.collision = true;
collision = true;
} else {
collision = false;
}
}
this._y = this._y + _root.speed;
}
onClipEvent (load) {
this.dead = false;
buffer = 0;
caught = false;
fall = false;
spin = false;
totalrot = 0;
collision = false;
}
Instance of Symbol 525 MovieClip "missle1" in Frame 105
onClipEvent (load) {
goalX = 0;
goalY = 0;
gotoAndStop (1);
state = "stop";
alerttimer = 0;
patroltime = 2000;
velx = 0;
vely = 5;
finalvelx = 0;
finalvely = 0;
spawnTime = getTimer();
changeinVel = true;
smartRotation = function (currentRotation, targetRotation, rotationAmount) {
if (Math.abs(currentRotation - targetRotation) <= rotationAmount) {
currentRotation = targetRotation;
} else if (currentRotation != targetRotation) {
if ((currentRotation >= 0) && (targetRotation >= 0)) {
if (currentRotation > targetRotation) {
currentRotation = currentRotation - rotationAmount;
} else if (currentRotation < targetRotation) {
currentRotation = currentRotation + rotationAmount;
}
} else if ((currentRotation < 0) && (targetRotation < 0)) {
if (currentRotation > targetRotation) {
currentRotation = currentRotation - rotationAmount;
} else if (currentRotation < targetRotation) {
currentRotation = currentRotation + rotationAmount;
}
} else if ((currentRotation < 0) && (targetRotation >= 0)) {
if ((Math.abs(currentRotation) + Math.abs(targetRotation)) <= 180) {
currentRotation = currentRotation + rotationAmount;
} else if ((Math.abs(currentRotation) + Math.abs(targetRotation)) > 180) {
currentRotation = currentRotation - rotationAmount;
}
} else if ((currentRotation >= 0) && (targetRotation < 0)) {
if ((Math.abs(currentRotation) + Math.abs(targetRotation)) < 180) {
currentRotation = currentRotation - rotationAmount;
} else if ((Math.abs(currentRotation) + Math.abs(targetRotation)) >= 180) {
currentRotation = currentRotation + rotationAmount;
}
}
}
return(currentRotation);
};
getAngle = function (x1, x2, y1, y2) {
getAngle_delta_x = x1 - x2;
getAngle_delta_y = y1 - y2;
if ((getTimer() - spawnTime) < 200) {
velx = getAngle_delta_x;
vely = getAngle_delta_y;
} else if (changeinVel) {
changeinVel = false;
finalvelx = getAngle_delta_x;
finalvely = getAngle_delta_y;
}
getAngle_rotation = (-Math.atan2(getAngle_delta_x, getAngle_delta_y)) / (Math.PI/180);
return(getAngle_rotation);
};
turnSpeed = 100;
num = 1;
original = true;
numsparks = 0;
allcreated = false;
reversevec = false;
}
onClipEvent (enterFrame) {
if (state == "attack") {
i = 0;
while (i <= 15) {
if (numsparks < 350) {
if (!allcreated) {
_root.spark1.duplicateMovieClip("sparks" + numsparks, -numsparks);
}
} else {
numsparks = 0;
}
_root["sparks" + numsparks]._x = this._x;
_root["sparks" + numsparks]._y = this._y;
_root.numbersparks = numsparks;
this.numsparks++;
if (numsparks < 350) {
_root.spark2.duplicateMovieClip("sparks" + numsparks, (-numsparks) + 2);
} else {
numsparks = 0;
}
_root["sparks" + numsparks]._x = this._x;
_root["sparks" + numsparks]._y = this._y;
_root.numbersparks = numsparks;
this.numsparks++;
i++;
}
if (changeinVel) {
targetRotation = getAngle(_x, _root.ball._x, _y, _root.ball._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
}
magnitude = Math.sqrt((this._x * this._x) + (this._y * this._y));
if (magnitude == 0) {
magnitude = 1E-6;
}
if (finalvelx == 0) {
velx = velx / magnitude;
vely = vely / magnitude;
this._x = this._x - ((velx * 4) * num);
this._y = this._y - ((vely * 4) * num);
num = num * 1.2;
} else if (reversevec) {
this._x = this._x - (((finalvelx / magnitude) * -6) * num);
this._y = this._y - (((finalvely / magnitude) * -6) * num);
} else {
this._x = this._x - (((finalvelx / magnitude) * 6) * num);
this._y = this._y - (((finalvely / magnitude) * 6) * num);
}
}
}
Instance of Symbol 433 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
this._y = this._y + _root.speed;
}
Instance of Symbol 433 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
this._y = this._y + _root.speed;
}
Instance of Symbol 433 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
this._y = this._y + _root.speed;
}
Instance of Symbol 433 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
this._y = this._y + _root.speed;
}
Instance of Symbol 433 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
this._y = this._y + _root.speed;
}
Instance of Symbol 433 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
this._y = this._y + _root.speed;
}
Instance of Symbol 433 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
this._y = this._y + _root.speed;
}
Instance of Symbol 433 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
this._y = this._y + _root.speed;
}
Instance of Symbol 449 MovieClip in Frame 105
onClipEvent (load) {
this._visible = false;
cubeData = [{colour:111111, Sides:[{x:-50, y:50, z:50}, {x:-50, y:50, z:-50}, {x:50, y:50, z:-50}, {x:50, y:50, z:50}]}, {colour:1118481, Sides:[{x:-50, y:-50, z:-50}, {x:-50, y:-50, z:50}, {x:50, y:-50, z:50}, {x:50, y:-50, z:-50}]}, {colour:1118481, Sides:[{x:50, y:-50, z:50}, {x:50, y:50, z:50}, {x:50, y:50, z:-50}, {x:50, y:-50, z:-50}]}, {colour:1118481, Sides:[{x:-50, y:-50, z:-50}, {x:-50, y:50, z:-50}, {x:-50, y:50, z:50}, {x:-50, y:-50, z:50}]}, {colour:16711680, Sides:[{x:-50, y:50, z:-50}, {x:-50, y:-50, z:-50}, {x:50, y:-50, z:-50}, {x:50, y:50, z:-50}]}, {colour:1118481, Sides:[{x:50, y:50, z:50}, {x:50, y:-50, z:50}, {x:-50, y:-50, z:50}, {x:-50, y:50, z:50}]}];
Objekt3d = function (data3d) {
this.data3d = data3d;
this.move3d = function (x, y, z) {
var k = 0;
while (k < this.data3d.length) {
var i = 0;
while (i < this.data3d[k].Sides.length) {
this.data3d[k].Sides[i].x = this.data3d[k].Sides[i].x + x;
this.data3d[k].Sides[i].y = this.data3d[k].Sides[i].y + y;
this.data3d[k].Sides[i].z = this.data3d[k].Sides[i].z + z;
i++;
}
k++;
}
};
this.scale3d = function (x, y, z) {
var k = 0;
while (k < this.data3d.length) {
var i = 0;
while (i < this.data3d[k].Sides.length) {
this.data3d[k].Sides[i].x = this.data3d[k].Sides[i].x * x;
this.data3d[k].Sides[i].y = this.data3d[k].Sides[i].y * y;
this.data3d[k].Sides[i].z = this.data3d[k].Sides[i].z * z;
i++;
}
k++;
}
};
this.rotate3d = function (xa, ya) {
var rad = (Math.PI/180);
var px;
var py;
var pz;
var sin_xa;
var sin_ya;
var cos_xa;
var cos_ya;
var tempz;
var k = 0;
while (k < this.data3d.length) {
var i = 0;
while (i < this.data3d[k].Sides.length) {
px = this.data3d[k].Sides[i].x;
py = this.data3d[k].Sides[i].y;
pz = this.data3d[k].Sides[i].z;
cos_ya = Math.cos(ya * rad);
sin_ya = Math.sin(ya * rad);
cos_xa = Math.cos(xa * rad);
sin_xa = Math.sin(xa * rad);
tempz = (pz * cos_ya) - (px * sin_ya);
this.data3d[k].Sides[i].x = (pz * sin_ya) + (px * cos_ya);
this.data3d[k].Sides[i].y = (py * cos_xa) - (tempz * sin_xa);
this.data3d[k].Sides[i].z = (py * sin_xa) + (tempz * cos_xa);
i++;
}
k++;
}
};
};
Kamera3d = function (Objekt3d, distance, angle, loc) {
this.Objekt3d = Objekt3d;
this.distance = distance;
this.angle = angle;
this.loc = loc;
this.mc = this.create();
};
Kamera3d.prototype.create = function () {
return(this.loc.createEmptyMovieClip("camMC" + Stage.camNum, 10000));
};
Kamera3d.prototype.render = function () {
this.mc.clear();
var z;
var pers;
var sx;
var sy;
var tx;
var ty;
var polygon;
var k = 0;
while (k < this.Objekt3d.data3d.length) {
polygon = [];
var i = 0;
while (i < this.Objekt3d.data3d[k].Sides.length) {
z = this.Objekt3d.data3d[k].Sides[i].z + this.distance;
pers = this.angle / z;
sx = this.Objekt3d.data3d[k].Sides[i].x * pers;
sy = this.Objekt3d.data3d[k].Sides[i].y * pers;
polygon.push({sx:sx, sy:sy});
i++;
}
z = ((polygon[1].sx - polygon[0].sx) * (polygon[2].sy - polygon[0].sy)) - ((polygon[1].sy - polygon[0].sy) * (polygon[2].sx - polygon[0].sx));
if (z > 0) {
if (_root.missle1.hitTest(_root.thebox) && (_root.missle1.reversevec)) {
this.mc.beginFill(random(200) + 100, random(200) + 100);
} else {
this.mc.beginFill(this.Objekt3d.data3d[k].colour, this.Objekt3d.data3d[k].colour);
}
this.mc.moveTo(polygon[0].sx, polygon[0].sy);
this.mc.lineTo(polygon[1].sx, polygon[1].sy);
this.mc.lineTo(polygon[2].sx, polygon[2].sy);
this.mc.lineTo(polygon[3].sx, polygon[3].sy);
this.mc.lineTo(polygon[0].sx, polygon[0].sy);
}
k++;
}
};
Cube3d = new Objekt3d(cubeData);
Szene3D = new Kamera3d(Cube3d, 200, 400, _root);
Szene3D.render();
Szene3D.mc._x = 250;
Szene3D.mc._y = -400;
totalrot = 0;
Cube3d.rotate3d(15, 0);
fireTimer = 0;
numblocks = 0;
finishedtimer = 0;
_root.onEnterFrame = function () {
if ((_root.reflector1.health == 0) && (_root.reflector2.health == 0)) {
if (finishedtimer == 0) {
finishedtimer = getTimer();
}
if (finishedtimer != 0) {
if ((getTimer() - finishedTimer) > 2500) {
_root.gotoAndStop(110);
}
}
_root.gamefinished = true;
Cube3d.rotate3d(0, totalrot++);
Cube3d.scale3d(0.92, 0.92, 0.92);
Szene3D.render();
return(undefined);
}
Szene3D.mc._y = Szene3D.mc._y + _root.speed;
if (Szene3D.mc._y >= -100) {
if (fireTimer == 0) {
fireTimer = getTimer();
}
if ((getTimer() - fireTimer) > 3000) {
if (_root._currentframe == 105) {
_root.splat = new Sound();
_root.playsound = false;
_root.splat.attachSound("fire");
_root.splat.start();
_root.missle1._y = _root.cannon._y;
_root.missle1._x = _root.cannon._x;
_root.missle1.spawnTime = getTimer();
_root.missle1.state = "attack";
_root.missle1.changeinVel = true;
_root.missle1.finalvelx = 0;
_root.missle1.num = 1;
_root.missle1.reversevec = false;
fireTimer = getTimer();
}
}
}
if (_root.ball._x < 225) {
if (totalrot > -45) {
Cube3d.rotate3d(0, 3);
totalrot = totalrot - 3;
}
} else if (_root.ball._x > 275) {
if (totalrot < 45) {
Cube3d.rotate3d(0, -3);
totalrot = totalrot + 3;
}
} else if (totalrot > 0) {
Cube3d.rotate3d(0, 3);
totalrot = totalrot - 3;
} else if (totalrot < 0) {
Cube3d.rotate3d(0, -3);
totalrot = totalrot + 3;
}
Szene3D.render();
};
}
Instance of Symbol 527 MovieClip "cannon" in Frame 105
onClipEvent (enterFrame) {
if ((_root.reflector1.health == 0) && (_root.reflector2.health == 0)) {
this._x = this._x + 5;
this._y = this._y + 9;
this._rotation = this._rotation + 25;
return(undefined);
}
if (_root.ball._x < 225) {
if (totalrot > -45) {
totalrot = totalrot - 10;
}
} else if (_root.ball._x > 275) {
if (totalrot < 45) {
totalrot = totalrot + 10;
}
}
targetRotation = getAngle(_x, _root.ball._x, _y, _root.ball._y);
this._rotation = smartRotation(_rotation, targetRotation, turnSpeed);
this._y = this._y + _root.speed;
}
onClipEvent (load) {
_global.smartRotation = function (currentRotation, targetRotation, rotationAmount) {
if (Math.abs(currentRotation - targetRotation) <= rotationAmount) {
currentRotation = targetRotation;
} else if (currentRotation != targetRotation) {
if ((currentRotation >= 0) && (targetRotation >= 0)) {
if (currentRotation > targetRotation) {
currentRotation = currentRotation - rotationAmount;
} else if (currentRotation < targetRotation) {
currentRotation = currentRotation + rotationAmount;
}
} else if ((currentRotation < 0) && (targetRotation < 0)) {
if (currentRotation > targetRotation) {
currentRotation = currentRotation - rotationAmount;
} else if (currentRotation < targetRotation) {
currentRotation = currentRotation + rotationAmount;
}
} else if ((currentRotation < 0) && (targetRotation >= 0)) {
if ((Math.abs(currentRotation) + Math.abs(targetRotation)) <= 180) {
currentRotation = currentRotation + rotationAmount;
} else if ((Math.abs(currentRotation) + Math.abs(targetRotation)) > 180) {
currentRotation = currentRotation - rotationAmount;
}
} else if ((currentRotation >= 0) && (targetRotation < 0)) {
if ((Math.abs(currentRotation) + Math.abs(targetRotation)) < 180) {
currentRotation = currentRotation - rotationAmount;
} else if ((Math.abs(currentRotation) + Math.abs(targetRotation)) >= 180) {
currentRotation = currentRotation + rotationAmount;
}
}
}
return(currentRotation);
};
_global.getAngle = function (x1, x2, y1, y2) {
getAngle_delta_x = x1 - x2;
getAngle_delta_y = y1 - y2;
getAngle_rotation = (-Math.atan2(getAngle_delta_x, getAngle_delta_y)) / (Math.PI/180);
return(getAngle_rotation);
};
turnSpeed = 3;
}
Instance of Symbol 16 MovieClip "spark1" in Frame 105
onClipEvent (enterFrame) {
this._x = this._x + xvel;
this._y = this._y + yvel;
yvel = yvel + 1;
}
onClipEvent (load) {
xvel = random(5) - 2.5;
yvel = random(6) * -1;
randomnum = random(30);
_xscale = random(40);
_yscale = random(40);
}
Instance of Symbol 529 MovieClip "reflector1" in Frame 105
onClipEvent (enterFrame) {
if (health == 0) {
this._visible = false;
return(undefined);
}
if (this.hitTest(_root.missle1)) {
_root.missle1.reversevec = true;
health--;
this._yscale = this._yscale - 50;
}
this._y = this._y + _root.speed;
}
onClipEvent (load) {
health = 3;
gotoAndStop (1);
}
Instance of Symbol 529 MovieClip "reflector2" in Frame 105
onClipEvent (enterFrame) {
if (health == 0) {
this._visible = false;
return(undefined);
}
if (this.hitTest(_root.missle1)) {
_root.missle1.reversevec = true;
health--;
this._yscale = this._yscale - 50;
}
this._y = this._y + _root.speed;
}
onClipEvent (load) {
health = 3;
gotoAndStop (1);
}
Instance of Symbol 531 MovieClip "thebox" in Frame 105
onClipEvent (enterFrame) {
this.y = this.y + _root.speed;
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 80 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (!_root.gamefinished) {
_root.curTime = (getTimer() - _root.startTime) / 1000;
}
if (_root._currentframe == 110) {
_root.nametxt._y = 250;
}
}
Instance of Symbol 16 MovieClip "blood" in Frame 110
onClipEvent (enterFrame) {
this._x = this._x + xvel;
this._y = this._y + yvel;
yvel = yvel + 3;
}
onClipEvent (load) {
xvel = random(50) - 25;
yvel = random(50) - 25;
_xscale = random(80);
_yscale = random(80);
}
Instance of Symbol 16 MovieClip "spark2" in Frame 110
onClipEvent (enterFrame) {
this._x = this._x + xvel;
this._y = this._y + yvel;
yvel = yvel + 1;
}
onClipEvent (load) {
xvel = random(5) - 2.5;
yvel = random(6) * -1;
_xscale = random(40);
_yscale = random(40);
}
Symbol 25 MovieClip Frame 1
if (_root.ball.reloadstage) {
_root.gotoAndStop(5);
_root.ball.reloadstage = false;
}
Symbol 25 MovieClip Frame 2
this._rotation = 0;
Instance of Symbol 14 MovieClip in Symbol 25 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
numblocks = 0;
i = 0;
while (i < 150) {
_root.blood.duplicateMovieClip("blood" + i, i);
_root["blood" + i]._x = _root.ball._x;
_root["blood" + i]._y = _root.ball._y;
i++;
}
}
onClipEvent (enterFrame) {
}
Instance of Symbol 16 MovieClip "blood" in Symbol 25 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x + xvel;
this._y = this._y + yvel;
yvel = yvel + 3;
}
onClipEvent (load) {
xvel = random(50) - 25;
yvel = random(50) - 25;
this._x = this._x + 45;
this._y = this._y + 180;
_xscale = random(100);
_yscale = random(100);
}
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip Frame 79
onClipEvent (load) {
_root.ball._x = 45;
_root.ball._y = 5;
_root.ball.collision = false;
_root.ball.sidecollision = false;
_root.ball.ball_velocityX = 0;
_root.ball.ball_velocityY = 0;
_root.ball.dead = false;
_root.ball.reloadstage = true;
_root.ball.replay = false;
_root.ball.gotoAndStop(1);
}
Symbol 32 Button
on (release) {
_root.startTime = getTimer();
_root.gotoAndStop(3);
}
Symbol 33 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop (3);
}
Symbol 33 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 91 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Instance of Symbol 93 MovieClip in Symbol 94 MovieClip Frame 1
/* no clip actions */
Symbol 166 MovieClip Frame 1
gotoAndStop (1);
Instance of Symbol 97 MovieClip in Symbol 166 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 166 MovieClip Frame 5
if (this.dead) {
gotoAndPlay (60);
}
Symbol 166 MovieClip Frame 6
if (this.dead) {
gotoAndPlay (60);
}
Symbol 166 MovieClip Frame 7
if (this.dead) {
gotoAndPlay (60);
}
Symbol 166 MovieClip Frame 8
if (this.dead) {
gotoAndPlay (60);
}
Symbol 166 MovieClip Frame 9
if (this.dead) {
gotoAndPlay (60);
}
Symbol 166 MovieClip Frame 10
gotoAndPlay (5);
if (this.pullswitch) {
gotoAndPlay (25);
}
if (this.dead) {
gotoAndPlay (60);
}
Symbol 166 MovieClip Frame 15
if (this.attackright) {
this.gotoAndPlay(70);
}
Symbol 166 MovieClip Frame 20
gotoAndPlay (15);
if (this.dead) {
gotoAndPlay (60);
}
Symbol 166 MovieClip Frame 31
gotoAndStop (31);
Symbol 166 MovieClip Frame 40
gotoAndStop (40);
Instance of Symbol 121 MovieClip in Symbol 166 MovieClip Frame 40
onClipEvent (load) {
_root.boss.jumpleft1 = true;
this._visible = false;
}
Symbol 166 MovieClip Frame 41
gotoAndStop (41);
Symbol 166 MovieClip Frame 60
play();
Symbol 166 MovieClip Frame 64
gotoAndStop (64);
Symbol 166 MovieClip Frame 77
gotoAndStop (77);
Symbol 166 MovieClip Frame 87
gotoAndStop (87);
Symbol 166 MovieClip Frame 106
_root.killball = true;
Symbol 166 MovieClip Frame 150
gotoAndStop (150);
Symbol 233 MovieClip Frame 1
gotoAndStop (1);
Symbol 233 MovieClip Frame 7
gotoAndStop (7);
Instance of Symbol 249 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.boss)) {
_root.boss.dead = true;
_root.splat = new Sound();
_root.splat.attachSound("splat");
_root.splat.start(_root.splatoffset);
}
}
Symbol 273 MovieClip Frame 1
gotoAndStop (1);
Symbol 273 MovieClip Frame 100
gotoAndStop (100);
Symbol 289 MovieClip Frame 1
gotoAndStop (1);
Symbol 289 MovieClip Frame 20
_root.ball.noupdate = false;
_root.ball.ball_velocityY = -45;
this.bounce = false;
Symbol 289 MovieClip Frame 29
gotoAndStop (29);
Symbol 301 MovieClip Frame 1
gotoAndStop (1);
Symbol 301 MovieClip Frame 10
gotoAndStop (10);
Symbol 301 MovieClip Frame 42
gotoAndStop (47);
Symbol 319 MovieClip Frame 1
gotoAndStop (1);
Symbol 319 MovieClip Frame 14
gotoAndStop (14);
Symbol 329 MovieClip Frame 1
gotoAndStop (1);
Symbol 329 MovieClip Frame 8
gotoAndStop (8);
Symbol 380 MovieClip Frame 1
gotoAndStop (1);
Symbol 380 MovieClip Frame 11
_root.helicopter.balloffshift = -2;
Symbol 380 MovieClip Frame 12
_root.helicopter.balloffshift = -6;
Symbol 380 MovieClip Frame 13
_root.helicopter.balloffshift = -10;
Symbol 380 MovieClip Frame 14
gotoAndStop (14);
_root.helicopter.balloffshift = -14;
Symbol 380 MovieClip Frame 21
_root.helicopter.balloffshift = 2;
Symbol 380 MovieClip Frame 22
_root.helicopter.balloffshift = 6;
Symbol 380 MovieClip Frame 23
_root.helicopter.balloffshift = 10;
Symbol 380 MovieClip Frame 24
gotoAndStop (24);
_root.helicopter.balloffshift = 14;
Symbol 399 MovieClip Frame 1
gotoAndStop (1);
Instance of Symbol 380 MovieClip in Symbol 399 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 382 MovieClip "helibox" in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 380 MovieClip in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.ball.dead) {
return(undefined);
}
if (Key.isDown(39) && (!movingright)) {
movingright = true;
this.gotoAndPlay(10);
} else if (!Key.isDown(39)) {
movingright = false;
} else if (Key.isDown(37) && (!movingleft)) {
movingleft = true;
this.gotoAndPlay(20);
} else if (!Key.isDown(37)) {
movingleft = false;
}
if ((((!movingleft) && (!Key.isDown(39))) && (!Key.isDown(37))) && (!movingright)) {
this.gotoAndStop(1);
_root.helicopter.balloffshift = 0;
}
}
onClipEvent (load) {
movingright = false;
movingleft = false;
}
Symbol 399 MovieClip Frame 10
gotoAndPlay (3);
Instance of Symbol 380 MovieClip in Symbol 399 MovieClip Frame 15
/* no clip actions */
Instance of Symbol 382 MovieClip "helibox" in Symbol 399 MovieClip Frame 15
onClipEvent (load) {
this._visible = false;
}
Symbol 399 MovieClip Frame 27
gotoAndPlay (19);
Instance of Symbol 97 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 97 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 97 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 97 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 97 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 97 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 407 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 414 MovieClip Frame 10
gotoAndStop (10);
Instance of Symbol 97 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 97 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 97 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 97 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 97 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 97 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 418 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.dead) {
return(undefined);
}
if (this.hitTest(_root.bullet1)) {
_root.bullet1._x = 9000;
firespeed = firespeed + 0.1;
health--;
if (health <= 0) {
_root.splat = new Sound();
_root.playsound = false;
_root.splat.attachSound("explosion");
_root.splat.start();
_root.explosion.gotoAndPlay(1);
_root.explosion._x = _root.cata._x;
_root.explosion._y = _root.cata._y;
_root.cata._x = 900;
_root.cata._y = 900;
this.dead = true;
} else {
_root.splat = new Sound();
_root.playsound = false;
_root.splat.attachSound("explosion2");
_root.splat.start();
}
}
if (firing) {
this._rotation = this._rotation - 15;
if (this._rotation <= 0) {
firing = false;
loading = true;
if (!stopdup) {
_root.thrown.duplicateMovieClip("blocks" + numblocks, numblocks);
}
while (_root["blocks" + numblocks].caught) {
numblocks++;
_root.numberblocks++;
}
_root["blocks" + numblocks]._x = _root.cata._x;
_root["blocks" + numblocks]._y = _root.cata._y - 90;
_root["blocks" + numblocks].drag = 0;
_root.numberblocks = numblocks;
this.numblocks++;
if (this.numblocks > 20) {
stopdup = true;
this.numblocks = 0;
_root.numberblocks = 0;
}
}
}
if (loading) {
this._rotation = this._rotation + firespeed;
if (this._rotation >= 65) {
firing = true;
loading = false;
}
}
}
onClipEvent (load) {
loading = false;
firing = true;
_root.blocklist = new Array();
this.numblocks = 0;
health = 15;
dead = false;
firespeed = 1;
stopdup = false;
}
Symbol 421 MovieClip Frame 1
gotoAndStop (1);
Symbol 421 MovieClip Frame 15
gotoAndStop (15);
Symbol 433 MovieClip Frame 1
gotoAndStop (1);
Symbol 433 MovieClip Frame 2
gotoAndStop (2);
Symbol 491 MovieClip Frame 14
gotoAndPlay (2);
Symbol 491 MovieClip Frame 15
gotoAndPlay (16);
Symbol 491 MovieClip Frame 50
gotoAndPlay (51);
Symbol 491 MovieClip Frame 65
gotoAndStop (65);
Symbol 511 MovieClip Frame 14
gotoAndPlay (2);
Symbol 511 MovieClip Frame 15
gotoAndPlay (16);
Symbol 511 MovieClip Frame 50
gotoAndPlay (51);
Symbol 511 MovieClip Frame 65
gotoAndStop (65);
Symbol 525 MovieClip Frame 1
play();
Instance of Symbol 521 MovieClip in Symbol 525 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.dead = true;
}
}
Symbol 525 MovieClip Frame 7
gotoAndPlay (1);
Symbol 543 Button
on (press) {
if (firsttime) {
firsttime = false;
strText = String(_root.curTime);
strPW = "bidness";
encText = "";
pwLength = strPW.length;
x = 0;
while (x < strText.length) {
i = (i % pwLength) + 1;
encText = encText + Number(strText.charCodeAt(x) ^ strPW.charCodeAt(i - 1));
encText = encText + ",";
x++;
}
strPW = "";
strText = "";
getURL ("http://www.sonicmonkeyfilms.com/chris/scores/new_score.php", "_self", "POST");
}
}