Frame 1
bSound = true;
Frame 2
stop();
Mouse.show();
Frame 3
stop();
Frame 4
stop();
Frame 5
Mouse.hide();
startDrag (iBalloon, true);
nLives = 5;
nScore = 0;
nBoxes = 0;
nGravity = 8;
nLandSpeed = 5;
nBackCloudsSpeed = 1.5;
nFronCloudsSpeed = 7;
nTunCloudSpeed = 4;
nUFOSpeed = 10;
nKorshunSpeed = 8;
nKorshunDirection = -1;
nZeppelinSpeed = 3;
bPause = false;
nBangs = 0;
iBalloon.wcol = "";
nBackSpeed = 1;
i = 1;
while (i <= 6) {
_root["iBugor" + i].gotoAndStop(random(3) + 1);
_root["iBugor" + i].bHit = false;
i++;
}
i = 1;
while (i <= 4) {
_root["iTree" + i].bHit = false;
i++;
}
iHouse.nBoxes = 0;
iHouse.bHit = false;
iUFO._x = -1000;
iUFO.nAmplitude = 60;
iUFO.nAngle = 0;
iUFO._yy = random(200);
iUFO.bHit = false;
iKorshun._x = -400;
iKorshun.bHit = false;
iZeppelin._x = -500;
iZeppelin.bHit = false;
iTunCloud._x = -150;
iTunCloud.bHit = false;
iBalloon.checkCollision = function () {
var _local1 = _root;
var _local2 = this;
if (_local1.bPlayAgain == false) {
for (ii in _local2.iPerimeter) {
_local2.iPerimeter.localToGlobal((p = {x:_local2.iPerimeter[ii]._x, y:_local2.iPerimeter[ii]._y}));
i = 1;
while (i <= 6) {
if (((_local1["iBugor" + i].bHit == false) && (_local2.hitTest(_local1["iBugor" + i]))) && (_local1["iBugor" + i].hitTest(p.x, p.y, true))) {
_local1.nLives--;
_local1["iBugor" + i].bHit = true;
wcol = "nat";
return(p);
}
i++;
}
i = 1;
while (i <= 4) {
if (((_local1["iTree" + i].bHit == false) && (_local2.hitTest(_local1["iTree" + i]))) && (_local1["iTree" + i].hitTest(p.x, p.y, true))) {
_local1.nLives--;
_local1["iTree" + i].bHit = true;
wcol = "nat";
return(p);
}
i++;
}
if (((_local1.iHouse.bHit == false) && (_local2.hitTest(_local1.iHouse))) && (_local1.iHouse.hitTest(p.x, p.y, true))) {
_local1.nLives--;
_local1.iHouse.bHit = true;
wcol = "nat";
return(p);
}
if (((_local1.iUFO.bHit == false) && (_local2.hitTest(_local1.iUFO))) && (_local1.iUFO.hitTest(p.x, p.y, true))) {
_local1.nLives--;
_local1.iUFO.bHit = true;
wcol = "ufo";
return(p);
}
if (((_local1.iKorshun.bHit == false) && (_local2.hitTest(_local1.iKorshun))) && (_local1.iKorshun.hitTest(p.x, p.y, true))) {
_local1.nLives--;
_local1.iKorshun.bHit = true;
wcol = "kor";
return(p);
}
if (((_local1.iZeppelin.bHit == false) && (_local2.hitTest(_local1.iZeppelin))) && (_local1.iZeppelin.hitTest(p.x, p.y, true))) {
_local1.nLives--;
_local1.iZeppelin.bHit = true;
wcol = "nat";
return(p);
}
if (((_local1.iTunCloud.bHit == false) && (_local2.hitTest(_local1.iTunCloud))) && (_local1.iTunCloud.hitTest(p.x, p.y, true))) {
_local1.nLives--;
_local1.iTunCloud.bHit = true;
wcol = "clo";
return(p);
}
}
} else {
_local1.bPlayAgain = false;
}
return(null);
};
iBalloon.Bang = function (p) {
var _local1 = _root;
var _local2 = this;
bang = _local1.iBang.duplicateMovieClip("iBang" + _local1.nBangs, _local1.nBangs++, {_x:p.x, _y:p.y});
bang.nTimer = 3;
if (_local1.bSound == true) {
bangSound = new Sound();
if (wcol == "nat") {
bangSound.attachSound("Bang");
}
if (wcol == "clo") {
bangSound.attachSound("Grom");
}
if (wcol == "kor") {
bangSound.attachSound("Porhat");
}
if (wcol == "ufo") {
bangSound.attachSound("Ufo");
}
bangSound.start();
}
bang.onEnterFrame = function () {
var _local1 = this;
_local1.nTimer--;
if (!_local1.nTimer) {
_local1.removeMovieClip();
}
};
};
if (!_root.mSound) {
_root.mSound = new Sound();
_root.mSound.attachSound("Melody");
if (_root.bSound == true) {
_root.mSound.start();
}
} else if (_root.bSound == true) {
_root.mSound.start();
}
_root.mSound.onSoundComplete = function () {
_root.mSound.start();
};
Instance of Symbol 100 MovieClip "iBox" in Frame 5
onClipEvent (enterFrame) {
if (_root.bPause == false) {
if ((!this.bInHouse) && (hitTest(_root.iHouse))) {
_root.nBoxes++;
_root.iHouse.nBoxes++;
if (_root.bSound == true) {
sSound = new Sound();
sSound.attachSound("Good");
sSound.start();
}
_root.iHouse.play();
_root.nScore = _root.nScore + (10 * _root.iHouse.nBoxes);
_root.iAddScore._alpha = 100;
_root.iAddScore._y = this._y;
_root.iAddScore._x = this._x;
_root.iAddScore.iAddScoreText.text = "+" + (10 * _root.iHouse.nBoxes);
_root.iAddScore.iAddScoreText.textColor = 43520;
this.bInHouse = true;
this.bFly = false;
if ((_root.nBoxes % 25) == 0) {
_root.iHeartPlus._y = this._y;
_root.iHeartPlus._x = this._x;
_root.iHeartPlus.play();
if (_root.bSound == true) {
sSound = new Sound();
sSound.attachSound("Yeha");
sSound.start();
}
_root.nLives++;
_root.nLandSpeed++;
_root.nBackCloudsSpeed++;
_root.nFronCloudsSpeed++;
_root.nTunCloudSpeed++;
_root.nUFOSpeed++;
_root.nKorshunSpeed++;
_root.nZeppelinSpeed++;
_root.nBackSpeed++;
}
}
if ((this.bInHouse == true) && (_y > 380)) {
_y = 515;
}
if (_y < 500) {
this._y = this._y + _root.nGravity;
this._x = this._x + _root.nLandSpeed;
this.bFly = true;
} else {
if ((this.bFly == true) && (this.bInHouse == false)) {
_root.nScore = _root.nScore - 10;
_root.iAddScore._alpha = 100;
_root.iAddScore._y = 420;
_root.iAddScore._x = this._x;
_root.iAddScore.iAddScoreText.text = "-10";
_root.iAddScore.iAddScoreText.textColor = 16711680 /* 0xFF0000 */;
if (_root.bSound == true) {
sSound = new Sound();
sSound.attachSound("Bad");
sSound.start();
}
}
this.bFly = false;
this.bInHouse = false;
}
}
}
Instance of Symbol 43 MovieClip "iBalloon" in Frame 5
onClipEvent (enterFrame) {
if ((_root.bPause == false) && (_root.nLives > 0)) {
var p = this.checkCollision();
if (p != null) {
Bang(p);
}
}
}
onClipEvent (mouseUp) {
if (((_root.bPause == false) && (_root.iBox._y > 480)) && (_root.nLives > 0)) {
_root.iBox._x = _x;
_root.iBox._y = _y + 20;
_root.iBox.bInHouse = false;
Mouse.hide();
}
}
onClipEvent (keyUp) {
if (((_root.bPause == false) && (Key.getCode() == 32)) && (_root.nLives > 0)) {
if (_root.iBox._y > 480) {
_root.iBox._x = _x;
_root.iBox._y = _y + 20;
_root.iBox.bInHouse = false;
}
} else if (Key.getCode() == 80) {
if (!_root.bPause) {
stopDrag();
Mouse.show();
_root.iPause._x = 260;
} else {
Mouse.hide();
startDrag (this, true);
_root.iPause._x = 700;
}
if (_root.bPause == true) {
_root.iKorshun.play();
_root.iTunCloud.iMoln.play();
_root.iBalloon.play();
} else {
_root.iKorshun.stop();
_root.iTunCloud.iMoln.stop();
_root.iBalloon.stop();
}
_root.bPause = !_root.bPause;
}
}
Instance of Symbol 3 MovieClip [smBang] "iBang" in Frame 5
/* no clip actions */
Instance of Symbol 158 MovieClip "iAddScore" in Frame 5
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._x = this._x + _root.nLandSpeed;
this._y = this._y - 2;
this._alpha = this._alpha - 6;
} else {
this._alpha = 0;
}
}
Frame 6
if (bPause == false) {
_root.iKorshun.play();
_root.iTunCloud.iMoln.play();
_root.iBalloon.play();
if (nLives <= 0) {
gotoAndStop (8);
}
i = 1;
while (i <= 2) {
_root["iBack" + i]._x = _root["iBack" + i]._x + nBackSpeed;
if (_root["iBack" + i]._x >= 640) {
_root["iBack" + i]._x = _root["iBack" + i]._x - 1280;
}
i++;
}
i = 1;
while (i <= 6) {
_root["iBugor" + i]._x = _root["iBugor" + i]._x + nLandSpeed;
if (_root["iBugor" + i]._x > 750) {
_root["iBugor" + i]._x = -200;
_root["iBugor" + i].gotoAndStop((random(30) / 10) + 1);
_root["iBugor" + i].bHit = false;
}
i++;
}
_root.iHouse._x = _root.iHouse._x + nLandSpeed;
if (_root.iHouse._x > 750) {
_root.iHouse._x = -200 - random(400);
_root.iHouse.bHit = false;
_root.iHouse.nBoxes = 0;
_root.iHouse.iBug.gotoAndStop(random(3) + 1);
}
i = 1;
while (i <= 4) {
_root["iTree" + i]._x = _root["iTree" + i]._x + nLandSpeed;
if (_root["iTree" + i]._x > 700) {
_root["iTree" + i]._x = -200 - random(400);
_root["iTree" + i].bHit = false;
}
i++;
}
i = 1;
while (i <= 5) {
if (i <= 3) {
_root["iCloud" + i]._x = _root["iCloud" + i]._x + nFronCloudsSpeed;
} else {
_root["iCloud" + i]._x = _root["iCloud" + i]._x + nBackCloudsSpeed;
}
if (_root["iCloud" + i]._x > 770) {
_root["iCloud" + i]._x = -300 - random(300);
if (i <= 3) {
_root["iCloud" + i]._y = random(200);
} else {
_root["iCloud" + i]._y = 150 + random(150);
}
}
i++;
}
_root.iUFO._x = _root.iUFO._x + nUFOSpeed;
_root.iUFO.nAngle = _root.iUFO.nAngle + 10;
if (_root.iUFO.nAngle == 360) {
_root.iUFO.nAngle = 0;
}
_root.iUFO._y = (Math.sin((Math.PI * _root.iUFO.nAngle) / 180) * 60) + _root.iUFO._yy;
if (_root.iUFO._x > 750) {
_root.iUFO._x = -200 - random(1500);
_root.iUFO._yy = random(250);
_root.iUFO.bHit = false;
}
_root.iTunCloud._x = _root.iTunCloud._x + nTunCloudSpeed;
_root.iTunCloud._y = _root.iTunCloud._y + ((random(2) == 1) ? 1 : -1);
if (_root.iTunCloud._x > 760) {
_root.iTunCloud._x = -150 - random(100);
_root.iTunCloud._y = 5 + random(45);
_root.iTunCloud.bHit = false;
}
_root.iKorshun._x = _root.iKorshun._x + nKorshunSpeed;
if ((_root.iKorshun._y < 30) || (_root.iKorshun._y > 400)) {
_root.nKorshunDirection = _root.nKorshunDirection * -1;
}
if (_root.iKorshun._x > 750) {
_root.iKorshun._x = -200 - random(400);
_root.iKorshun._y = 130 + random(100);
_root.iKorshun.bHit = false;
if (random(2)) {
_root.nKorshunDirection = 1;
} else {
_root.nKorshunDirection = -1;
}
}
_root.iZeppelin._x = _root.iZeppelin._x + nZeppelinSpeed;
if (_root.iZeppelin._x > 750) {
_root.iZeppelin._x = -200 - random(500);
_root.iZeppelin._y = random(200);
_root.iZeppelin.bHit = false;
}
}
Frame 7
gotoAndPlay (6);
Frame 8
_root.stop();
_root.iKorshun.stop();
_root.iTunCloud.iMoln.stop();
_root.iBalloon.stop();
_root.iBalloon.stopDrag();
Mouse.show();
Symbol 3 MovieClip [smBang] Frame 1
stop();
Symbol 14 Button
on (release) {
getURL ("http://www.pozirk.com", "_blank");
}
Symbol 15 MovieClip Frame 1
_parent.stop();
nBytesTotal = _root.getBytesTotal();
nPause = 2000;
Symbol 15 MovieClip Frame 2
nBytesLoaded = _root.getBytesLoaded();
nPercentLoaded = Math.round((nBytesLoaded * 100) / nBytesTotal);
Symbol 15 MovieClip Frame 3
sPercent = nPercentLoaded + " %";
iBar._xscale = nPercentLoaded;
if (nPercentLoaded < 100) {
gotoAndPlay (2);
} else {
nThisTick = (nLastTick = getTimer());
gotoAndPlay (4);
}
Symbol 15 MovieClip Frame 4
if (nPause > 0) {
nThisTick = getTimer();
nPause = nPause - (nThisTick - nLastTick);
nLastTick = nThisTick;
} else {
stop();
_parent.gotoAndPlay(2);
}
Symbol 15 MovieClip Frame 5
gotoAndPlay (4);
Symbol 24 Button
on (release) {
_root.bPlayAgain = false;
_root.gotoAndPlay(5);
}
on (rollOver) {
if (_root.bSound == true) {
sSound = new Sound();
sSound.attachSound("Button");
sSound.start();
}
}
Symbol 31 Button
on (release) {
_root.gotoAndPlay(3);
}
on (rollOver) {
if (_root.bSound == true) {
sSound = new Sound();
sSound.attachSound("Button");
sSound.start();
}
}
Symbol 54 Button
on (release) {
getURL ("http://www.pozirk.com", "_blank");
}
on (rollOver) {
if (_root.bSound == true) {
sSound = new Sound();
sSound.attachSound("Button");
sSound.start();
}
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 73 Button
on (release) {
_root.bSound = !_root.bSound;
if (_root.bSound == true) {
this.sSoundText = "Sound ON";
} else {
this.sSoundText = "Sound OFF";
}
}
on (rollOver) {
if (_root.bSound == true) {
sSound = new Sound();
sSound.attachSound("Button");
sSound.start();
}
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 83 Button
on (release) {
_root.gotoAndPlay(2);
}
on (rollOver) {
if (_root.bSound == true) {
sSound = new Sound();
sSound.attachSound("Button");
sSound.start();
}
}
Symbol 91 Button
on (release) {
_root.gotoAndPlay(2);
}
Symbol 105 MovieClip Frame 18
stop();
Symbol 147 MovieClip Frame 1
stop();
iBug.stop();
Symbol 163 Button
on (release) {
_root.gotoAndPlay(2);
_root.mSound.stop();
}
on (rollOver) {
if (_root.bSound == true) {
sSound = new Sound();
sSound.attachSound("Button");
sSound.start();
}
}
Symbol 168 Button
on (release) {
_root.bPlayAgain = true;
_root.mSound.stop();
_root.gotoAndPlay(5);
}
on (rollOver) {
if (_root.bSound == true) {
sSound = new Sound();
sSound.attachSound("Button");
sSound.start();
}
}