Frame 1
jazz = new Sound();
jazz.attachSound("jazz");
jazz.start(0, 999);
ting = new Sound();
ting.attachSound("ting");
Frame 2
stop();
pop = new Sound();
pop.attachSound("pop");
jump = new Sound();
jump.attachSound("jump");
land = new Sound();
land.attachSound("land");
ting = new Sound();
ting.attachSound("ting");
bad = new Sound();
bad.attachSound("bad");
bonus = new Sound();
bonus.attachSound("bonus");
Instance of Symbol 43 MovieClip "1" in Frame 2
onClipEvent (load) {
xspeed = -(0.5 + Math.random());
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
if (this._x > 700) {
xspeed = -(0.5 + Math.random());
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
if (this._x < -200) {
xspeed = 0.5 + Math.random();
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
}
Instance of Symbol 43 MovieClip "2" in Frame 2
onClipEvent (load) {
xspeed = 0.5 + Math.random();
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
if (this._x > 700) {
xspeed = -(0.5 + Math.random());
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
if (this._x < -200) {
xspeed = 0.5 + Math.random();
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
}
Frame 3
stop();
score = 0;
balloons = 6;
speed = 3;
i = 1;
while (i < balloons) {
attachMovie("balloon", "balloon" + i, i);
_root["balloon" + i]._x = i * 95;
i++;
}
catFunc = function (cat, right, left, jump) {
speed = speed + 0.005;
if (cat.varsset > 0) {
} else {
cat.xspeed = 0;
cat.yspeed = 0;
cat.dir = 1;
cat.varsset = 1;
cat.landed = 0;
}
if (cat.landed == 1) {
cat.gotoAndStop(cat.dir);
cat.cat.gotoAndStop(1);
if (Key.isDown(left)) {
cat.dir = 2;
}
if (Key.isDown(right)) {
cat.dir = 1;
}
if (Key.isDown(jump)) {
cat.cat.gotoAndStop(2);
cat.yspeed = -15;
cat.landed = 0;
if (cat.dir == 1) {
cat.xspeed = 10;
} else {
cat.xspeed = -10;
}
}
} else {
if (cat.xspeed > 0) {
cat.xspeed = cat.xspeed - 0.5;
} else if (cat.xspeed < 0) {
cat.xspeed = cat.xspeed + 0.5;
}
cat._y = cat._y + cat.yspeed;
cat.yspeed++;
cat._x = cat._x + cat.xspeed;
}
};
balloonFunc = function (balloon) {
if (balloon.varsset > 0) {
} else {
balloon._y = (Math.random() * 300) + 100;
balloon._width = 42.5;
balloon._height = 64;
balloon.yspeed = 3;
balloon.varsset = 1;
balloon.caton = 0;
}
balloon._y = balloon._y - balloon.yspeed;
if ((((balloon._x < (cat._x + 20)) and (balloon._x > (cat._x - 20))) and (balloon._y < (cat._y + 65))) and (balloon._y > (cat._y + 35))) {
if (balloon.caton == 0) {
cat.landed = 1;
balloon.caton = 1;
land.start();
}
}
if (balloon.caton == 1) {
if (balloon.bonus == 1) {
balloon.gotoAndStop(19);
} else if (balloon.bad == 1) {
balloon.gotoAndStop(36);
} else {
balloon.gotoAndStop(2);
}
cat._y = balloon._y - 50;
cat._x = balloon._x - 2;
balloon.yspeed = -speed;
if (Key.isDown(cat.jumpkey)) {
balloon.caton = 0;
balloon.play();
pop.start();
jump.start();
if (balloon.bad == 1) {
bad.start();
} else if (balloon.bonus == 1) {
bonus.start();
}
}
} else {
balloon.yspeed = speed;
}
if (balloon._y < -30) {
balloon._y = 500;
if (Math.random() > 0.85) {
balloon.gotoAndStop("bonus");
balloon.bonus = 1;
balloon.bad = 0;
} else if (Math.random() > 0.85) {
balloon.gotoAndStop("bad");
balloon.bad = 1;
balloon.bonus = 0;
} else {
balloon.gotoAndStop(1);
balloon.bonus = 0;
balloon.bad = 0;
}
}
};
Instance of Symbol 43 MovieClip in Frame 3
onClipEvent (load) {
xspeed = 0.5 + Math.random();
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
if (this._x > 700) {
xspeed = -(0.5 + Math.random());
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
if (this._x < -200) {
xspeed = 0.5 + Math.random();
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
}
Instance of Symbol 43 MovieClip in Frame 3
onClipEvent (load) {
xspeed = -(0.5 + Math.random());
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
if (this._x > 700) {
xspeed = -(0.5 + Math.random());
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
if (this._x < -200) {
xspeed = 0.5 + Math.random();
gotoAndStop(Math.round(1 + (Math.random() * 2)));
this._y = Math.random() * 400;
size = 50 + (Math.random() * 100);
this._xscale = size;
this._yscale = size;
}
}
Instance of Symbol 53 MovieClip "cat" in Frame 3
onClipEvent (load) {
jumpkey = 32;
}
onClipEvent (enterFrame) {
_root.catFunc(this, 39, 37, 32, jumpkey);
i = 0;
while (i < _root.balloons) {
_root.balloonFunc(_root["balloon" + i]);
i++;
}
if (this._y > 450) {
_root.nextFrame();
}
}
Frame 4
i = 1;
while (i < balloons) {
_root["balloon" + i].removeMovieClip();
i++;
}
box.text = "You Scored\n" + score;
stop();
Symbol 14 MovieClip Frame 10
_root.score = _root.score + 100;
Symbol 20 MovieClip Frame 10
_root.score = _root.score + 500;
Symbol 27 MovieClip Frame 10
_root.score = _root.score - 300;
Symbol 29 MovieClip [balloon] Frame 1
stop();
bonus = 0;
bad = 0;
Symbol 29 MovieClip [balloon] Frame 16
this._y = 450;
Symbol 29 MovieClip [balloon] Frame 17
gotoAndStop (1);
Symbol 29 MovieClip [balloon] Frame 18
stop();
Symbol 29 MovieClip [balloon] Frame 33
this._y = 450;
Symbol 29 MovieClip [balloon] Frame 34
gotoAndStop (1);
Symbol 29 MovieClip [balloon] Frame 35
stop();
Symbol 29 MovieClip [balloon] Frame 50
this._y = 450;
Symbol 38 Button
on (release) {
_root.play();
_root.ting.start();
}
Symbol 39 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Instance of Symbol 29 MovieClip [balloon] in Symbol 39 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.keyset == 0) {
} else {
_root.music.start(0, 9999);
_root.keyset = 0;
_root.P1jump = 38;
_root.P1right = 39;
_root.P1left = 37;
_root.P2jump = 87;
_root.P2right = 68;
_root.P2left = 65;
}
}
Symbol 39 MovieClip Frame 2
gotoAndPlay (1);
Symbol 43 MovieClip Frame 1
stop();
Symbol 45 Button
on (release) {
_root.ting.start();
_root.nextFrame();
}
Symbol 52 MovieClip Frame 1
stop();
Instance of Symbol 50 MovieClip "tail" in Symbol 52 MovieClip Frame 1
onClipEvent (load) {
rotspeed = 2;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + rotspeed;
if (this._rotation > 10) {
rotspeed = -rotspeed;
} else if (this._rotation < -10) {
rotspeed = -rotspeed;
}
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 58 Button
on (press) {
_root.ting.start();
_root.gotoAndStop("menu");
}