Frame 1 (39 B)
Stage.showMenu = false;
Mouse.hide();
Instance of Symbol 126 MovieClip in Frame 1 (53 B)
onClipEvent (enterFrame) {
startDrag (this, true);
}
Frame 2 (19 B)
levelunlocked = 1;
Instance of Symbol 126 MovieClip in Frame 2 (53 B)
onClipEvent (enterFrame) {
startDrag (this, true);
}
Frame 110 (26 B)
stop();
stopAllSounds();
Frame 111 (370 B)
myMusic = new Sound(this);
myMusic.attachSound("sg1");
myMusic.start(0, 99);
slider.control._y = -50;
slider.control.onEnterFrame = function () {
myMusic.setVolume(-this._y);
};
slider.control.onPress = function () {
startDrag (this, false, this._x, -100, this._x, 0);
};
slider.control.onRelease = function () {
stopDrag();
};
this.gotoAndStop("menu");
Frame 112 (370 B)
myMusic = new Sound(this);
myMusic.attachSound("sg2");
myMusic.start(0, 99);
slider.control._y = -50;
slider.control.onEnterFrame = function () {
myMusic.setVolume(-this._y);
};
slider.control.onPress = function () {
startDrag (this, false, this._x, -100, this._x, 0);
};
slider.control.onRelease = function () {
stopDrag();
};
this.gotoAndStop("menu");
Frame 113 (370 B)
myMusic = new Sound(this);
myMusic.attachSound("sg3");
myMusic.start(0, 99);
slider.control._y = -50;
slider.control.onEnterFrame = function () {
myMusic.setVolume(-this._y);
};
slider.control.onPress = function () {
startDrag (this, false, this._x, -100, this._x, 0);
};
slider.control.onRelease = function () {
stopDrag();
};
this.gotoAndStop("menu");
Frame 114 (370 B)
myMusic = new Sound(this);
myMusic.attachSound("sg4");
myMusic.start(0, 99);
slider.control._y = -50;
slider.control.onEnterFrame = function () {
myMusic.setVolume(-this._y);
};
slider.control.onPress = function () {
startDrag (this, false, this._x, -100, this._x, 0);
};
slider.control.onRelease = function () {
stopDrag();
};
this.gotoAndStop("menu");
Frame 115 (370 B)
myMusic = new Sound(this);
myMusic.attachSound("sg5");
myMusic.start(0, 99);
slider.control._y = -50;
slider.control.onEnterFrame = function () {
myMusic.setVolume(-this._y);
};
slider.control.onPress = function () {
startDrag (this, false, this._x, -100, this._x, 0);
};
slider.control.onRelease = function () {
stopDrag();
};
this.gotoAndStop("menu");
Frame 116 (839 B)
Stage.showMenu = false;
Mouse.hide();
stop();
ball.onEnterFrame = function () {
this.removeMovieClip();
};
arrow.onEnterFrame = function () {
this.removeMovieClip();
};
wall.onEnterFrame = function () {
this.removeMovieClip();
};
wall2.onEnterFrame = function () {
this.removeMovieClip();
};
wall3.onEnterFrame = function () {
this.removeMovieClip();
};
wall4.onEnterFrame = function () {
this.removeMovieClip();
};
wall5.onEnterFrame = function () {
this.removeMovieClip();
};
wall6.onEnterFrame = function () {
this.removeMovieClip();
};
wall7.onEnterFrame = function () {
this.removeMovieClip();
};
wall8.onEnterFrame = function () {
this.removeMovieClip();
};
wall9.onEnterFrame = function () {
this.removeMovieClip();
};
wall10.onEnterFrame = function () {
this.removeMovieClip();
};
Instance of Symbol 126 MovieClip in Frame 116 (53 B)
onClipEvent (enterFrame) {
startDrag (this, true);
}
Frame 117 (1.95 KiB) ●
stop();
_global.Behaviors.Sound.sg1.stop("sg1");
ball.onEnterFrame = function () {
this.removeMovieClip();
};
arrow.onEnterFrame = function () {
this.removeMovieClip();
};
wall.onEnterFrame = function () {
this.removeMovieClip();
};
wall2.onEnterFrame = function () {
this.removeMovieClip();
};
wall3.onEnterFrame = function () {
this.removeMovieClip();
};
wall4.onEnterFrame = function () {
this.removeMovieClip();
};
wall5.onEnterFrame = function () {
this.removeMovieClip();
};
wall6.onEnterFrame = function () {
this.removeMovieClip();
};
wall7.onEnterFrame = function () {
this.removeMovieClip();
};
wall8.onEnterFrame = function () {
this.removeMovieClip();
};
wall9.onEnterFrame = function () {
this.removeMovieClip();
};
wall10.onEnterFrame = function () {
this.removeMovieClip();
};
ld1.onEnterFrame = function () {
if (_root.levelunlocked >= 2) {
this._visible = false;
}
};
ld2.onEnterFrame = function () {
if (_root.levelunlocked >= 3) {
this._visible = false;
}
};
ld3.onEnterFrame = function () {
if (_root.levelunlocked >= 4) {
this._visible = false;
}
};
ld4.onEnterFrame = function () {
if (_root.levelunlocked >= 5) {
this._visible = false;
}
};
ld5.onEnterFrame = function () {
if (_root.levelunlocked >= 6) {
this._visible = false;
}
};
ld6.onEnterFrame = function () {
if (_root.levelunlocked >= 7) {
this._visible = false;
}
};
ld7.onEnterFrame = function () {
if (_root.levelunlocked >= 8) {
this._visible = false;
}
};
ld8.onEnterFrame = function () {
if (_root.levelunlocked >= 9) {
this._visible = false;
}
};
ld9.onEnterFrame = function () {
if (_root.levelunlocked >= 10) {
this._visible = false;
}
};
ld10.onEnterFrame = function () {
if (_root.levelunlocked >= 11) {
this._visible = false;
}
};
ld11.onEnterFrame = function () {
if (_root.levelunlocked >= 12) {
this._visible = false;
}
};
Frame 118 (1.91 KiB) ●
stop();
ld1.onEnterFrame = function () {
if (_root.levelunlocked >= 2) {
this._visible = false;
}
};
ld2.onEnterFrame = function () {
if (_root.levelunlocked >= 3) {
this._visible = false;
}
};
ld3.onEnterFrame = function () {
if (_root.levelunlocked >= 4) {
this._visible = false;
}
};
ld4.onEnterFrame = function () {
if (_root.levelunlocked >= 5) {
this._visible = false;
}
};
ld5.onEnterFrame = function () {
if (_root.levelunlocked >= 6) {
this._visible = false;
}
};
ld6.onEnterFrame = function () {
if (_root.levelunlocked >= 7) {
this._visible = false;
}
};
ld7.onEnterFrame = function () {
if (_root.levelunlocked >= 8) {
this._visible = false;
}
};
ld8.onEnterFrame = function () {
if (_root.levelunlocked >= 9) {
this._visible = false;
}
};
ld9.onEnterFrame = function () {
if (_root.levelunlocked >= 10) {
this._visible = false;
}
};
ld10.onEnterFrame = function () {
if (_root.levelunlocked >= 11) {
this._visible = false;
}
};
ld11.onEnterFrame = function () {
if (_root.levelunlocked >= 12) {
this._visible = false;
}
};
ball.onEnterFrame = function () {
this.removeMovieClip();
};
arrow.onEnterFrame = function () {
this.removeMovieClip();
};
wall.onEnterFrame = function () {
this.removeMovieClip();
};
wall2.onEnterFrame = function () {
this.removeMovieClip();
};
wall3.onEnterFrame = function () {
this.removeMovieClip();
};
wall4.onEnterFrame = function () {
this.removeMovieClip();
};
wall5.onEnterFrame = function () {
this.removeMovieClip();
};
wall6.onEnterFrame = function () {
this.removeMovieClip();
};
wall7.onEnterFrame = function () {
this.removeMovieClip();
};
wall8.onEnterFrame = function () {
this.removeMovieClip();
};
wall9.onEnterFrame = function () {
this.removeMovieClip();
};
wall10.onEnterFrame = function () {
this.removeMovieClip();
};
Frame 119 (1.91 KiB) ●
stop();
ld1.onEnterFrame = function () {
if (_root.levelunlocked >= 2) {
this._visible = false;
}
};
ld2.onEnterFrame = function () {
if (_root.levelunlocked >= 3) {
this._visible = false;
}
};
ld3.onEnterFrame = function () {
if (_root.levelunlocked >= 4) {
this._visible = false;
}
};
ld4.onEnterFrame = function () {
if (_root.levelunlocked >= 5) {
this._visible = false;
}
};
ld5.onEnterFrame = function () {
if (_root.levelunlocked >= 6) {
this._visible = false;
}
};
ld6.onEnterFrame = function () {
if (_root.levelunlocked >= 7) {
this._visible = false;
}
};
ld7.onEnterFrame = function () {
if (_root.levelunlocked >= 8) {
this._visible = false;
}
};
ld8.onEnterFrame = function () {
if (_root.levelunlocked >= 9) {
this._visible = false;
}
};
ld9.onEnterFrame = function () {
if (_root.levelunlocked >= 10) {
this._visible = false;
}
};
ld10.onEnterFrame = function () {
if (_root.levelunlocked >= 11) {
this._visible = false;
}
};
ld11.onEnterFrame = function () {
if (_root.levelunlocked >= 12) {
this._visible = false;
}
};
ball.onEnterFrame = function () {
this.removeMovieClip();
};
arrow.onEnterFrame = function () {
this.removeMovieClip();
};
wall.onEnterFrame = function () {
this.removeMovieClip();
};
wall2.onEnterFrame = function () {
this.removeMovieClip();
};
wall3.onEnterFrame = function () {
this.removeMovieClip();
};
wall4.onEnterFrame = function () {
this.removeMovieClip();
};
wall5.onEnterFrame = function () {
this.removeMovieClip();
};
wall6.onEnterFrame = function () {
this.removeMovieClip();
};
wall7.onEnterFrame = function () {
this.removeMovieClip();
};
wall8.onEnterFrame = function () {
this.removeMovieClip();
};
wall9.onEnterFrame = function () {
this.removeMovieClip();
};
wall10.onEnterFrame = function () {
this.removeMovieClip();
};
Frame 120 (1.6 KiB) ●
stop();
_root.attachMovie("ball", "ball", _root.getNextHighestDepth(), {_x:50, _y:50});
_root.attachMovie("wall", "wall", _root.getNextHighestDepth(), {_x:240, _y:200});
moving = false;
gravity = 0.01;
xspeed = 0;
yspeed = 0;
precision = 24;
radius = 15;
Mouse.hide();
arrow.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
dist_x = ball._x - this._x;
dist_y = ball._y - this._y;
total_dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (total_dist > 300) {
total_dist = 300;
}
total_dist = (300 - total_dist) / 500;
angle = Math.atan2(dist_y, dist_x);
this._rotation = angle * 57.2957795;
};
ball.onEnterFrame = function () {
if (moving) {
dir = arrow._rotation;
xspeed = xspeed + (total_dist * Math.cos(dir * 0.0174532925));
yspeed = yspeed + (total_dist * Math.sin(dir * 0.0174532925));
}
yspeed = yspeed + gravity;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
x = 1;
while (x < precision) {
spot_x = this._x + (radius * Math.sin(((x * 360) / precision) * 0.0174532925));
spot_y = this._y - (radius * Math.cos(((x * 360) / precision) * 0.0174532925));
if (wall.hitTest(spot_x, spot_y, true)) {
if (wall.hitTest(_root.ball)) {
_root.levelSound.gotoAndPlay(2);
ball.gotoAndPlay("pop");
}
xspeed = 0;
yspeed = 0;
this._x = 50;
this._y = 50;
}
x++;
}
};
_root.onMouseDown = function () {
moving = true;
};
_root.onMouseUp = function () {
moving = false;
};
if ((_root.levelunlocked = 1)) {
_root.levelunlocked = 2;
}
Instance of Symbol 252 MovieClip in Frame 120 (98 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.gotoAndStop("lvlselect");
}
}
Frame 121 (1.6 KiB) ●
stop();
_root.attachMovie("ball", "ball", _root.getNextHighestDepth(), {_x:50, _y:50});
_root.attachMovie("wall2", "wall2", _root.getNextHighestDepth(), {_x:240, _y:200});
moving = false;
gravity = 0.01;
xspeed = 0;
yspeed = 0;
precision = 24;
radius = 15;
Mouse.hide();
arrow.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
dist_x = ball._x - this._x;
dist_y = ball._y - this._y;
total_dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (total_dist > 300) {
total_dist = 300;
}
total_dist = (300 - total_dist) / 500;
angle = Math.atan2(dist_y, dist_x);
this._rotation = angle * 57.2957795;
};
ball.onEnterFrame = function () {
if (moving) {
dir = arrow._rotation;
xspeed = xspeed + (total_dist * Math.cos(dir * 0.0174532925));
yspeed = yspeed + (total_dist * Math.sin(dir * 0.0174532925));
}
yspeed = yspeed + gravity;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
x = 1;
while (x < precision) {
spot_x = this._x + (radius * Math.sin(((x * 360) / precision) * 0.0174532925));
spot_y = this._y - (radius * Math.cos(((x * 360) / precision) * 0.0174532925));
if (wall2.hitTest(spot_x, spot_y, true)) {
if (wall2.hitTest(_root.ball)) {
_root.levelSound.gotoAndPlay(2);
ball.gotoAndPlay("pop");
}
xspeed = 0;
yspeed = 0;
this._x = 50;
this._y = 50;
}
x++;
}
};
_root.onMouseDown = function () {
moving = true;
};
_root.onMouseUp = function () {
moving = false;
};
if (_root.levelunlocked < 3) {
_root.levelunlocked = 3;
}
Frame 122 (1.6 KiB) ●
stop();
_root.attachMovie("ball", "ball", _root.getNextHighestDepth(), {_x:50, _y:50});
_root.attachMovie("wall3", "wall3", _root.getNextHighestDepth(), {_x:240, _y:200});
moving = false;
gravity = 0.01;
xspeed = 0;
yspeed = 0;
precision = 24;
radius = 15;
Mouse.hide();
arrow.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
dist_x = ball._x - this._x;
dist_y = ball._y - this._y;
total_dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (total_dist > 300) {
total_dist = 300;
}
total_dist = (300 - total_dist) / 500;
angle = Math.atan2(dist_y, dist_x);
this._rotation = angle * 57.2957795;
};
ball.onEnterFrame = function () {
if (moving) {
dir = arrow._rotation;
xspeed = xspeed + (total_dist * Math.cos(dir * 0.0174532925));
yspeed = yspeed + (total_dist * Math.sin(dir * 0.0174532925));
}
yspeed = yspeed + gravity;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
x = 1;
while (x < precision) {
spot_x = this._x + (radius * Math.sin(((x * 360) / precision) * 0.0174532925));
spot_y = this._y - (radius * Math.cos(((x * 360) / precision) * 0.0174532925));
if (wall3.hitTest(spot_x, spot_y, true)) {
if (wall3.hitTest(_root.ball)) {
_root.levelSound.gotoAndPlay(2);
ball.gotoAndPlay("pop");
}
xspeed = 0;
yspeed = 0;
this._x = 50;
this._y = 50;
}
x++;
}
};
_root.onMouseDown = function () {
moving = true;
};
_root.onMouseUp = function () {
moving = false;
};
if (_root.levelunlocked < 4) {
_root.levelunlocked = 4;
}
Frame 123 (1.6 KiB) ●
stop();
_root.attachMovie("ball", "ball", _root.getNextHighestDepth(), {_x:50, _y:50});
_root.attachMovie("wall4", "wall4", _root.getNextHighestDepth(), {_x:240, _y:200});
moving = false;
gravity = 0.01;
xspeed = 0;
yspeed = 0;
precision = 24;
radius = 15;
Mouse.hide();
arrow.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
dist_x = ball._x - this._x;
dist_y = ball._y - this._y;
total_dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (total_dist > 300) {
total_dist = 300;
}
total_dist = (300 - total_dist) / 500;
angle = Math.atan2(dist_y, dist_x);
this._rotation = angle * 57.2957795;
};
ball.onEnterFrame = function () {
if (moving) {
dir = arrow._rotation;
xspeed = xspeed + (total_dist * Math.cos(dir * 0.0174532925));
yspeed = yspeed + (total_dist * Math.sin(dir * 0.0174532925));
}
yspeed = yspeed + gravity;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
x = 1;
while (x < precision) {
spot_x = this._x + (radius * Math.sin(((x * 360) / precision) * 0.0174532925));
spot_y = this._y - (radius * Math.cos(((x * 360) / precision) * 0.0174532925));
if (wall4.hitTest(spot_x, spot_y, true)) {
if (wall4.hitTest(_root.ball)) {
_root.levelSound.gotoAndPlay(2);
ball.gotoAndPlay("pop");
}
xspeed = 0;
yspeed = 0;
this._x = 50;
this._y = 50;
}
x++;
}
};
_root.onMouseDown = function () {
moving = true;
};
_root.onMouseUp = function () {
moving = false;
};
if (_root.levelunlocked < 5) {
_root.levelunlocked = 5;
}
Frame 124 (1.7 KiB) ●
stop();
_root.attachMovie("wall5", "wall5", _root.getNextHighestDepth(), {_x:240, _y:200});
moving = false;
gravity = 0.01;
xspeed = 0;
yspeed = 0;
precision = 24;
radius = 15;
Mouse.hide();
arrow.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
dist_x = ball5._x - this._x;
dist_y = ball5._y - this._y;
total_dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (total_dist > 300) {
total_dist = 300;
}
total_dist = (300 - total_dist) / 500;
angle = Math.atan2(dist_y, dist_x);
this._rotation = angle * 57.2957795;
};
ball5.onEnterFrame = function () {
if (moving) {
dir = arrow._rotation;
xspeed = xspeed + (total_dist * Math.cos(dir * 0.0174532925));
yspeed = yspeed + (total_dist * Math.sin(dir * 0.0174532925));
}
yspeed = yspeed + gravity;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
x = 1;
while (x < precision) {
spot_x = this._x + (radius * Math.sin(((x * 360) / precision) * 0.0174532925));
spot_y = this._y - (radius * Math.cos(((x * 360) / precision) * 0.0174532925));
if (wall5.hitTest(spot_x, spot_y, true)) {
if (wall5.hitTest(_root.ball5)) {
_root.levelSound.gotoAndPlay(2);
ball5.gotoAndPlay("pop");
}
xspeed = 0;
yspeed = 0;
this._x = 50;
this._y = 50;
}
x++;
}
};
_root.onMouseDown = function () {
moving = true;
};
_root.onMouseUp = function () {
moving = false;
};
if (_root.levelunlocked < 6) {
_root.levelunlocked = 6;
}
onEnterFrame = function () {
if (_root.speedupdown.hitTest(_root.ball5)) {
Y = 3;
}
_root.ball5._y = _root.ball5._y + Y;
_root.ball5._x = _root.ball5._x + X;
};
Instance of Symbol 252 MovieClip in Frame 124 (99 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball5)) {
_root.gotoAndStop("lvlselect");
}
}
Frame 125 (1.53 KiB) ●
stop();
_root.attachMovie("wall6", "wall6", _root.getNextHighestDepth(), {_x:240, _y:200});
moving = false;
gravity = 0.01;
xspeed = 0;
yspeed = 0;
precision = 24;
radius = 15;
Mouse.hide();
arrow.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
dist_x = ball2._x - this._x;
dist_y = ball2._y - this._y;
total_dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (total_dist > 300) {
total_dist = 300;
}
total_dist = (300 - total_dist) / 500;
angle = Math.atan2(dist_y, dist_x);
this._rotation = angle * 57.2957795;
};
ball2.onEnterFrame = function () {
if (moving) {
dir = arrow._rotation;
xspeed = xspeed + (total_dist * Math.cos(dir * 0.0174532925));
yspeed = yspeed + (total_dist * Math.sin(dir * 0.0174532925));
}
yspeed = yspeed + gravity;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
x = 1;
while (x < precision) {
spot_x = this._x + (radius * Math.sin(((x * 360) / precision) * 0.0174532925));
spot_y = this._y - (radius * Math.cos(((x * 360) / precision) * 0.0174532925));
if (wall6.hitTest(spot_x, spot_y, true)) {
if (wall6.hitTest(_root.ball2)) {
_root.levelSound.gotoAndPlay(2);
ball2.gotoAndPlay("pop");
}
xspeed = 0;
yspeed = 0;
this._x = 50;
this._y = 50;
}
x++;
}
};
_root.onMouseDown = function () {
moving = true;
};
_root.onMouseUp = function () {
moving = false;
};
if (_root.levelunlocked < 7) {
_root.levelunlocked = 7;
}
Instance of Symbol 252 MovieClip in Frame 125 (100 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball2)) {
_root.gotoAndStop("lvlselect2");
}
}
Frame 126 (1.58 KiB) ●
stop();
_root.attachMovie("wall7", "wall7", _root.getNextHighestDepth(), {_x:240, _y:200});
moving = false;
gravity = 0.01;
xspeed = 0;
yspeed = 0;
precision = 24;
radius = 15;
Mouse.hide();
arrow.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
dist_x = ball2._x - this._x;
dist_y = ball2._y - this._y;
total_dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (total_dist > 300) {
total_dist = 300;
}
total_dist = (300 - total_dist) / 500;
angle = Math.atan2(dist_y, dist_x);
this._rotation = angle * 57.2957795;
};
ball2.onEnterFrame = function () {
if (moving) {
dir = arrow._rotation;
xspeed = xspeed + (total_dist * Math.cos(dir * 0.0174532925));
yspeed = yspeed + (total_dist * Math.sin(dir * 0.0174532925));
}
yspeed = yspeed + gravity;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
x = 1;
while (x < precision) {
spot_x = this._x + (radius * Math.sin(((x * 360) / precision) * 0.0174532925));
spot_y = this._y - (radius * Math.cos(((x * 360) / precision) * 0.0174532925));
if (wall7.hitTest(spot_x, spot_y, true)) {
if (wall7.hitTest(_root.ball2)) {
_root.levelSound.gotoAndPlay(2);
ball2.gotoAndPlay("pop");
}
xspeed = 0;
yspeed = 0;
this._x = 50;
this._y = 50;
}
x++;
}
};
_root.onMouseDown = function () {
moving = true;
};
_root.onMouseUp = function () {
moving = false;
};
if (_root.levelunlocked < 8) {
_root.levelunlocked = 8;
}
_root.spiner._rotation = _root.spiner._rotation + 1;
Frame 127 (1.6 KiB) ●
stop();
_root.attachMovie("ball", "ball", _root.getNextHighestDepth(), {_x:50, _y:50});
_root.attachMovie("wall8", "wall8", _root.getNextHighestDepth(), {_x:240, _y:200});
moving = false;
gravity = 0.01;
xspeed = 0;
yspeed = 0;
precision = 24;
radius = 15;
Mouse.hide();
arrow.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
dist_x = ball._x - this._x;
dist_y = ball._y - this._y;
total_dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (total_dist > 300) {
total_dist = 300;
}
total_dist = (300 - total_dist) / 500;
angle = Math.atan2(dist_y, dist_x);
this._rotation = angle * 57.2957795;
};
ball.onEnterFrame = function () {
if (moving) {
dir = arrow._rotation;
xspeed = xspeed + (total_dist * Math.cos(dir * 0.0174532925));
yspeed = yspeed + (total_dist * Math.sin(dir * 0.0174532925));
}
yspeed = yspeed + gravity;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
x = 1;
while (x < precision) {
spot_x = this._x + (radius * Math.sin(((x * 360) / precision) * 0.0174532925));
spot_y = this._y - (radius * Math.cos(((x * 360) / precision) * 0.0174532925));
if (wall8.hitTest(spot_x, spot_y, true)) {
if (wall8.hitTest(_root.ball)) {
_root.levelSound.gotoAndPlay(2);
ball.gotoAndPlay("pop");
}
xspeed = 0;
yspeed = 0;
this._x = 50;
this._y = 50;
}
x++;
}
};
_root.onMouseDown = function () {
moving = true;
};
_root.onMouseUp = function () {
moving = false;
};
if (_root.levelunlocked < 9) {
_root.levelunlocked = 9;
}
Instance of Symbol 252 MovieClip in Frame 127 (99 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.gotoAndStop("lvlselect2");
}
}
Frame 128 (1.6 KiB) ●
stop();
_root.attachMovie("ball", "ball", _root.getNextHighestDepth(), {_x:50, _y:50});
_root.attachMovie("wall9", "wall9", _root.getNextHighestDepth(), {_x:240, _y:200});
moving = false;
gravity = 0.01;
xspeed = 0;
yspeed = 0;
precision = 24;
radius = 15;
Mouse.hide();
arrow.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
dist_x = ball._x - this._x;
dist_y = ball._y - this._y;
total_dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (total_dist > 300) {
total_dist = 300;
}
total_dist = (300 - total_dist) / 500;
angle = Math.atan2(dist_y, dist_x);
this._rotation = angle * 57.2957795;
};
ball.onEnterFrame = function () {
if (moving) {
dir = arrow._rotation;
xspeed = xspeed + (total_dist * Math.cos(dir * 0.0174532925));
yspeed = yspeed + (total_dist * Math.sin(dir * 0.0174532925));
}
yspeed = yspeed + gravity;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
x = 1;
while (x < precision) {
spot_x = this._x + (radius * Math.sin(((x * 360) / precision) * 0.0174532925));
spot_y = this._y - (radius * Math.cos(((x * 360) / precision) * 0.0174532925));
if (wall9.hitTest(spot_x, spot_y, true)) {
if (wall9.hitTest(_root.ball)) {
_root.levelSound.gotoAndPlay(2);
ball.gotoAndPlay("pop");
}
xspeed = 0;
yspeed = 0;
this._x = 50;
this._y = 50;
}
x++;
}
};
_root.onMouseDown = function () {
moving = true;
};
_root.onMouseUp = function () {
moving = false;
};
if (_root.levelunlocked < 10) {
_root.levelunlocked = 10;
}
Frame 129 (1.61 KiB) ●
stop();
_root.attachMovie("ball", "ball", _root.getNextHighestDepth(), {_x:50, _y:50});
_root.attachMovie("wall10", "wall10", _root.getNextHighestDepth(), {_x:240, _y:200});
moving = false;
gravity = 0.01;
xspeed = 0;
yspeed = 0;
precision = 24;
radius = 15;
Mouse.hide();
arrow.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
dist_x = ball._x - this._x;
dist_y = ball._y - this._y;
total_dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (total_dist > 300) {
total_dist = 300;
}
total_dist = (300 - total_dist) / 500;
angle = Math.atan2(dist_y, dist_x);
this._rotation = angle * 57.2957795;
};
ball.onEnterFrame = function () {
if (moving) {
dir = arrow._rotation;
xspeed = xspeed + (total_dist * Math.cos(dir * 0.0174532925));
yspeed = yspeed + (total_dist * Math.sin(dir * 0.0174532925));
}
yspeed = yspeed + gravity;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
x = 1;
while (x < precision) {
spot_x = this._x + (radius * Math.sin(((x * 360) / precision) * 0.0174532925));
spot_y = this._y - (radius * Math.cos(((x * 360) / precision) * 0.0174532925));
if (wall10.hitTest(spot_x, spot_y, true)) {
if (wall10.hitTest(_root.ball)) {
_root.levelSound.gotoAndPlay(2);
ball.gotoAndPlay("pop");
}
xspeed = 0;
yspeed = 0;
this._x = 50;
this._y = 50;
}
x++;
}
};
_root.onMouseDown = function () {
moving = true;
};
_root.onMouseUp = function () {
moving = false;
};
if (_root.levelunlocked < 11) {
_root.levelunlocked = 11;
}
Frame 130 (3.18 KiB) ●
stop();
_root.attachMovie("wallboss", "wallboss", _root.getNextHighestDepth(), {_x:240, _y:200});
moving = false;
gravity = 0.01;
xspeed = 0;
yspeed = 0;
precision = 24;
radius = 15;
Mouse.hide();
arrow.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
dist_x = ball._x - this._x;
dist_y = ball._y - this._y;
total_dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (total_dist > 300) {
total_dist = 300;
}
total_dist = (300 - total_dist) / 500;
angle = Math.atan2(dist_y, dist_x);
this._rotation = angle * 57.2957795;
};
ball.onEnterFrame = function () {
if (moving) {
dir = arrow._rotation;
xspeed = xspeed + (total_dist * Math.cos(dir * 0.0174532925));
yspeed = yspeed + (total_dist * Math.sin(dir * 0.0174532925));
}
yspeed = yspeed + gravity;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
x = 1;
while (x < precision) {
spot_x = this._x + (radius * Math.sin(((x * 360) / precision) * 0.0174532925));
spot_y = this._y - (radius * Math.cos(((x * 360) / precision) * 0.0174532925));
if (wallboss.hitTest(spot_x, spot_y, true)) {
if (wallboss.hitTest(_root.ball)) {
_root.levelSound.gotoAndPlay(2);
ball.gotoAndPlay("pop");
}
xspeed = 0;
yspeed = 0;
this._x = 50;
this._y = 50;
}
x++;
}
};
_root.onMouseDown = function () {
moving = true;
};
_root.onMouseUp = function () {
moving = false;
};
if (_root.levelunlocked < 11) {
_root.levelunlocked = 11;
}
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
function countdown() {
if (time_left <= 0) {
gotoAndStop ("cerdits");
}
}
enemy.onEnterFrame = function () {
tx = this._x;
mx = _root.ball._x;
rx = tx - mx;
if (this.hitTest(_root.ball)) {
this.gotoAndStop(2);
} else {
if ((rx >= 1) && (rx < 300)) {
this._x = this._x - 1;
}
if ((rx <= -1) && (rx > -300)) {
this._x = this._x + 1;
}
this.gotoAndStop(1);
}
};
onEnterFrame = function () {
_root.shot._visible = false;
shotcount = 1;
};
onEnterFrame = function () {
};
onEnterFrame = function (mouseDown) {
_root.shot.duplicateMovieClip("shot" + shotcount, shotcount + 7000);
_root["shot" + shotcount]._visible = true;
shotcount++;
if (shotcount > 100) {
shotcount = 1;
}
};
enemy.onEnterFrame = function () {
var _local6 = ball._X - this._X;
var _local3 = ball._Y - this._Y;
var _local5 = Math.atan2(_local3, _local6);
this._rotation = convert(_local5);
var _local4 = 1 * Math.cos((this._rotation * Math.PI) / 180);
var _local2 = 1 * Math.sin((this._rotation * Math.PI) / 180);
this._x = this._x + _local4;
this._y = this._y + _local2;
};
enemy2.onEnterFrame = function () {
var _local6 = ball._X - this._X;
var _local3 = ball._Y - this._Y;
var _local5 = Math.atan2(_local3, _local6);
this._rotation = convert(_local5);
var _local4 = 1 * Math.cos((this._rotation * Math.PI) / 180);
var _local2 = 1 * Math.sin((this._rotation * Math.PI) / 180);
this._x = this._x + _local4;
this._y = this._y + _local2;
};
time_left = 30;
setInterval(countdown, 1000);
Instance of Symbol 270 MovieClip "shot" in Frame 130 (737 B)
onClipEvent (load) {
if (this._name == "shot") {
this._visible = false;
} else {
this._visible = true;
}
this._x = _root.gun._x;
this._y = _root.gun._y;
shotxspeed = 40 * Math.sin(_root.gun._rotation * (Math.PI/180));
shotyspeed = 40 * Math.cos(_root.gun._rotation * (Math.PI/180));
}
onClipEvent (enterFrame) {
this._x = this._x + shotxspeed;
this._y = this._y - shotyspeed;
if (this._x < 0) {
this.removeMovieClip();
}
if (this._x > 550) {
this.removeMovieClip();
}
if (this._y > 400) {
this.removeMovieClip();
}
if (this._y < 0) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.popSound.gotoAndPlay(2);
_root.gotoAndStop("lvlselect3")();
}
}
Instance of Symbol 272 MovieClip "gun" in Frame 130 (761 B)
onClipEvent (enterFrame) {
rx = _root.ball._x;
ry = _root.ball._y;
cx = _root.gun._x;
cy = _root.gun._y;
angle = Math.atan2(ry - cy, rx - cx) / (Math.PI/180);
_rotation = angle;
}
onClipEvent (load) {
_root.shot._visible = false;
shotcount = 1;
}
onClipEvent (enterFrame) {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root._ymouse - this._y);
_root.xChange = Math.round(_root._xmouse - this._x);
this._rotation = myDegrees + 90;
}
onClipEvent (mouseDown) {
_root.shot.duplicateMovieClip("shot" + shotcount, shotcount + 7000);
_root["shot" + shotcount]._visible = true;
shotcount++;
if (shotcount > 100) {
shotcount = 1E24;
}
}
Instance of Symbol 275 MovieClip "enemy" in Frame 130 (134 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.popSound.gotoAndPlay(2);
_root.gotoAndStop("lvlselect3")();
}
}
Instance of Symbol 275 MovieClip "enemy2" in Frame 130 (134 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.popSound.gotoAndPlay(2);
_root.gotoAndStop("lvlselect3")();
}
}
Instance of Symbol 252 MovieClip in Frame 130 (98 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.gotoAndStop("lvlselect");
}
}
Frame 131 (8 B)
stop();
Instance of Symbol 126 MovieClip in Frame 131 (53 B)
onClipEvent (enterFrame) {
startDrag (this, true);
}
Frame 132 (8 B)
stop();
Instance of Symbol 126 MovieClip in Frame 132 (53 B)
onClipEvent (enterFrame) {
startDrag (this, true);
}
Frame 133 (8 B)
stop();
Frame 134 (8 B)
stop();
Frame 135 (8 B)
stop();
Frame 136 (56 B)
stop();
var myBlur = (new flash.filters.BlurFilter());
Frame 137 (8 B)
stop();
Symbol 95 MovieClip [ball] Frame 1 (8 B)
stop();
Symbol 101 MovieClip [arrow] Frame 1 (21 B)
stop();
volume = 0;
Symbol 101 MovieClip [arrow] Frame 25 (13 B)
volume = 25;
Symbol 101 MovieClip [arrow] Frame 76 (13 B)
volume = 25;
Symbol 101 MovieClip [arrow] Frame 103 (18 B)
gotoAndPlay (76);
Symbol 101 MovieClip [arrow] Frame 126 (14 B)
volume = 150;
Symbol 120 Button (76 B)
on (release) {
getURL ("http://www.randomproductionsoz.co.nr", "_blank");
}
Symbol 121 Button (67 B)
on (release) {
getURL (www.randomproductionsoz.co.nr, "_blank");
}
Symbol 131 MovieClip Frame 60 (8 B)
stop();
Symbol 134 MovieClip Frame 60 (8 B)
stop();
Symbol 139 MovieClip Frame 110 (23 B)
this.gotoAndPlay("1");
Symbol 147 Button (43 B)
on (release) {
this.gotoAndStop("menu");
}
Symbol 149 Button (42 B)
on (release) {
this.gotoAndStop("sg4");
}
Symbol 151 Button (42 B)
on (release) {
this.gotoAndStop("sg3");
}
Symbol 153 Button (42 B)
on (release) {
this.gotoAndStop("sg2");
}
Symbol 155 Button (42 B)
on (release) {
this.gotoAndStop("sg1");
}
Symbol 164 Button (44 B)
on (release) {
this.gotoAndStop("music");
}
Symbol 169 Button (44 B)
on (release) {
gotoAndStop ("lvlselect");
}
Symbol 174 Button (40 B)
on (release) {
gotoAndStop ("howto");
}
Symbol 182 Button (76 B)
on (release) {
getURL ("http://www.randomproductionsoz.co.nr", "_blank");
}
Symbol 190 MovieClip Frame 59 (8 B)
stop();
Symbol 193 Button (119 B)
on (release) {
if (_root.levelunlocked < 1) {
_root.levelunlocked = 1;
} else {
this.gotoAndStop("lvl1");
}
}
Symbol 196 Button (93 B)
on (release) {
if (_root.levelunlocked <= 1) {
} else {
this.gotoAndStop("lvl2");
}
}
Symbol 199 Button (93 B)
on (release) {
if (_root.levelunlocked <= 2) {
} else {
this.gotoAndStop("lvl3");
}
}
Symbol 202 Button (43 B)
on (release) {
this.gotoAndStop("menu");
}
Symbol 203 Button (49 B)
on (release) {
this.gotoAndStop("lvlselect2");
}
Symbol 206 Button (93 B)
on (release) {
if (_root.levelunlocked <= 4) {
} else {
this.gotoAndStop("lvl5");
}
}
Symbol 209 Button (93 B)
on (release) {
if (_root.levelunlocked <= 3) {
} else {
this.gotoAndStop("lvl4");
}
}
Symbol 218 Button (93 B)
on (release) {
if (_root.levelunlocked <= 5) {
} else {
this.gotoAndStop("lvl6");
}
}
Symbol 221 Button (93 B)
on (release) {
if (_root.levelunlocked <= 6) {
} else {
this.gotoAndStop("lvl7");
}
}
Symbol 224 Button (93 B)
on (release) {
if (_root.levelunlocked <= 7) {
} else {
this.gotoAndStop("lvl8");
}
}
Symbol 227 Button (93 B)
on (release) {
if (_root.levelunlocked <= 8) {
} else {
this.gotoAndStop("lvl9");
}
}
Symbol 230 Button (94 B)
on (release) {
if (_root.levelunlocked <= 9) {
} else {
this.gotoAndStop("lvl10");
}
}
Symbol 231 Button (48 B)
on (release) {
this.gotoAndStop("lvlselect");
}
Symbol 232 Button (49 B)
on (release) {
this.gotoAndStop("lvlselect3");
}
Symbol 237 Button (97 B)
on (release) {
if (_root.levelunlocked <= 10) {
} else {
this.gotoAndStop("lvlboss");
}
}
Symbol 238 Button (49 B)
on (release) {
this.gotoAndStop("lvlselect2");
}
Symbol 244 Button (43 B)
on (release) {
this.gotoAndStop("menu");
}
Symbol 254 MovieClip Frame 1 (8 B)
stop();
Symbol 256 Button (96 B)
on (press) {
arrow.gotoAndPlay("startspin");
}
on (release) {
arrow.gotoAndPlay("slowdown");
}
Symbol 261 MovieClip Frame 1 (8 B)
stop();
Symbol 277 MovieClip Frame 30 (39 B)
_root.time_left = _root.time_left - 1;
Symbol 281 MovieClip Frame 50 (8 B)
stop();
Symbol 282 Button (43 B)
on (release) {
this.gotoAndStop("menu");
}
Symbol 295 MovieClip Frame 1080 (8 B)
stop();
Symbol 300 Button (45 B)
on (release) {
this.gotoAndStop("howto1");
}
Symbol 303 Button (44 B)
on (release) {
this.gotoAndStop("howto");
}
Symbol 304 Button (45 B)
on (release) {
this.gotoAndStop("howto2");
}
Symbol 310 Button (45 B)
on (release) {
this.gotoAndStop("howto1");
}
Symbol 311 Button (45 B)
on (release) {
this.gotoAndStop("howto3");
}
Symbol 317 Button (45 B)
on (release) {
this.gotoAndStop("howto2");
}
Symbol 318 Button (45 B)
on (release) {
this.gotoAndStop("howto4");
}
Symbol 320 Button (45 B)
on (release) {
this.gotoAndStop("howto3");
}
Symbol 321 Button (45 B)
on (release) {
this.gotoAndStop("howto5");
}
Symbol 327 Button (45 B)
on (release) {
this.gotoAndStop("howto4");
}