Frame 1
_root.lbar._rotation = 12.5;
Frame 3
var loadAmount = _totalframes;
if (_framesloaded == loadAmount) {
gotoAndPlay ("transition");
} else {
tloaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
percent = Math.round((tloaded / total) * 100);
_root.lbar._xscale = percent;
gotoAndPlay (2);
}
Frame 15
gotoAndPlay (16);
Frame 75
gotoAndPlay (76);
Frame 85
_root.instructions._visible = 0;
stop();
Frame 96
gotoAndPlay (133);
Frame 107
_root.instructions.gotoAndPlay("startslide");
stop();
Frame 116
gotoAndPlay ("titlescreen");
Frame 125
stop();
Frame 132
gotoAndPlay ("playgame");
Frame 253
gotoAndPlay (254);
Frame 254
function dupeClip(name) {
var _local1 = _root;
var _local2 = this;
if (bPlaced < bLimit) {
bType = _local1[name].bType;
bPlaced++;
theLayer = _local1.bLayers.pop();
switch (bType) {
case "a" :
duplicateMovieClip (_local2.aPlaced0, "aPlaced" + theLayer, theLayer);
_local1["aPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["aPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["aPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["aPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[0];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
break;
case "b" :
duplicateMovieClip (_local2.bPlaced0, "bPlaced" + theLayer, theLayer);
_local1["bPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["bPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["bPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["bPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[1];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
break;
case "c" :
duplicateMovieClip (_local2.cPlaced0, "cPlaced" + theLayer, theLayer);
_local1["cPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["cPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["cPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["cPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[2];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
}
} else {
removeClip(name, false);
}
}
function newClip(layer) {
var _local1 = layer;
var _local2 = _root;
var _local3 = this;
typeRan = Math.round(Math.random() * 4);
if ((typeRan == 0) || (typeRan == 1)) {
duplicateMovieClip (_local3.c0, "c" + cCount, _local1);
_local2["c" + cCount]._x = 220 + (Math.random() * 400);
_local2["c" + cCount]._y = 360 + (Math.random() * 50);
_local2["c" + cCount].bLayer = _local1;
currentBalloons[_local1] = "c" + cCount;
cCount++;
} else if ((typeRan == 2) || (typeRan == 3)) {
duplicateMovieClip (_local3.a0, "a" + aCount, _local1);
_local2["a" + aCount]._x = 220 + (Math.random() * 400);
_local2["a" + aCount]._y = 360 + (Math.random() * 50);
_local2["a" + aCount].bLayer = _local1;
currentBalloons[_local1] = "a" + aCount;
aCount++;
} else {
duplicateMovieClip (_local3.b0, "b" + bCount, _local1);
_local2["b" + bCount]._x = 220 + (Math.random() * 400);
_local2["b" + bCount]._y = 360 + (Math.random() * 50);
_local2["b" + bCount].bLayer = _local1;
currentBalloons[_local1] = "b" + bCount;
bCount++;
}
}
function removeClip(name, placed) {
var _local1 = name;
var _local2 = _root;
_local2[_local1].gotoAndPlay(2);
if (_local1 == "aPlaced0") {
clearInterval(_local2[_local1].interval);
bPlaced--;
tPull = tPull - bTypes[0];
} else {
test = _local2[_local1].bType;
if (placed) {
clearInterval(_local2[_local1].interval);
bPlaced--;
bLayers.push(_local2[_local1].bLayer);
switch (test) {
case "aPlaced" :
tPull = tPull - bTypes[0];
return;
case "bPlaced" :
tPull = tPull - bTypes[1];
return;
case "cPlaced" :
tPull = tPull - bTypes[2];
}
}
}
}
function clearBoard() {
var _local1 = _root;
x = 0;
while (x < _local1.ran) {
removeMovieClip(_local1.currentBalloons[x]);
x++;
}
clearInterval(_local1.aPlaced0.interval);
z = 0;
while (z < bLimit) {
clearInterval(_local1["aPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["aPlaced" + _local1.placedStore[z]]);
clearInterval(_local1["bPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["bPlaced" + _local1.placedStore[z]]);
clearInterval(_local1["cPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["cPlaced" + _local1.placedStore[z]]);
z++;
}
b = 0;
while (b < startHazards) {
clearInterval(_local1["hazard" + b]);
b++;
}
a = 0;
while (a < hLimit) {
_local1["h" + _local1.hazardStore[a]].clipSound.stop();
removeMovieClip(_local1["h" + _local1.hazardStore[a]]);
a++;
}
removeMovieClip(_local1.object);
}
function newHazard() {
var _local1 = _root;
if (hPlaced < hLimit) {
typeRan = Math.round(Math.random() * 1);
switch (typeRan) {
case 0 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.plane0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 780;
_local1["h" + hLayer]._y = 50 + (Math.random() * 250);
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("planeengine");
_local1["h" + hLayer].clipSound.setVolume(80);
_local1["h" + hLayer].clipSound.start();
return;
case 1 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.rplane0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = -80;
_local1["h" + hLayer]._y = 50 + (Math.random() * 250);
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("planeengine");
_local1["h" + hLayer].clipSound.setVolume(80);
_local1["h" + hLayer].clipSound.start();
}
}
}
function removeHazard(name) {
hLayers.push(_root[name].hLayer);
removeMovieClip(_root[name]);
hPlaced--;
}
clouds = 0.1;
hLimit = 4;
hSpeed = 4;
spikeSpeed = 1;
startHazards = 1;
rotate = -1;
duplicateMovieClip (_root.theObject, "object", 1000);
_root.object._x = 96;
_root.object._y = 150;
currentHazards = new Array();
a = 0;
while (a < startHazards) {
_root["hazard" + a] = setInterval(newHazard, 2000);
currentHazards[a] = "hazard" + a;
a++;
}
var ran = 3;
yspeed = -2;
currentBalloons = new Array();
bTypes = new Array(-0.8, -1.2, -0.5);
if (_root.varpasser.difficulty == "easy") {
tPull = 0.6;
} else {
tPull = 1;
}
bLimit = 4;
aCount = 1;
bCount = 1;
cCount = 1;
bPlaced = 1;
hPlaced = 0;
_root.limit.text = "/ " + bLimit;
bLayers = new Array();
hLayers = new Array();
hazardStore = new Array();
k = 0;
while (k < ran) {
typeRan = Math.round(Math.random() * 4);
if ((typeRan == 0) || (typeRan == 1)) {
duplicateMovieClip (this.c0, "c" + cCount, k);
_root["c" + cCount]._x = 220 + (Math.random() * 400);
_root["c" + cCount]._y = 360 + (Math.random() * 50);
_root["c" + cCount].bLayer = k;
currentBalloons[k] = "c" + cCount;
cCount++;
} else if (typeRan == 4) {
duplicateMovieClip (this.b0, "b" + bCount, k);
_root["b" + bCount]._x = 220 + (Math.random() * 400);
_root["b" + bCount]._y = 360 + (Math.random() * 50);
_root["b" + bCount].bLayer = k;
currentBalloons[k] = "b" + bCount;
bCount++;
} else {
duplicateMovieClip (this.a0, "a" + aCount, k);
_root["a" + aCount]._x = 220 + (Math.random() * 400);
_root["a" + aCount]._y = 360 + (Math.random() * 50);
_root["a" + aCount].bLayer = k;
currentBalloons[k] = "a" + aCount;
aCount++;
}
k++;
}
z = 0;
while (z < hLimit) {
k++;
hLayers[z] = k;
hazardStore[z] = k;
z++;
}
placedStore = new Array();
z = 0;
while (z < bLimit) {
k++;
bLayers[z] = k;
placedStore[z] = k;
z++;
}
newHazard();
Instance of Symbol 171 MovieClip "arrow0" in Frame 254
onClipEvent (load) {
var radius = 150;
var speed = 2;
var degree = 0;
var radian;
var xcenter = this._x;
var ycenter = this._y;
_rotation = 45;
}
onClipEvent (enterFrame) {
if (this._name != "arrow0") {
degree = degree + speed;
_rotation = (_rotation - 1.3);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (degree >= 180) {
_root.removeHazard(this._name);
}
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
}
Instance of Symbol 176 MovieClip "rplane0" in Frame 254
onClipEvent (load) {
flying = false;
}
onClipEvent (enterFrame) {
if (this._name != "rplane0") {
this._x = this._x + Math.abs(_root.hSpeed);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._x >= (700 + this._width)) {
_root.removeHazard(this._name);
}
}
}
Instance of Symbol 159 MovieClip in Frame 254
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 254
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 254
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 254
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 254
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 254
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 254
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 184 MovieClip "theObject" in Frame 254
onClipEvent (load) {
falling = true;
won = false;
this.gotoAndPlay("lookdown");
clipSound = new Sound();
clipSound.attachSound("catfalling");
clipSound.setVolume(80);
clipSound.start();
}
onClipEvent (enterFrame) {
if (!won) {
this._y = this._y + _root.tPull;
if ((_root.tPull > 0) && (falling == false)) {
falling = true;
this.gotoAndPlay("lookdown");
clipSound = new Sound();
clipSound.attachSound("catfalling");
clipSound.setVolume(80);
clipSound.start();
}
if ((_root.tPull < 0) && (falling == true)) {
falling = false;
this.gotoAndPlay("lookup");
}
if (falling == false) {
test = Math.random() * 150;
if ((test2 == true) && (test < 1)) {
test2 = false;
test = 20;
}
if (test < 1) {
test2 = true;
clipSound = new Sound();
clipSound.attachSound("catcute");
clipSound.setVolume(50);
clipSound.start();
}
}
if (this.hitTest(_root.roof)) {
won = true;
_root.gotoAndPlay("level1won");
}
if (this.hitTest(_root.floor)) {
won = true;
_root.gotoAndPlay("level1over");
}
}
}
Instance of Symbol 176 MovieClip "plane0" in Frame 254
onClipEvent (load) {
flying = false;
}
onClipEvent (enterFrame) {
if (this._name != "plane0") {
this._x = this._x - _root.hSpeed;
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._x <= (-this._width)) {
_root.removeHazard(this._name);
}
}
}
Instance of Symbol 191 MovieClip "sBalloon0" in Frame 254
onClipEvent (load) {
counter = 0;
altCounter = 8;
wait = false;
}
onClipEvent (enterFrame) {
if (this._name != "sBalloon0") {
if (this.counter > 40) {
wait = true;
}
if (wait == false) {
this._y = this._y - Math.abs(_root.spikeSpeed);
counter++;
} else {
altCounter--;
wait = true;
this._y = this._y + 0.4;
if (altCounter <= 0) {
wait = false;
counter = 0;
altCounter = 8;
}
}
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._y <= -80) {
_root.removeHazard(this._name);
}
}
}
Instance of Symbol 193 MovieClip "a0" in Frame 254
onClipEvent (load) {
bType = "a";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "a0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 196 MovieClip "c0" in Frame 254
onClipEvent (load) {
bType = "c";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "c0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 198 MovieClip "b0" in Frame 254
onClipEvent (load) {
bType = "b";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "b0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 97 MovieClip "cPlaced0" in Frame 254
onClipEvent (load) {
bType = "cPlaced";
interval = setInterval(_root.removeClip, 11000, this._name, true);
if (_name == "cPlaced0") {
clearInterval(interval);
_visible = 0;
}
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 91 MovieClip "bPlaced0" in Frame 254
onClipEvent (load) {
bType = "bPlaced";
interval = setInterval(_root.removeClip, 2500, this._name, true);
if (_name == "bPlaced0") {
clearInterval(interval);
_visible = 0;
}
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 103 MovieClip "aPlaced0" in Frame 254
onClipEvent (load) {
bType = "aPlaced";
interval = setInterval(_root.removeClip, 5500, this._name, true);
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 203 MovieClip "numtext" in Frame 254
onClipEvent (enterFrame) {
this.current.text = _root.bPlaced;
}
Frame 258
stop();
Instance of Symbol 176 MovieClip "rplane0" in Frame 258
onClipEvent (load) {
flying = false;
}
onClipEvent (enterFrame) {
if (this._name != "rplane0") {
this._x = this._x + Math.abs(_root.hSpeed);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._x >= (700 + this._width)) {
_root.removeHazard(this._name);
}
}
}
Frame 259
_root.clearBoard();
gotoAndPlay (76);
Frame 268
stop();
Frame 269
duplicateMovieClip (_root.fadeout, "fadeout1", 1001);
Frame 275
_root.clearBoard();
removeMovieClip(_root.fadeout1);
if (_root.nextScreen == "level2") {
gotoAndPlay (289);
} else {
gotoAndPlay (76);
}
Frame 288
_root.balloontext._visible = 0;
_root.numtext._visible = 0;
_root.limit._visible = 0;
stop();
Frame 410
gotoAndPlay (411);
Frame 411
function dupeClip(name) {
var _local1 = _root;
var _local2 = this;
if (bPlaced < bLimit) {
bType = _local1[name].bType;
bPlaced++;
theLayer = _local1.bLayers.pop();
switch (bType) {
case "a" :
duplicateMovieClip (_local2.aPlaced0, "aPlaced" + theLayer, theLayer);
_local1["aPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["aPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["aPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["aPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[0];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
break;
case "b" :
duplicateMovieClip (_local2.bPlaced0, "bPlaced" + theLayer, theLayer);
_local1["bPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["bPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["bPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["bPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[1];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
break;
case "c" :
duplicateMovieClip (_local2.cPlaced0, "cPlaced" + theLayer, theLayer);
_local1["cPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["cPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["cPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["cPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[2];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
}
} else {
removeClip(name, false);
}
}
function newClip(layer) {
var _local1 = layer;
var _local2 = _root;
var _local3 = this;
typeRan = Math.round(Math.random() * 4);
if ((typeRan == 0) || (typeRan == 1)) {
duplicateMovieClip (_local3.c0, "c" + cCount, _local1);
_local2["c" + cCount]._x = 220 + (Math.random() * 400);
_local2["c" + cCount]._y = 360 + (Math.random() * 50);
_local2["c" + cCount].bLayer = _local1;
currentBalloons[_local1] = "c" + cCount;
cCount++;
} else if (typeRan == 4) {
duplicateMovieClip (_local3.b0, "b" + bCount, _local1);
_local2["b" + bCount]._x = 220 + (Math.random() * 400);
_local2["b" + bCount]._y = 360 + (Math.random() * 50);
_local2["b" + bCount].bLayer = _local1;
currentBalloons[_local1] = "b" + bCount;
bCount++;
} else {
duplicateMovieClip (_local3.a0, "a" + aCount, _local1);
_local2["a" + aCount]._x = 220 + (Math.random() * 400);
_local2["a" + aCount]._y = 360 + (Math.random() * 50);
_local2["a" + aCount].bLayer = _local1;
currentBalloons[_local1] = "a" + aCount;
aCount++;
}
}
function removeClip(name, placed) {
var _local1 = name;
var _local2 = _root;
_local2[_local1].gotoAndPlay(2);
if (_local1 == "aPlaced0") {
clearInterval(_local2[_local1].interval);
bPlaced--;
tPull = tPull - bTypes[0];
} else {
test = _local2[_local1].bType;
if (placed) {
clearInterval(_local2[_local1].interval);
bPlaced--;
bLayers.push(_local2[_local1].bLayer);
switch (test) {
case "aPlaced" :
tPull = tPull - bTypes[0];
return;
case "bPlaced" :
tPull = tPull - bTypes[1];
return;
case "cPlaced" :
tPull = tPull - bTypes[2];
}
}
}
}
function clearBoard() {
var _local1 = _root;
x = 0;
while (x < _local1.ran) {
removeMovieClip(_local1.currentBalloons[x]);
x++;
}
clearInterval(_local1.aPlaced0.interval);
z = 0;
while (z < bLimit) {
clearInterval(_local1["aPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["aPlaced" + _local1.placedStore[z]]);
clearInterval(_local1["bPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["bPlaced" + _local1.placedStore[z]]);
clearInterval(_local1["cPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["cPlaced" + _local1.placedStore[z]]);
z++;
}
b = 0;
while (b < startHazards) {
clearInterval(_local1["hazard" + b]);
b++;
}
a = 0;
while (a < hLimit) {
_local1["h" + _local1.hazardStore[a]].clipSound.stop();
removeMovieClip(_local1["h" + _local1.hazardStore[a]]);
a++;
}
removeMovieClip(_local1.object);
}
function newHazard() {
var _local1 = _root;
if (hPlaced < hLimit) {
typeRan = Math.round(Math.random() * 2);
switch (typeRan) {
case 0 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.plane0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 780;
_local1["h" + hLayer]._y = 50 + (Math.random() * 250);
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("planeengine");
_local1["h" + hLayer].clipSound.setVolume(70);
_local1["h" + hLayer].clipSound.start();
return;
case 1 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.rplane0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = -80;
_local1["h" + hLayer]._y = 50 + (Math.random() * 250);
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("planeengine");
_local1["h" + hLayer].clipSound.setVolume(70);
_local1["h" + hLayer].clipSound.start();
return;
case 2 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.sBalloon0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 220 + (Math.random() * 400);
_local1["h" + hLayer]._y = 360 + (Math.random() * 50);
_local1["h" + hLayer].hLayer = hLayer;
}
}
}
function removeHazard(name) {
hLayers.push(_root[name].hLayer);
removeMovieClip(_root[name]);
hPlaced--;
}
clouds = 0.1;
hLimit = 5;
hSpeed = 4;
spikeSpeed = 1;
startHazards = 1;
rotate = -1;
duplicateMovieClip (_root.theObject, "object", 1000);
_root.object._x = 96;
_root.object._y = 150;
currentHazards = new Array();
a = 0;
while (a < startHazards) {
_root["hazard" + a] = setInterval(newHazard, 2000);
currentHazards[a] = "hazard" + a;
a++;
}
var ran = 4;
yspeed = -2;
currentBalloons = new Array();
bTypes = new Array(-0.8, -1.2, -0.5);
if (_root.varpasser.difficulty == "easy") {
tPull = 0.9;
} else {
tPull = 1.5;
}
bLimit = 5;
aCount = 1;
bCount = 1;
cCount = 1;
bPlaced = 1;
hPlaced = 0;
_root.limit.text = "/ " + bLimit;
bLayers = new Array();
hLayers = new Array();
hazardStore = new Array();
k = 0;
while (k < ran) {
typeRan = Math.round(Math.random() * 4);
if ((typeRan == 0) || (typeRan == 1)) {
duplicateMovieClip (this.c0, "c" + cCount, k);
_root["c" + cCount]._x = 220 + (Math.random() * 400);
_root["c" + cCount]._y = 360 + (Math.random() * 50);
_root["c" + cCount].bLayer = k;
currentBalloons[k] = "c" + cCount;
cCount++;
} else if (typeRan == 4) {
duplicateMovieClip (this.b0, "b" + bCount, k);
_root["b" + bCount]._x = 220 + (Math.random() * 400);
_root["b" + bCount]._y = 360 + (Math.random() * 50);
_root["b" + bCount].bLayer = k;
currentBalloons[k] = "b" + bCount;
bCount++;
} else {
duplicateMovieClip (this.a0, "a" + aCount, k);
_root["a" + aCount]._x = 220 + (Math.random() * 400);
_root["a" + aCount]._y = 360 + (Math.random() * 50);
_root["a" + aCount].bLayer = k;
currentBalloons[k] = "a" + aCount;
aCount++;
}
k++;
}
z = 0;
while (z < hLimit) {
k++;
hLayers[z] = k;
hazardStore[z] = k;
z++;
}
placedStore = new Array();
z = 0;
while (z < bLimit) {
k++;
bLayers[z] = k;
placedStore[z] = k;
z++;
}
newHazard();
Instance of Symbol 171 MovieClip "arrow0" in Frame 411
onClipEvent (load) {
var radius = 150;
var speed = 2;
var degree = 0;
var radian;
var xcenter = this._x;
var ycenter = this._y;
_rotation = 45;
}
onClipEvent (enterFrame) {
if (this._name != "arrow0") {
degree = degree + speed;
_rotation = (_rotation - 1.3);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (degree >= 180) {
_root.removeHazard(this._name);
}
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
}
Instance of Symbol 176 MovieClip "rplane0" in Frame 411
onClipEvent (load) {
flying = false;
}
onClipEvent (enterFrame) {
if (this._name != "rplane0") {
this._x = this._x + Math.abs(_root.hSpeed);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._x >= (700 + this._width)) {
_root.removeHazard(this._name);
}
}
}
Instance of Symbol 159 MovieClip in Frame 411
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 411
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 411
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 411
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 411
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 411
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 411
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 238 MovieClip "theObject" in Frame 411
onClipEvent (load) {
falling = true;
won = false;
this.gotoAndPlay("lookdown");
clipSound = new Sound();
clipSound.attachSound("pandafalling");
clipSound.setVolume(80);
clipSound.start();
}
onClipEvent (enterFrame) {
if (!won) {
this._y = this._y + _root.tPull;
if ((_root.tPull > 0) && (falling == false)) {
falling = true;
this.gotoAndPlay("lookdown");
clipSound = new Sound();
clipSound.attachSound("pandafalling");
clipSound.setVolume(80);
clipSound.start();
}
if ((_root.tPull < 0) && (falling == true)) {
falling = false;
this.gotoAndPlay("lookright");
}
if (falling == false) {
test = Math.random() * 150;
if ((test2 == true) && (test < 1)) {
test2 = false;
test = 20;
}
if (test < 1) {
test2 = true;
clipSound = new Sound();
clipSound.attachSound("pandanoise");
clipSound.setVolume(80);
clipSound.start();
}
}
if (this.hitTest(_root.roof)) {
won = true;
_root.gotoAndPlay("level2won");
}
if (this.hitTest(_root.floor)) {
won = true;
_root.gotoAndPlay("level2over");
}
}
}
Instance of Symbol 193 MovieClip "a0" in Frame 411
onClipEvent (load) {
bType = "a";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "a0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 196 MovieClip "c0" in Frame 411
onClipEvent (load) {
bType = "c";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "c0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 198 MovieClip "b0" in Frame 411
onClipEvent (load) {
bType = "b";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "b0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 97 MovieClip "cPlaced0" in Frame 411
onClipEvent (load) {
bType = "cPlaced";
interval = setInterval(_root.removeClip, 11000, this._name, true);
if (_name == "cPlaced0") {
clearInterval(interval);
_visible = 0;
}
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 91 MovieClip "bPlaced0" in Frame 411
onClipEvent (load) {
bType = "bPlaced";
interval = setInterval(_root.removeClip, 2500, this._name, true);
if (_name == "bPlaced0") {
clearInterval(interval);
_visible = 0;
}
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 103 MovieClip "aPlaced0" in Frame 411
onClipEvent (load) {
bType = "aPlaced";
interval = setInterval(_root.removeClip, 5500, this._name, true);
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 203 MovieClip "numtext" in Frame 411
onClipEvent (enterFrame) {
this.current.text = _root.bPlaced;
}
Instance of Symbol 176 MovieClip "plane0" in Frame 411
onClipEvent (load) {
flying = false;
}
onClipEvent (enterFrame) {
if (this._name != "plane0") {
this._x = this._x - _root.hSpeed;
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._x <= (-this._width)) {
_root.removeHazard(this._name);
}
}
}
Instance of Symbol 191 MovieClip "sBalloon0" in Frame 411
onClipEvent (load) {
counter = 0;
altCounter = 8;
wait = false;
}
onClipEvent (enterFrame) {
if (this._name != "sBalloon0") {
if (this.counter > 35) {
wait = true;
counter = 0;
aSound = new Sound();
aSound.attachSound("steamblast");
aSound.setVolume(60);
aSound.start();
}
if (wait == false) {
this._y = this._y - Math.abs(_root.spikeSpeed);
counter++;
} else {
altCounter--;
wait = true;
this._y = this._y + 0.4;
if (altCounter <= 0) {
wait = false;
counter = 0;
altCounter = 8;
}
}
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._y <= -80) {
_root.removeHazard(this._name);
}
}
}
Frame 415
stop();
Frame 416
_root.clearBoard();
gotoAndPlay (76);
Frame 425
stop();
Frame 426
duplicateMovieClip (_root.fadeout, "fadeout1", 1001);
Frame 432
_root.clearBoard();
removeMovieClip(_root.fadeout1);
if (_root.nextScreen == "level3") {
gotoAndPlay (445);
} else {
gotoAndPlay (76);
}
Frame 444
_root.balloontext._visible = 0;
_root.numtext._visible = 0;
_root.limit._visible = 0;
stop();
Frame 567
gotoAndPlay (568);
Frame 568
function dupeClip(name) {
var _local1 = _root;
var _local2 = this;
if (bPlaced < bLimit) {
bType = _local1[name].bType;
bPlaced++;
theLayer = _local1.bLayers.pop();
switch (bType) {
case "a" :
duplicateMovieClip (_local2.aPlaced0, "aPlaced" + theLayer, theLayer);
_local1["aPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["aPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["aPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["aPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[0];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
break;
case "b" :
duplicateMovieClip (_local2.bPlaced0, "bPlaced" + theLayer, theLayer);
_local1["bPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["bPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["bPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["bPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[1];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
break;
case "c" :
duplicateMovieClip (_local2.cPlaced0, "cPlaced" + theLayer, theLayer);
_local1["cPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["cPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["cPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["cPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[2];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
}
} else {
removeClip(name, false);
}
}
function newClip(layer) {
var _local1 = layer;
var _local2 = _root;
var _local3 = this;
typeRan = Math.round(Math.random() * 4);
if ((typeRan == 0) || (typeRan == 1)) {
duplicateMovieClip (_local3.c0, "c" + cCount, _local1);
_local2["c" + cCount]._x = 220 + (Math.random() * 400);
_local2["c" + cCount]._y = 360 + (Math.random() * 50);
_local2["c" + cCount].bLayer = _local1;
currentBalloons[_local1] = "c" + cCount;
cCount++;
} else if (typeRan == 4) {
duplicateMovieClip (_local3.b0, "b" + bCount, _local1);
_local2["b" + bCount]._x = 220 + (Math.random() * 400);
_local2["b" + bCount]._y = 360 + (Math.random() * 50);
_local2["b" + bCount].bLayer = _local1;
currentBalloons[_local1] = "b" + bCount;
bCount++;
} else {
duplicateMovieClip (_local3.a0, "a" + aCount, _local1);
_local2["a" + aCount]._x = 220 + (Math.random() * 400);
_local2["a" + aCount]._y = 360 + (Math.random() * 50);
_local2["a" + aCount].bLayer = _local1;
currentBalloons[_local1] = "a" + aCount;
aCount++;
}
}
function removeClip(name, placed) {
var _local1 = name;
var _local2 = _root;
_local2[_local1].gotoAndPlay(2);
if (_local1 == "aPlaced0") {
clearInterval(_local2[_local1].interval);
bPlaced--;
tPull = tPull - bTypes[0];
} else {
test = _local2[_local1].bType;
if (placed) {
clearInterval(_local2[_local1].interval);
bPlaced--;
bLayers.push(_local2[_local1].bLayer);
switch (test) {
case "aPlaced" :
tPull = tPull - bTypes[0];
return;
case "bPlaced" :
tPull = tPull - bTypes[1];
return;
case "cPlaced" :
tPull = tPull - bTypes[2];
}
}
}
}
function clearBoard() {
var _local1 = _root;
x = 0;
while (x < _local1.ran) {
removeMovieClip(_local1.currentBalloons[x]);
x++;
}
clearInterval(_local1.aPlaced0.interval);
z = 0;
while (z < bLimit) {
clearInterval(_local1["aPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["aPlaced" + _local1.placedStore[z]]);
clearInterval(_local1["bPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["bPlaced" + _local1.placedStore[z]]);
clearInterval(_local1["cPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["cPlaced" + _local1.placedStore[z]]);
z++;
}
b = 0;
while (b < startHazards) {
clearInterval(_local1["hazard" + b]);
b++;
}
a = 0;
while (a < hLimit) {
_local1["h" + _local1.hazardStore[a]].clipSound.stop();
removeMovieClip(_local1["h" + _local1.hazardStore[a]]);
a++;
}
removeMovieClip(_local1.object);
}
function newHazard() {
var _local1 = _root;
if (hPlaced < hLimit) {
typeRan = Math.round(Math.random() * 3);
switch (typeRan) {
case 0 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.plane0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 700 + _local1["h" + hLayer]._width;
_local1["h" + hLayer]._y = 50 + (Math.random() * 250);
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("planeengine");
_local1["h" + hLayer].clipSound.setVolume(70);
_local1["h" + hLayer].clipSound.start();
return;
case 1 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.rplane0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = -_local1["h" + hLayer]._width;
_local1["h" + hLayer]._y = 50 + (Math.random() * 250);
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("planeengine");
_local1["h" + hLayer].clipSound.setVolume(70);
_local1["h" + hLayer].clipSound.start();
return;
case 2 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.arrow0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 250 + (Math.random() * 300);
_local1["h" + hLayer]._y = 400;
_local1["h" + hlayer].xcenter = _local1["h" + hLayer]._x;
_local1["h" + hlayer].ycenter = _local1["h" + hLayer]._y;
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("spikenoise");
_local1["h" + hLayer].clipSound.setVolume(70);
_local1["h" + hLayer].clipSound.start();
return;
case 3 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.sBalloon0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 220 + (Math.random() * 400);
_local1["h" + hLayer]._y = 360 + (Math.random() * 50);
_local1["h" + hLayer].hLayer = hLayer;
}
}
}
function removeHazard(name) {
hLayers.push(_root[name].hLayer);
removeMovieClip(_root[name]);
hPlaced--;
}
clouds = 0.1;
hLimit = 5;
hSpeed = 4;
spikeSpeed = 1;
startHazards = 1;
rotate = -1;
duplicateMovieClip (_root.theObject, "object", 1000);
_root.object._x = 96;
_root.object._y = 150;
currentHazards = new Array();
a = 0;
while (a < startHazards) {
_root["hazard" + a] = setInterval(newHazard, 1500);
currentHazards[a] = "hazard" + a;
a++;
}
var ran = 6;
yspeed = -2;
currentBalloons = new Array();
bTypes = new Array(-0.8, -1.2, -0.5);
if (_root.varpasser.difficulty == "easy") {
tPull = 1.1;
} else {
tPull = 2;
}
bLimit = 6;
aCount = 1;
bCount = 1;
cCount = 1;
bPlaced = 1;
hPlaced = 0;
_root.limit.text = "/ " + bLimit;
bLayers = new Array();
hLayers = new Array();
hazardStore = new Array();
k = 0;
while (k < ran) {
typeRan = Math.round(Math.random() * 4);
if ((typeRan == 0) || (typeRan == 1)) {
duplicateMovieClip (this.c0, "c" + cCount, k);
_root["c" + cCount]._x = 220 + (Math.random() * 400);
_root["c" + cCount]._y = 360 + (Math.random() * 50);
_root["c" + cCount].bLayer = k;
currentBalloons[k] = "c" + cCount;
cCount++;
} else if (typeRan == 4) {
duplicateMovieClip (this.b0, "b" + bCount, k);
_root["b" + bCount]._x = 220 + (Math.random() * 400);
_root["b" + bCount]._y = 360 + (Math.random() * 50);
_root["b" + bCount].bLayer = k;
currentBalloons[k] = "b" + bCount;
bCount++;
} else {
duplicateMovieClip (this.a0, "a" + aCount, k);
_root["a" + aCount]._x = 220 + (Math.random() * 400);
_root["a" + aCount]._y = 360 + (Math.random() * 50);
_root["a" + aCount].bLayer = k;
currentBalloons[k] = "a" + aCount;
aCount++;
}
k++;
}
z = 0;
while (z < hLimit) {
k++;
hLayers[z] = k;
hazardStore[z] = k;
z++;
}
placedStore = new Array();
z = 0;
while (z < bLimit) {
k++;
bLayers[z] = k;
placedStore[z] = k;
z++;
}
newHazard();
newHazard();
Instance of Symbol 171 MovieClip "arrow0" in Frame 568
onClipEvent (load) {
var radius = 150;
var speed = 2;
var degree = 0;
var radian;
var xcenter = this._x;
var ycenter = this._y;
_rotation = 45;
}
onClipEvent (enterFrame) {
if (this._name != "arrow0") {
degree = degree + speed;
_rotation = (_rotation - 1.3);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (degree >= 180) {
_root.removeHazard(this._name);
}
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
}
Instance of Symbol 176 MovieClip "rplane0" in Frame 568
onClipEvent (load) {
flying = false;
}
onClipEvent (enterFrame) {
if (this._name != "rplane0") {
this._x = this._x + Math.abs(_root.hSpeed);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._x >= (700 + this._width)) {
_root.removeHazard(this._name);
}
}
}
Instance of Symbol 159 MovieClip in Frame 568
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 568
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 568
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 568
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 568
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 568
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 568
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 193 MovieClip "a0" in Frame 568
onClipEvent (load) {
bType = "a";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "a0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 196 MovieClip "c0" in Frame 568
onClipEvent (load) {
bType = "c";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "c0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 198 MovieClip "b0" in Frame 568
onClipEvent (load) {
bType = "b";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "b0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 97 MovieClip "cPlaced0" in Frame 568
onClipEvent (load) {
bType = "cPlaced";
interval = setInterval(_root.removeClip, 11000, this._name, true);
if (_name == "cPlaced0") {
clearInterval(interval);
_visible = 0;
}
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 91 MovieClip "bPlaced0" in Frame 568
onClipEvent (load) {
bType = "bPlaced";
interval = setInterval(_root.removeClip, 2500, this._name, true);
if (_name == "bPlaced0") {
clearInterval(interval);
_visible = 0;
}
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 260 MovieClip "theObject" in Frame 568
onClipEvent (load) {
falling = true;
won = false;
this.gotoAndPlay("lookdown");
clipSound = new Sound();
clipSound.attachSound("elefalling");
clipSound.setVolume(50);
clipSound.start();
}
onClipEvent (enterFrame) {
if (!won) {
this._y = this._y + _root.tPull;
if ((_root.tPull > 0) && (falling == false)) {
falling = true;
this.gotoAndPlay("lookdown");
clipSound = new Sound();
clipSound.attachSound("elefalling");
clipSound.setVolume(50);
clipSound.start();
}
if ((_root.tPull < 0) && (falling == true)) {
falling = false;
this.gotoAndPlay("lookright");
}
if (falling == false) {
test = Math.random() * 150;
if ((test2 == true) && (test < 1)) {
test2 = false;
test = 20;
}
if (test < 1) {
test2 = true;
clipSound = new Sound();
clipSound.attachSound("elenoise");
clipSound.setVolume(50);
clipSound.start();
}
}
if (this.hitTest(_root.highroof)) {
won = true;
_root.gotoAndPlay("level3won");
}
if (this.hitTest(_root.floor)) {
won = true;
_root.gotoAndPlay("level3over");
}
}
}
Instance of Symbol 254 MovieClip in Frame 568
onClipEvent (load) {
rotate = 0.5;
}
onClipEvent (enterFrame) {
if (rotate < 0) {
this._rotation = this._rotation + rotate;
if (this._rotation < -10) {
rotate = rotate + 0.05;
} else if (rotate > -0.5) {
rotate = rotate - 0.05;
}
} else {
this._rotation = this._rotation + rotate;
if (this._rotation > 20) {
rotate = rotate - 0.05;
} else if (rotate < 0.5) {
rotate = rotate + 0.05;
}
}
}
Instance of Symbol 254 MovieClip in Frame 568
onClipEvent (load) {
rotate = -0.5;
}
onClipEvent (enterFrame) {
if (rotate < 0) {
this._rotation = this._rotation + rotate;
if (this._rotation < -10) {
rotate = rotate + 0.05;
} else if (rotate > -0.5) {
rotate = rotate - 0.05;
}
} else {
this._rotation = this._rotation + rotate;
if (this._rotation > 30) {
rotate = rotate - 0.05;
} else if (rotate < 0.5) {
rotate = rotate + 0.05;
}
}
}
Instance of Symbol 254 MovieClip in Frame 568
onClipEvent (load) {
rotate = -0.5;
}
onClipEvent (enterFrame) {
if (rotate < 0) {
this._rotation = this._rotation + rotate;
if (this._rotation < -20) {
rotate = rotate + 0.05;
} else if (rotate > -0.5) {
rotate = rotate - 0.05;
}
} else {
this._rotation = this._rotation + rotate;
if (this._rotation > 40) {
rotate = rotate - 0.05;
} else if (rotate < 0.5) {
rotate = rotate + 0.05;
}
}
}
Instance of Symbol 103 MovieClip "aPlaced0" in Frame 568
onClipEvent (load) {
bType = "aPlaced";
interval = setInterval(_root.removeClip, 5500, this._name, true);
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 203 MovieClip "numtext" in Frame 568
onClipEvent (enterFrame) {
this.current.text = _root.bPlaced;
}
Instance of Symbol 176 MovieClip "plane0" in Frame 568
onClipEvent (load) {
flying = false;
}
onClipEvent (enterFrame) {
if (this._name != "plane0") {
this._x = this._x - _root.hSpeed;
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._x <= (-this._width)) {
_root.removeHazard(this._name);
}
}
}
Instance of Symbol 191 MovieClip "sBalloon0" in Frame 568
onClipEvent (load) {
counter = 0;
altCounter = 8;
wait = false;
}
onClipEvent (enterFrame) {
if (this._name != "sBalloon0") {
if (this.counter > 35) {
wait = true;
counter = 0;
aSound = new Sound();
aSound.attachSound("steamblast");
aSound.setVolume(60);
aSound.start();
}
if (wait == false) {
this._y = this._y - Math.abs(_root.spikeSpeed);
counter++;
} else {
altCounter--;
wait = true;
this._y = this._y + 0.4;
if (altCounter <= 0) {
wait = false;
counter = 0;
altCounter = 8;
}
}
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._y <= -80) {
_root.removeHazard(this._name);
}
}
}
Frame 572
stop();
Instance of Symbol 171 MovieClip "arrow0" in Frame 572
onClipEvent (load) {
var radius = 150;
var speed = 2;
var degree = 0;
var radian;
var xcenter = this._x;
var ycenter = this._y;
_rotation = 45;
}
onClipEvent (enterFrame) {
if (this._name != "arrow0") {
degree = degree + speed;
_rotation = (_rotation - 1.3);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (degree >= 180) {
_root.removeHazard(this._name);
}
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
}
Frame 573
_root.clearBoard();
gotoAndPlay (76);
Frame 582
stop();
Frame 583
duplicateMovieClip (_root.fadeout, "fadeout1", 1001);
Frame 589
_root.clearBoard();
removeMovieClip(_root.fadeout1);
if (_root.nextScreen == "level4") {
gotoAndPlay (602);
} else {
gotoAndPlay (76);
}
Frame 601
_root.balloontext._visible = 0;
_root.numtext._visible = 0;
_root.limit._visible = 0;
stop();
Frame 723
gotoAndPlay (724);
Frame 724
function dupeClip(name) {
var _local1 = _root;
var _local2 = this;
if (bPlaced < bLimit) {
bType = _local1[name].bType;
bPlaced++;
theLayer = _local1.bLayers.pop();
switch (bType) {
case "a" :
duplicateMovieClip (_local2.aPlaced0, "aPlaced" + theLayer, theLayer);
_local1["aPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["aPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["aPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["aPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[0];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
break;
case "b" :
duplicateMovieClip (_local2.bPlaced0, "bPlaced" + theLayer, theLayer);
_local1["bPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["bPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["bPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["bPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[1];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
break;
case "c" :
duplicateMovieClip (_local2.cPlaced0, "cPlaced" + theLayer, theLayer);
_local1["cPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["cPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["cPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["cPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[2];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
}
} else {
removeClip(name, false);
}
}
function newClip(layer) {
var _local1 = layer;
var _local2 = _root;
var _local3 = this;
typeRan = Math.round(Math.random() * 4);
if ((typeRan == 0) || (typeRan == 1)) {
duplicateMovieClip (_local3.c0, "c" + cCount, _local1);
_local2["c" + cCount]._x = 220 + (Math.random() * 400);
_local2["c" + cCount]._y = 360 + (Math.random() * 50);
_local2["c" + cCount].bLayer = _local1;
currentBalloons[_local1] = "c" + cCount;
cCount++;
} else if (typeRan == 4) {
duplicateMovieClip (_local3.b0, "b" + bCount, _local1);
_local2["b" + bCount]._x = 220 + (Math.random() * 400);
_local2["b" + bCount]._y = 360 + (Math.random() * 50);
_local2["b" + bCount].bLayer = _local1;
currentBalloons[_local1] = "b" + bCount;
bCount++;
} else {
duplicateMovieClip (_local3.a0, "a" + aCount, _local1);
_local2["a" + aCount]._x = 220 + (Math.random() * 400);
_local2["a" + aCount]._y = 360 + (Math.random() * 50);
_local2["a" + aCount].bLayer = _local1;
currentBalloons[_local1] = "a" + aCount;
aCount++;
}
}
function removeClip(name, placed) {
var _local1 = name;
var _local2 = _root;
_local2[_local1].gotoAndPlay(2);
if (_local1 == "aPlaced0") {
clearInterval(_local2[_local1].interval);
bPlaced--;
tPull = tPull - bTypes[0];
} else {
test = _local2[_local1].bType;
if (placed) {
clearInterval(_local2[_local1].interval);
bPlaced--;
bLayers.push(_local2[_local1].bLayer);
switch (test) {
case "aPlaced" :
tPull = tPull - bTypes[0];
return;
case "bPlaced" :
tPull = tPull - bTypes[1];
return;
case "cPlaced" :
tPull = tPull - bTypes[2];
}
}
}
}
function clearBoard() {
var _local1 = _root;
x = 0;
while (x < _local1.ran) {
removeMovieClip(_local1.currentBalloons[x]);
x++;
}
clearInterval(_local1.aPlaced0.interval);
z = 0;
while (z < bLimit) {
clearInterval(_local1["aPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["aPlaced" + _local1.placedStore[z]]);
clearInterval(_local1["bPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["bPlaced" + _local1.placedStore[z]]);
clearInterval(_local1["cPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["cPlaced" + _local1.placedStore[z]]);
z++;
}
b = 0;
while (b < startHazards) {
clearInterval(_local1["hazard" + b]);
b++;
}
a = 0;
while (a < hLimit) {
_local1["h" + _local1.hazardStore[a]].clipSound.stop();
removeMovieClip(_local1["h" + _local1.hazardStore[a]]);
a++;
}
removeMovieClip(_local1.object);
}
function newHazard() {
var _local1 = _root;
if (hPlaced < hLimit) {
typeRan = Math.round(Math.random() * 3);
switch (typeRan) {
case 0 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.plane0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 700 + _local1["h" + hLayer]._width;
_local1["h" + hLayer]._y = 50 + (Math.random() * 250);
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("planeengine");
_local1["h" + hLayer].clipSound.setVolume(70);
_local1["h" + hLayer].clipSound.start();
return;
case 1 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.rplane0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = -_local1["h" + hLayer]._width;
_local1["h" + hLayer]._y = 50 + (Math.random() * 250);
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("planeengine");
_local1["h" + hLayer].clipSound.setVolume(70);
_local1["h" + hLayer].clipSound.start();
return;
case 2 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.arrow0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 250 + (Math.random() * 300);
_local1["h" + hLayer]._y = 400;
_local1["h" + hlayer].xcenter = _local1["h" + hLayer]._x;
_local1["h" + hlayer].ycenter = _local1["h" + hLayer]._y;
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("spikenoise");
_local1["h" + hLayer].clipSound.setVolume(70);
_local1["h" + hLayer].clipSound.start();
return;
case 3 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.sBalloon0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 220 + (Math.random() * 400);
_local1["h" + hLayer]._y = 360 + (Math.random() * 50);
_local1["h" + hLayer].hLayer = hLayer;
}
}
}
function removeHazard(name) {
hLayers.push(_root[name].hLayer);
removeMovieClip(_root[name]);
hPlaced--;
}
clouds = 0.1;
hLimit = 6;
hSpeed = 4;
spikeSpeed = 1;
startHazards = 1;
rotate = -1;
duplicateMovieClip (_root.theObject, "object", 1000);
_root.object._x = 96;
_root.object._y = 140;
currentHazards = new Array();
a = 0;
while (a < startHazards) {
_root["hazard" + a] = setInterval(newHazard, 1000);
currentHazards[a] = "hazard" + a;
a++;
}
var ran = 7;
yspeed = -2;
currentBalloons = new Array();
bTypes = new Array(-0.8, -1.2, -0.5);
if (_root.varpasser.difficulty == "easy") {
tPull = 1.5;
} else {
tPull = 2.3;
}
bLimit = 7;
aCount = 1;
bCount = 1;
cCount = 1;
bPlaced = 1;
hPlaced = 0;
_root.limit.text = "/ " + bLimit;
bLayers = new Array();
hLayers = new Array();
hazardStore = new Array();
k = 0;
while (k < ran) {
typeRan = Math.round(Math.random() * 4);
if ((typeRan == 0) || (typeRan == 1)) {
duplicateMovieClip (this.c0, "c" + cCount, k);
_root["c" + cCount]._x = 220 + (Math.random() * 400);
_root["c" + cCount]._y = 360 + (Math.random() * 50);
_root["c" + cCount].bLayer = k;
currentBalloons[k] = "c" + cCount;
cCount++;
} else if (typeRan == 4) {
duplicateMovieClip (this.b0, "b" + bCount, k);
_root["b" + bCount]._x = 220 + (Math.random() * 400);
_root["b" + bCount]._y = 360 + (Math.random() * 50);
_root["b" + bCount].bLayer = k;
currentBalloons[k] = "b" + bCount;
bCount++;
} else {
duplicateMovieClip (this.a0, "a" + aCount, k);
_root["a" + aCount]._x = 220 + (Math.random() * 400);
_root["a" + aCount]._y = 360 + (Math.random() * 50);
_root["a" + aCount].bLayer = k;
currentBalloons[k] = "a" + aCount;
aCount++;
}
k++;
}
z = 0;
while (z < hLimit) {
k++;
hLayers[z] = k;
hazardStore[z] = k;
z++;
}
placedStore = new Array();
z = 0;
while (z < bLimit) {
k++;
bLayers[z] = k;
placedStore[z] = k;
z++;
}
newHazard();
Instance of Symbol 171 MovieClip "arrow0" in Frame 724
onClipEvent (load) {
var radius = 150;
var speed = 2;
var degree = 0;
var radian;
var xcenter = this._x;
var ycenter = this._y;
_rotation = 45;
}
onClipEvent (enterFrame) {
if (this._name != "arrow0") {
degree = degree + speed;
_rotation = (_rotation - 1.3);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (degree >= 180) {
_root.removeHazard(this._name);
}
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
}
Instance of Symbol 176 MovieClip "rplane0" in Frame 724
onClipEvent (load) {
flying = false;
}
onClipEvent (enterFrame) {
if (this._name != "rplane0") {
this._x = this._x + Math.abs(_root.hSpeed);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._x >= (700 + this._width)) {
_root.removeHazard(this._name);
}
}
}
Instance of Symbol 159 MovieClip in Frame 724
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 724
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 724
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 724
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 724
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 724
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 724
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 193 MovieClip "a0" in Frame 724
onClipEvent (load) {
bType = "a";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "a0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 196 MovieClip "c0" in Frame 724
onClipEvent (load) {
bType = "c";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "c0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 198 MovieClip "b0" in Frame 724
onClipEvent (load) {
bType = "b";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "b0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
clipSound = new Sound();
clipSound.attachSound("rope");
clipSound.setVolume(40);
clipSound.start();
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 97 MovieClip "cPlaced0" in Frame 724
onClipEvent (load) {
bType = "cPlaced";
interval = setInterval(_root.removeClip, 11000, this._name, true);
if (_name == "cPlaced0") {
clearInterval(interval);
_visible = 0;
}
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 91 MovieClip "bPlaced0" in Frame 724
onClipEvent (load) {
bType = "bPlaced";
interval = setInterval(_root.removeClip, 2500, this._name, true);
if (_name == "bPlaced0") {
clearInterval(interval);
_visible = 0;
}
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 279 MovieClip "theObject" in Frame 724
onClipEvent (load) {
falling = true;
won = false;
this.gotoAndPlay("lookdown");
clipSound = new Sound();
clipSound.attachSound("dinofalling");
clipSound.setVolume(50);
clipSound.start();
}
onClipEvent (enterFrame) {
if (!won) {
this._y = this._y + _root.tPull;
if ((_root.tPull > 0) && (falling == false)) {
falling = true;
this.gotoAndPlay("lookdown");
clipSound = new Sound();
clipSound.attachSound("dinofalling");
clipSound.setVolume(50);
clipSound.start();
}
if ((_root.tPull < 0) && (falling == true)) {
falling = false;
this.gotoAndPlay("lookright");
}
if (falling == false) {
test = Math.random() * 150;
if ((test2 == true) && (test < 1)) {
test2 = false;
test = 20;
}
if (test < 1) {
test2 = true;
clipSound = new Sound();
clipSound.attachSound("dinonoise");
clipSound.setVolume(50);
clipSound.start();
}
}
if (this.hitTest(_root.highroof)) {
won = true;
_root.gotoAndPlay("level4won");
}
if (this.hitTest(_root.floor)) {
won = true;
_root.gotoAndPlay("level4over");
}
}
}
Instance of Symbol 254 MovieClip in Frame 724
onClipEvent (load) {
rotate = 0.5;
}
onClipEvent (enterFrame) {
if (rotate < 0) {
this._rotation = this._rotation + rotate;
if (this._rotation < -10) {
rotate = rotate + 0.05;
} else if (rotate > -0.5) {
rotate = rotate - 0.05;
}
} else {
this._rotation = this._rotation + rotate;
if (this._rotation > 20) {
rotate = rotate - 0.05;
} else if (rotate < 0.5) {
rotate = rotate + 0.05;
}
}
}
Instance of Symbol 254 MovieClip in Frame 724
onClipEvent (load) {
rotate = -0.5;
}
onClipEvent (enterFrame) {
if (rotate < 0) {
this._rotation = this._rotation + rotate;
if (this._rotation < -10) {
rotate = rotate + 0.05;
} else if (rotate > -0.5) {
rotate = rotate - 0.05;
}
} else {
this._rotation = this._rotation + rotate;
if (this._rotation > 30) {
rotate = rotate - 0.05;
} else if (rotate < 0.5) {
rotate = rotate + 0.05;
}
}
}
Instance of Symbol 254 MovieClip in Frame 724
onClipEvent (load) {
rotate = -0.5;
}
onClipEvent (enterFrame) {
if (rotate < 0) {
this._rotation = this._rotation + rotate;
if (this._rotation < -20) {
rotate = rotate + 0.05;
} else if (rotate > -0.5) {
rotate = rotate - 0.05;
}
} else {
this._rotation = this._rotation + rotate;
if (this._rotation > 40) {
rotate = rotate - 0.05;
} else if (rotate < 0.5) {
rotate = rotate + 0.05;
}
}
}
Instance of Symbol 103 MovieClip "aPlaced0" in Frame 724
onClipEvent (load) {
bType = "aPlaced";
interval = setInterval(_root.removeClip, 5500, this._name, true);
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 203 MovieClip "numtext" in Frame 724
onClipEvent (enterFrame) {
this.current.text = _root.bPlaced;
}
Instance of Symbol 176 MovieClip "plane0" in Frame 724
onClipEvent (load) {
flying = false;
}
onClipEvent (enterFrame) {
if (this._name != "plane0") {
this._x = this._x - _root.hSpeed;
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._x <= (-this._width)) {
_root.removeHazard(this._name);
}
}
}
Instance of Symbol 191 MovieClip "sBalloon0" in Frame 724
onClipEvent (load) {
counter = 0;
altCounter = 8;
wait = false;
}
onClipEvent (enterFrame) {
if (this._name != "sBalloon0") {
if (this.counter > 35) {
wait = true;
counter = 0;
aSound = new Sound();
aSound.attachSound("steamblast");
aSound.setVolume(60);
aSound.start();
}
if (wait == false) {
this._y = this._y - Math.abs(_root.spikeSpeed);
counter++;
} else {
altCounter--;
wait = true;
this._y = this._y + 0.4;
if (altCounter <= 0) {
wait = false;
counter = 0;
altCounter = 8;
}
}
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._y <= -80) {
_root.removeHazard(this._name);
}
}
}
Frame 728
stop();
Frame 729
_root.clearBoard();
gotoAndPlay (76);
Frame 738
stop();
Frame 739
duplicateMovieClip (_root.fadeout, "fadeout1", 1001);
Frame 745
_root.clearBoard();
removeMovieClip(_root.fadeout1);
if (_root.nextScreen == "theend") {
gotoAndPlay (758);
} else {
gotoAndPlay (76);
}
Frame 757
_root.balloontext._visible = 0;
_root.numtext._visible = 0;
_root.limit._visible = 0;
stop();
Frame 758
function dupeClip(name) {
var _local1 = _root;
var _local2 = this;
if (bPlaced < bLimit) {
bType = _local1[name].bType;
bPlaced++;
theLayer = _local1.bLayers.pop();
switch (bType) {
case "a" :
duplicateMovieClip (_local2.aPlaced0, "aPlaced" + theLayer, theLayer);
_local1["aPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["aPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["aPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["aPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[0];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
break;
case "b" :
duplicateMovieClip (_local2.bPlaced0, "bPlaced" + theLayer, theLayer);
_local1["bPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["bPlaced" + theLayer]._y = _local1.object._y + 5;
_local1["bPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["bPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[1];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
break;
case "c" :
duplicateMovieClip (_local2.cPlaced0, "cPlaced" + theLayer, theLayer);
_local1["cPlaced" + theLayer]._x = 92 + (Math.Random() * 7);
_local1["cPlaced" + theLayer]._y = _local1.objecth._y + 5;
_local1["cPlaced" + theLayer]._rotation = Math.random() * (15 * rotate);
_local1["cPlaced" + theLayer].bLayer = theLayer;
tPull = tPull + bTypes[2];
if (rotate == -1) {
rotate = 1;
} else {
rotate = -1;
}
}
} else {
removeClip(name, false);
}
}
function newClip(layer) {
var _local1 = layer;
var _local2 = _root;
var _local3 = this;
typeRan = Math.round(Math.random() * 4);
if ((typeRan == 0) || (typeRan == 1)) {
duplicateMovieClip (_local3.c0, "c" + cCount, _local1);
_local2["c" + cCount]._x = 50 + (Math.random() * 600);
_local2["c" + cCount]._y = 360 + (Math.random() * 50);
_local2["c" + cCount].bLayer = _local1;
currentBalloons[_local1] = "c" + cCount;
cCount++;
} else if (typeRan == 4) {
duplicateMovieClip (_local3.b0, "b" + bCount, _local1);
_local2["b" + bCount]._x = 50 + (Math.random() * 600);
_local2["b" + bCount]._y = 360 + (Math.random() * 50);
_local2["b" + bCount].bLayer = _local1;
currentBalloons[_local1] = "b" + bCount;
bCount++;
} else {
duplicateMovieClip (_local3.a0, "a" + aCount, _local1);
_local2["a" + aCount]._x = 50 + (Math.random() * 600);
_local2["a" + aCount]._y = 360 + (Math.random() * 50);
_local2["a" + aCount].bLayer = _local1;
currentBalloons[_local1] = "a" + aCount;
aCount++;
}
}
function removeClip(name, placed) {
var _local1 = name;
var _local2 = _root;
_local2[_local1].gotoAndPlay(2);
if (_local1 == "aPlaced0") {
clearInterval(_local2[_local1].interval);
bPlaced--;
_local2[_local1]._visible = 0;
tPull = tPull - bTypes[0];
} else {
test = _local2[_local1].bType;
if (placed) {
clearInterval(_local2[_local1].interval);
bPlaced--;
bLayers.push(_local2[_local1].bLayer);
switch (test) {
case "aPlaced" :
tPull = tPull - bTypes[0];
return;
case "bPlaced" :
tPull = tPull - bTypes[1];
return;
case "cPlaced" :
tPull = tPull - bTypes[2];
}
}
}
}
function clearBoard() {
var _local1 = _root;
x = 0;
while (x < _local1.ran) {
removeMovieClip(_local1.currentBalloons[x]);
x++;
}
clearInterval(_local1.aPlaced0.interval);
z = 0;
while (z < bLimit) {
clearInterval(_local1["aPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["aPlaced" + _local1.placedStore[z]]);
clearInterval(_local1["bPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["bPlaced" + _local1.placedStore[z]]);
clearInterval(_local1["cPlaced" + _local1.placedStore[z]].interval);
removeMovieClip(_local1["cPlaced" + _local1.placedStore[z]]);
z++;
}
b = 0;
while (b < startHazards) {
clearInterval(_local1["hazard" + b]);
b++;
}
a = 0;
while (a < hLimit) {
_local1["h" + _local1.hazardStore[a]].clipSound.stop();
removeMovieClip(_local1["h" + _local1.hazardStore[a]]);
a++;
}
removeMovieClip(_local1.object);
}
function newHazard() {
var _local1 = _root;
if (hPlaced < hLimit) {
typeRan = Math.round(Math.random() * 3);
switch (typeRan) {
case 0 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.plane0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 700 + _local1["h" + hLayer]._width;
_local1["h" + hLayer]._y = 50 + (Math.random() * 250);
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("planeengine");
_local1["h" + hLayer].clipSound.setVolume(70);
_local1["h" + hLayer].clipSound.start();
return;
case 1 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.rplane0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = -_local1["h" + hLayer]._width;
_local1["h" + hLayer]._y = 50 + (Math.random() * 250);
_local1["h" + hLayer].hLayer = hLayer;
_local1["h" + hLayer].clipSound = new Sound();
_local1["h" + hLayer].clipSound.attachSound("planeengine");
_local1["h" + hLayer].clipSound.setVolume(70);
_local1["h" + hLayer].clipSound.start();
return;
case 2 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.arrow0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 70 + (Math.random() * 500);
_local1["h" + hLayer]._y = 400;
_local1["h" + hlayer].xcenter = _local1["h" + hLayer]._x;
_local1["h" + hlayer].ycenter = _local1["h" + hLayer]._y;
_local1["h" + hLayer].hLayer = hLayer;
return;
case 3 :
hPlaced++;
hLayer = _local1.hLayers.pop();
duplicateMovieClip (_local1.sBalloon0, "h" + hLayer, hLayer);
_local1["h" + hLayer]._x = 50 + (Math.random() * 600);
_local1["h" + hLayer]._y = 360 + (Math.random() * 50);
_local1["h" + hLayer].hLayer = hLayer;
}
}
}
function removeHazard(name) {
hLayers.push(_root[name].hLayer);
removeMovieClip(_root[name]);
hPlaced--;
}
clouds = 0.1;
hLimit = 15;
hSpeed = 5;
spikeSpeed = 2;
startHazards = 3;
rotate = -1;
currentHazards = new Array();
a = 0;
while (a < startHazards) {
_root["hazard" + a] = setInterval(newHazard, 1000);
currentHazards[a] = "hazard" + a;
a++;
}
var ran = 15;
yspeed = -2;
currentBalloons = new Array();
bTypes = new Array(-0.8, -1.2, -0.5);
tPull = 2.5;
bLimit = 7;
aCount = 1;
bCount = 1;
cCount = 1;
bPlaced = 1;
hPlaced = 0;
_root.limit.text = "/ " + bLimit;
bLayers = new Array();
hLayers = new Array();
hazardStore = new Array();
k = 0;
while (k < ran) {
typeRan = Math.round(Math.random() * 4);
if ((typeRan == 0) || (typeRan == 1)) {
duplicateMovieClip (this.c0, "c" + cCount, k);
_root["c" + cCount]._x = 50 + (Math.random() * 600);
_root["c" + cCount]._y = 360 + (Math.random() * 50);
_root["c" + cCount].bLayer = k;
currentBalloons[k] = "c" + cCount;
cCount++;
} else if (typeRan == 4) {
duplicateMovieClip (this.b0, "b" + bCount, k);
_root["b" + bCount]._x = 50 + (Math.random() * 600);
_root["b" + bCount]._y = 360 + (Math.random() * 50);
_root["b" + bCount].bLayer = k;
currentBalloons[k] = "b" + bCount;
bCount++;
} else {
duplicateMovieClip (this.a0, "a" + aCount, k);
_root["a" + aCount]._x = 50 + (Math.random() * 600);
_root["a" + aCount]._y = 360 + (Math.random() * 50);
_root["a" + aCount].bLayer = k;
currentBalloons[k] = "a" + aCount;
aCount++;
}
k++;
}
z = 0;
while (z < hLimit) {
k++;
hLayers[z] = k;
hazardStore[z] = k;
z++;
}
placedStore = new Array();
z = 0;
while (z < bLimit) {
k++;
bLayers[z] = k;
placedStore[z] = k;
z++;
}
Instance of Symbol 171 MovieClip "arrow0" in Frame 758
onClipEvent (load) {
var radius = 150;
var speed = 2;
var degree = 0;
var radian;
var xcenter = this._x;
var ycenter = this._y;
_rotation = 45;
}
onClipEvent (enterFrame) {
if (this._name != "arrow0") {
degree = degree + speed;
_rotation = (_rotation - 1.3);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (degree >= 180) {
_root.removeHazard(this._name);
}
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
}
Instance of Symbol 176 MovieClip "rplane0" in Frame 758
onClipEvent (load) {
flying = false;
}
onClipEvent (enterFrame) {
if (this._name != "rplane0") {
this._x = this._x + Math.abs(_root.hSpeed);
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._x >= (700 + this._width)) {
_root.removeHazard(this._name);
}
}
}
Instance of Symbol 159 MovieClip in Frame 758
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 758
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 758
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 758
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 758
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 758
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 159 MovieClip in Frame 758
onClipEvent (load) {
movement = _root.clouds;
}
onClipEvent (enterFrame) {
this._x = this._x + movement;
if (this._x > 700) {
this._x = -this._width;
}
}
Instance of Symbol 254 MovieClip in Frame 758
onClipEvent (load) {
rotate = 0.5;
}
onClipEvent (enterFrame) {
if (rotate < 0) {
this._rotation = this._rotation + rotate;
if (this._rotation < -10) {
rotate = rotate + 0.05;
} else if (rotate > -0.5) {
rotate = rotate - 0.05;
}
} else {
this._rotation = this._rotation + rotate;
if (this._rotation > 20) {
rotate = rotate - 0.05;
} else if (rotate < 0.5) {
rotate = rotate + 0.05;
}
}
}
Instance of Symbol 254 MovieClip in Frame 758
onClipEvent (load) {
rotate = -0.5;
}
onClipEvent (enterFrame) {
if (rotate < 0) {
this._rotation = this._rotation + rotate;
if (this._rotation < -10) {
rotate = rotate + 0.05;
} else if (rotate > -0.5) {
rotate = rotate - 0.05;
}
} else {
this._rotation = this._rotation + rotate;
if (this._rotation > 30) {
rotate = rotate - 0.05;
} else if (rotate < 0.5) {
rotate = rotate + 0.05;
}
}
}
Instance of Symbol 254 MovieClip in Frame 758
onClipEvent (load) {
rotate = -0.5;
}
onClipEvent (enterFrame) {
if (rotate < 0) {
this._rotation = this._rotation + rotate;
if (this._rotation < -20) {
rotate = rotate + 0.05;
} else if (rotate > -0.5) {
rotate = rotate - 0.05;
}
} else {
this._rotation = this._rotation + rotate;
if (this._rotation > 40) {
rotate = rotate - 0.05;
} else if (rotate < 0.5) {
rotate = rotate + 0.05;
}
}
}
Instance of Symbol 193 MovieClip "a0" in Frame 758
onClipEvent (load) {
bType = "a";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "a0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 103 MovieClip "aPlaced0" in Frame 758
onClipEvent (load) {
bType = "aPlaced";
interval = setInterval(_root.removeClip, 6000, this._name, true);
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 196 MovieClip "c0" in Frame 758
onClipEvent (load) {
bType = "c";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "c0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 198 MovieClip "b0" in Frame 758
onClipEvent (load) {
bType = "b";
dragging = false;
removed = false;
}
onClipEvent (enterFrame) {
if ((!dragging) && (this._name != "b0")) {
this._y = this._y + _root.yspeed;
if (_y <= -100) {
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
}
on (press) {
if (!removed) {
dragging = true;
startDrag (this, true);
}
}
on (release) {
stopDrag();
dragging = false;
if ((this._x < 190) && (_root.bPlaced < _root.bLimit)) {
_root.dupeClip(this._name);
_root.newClip(bLayer);
_root.removeClip(this._name, false);
}
}
Instance of Symbol 97 MovieClip "cPlaced0" in Frame 758
onClipEvent (load) {
bType = "cPlaced";
interval = setInterval(_root.removeClip, 12000, this._name, true);
if (_name == "cPlaced0") {
clearInterval(interval);
_visible = 0;
}
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 91 MovieClip "bPlaced0" in Frame 758
onClipEvent (load) {
bType = "bPlaced";
interval = setInterval(_root.removeClip, 3000, this._name, true);
if (_name == "bPlaced0") {
clearInterval(interval);
_visible = 0;
}
}
onClipEvent (enterFrame) {
this._y = _root.object._y + 2;
}
Instance of Symbol 176 MovieClip "plane0" in Frame 758
onClipEvent (load) {
flying = false;
}
onClipEvent (enterFrame) {
if (this._name != "plane0") {
this._x = this._x - _root.hSpeed;
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._x <= (-this._width)) {
_root.removeHazard(this._name);
}
}
}
Instance of Symbol 191 MovieClip "sBalloon0" in Frame 758
onClipEvent (load) {
counter = 0;
altCounter = 8;
wait = false;
}
onClipEvent (enterFrame) {
if (this._name != "sBalloon0") {
if (this.counter > 35) {
wait = true;
counter = 0;
aSound = new Sound();
aSound.attachSound("steamblast");
aSound.setVolume(60);
aSound.start();
}
if (wait == false) {
this._y = this._y - Math.abs(_root.spikeSpeed);
counter++;
} else {
altCounter--;
wait = true;
this._y = this._y + 0.4;
if (altCounter <= 0) {
wait = false;
counter = 0;
altCounter = 8;
}
}
i = 0;
while (i < _root.currentBalloons.length) {
if (this.box.hitTest(_root[_root.currentBalloons[i]].box) && (!_root[_root.currentBalloons[i]].removed)) {
layer = _root[_root.currentBalloons[i]].bLayer;
_root.removeClip(_root[_root.currentBalloons[i]]._name, false);
}
i++;
}
if (this._y <= -80) {
_root.removeHazard(this._name);
}
}
}
Frame 775
stop();
Frame 777
duplicateMovieClip (_root.fadeout, "fadeout1", 1001);
Frame 785
_root.clearBoard();
removeMovieClip(_root.fadeout1);
gotoAndPlay (76);
Symbol 50 Button
on (press) {
getURL ("http://www.melee.com.au", "_blank", "POST");
}
Symbol 58 Button
on (press) {
gotoAndPlay ("selectdif");
}
Symbol 62 Button
on (press) {
_root.instructions._visible = 1;
_root.instructions.gotoAndPlay("startslide");
}
Symbol 67 Button
on (press) {
gotoAndPlay ("selectdif");
}
Symbol 68 Button
on (press) {
_root.gotoAndPlay("instructions");
}
Symbol 76 Button
on (press) {
this.gotoAndStop(1);
_root.gotoAndPlay("inclose");
}
Symbol 90 MovieClip Frame 12
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
play();
Symbol 91 MovieClip Frame 13
removeMovieClip(this);
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 13
removeMovieClip(this);
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 13
if (this._name == "aPlaced0") {
this._visible = 0;
}
removeMovieClip(this);
Symbol 110 Button
on (press) {
play();
}
Symbol 118 Button
on (press) {
gotoAndPlay ("slide1");
}
Symbol 132 Button
on (press) {
gotoAndPlay ("slide2");
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 6
stop();
Symbol 133 MovieClip Frame 14
stop();
Symbol 133 MovieClip Frame 22
stop();
Symbol 142 Button
on (press) {
_root.createEmptyMovieClip("varpasser", 1);
_root.varpasser.difficulty = "easy";
_root.gotoAndPlay("difclose");
}
Symbol 145 Button
on (press) {
_root.createEmptyMovieClip("varpasser", 1);
varpasser.difficulty = "hard";
_root.gotoAndPlay("difclose");
}
Symbol 146 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
play();
Symbol 175 MovieClip Frame 1
ran = Math.random() * 4;
if (ran < 1.5) {
gotoAndPlay ("one");
} else if (ran < 2.5) {
gotoAndPlay ("two");
} else {
gotoAndPlay ("three");
}
Symbol 175 MovieClip Frame 65
gotoAndPlay (1);
Symbol 175 MovieClip Frame 130
gotoAndPlay (1);
Symbol 175 MovieClip Frame 169
gotoAndPlay (1);
Symbol 184 MovieClip Frame 51
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookleft");
} else {
gotoAndPlay ("lookup");
}
Symbol 184 MovieClip Frame 101
if (_root.theObject.falling) {
gotoAndPlay ("lookdown");
} else {
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookleft");
} else {
gotoAndPlay ("lookup");
}
}
Symbol 184 MovieClip Frame 153
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookleft");
} else {
gotoAndPlay ("lookup");
}
Symbol 191 MovieClip Frame 74
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookleft");
} else {
gotoAndPlay ("lookright");
}
Symbol 191 MovieClip Frame 148
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookleft");
} else {
gotoAndPlay ("lookright");
}
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
this.removed = true;
if (this.dragging) {
stopDrag();
this.dragging = false;
}
play();
Symbol 193 MovieClip Frame 13
this._visible = 0;
_root.newClip(bLayer);
removeMovieClip(this);
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 2
this.removed = true;
if (this.dragging) {
stopDrag();
this.dragging = false;
}
play();
Symbol 196 MovieClip Frame 13
this._visible = 0;
_root.newClip(bLayer);
removeMovieClip(this);
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
this.removed = true;
if (this.dragging) {
stopDrag();
this.dragging = false;
}
play();
Symbol 198 MovieClip Frame 13
this._visible = 0;
_root.newClip(bLayer);
removeMovieClip(this);
Symbol 213 Button
on (press) {
_root.nextScreen = "title";
gotoAndPlay ("exitlevel1");
}
Symbol 216 Button
on (press) {
_root.nextScreen = "level2";
gotoAndPlay ("exitlevel1");
}
Symbol 220 Button
on (press) {
_root.clearBoard();
gotoAndPlay (1);
}
Symbol 222 Button
on (press) {
_root.clearBoard();
gotoAndPlay (1);
}
Symbol 223 Button
on (press) {
_root.clearBoard();
gotoAndPlay (76);
}
Symbol 224 Button
on (press) {
_root.clearBoard();
gotoAndPlay (133);
}
Symbol 238 MovieClip Frame 50
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookfront");
} else {
gotoAndPlay ("lookright");
}
Symbol 238 MovieClip Frame 100
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookfront");
} else {
gotoAndPlay ("lookright");
}
Symbol 238 MovieClip Frame 150
if (_root.theObject.falling) {
gotoAndPlay ("lookdown");
} else {
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookfront");
} else {
gotoAndPlay ("lookright");
}
}
Symbol 240 Button
on (press) {
_root.nextScreen = "title";
gotoAndPlay ("exitlevel2");
}
Symbol 241 Button
on (press) {
_root.nextScreen = "level3";
gotoAndPlay ("exitlevel2");
}
Symbol 243 Button
on (press) {
_root.clearBoard();
gotoAndPlay (289);
}
Symbol 260 MovieClip Frame 50
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookleft");
} else {
gotoAndPlay ("lookright");
}
Symbol 260 MovieClip Frame 100
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookleft");
} else {
gotoAndPlay ("lookright");
}
Symbol 260 MovieClip Frame 150
if (_root.theObject.falling) {
gotoAndPlay ("lookdown");
} else {
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookleft");
} else {
gotoAndPlay ("lookright");
}
}
Symbol 262 Button
on (press) {
_root.nextScreen = "title";
gotoAndPlay ("exitlevel3");
}
Symbol 263 Button
on (press) {
_root.nextScreen = "level4";
gotoAndPlay ("exitlevel3");
}
Symbol 265 Button
on (press) {
_root.clearBoard();
gotoAndPlay (445);
}
Symbol 279 MovieClip Frame 50
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookfront");
} else {
gotoAndPlay ("lookright");
}
Symbol 279 MovieClip Frame 100
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookfront");
} else {
gotoAndPlay ("lookright");
}
Symbol 279 MovieClip Frame 150
if (_root.theObject.falling) {
gotoAndPlay ("lookdown");
} else {
var ran = Math.random();
if (ran < 0.5) {
gotoAndPlay ("lookfront");
} else {
gotoAndPlay ("lookright");
}
}
Symbol 281 Button
on (press) {
_root.nextScreen = "theend";
gotoAndPlay ("exitlevel4");
}
Symbol 283 Button
on (press) {
_root.clearBoard();
gotoAndPlay (602);
}
Symbol 287 Button
on (press) {
gotoAndPlay ("endtotitle");
}