Frame 1
function go() {
gotoAndStop (11);
}
function end() {
gotoAndPlay (52);
}
stop();
var score = 0;
var level = 1;
var mute = false;
var alpha = 20;
var life = 20;
music = new Sound(this);
start._visible = false;
Stage.scaleMode = "noScale";
Stage.showMenu = false;
Instance of Symbol 15 MovieClip "play" in Frame 1
onClipEvent (load) {
var speed = 0;
var acc = 4;
var go = false;
var ox = _x;
_x = ((550 + (_width / 2)) + 50);
}
onClipEvent (enterFrame) {
if ((_x > ox) && (go)) {
speed = speed + acc;
_x = (_x - speed);
}
}
Instance of Symbol 18 MovieClip "loader" in Frame 1
onClipEvent (load) {
owidth = _width;
_width = 0;
}
onClipEvent (enterFrame) {
percent = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.play.go = true;
}
_width = ((percent * owidth) / 100);
}
Frame 11
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 12
music.stop();
gotoAndStop (13);
Frame 13
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.stop();
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 14
music.stop();
gotoAndStop (15);
Frame 15
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 16
music.stop();
gotoAndStop (17);
Frame 17
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 18
music.stop();
gotoAndStop (19);
Frame 19
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 20
music.stop();
gotoAndStop (21);
Frame 21
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 22
music.stop();
gotoAndStop (23);
Frame 23
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 24
music.stop();
gotoAndStop (25);
Frame 25
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 26
music.stop();
gotoAndStop (27);
Frame 27
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 28
music.stop();
gotoAndStop (29);
Frame 29
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 30
music.stop();
gotoAndStop (31);
Frame 31
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 32
music.stop();
gotoAndStop (33);
Frame 33
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 34
music.stop();
gotoAndStop (35);
Frame 35
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Instance of Symbol 119 MovieClip in Frame 35
onClipEvent (load) {
bace.maxSpeed = 7;
}
Instance of Symbol 119 MovieClip in Frame 35
onClipEvent (load) {
bace.maxSpeed = 3;
}
Instance of Symbol 119 MovieClip in Frame 35
onClipEvent (load) {
bace.maxSpeed = 1;
}
Frame 36
music.stop();
gotoAndStop (37);
Frame 37
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 38
music.stop();
gotoAndStop (39);
Frame 39
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 40
music.stop();
gotoAndStop (41);
Frame 41
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 42
music.stop();
gotoAndStop (43);
Frame 43
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Instance of Symbol 119 MovieClip in Frame 43
onClipEvent (load) {
bace.maxSpeed = 10;
}
Instance of Symbol 119 MovieClip in Frame 43
onClipEvent (load) {
bace.maxSpeed = 10;
}
Frame 44
music.stop();
gotoAndStop (45);
Frame 45
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Instance of Symbol 127 MovieClip in Frame 45
onClipEvent (load) {
bace.maxSpeed = 2;
}
Instance of Symbol 127 MovieClip in Frame 45
onClipEvent (load) {
bace.maxSpeed = 1;
}
Instance of Symbol 127 MovieClip in Frame 45
onClipEvent (load) {
bace.maxSpeed = 4;
}
Instance of Symbol 127 MovieClip in Frame 45
onClipEvent (load) {
bace.maxSpeed = 2;
}
Instance of Symbol 127 MovieClip in Frame 45
onClipEvent (load) {
bace.maxSpeed = 1;
}
Frame 46
music.stop();
gotoAndStop (47);
Frame 47
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = random(7) + 1;
music.attachSound("sound" + trek);
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Frame 48
music.stop();
gotoAndStop (49);
Frame 49
stop();
var numOfFood = 0;
_root.createEmptyMovieClip("tv", 100);
trek = 0;
music.attachSound("game over");
music.setVolume(70);
music.start(0, 999);
tv.onEnterFrame = function () {
timer++;
if (timer == 5) {
if (x == 0) {
x = 1;
} else {
x = 0;
}
tv.clear();
timer = 0;
tv.lineStyle(1, 0, _root.alpha);
i = x;
while (i < 400) {
tv.moveTo(0, i);
tv.lineTo(550, i);
i = i + 2;
}
}
};
Instance of Symbol 145 MovieClip in Frame 49
onClipEvent (load) {
var speed = 1;
oy = _y;
this._visible = true;
}
onClipEvent (enterFrame) {
_y = (_y - speed);
if (((_y + _height) + 50) < oy) {
_y = (oy + 50);
}
}
Frame 50
music.stop();
gotoAndStop (51);
Frame 51
if (_root.life == 0) {
gotoAndStop (52);
}
bg = new Sound();
bg.attachSound("finished");
bg.start(0, 99999);
stop();
Frame 52
stop();
music.stop();
bg2 = new Sound();
bg2.attachSound("game over");
bg2.start(0, 99999);
Instance of Symbol 10 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
_root.life = 30;
_root.go();
};
}
Instance of Symbol 12 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
_root.life = 25;
_root.go();
};
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
_root.life = 15;
_root.go();
};
}
Instance of Symbol 33 MovieClip in Symbol 34 MovieClip Frame 1
onClipEvent (load) {
_root.numOfFood++;
rotation = random(360);
var active = true;
pop = new Sound(this);
pop.attachSound("pop");
}
onClipEvent (enterFrame) {
if (!active) {
return(undefined);
}
rotation = rotation + 3;
_rotation = rotation;
if (rotation == 360) {
rotation = 0;
}
if (this.hitTest(_root.ball)) {
_root.score = _root.score + 200;
active = false;
_root.numOfFood--;
pop.start(0.01, 1);
this._visible = false;
}
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 3
gotoAndStop (1);
Instance of Symbol 51 MovieClip "ball" in Symbol 52 MovieClip Frame 1
onClipEvent (load) {
function reset() {
_visible = true;
_parent._x = ox;
_parent._y = oy;
acc = -3;
}
function poof() {
_parent._y = 700;
speed = 0;
acc = 0;
_visible = false;
}
_parent._name = "ball";
var numOfBaces = 0;
var timer = 0;
var speed = 0;
var acc = -3;
var maxSpeed = 15;
var xspeed = 0;
var temp = false;
var ox = _parent._x;
var oy = _parent._y;
ballHitArea._visible = false;
fall = new Sound();
fall.attachSound("fall");
}
onClipEvent (enterFrame) {
hit = false;
hitx = false;
j = 0;
while (j < Math.abs(speed)) {
_parent._y = _parent._y - ((1 * Math.abs(speed)) / speed);
_parent._x = _parent._x + (xspeed / Math.abs(speed));
i = 0;
while (i < numOfBaces) {
cBace = _root["bace" + i].bace;
if (cBace.hitArea.hitTest(ballHitArea)) {
_parent._x = _parent._x - ((xspeed / Math.abs(speed)) + ((2 * Math.abs(xspeed)) / xspeed));
if (cBace.hitArea.hitTest(ballHitArea)) {
hit = true;
_parent._x = _parent._x + ((xspeed / Math.abs(speed)) + ((2 * Math.abs(xspeed)) / xspeed));
break;
}
xspeed = 0;
cBace.doYourThingX(this);
hitx = true;
}
i++;
}
if (hit) {
_parent._y = _parent._y + ((2 * Math.abs(speed)) / speed);
break;
}
j++;
}
speed = speed + acc;
if (hit) {
cBace.doYourThing(this);
}
if (!hit) {
xspeed = 0;
if (Key.isDown(37) && (_parent._x > 30)) {
xspeed = -10;
}
if (Key.isDown(39) && (_parent._x < 520)) {
xspeed = 10;
}
if ((_parent._y > 400) && (_root.msg.myText.state == "pre")) {
speed = 0;
acc = 0;
_root.life--;
_root.score = _root.score - 50;
if (_root.score < 0) {
_root.score = 0;
}
fall.start();
_root.msg.myText.bad();
}
if (_root.life <= 0) {
_root.msg.myText.death();
}
}
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 4
gotoAndStop (1);
Symbol 57 MovieClip Frame 7
gotoAndStop (1);
Instance of Symbol 57 MovieClip "bace" in Symbol 58 MovieClip Frame 1
onClipEvent (load) {
function doYourThing(ball) {
if (timer == 0) {
bing.start();
ball.gotoAndPlay("jump");
if (ball.speed < 0) {
this.gotoAndPlay("jump");
} else {
this.gotoAndPlay("up");
}
}
timer++;
if ((timer == 1) || (temp)) {
timer = 0;
if (ball.speed != 0) {
ball.speed = ball.maxSpeed * (Math.abs(ball.speed) / (-ball.speed));
} else {
ball.speed = -ball.maxSpeed;
}
ball.acc = -3;
if (Key.isDown(38) && (ball.speed > 0)) {
ball.speed = 25;
}
}
}
_parent._name = "bace" + _root.ball.ball.numOfBaces;
_root.ball.ball.numOfBaces++;
var type;
var timer = 0;
this.hitArea = normalHit;
normalHit._visible = false;
bing = new Sound(this);
bing.attachSound("bing");
bing.setVolume(80);
}
Instance of Symbol 59 MovieClip "bace" in Symbol 60 MovieClip Frame 1
onClipEvent (load) {
function doYourThing(ball) {
if ((ball.getBounds(_root).xMax + ball.getBounds(_root).xMin) < (this.getBounds(_root).xMax + this.getBounds(_root).xMin)) {
ball._parent._x = (this.getBounds(_root).xMin - (ball._width / 2)) + 1;
} else {
ball._parent._x = (this.getBounds(_root).xMax + (ball._width / 2)) + 1;
}
}
function doYourThingX(ball) {
}
_parent._name = "bace" + _root.ball.ball.numOfBaces;
_root.ball.ball.numOfBaces++;
this.hitArea = this;
var type = "v";
var timer = 0;
}
Instance of Symbol 64 MovieClip in Symbol 65 MovieClip Frame 1
onClipEvent (load) {
rotation = 0;
_visible = false;
endSound = new Sound();
endSound.attachSound("endSound");
}
onClipEvent (enterFrame) {
if (_root.numOfFood != 0) {
return(undefined);
}
_visible = true;
rotation = rotation + 5;
_rotation = rotation;
if (rotation == 360) {
rotation = 0;
}
if (this.hitTest(_root.ball)) {
endSound.start();
_root.ball.ball.poof();
_root.msg.myText.levelUp();
}
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
Instance of Symbol 77 MovieClip in Symbol 78 MovieClip Frame 1
onClipEvent (load) {
if (_root.mute) {
gotoAndStop (2);
_root.music.setVolume(0);
}
this.onRelease = function () {
if (_currentframe == 1) {
_root.music.setVolume(0);
_root.mute = true;
gotoAndStop (2);
} else {
_root.music.setVolume(80);
_root.mute = false;
gotoAndStop (1);
}
};
}
Instance of Symbol 69 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (enterFrame) {
myScore.text = _root.score;
}
Symbol 86 MovieClip Frame 1
stop();
_visible = false;
Instance of Symbol 86 MovieClip "myText" in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
function bad() {
if (state == "move") {
return(undefined);
}
var text2;
var x = random(3);
if (x == 0) {
text2 = "Oh No!!";
}
if (x == 1) {
text2 = "Loooser";
}
if (x == 2) {
text2 = "Not Good";
}
mytext.text = text2;
_visible = true;
state = "move";
action = "reset";
}
function bazz() {
var text2;
var x = random(3);
if (x == 0) {
text2 = "Bazzzz";
}
if (x == 1) {
text2 = "Electric!";
}
if (x == 2) {
text2 = "I=V/R";
}
mytext.text = text2;
_visible = true;
state = "move";
action = "reset";
}
function levelUp() {
_root.level++;
var text2 = ("Next: L" + _root.level);
mytext.text = text2;
_visible = true;
state = "move";
action = "nextLevel";
}
function death() {
var text2 = "Noooooooo";
mytext.text = text2;
_visible = true;
state = "move";
action = "death";
}
_parent._name = "msg";
this._visible = false;
var speed = 70;
var state = "pre";
var action;
_parent._x = 550;
}
onClipEvent (enterFrame) {
if (state == "move") {
_parent._x = _parent._x - speed;
if (_parent._x < (-_width)) {
state = "pre";
_parent._x = 550;
_visible = false;
if (action == "reset") {
_root.ball.ball.reset();
}
if (action == "nextLevel") {
_root.nextFrame();
}
if (action == "death") {
_root.end();
}
}
}
}
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 6
gotoAndStop (1);
Instance of Symbol 96 MovieClip "bace" in Symbol 97 MovieClip Frame 1
onClipEvent (load) {
function doYourThing(ball) {
if (ball.speed > 0) {
ball.speed = -ball.maxSpeed;
this.gotoAndPlay("up");
return(0);
}
if (timer == 0) {
bigBing.start();
ball.gotoAndPlay("jump");
this.gotoAndPlay("jump");
}
timer++;
if (timer == 2) {
timer = 0;
ball.speed = 30;
}
}
_parent._name = "bace" + _root.ball.ball.numOfBaces;
_root.ball.ball.numOfBaces++;
var type;
var timer = 0;
this.hitArea = bigHit;
bigHit._visible = false;
bigBing = new Sound(this);
bigBing.attachSound("bigBing");
bigBing.setVolume(90);
}
Instance of Symbol 110 MovieClip "bace" in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
function doYourThing(ball) {
if (ball.speed > 0) {
ball.speed = ball.maxSpeed * (Math.abs(ball.speed) / (-ball.speed));
} else {
spark.start(0.1, 1);
_root.life--;
_root.score = _root.score - 50;
if (_root.score < 0) {
_root.score = 0;
}
ball.poof();
_root.msg.myText.bazz();
}
}
_parent._name = "bace" + _root.ball.ball.numOfBaces;
_root.ball.ball.numOfBaces++;
this.hitArea = this;
gotoAndPlay(Math.floor(random(10)));
spark = new Sound(this);
spark.attachSound("spark");
}
Instance of Symbol 118 MovieClip "bace" in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
function doYourThing(ball) {
if ((ball.getBounds(_root).xMax + ball.getBounds(_root).xMin) < (this.getBounds(_root).xMax + this.getBounds(_root).xMin)) {
ball._parent._x = (this.getBounds(_root).xMin - (ball._width / 2)) - 1;
} else {
ball._parent._x = (this.getBounds(_root).xMax + (ball._width / 2)) + 1;
}
}
function doYourThingX(ball) {
}
_parent._name = "bace" + _root.ball.ball.numOfBaces;
_root.ball.ball.numOfBaces++;
this.hitArea = sHitA;
sHitA._visible = false;
if (maxSpeed == undefined) {
maxSpeed = 4;
}
var speed = 0;
var myHeight = sHita._height;
var oHeight = sHita._height;
var flag = true;
}
onClipEvent (enterFrame) {
myHeight = myHeight + speed;
if (myHeight <= 0) {
myHeight = 0;
speed = maxSpeed;
}
if (myHeight >= oHeight) {
myHeight = oHeight;
speed = -maxSpeed;
}
sHitA._height = myHeight;
sHitA._y = sHitA._y + (speed / 2);
mask._height = myHeight;
mask._y = mask._y + (speed / 2);
}
Instance of Symbol 126 MovieClip "bace" in Symbol 127 MovieClip Frame 1
onClipEvent (load) {
function doYourThing(ball) {
if ((ball._parent._y > this.getBounds(_root).yMin) && (ball._parent._y < this.getBounds(_root).yMax)) {
if (ball._parent._y < ((this.getBounds(_root).yMin + this.getBounds(_root).yMax) / 2)) {
ball._parent._y = this.getBounds(_root).yMin + 5;
} else {
ball._parent._y = this.getBounds(_root).yMax - 5;
}
return(undefined);
}
if (timer == 0) {
ball.gotoAndPlay("jump");
if (ball.speed < 0) {
this.gotoAndPlay("jump");
} else {
this.gotoAndPlay("up");
}
}
timer++;
if ((timer == 1) || (temp)) {
timer = 0;
ball.speed = ball.maxSpeed * (Math.abs(ball.speed) / (-ball.speed));
ball.acc = -3;
if (Key.isDown(38) && (ball.speed > 0)) {
ball.speed = 25;
}
}
}
function doYourThingX(ball) {
}
_parent._name = "bace" + _root.ball.ball.numOfBaces;
_root.ball.ball.numOfBaces++;
this.hitArea = sHitA;
sHitA._visible = false;
if (maxSpeed == undefined) {
maxSpeed = 3;
}
var speed = 0;
var myWidth = sHita._width;
var oWidth = sHita._width;
var flag = true;
}
onClipEvent (enterFrame) {
myWidth = myWidth + speed;
if (myWidth <= 0) {
myWidth = 0;
speed = maxSpeed;
}
if (myWidth >= oWidth) {
myWidth = oWidth;
speed = -maxSpeed;
}
sHitA._width = myWidth;
sHitA._x = sHitA._x - (speed / 2);
mask._width = myWidth;
mask._x = mask._x - (speed / 2);
}
Instance of Symbol 134 MovieClip "bace" in Symbol 135 MovieClip Frame 1
onClipEvent (load) {
function doYourThing(ball) {
if (ball.speed < 0) {
ball.speed = ball.maxSpeed * (Math.abs(ball.speed) / (-ball.speed));
} else {
spark.start(0.1, 1);
_root.life--;
_root.score = _root.score - 50;
if (_root.score < 0) {
_root.score = 0;
}
ball.poof();
_root.msg.myText.bazz();
}
}
_parent._name = "bace" + _root.ball.ball.numOfBaces;
_root.ball.ball.numOfBaces++;
this.hitArea = this;
gotoAndPlay(Math.floor(random(10)));
spark = new Sound(this);
spark.attachSound("spark");
}
Symbol 140 Button
on (release) {
bg.stop();
gotoAndPlay (1);
}
Symbol 153 Button
on (release) {
bg2.stop();
gotoAndPlay (1);
}