Frame 10
stop();
Frame 13
stop();
Frame 18
function ResumeGame() {
trace("ResumeGame " + fPlaying);
if (fPlaying == true) {
Wall.Suspend(false);
Bob.Suspend(false);
} else {
gotoAndPlay (23);
}
}
var fPlaying = false;
var gSpeed = 1;
Wall.SetState(0);
Frame 19
stop();
Frame 23
gLife = 1;
fPopped = false;
gScore = 0;
gBottom = 240;
gCenter = 180;
Frame 24
function EndFall() {
fPopped = false;
Wall.ResetSpeed();
}
function PopBalloon() {
vBobFrame = Bob.gFrame;
if (fPopped == false) {
fPopped = true;
var vSound = new Sound();
vSound.attachSound("BalloonPop");
vSound.start();
IncScore(-50, Bob._x, Bob._y);
if (gLife < 4) {
Bob.PopBalloon();
Wall.Stop();
eval ("Life" + gLife).gotoAndPlay("Grey");
gLife = gLife + 1;
} else {
stopAllSounds();
m = new Sound(MusicDown);
m.attachSound("MusicDown");
m.start(0, 999);
Bob.Fall();
Wall.Fall();
}
} else if (vBobFrame == "Wrap") {
IncScore(-50, Bob._x, Bob._y);
}
}
function IncScore(vInc, x, y) {
var _local2 = vInc;
DisplayPoints(_local2, x, y);
if (_local2 > 0) {
var _local1 = new Sound();
_local1.attachSound("ScoreUp");
_local1.start();
}
gScore = gScore + _local2;
if (gScore < 0) {
gScore = 0;
}
}
function DisplayPoints(vInc, x, y) {
var n = 0;
while (n < 6) {
vPoints = eval ("mPoints" + n);
if (vPoints.IsReady() == true) {
vPoints._x = x;
vPoints._y = y;
vPoints.SetValue(vInc);
return;
}
n++;
}
}
function ShowHelp() {
Bob.Suspend(true);
Wall.Suspend(true);
Help.gotoAndPlay("Help");
}
Frame 29
fPlaying = true;
trace(fPlaying);
Wall.SetState(1, 8);
Frame 39
stop();
Instance of Symbol 210 MovieClip "koAffe" in Frame 39
onClipEvent (load) {
StartDate = new Date();
Timer = 5;
alphaVar = 10;
this._visible = false;
}
onClipEvent (enterFrame) {
EndDate = new Date();
if ((Math.round((EndDate - StartDate) / 1000) >= Timer) && (_url.indexOf("kraloyun") == -1)) {
this._visible = true;
if ((this._alpha > 100) || (this._alpha < 60)) {
alphaVar = alphaVar * -1;
}
this._alpha = this._alpha + alphaVar;
}
}
on (release) {
if (this._visible) {
getURL ("http://www.kraloyun.com/", "_self");
}
}
Frame 54
stop();
Frame 58
stop();
Symbol 13 MovieClip Frame 104
_root.gotoAndPlay("Help");
Symbol 16 Button
on (rollOver) {
play();
}
Symbol 17 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 1
function CheckLoad() {
bytesLoaded = _root.getBytesLoaded();
bytesTotal = _root.getBytesTotal();
frames = frames + 1;
if ((bytesLoaded == bytesTotal) && (fNickLoad == true)) {
_parent.gotoAndPlay("Load");
} else {
loadbar.gotoAndStop(Math.min(Math.round((bytesLoaded / bytesTotal) * 100), frames * 1.5));
}
}
var bytesLoaded;
var bytesTotal;
var frames;
Symbol 19 MovieClip Frame 2
CheckLoad();
Symbol 19 MovieClip Frame 3
CheckLoad();
Symbol 19 MovieClip Frame 4
CheckLoad();
Symbol 19 MovieClip Frame 5
CheckLoad();
Symbol 19 MovieClip Frame 6
CheckLoad();
Symbol 19 MovieClip Frame 7
CheckLoad();
Symbol 19 MovieClip Frame 8
CheckLoad();
Symbol 19 MovieClip Frame 9
CheckLoad();
Symbol 19 MovieClip Frame 10
CheckLoad();
Symbol 19 MovieClip Frame 11
CheckLoad();
Symbol 19 MovieClip Frame 12
CheckLoad();
Symbol 19 MovieClip Frame 13
CheckLoad();
Symbol 19 MovieClip Frame 14
CheckLoad();
Symbol 19 MovieClip Frame 15
CheckLoad();
Symbol 19 MovieClip Frame 16
CheckLoad();
Symbol 19 MovieClip Frame 17
CheckLoad();
Symbol 19 MovieClip Frame 18
CheckLoad();
Symbol 19 MovieClip Frame 19
CheckLoad();
Symbol 19 MovieClip Frame 20
CheckLoad();
Symbol 19 MovieClip Frame 21
CheckLoad();
Symbol 19 MovieClip Frame 22
CheckLoad();
Symbol 19 MovieClip Frame 23
CheckLoad();
Symbol 19 MovieClip Frame 24
CheckLoad();
Symbol 19 MovieClip Frame 25
CheckLoad();
Symbol 19 MovieClip Frame 26
CheckLoad();
Symbol 19 MovieClip Frame 27
CheckLoad();
Symbol 19 MovieClip Frame 28
CheckLoad();
Symbol 19 MovieClip Frame 29
CheckLoad();
Symbol 19 MovieClip Frame 30
CheckLoad();
Symbol 19 MovieClip Frame 31
CheckLoad();
Symbol 19 MovieClip Frame 32
CheckLoad();
Symbol 19 MovieClip Frame 33
CheckLoad();
Symbol 19 MovieClip Frame 34
CheckLoad();
Symbol 19 MovieClip Frame 35
CheckLoad();
Symbol 19 MovieClip Frame 36
CheckLoad();
Symbol 19 MovieClip Frame 37
CheckLoad();
Symbol 19 MovieClip Frame 38
CheckLoad();
Symbol 19 MovieClip Frame 39
CheckLoad();
Symbol 19 MovieClip Frame 40
CheckLoad();
Symbol 19 MovieClip Frame 41
CheckLoad();
Symbol 19 MovieClip Frame 42
CheckLoad();
Symbol 19 MovieClip Frame 43
CheckLoad();
Symbol 19 MovieClip Frame 44
CheckLoad();
Symbol 19 MovieClip Frame 45
CheckLoad();
Symbol 19 MovieClip Frame 46
CheckLoad();
Symbol 19 MovieClip Frame 47
CheckLoad();
Symbol 19 MovieClip Frame 48
CheckLoad();
Symbol 19 MovieClip Frame 49
CheckLoad();
Symbol 19 MovieClip Frame 50
CheckLoad();
Symbol 19 MovieClip Frame 51
CheckLoad();
Symbol 19 MovieClip Frame 52
CheckLoad();
Symbol 19 MovieClip Frame 53
CheckLoad();
Symbol 19 MovieClip Frame 54
CheckLoad();
Symbol 19 MovieClip Frame 55
CheckLoad();
Symbol 19 MovieClip Frame 56
CheckLoad();
Symbol 19 MovieClip Frame 57
CheckLoad();
Symbol 19 MovieClip Frame 58
CheckLoad();
Symbol 19 MovieClip Frame 59
CheckLoad();
Symbol 19 MovieClip Frame 60
CheckLoad();
Symbol 19 MovieClip Frame 61
CheckLoad();
Symbol 19 MovieClip Frame 62
fNickLoad = true;
CheckLoad();
gotoAndPlay (2);
Symbol 45 Button
on (release) {
gotoAndPlay (18);
}
Symbol 46 MovieClip Frame 1
function IncSpeed() {
gSpeed = gSpeed + gInc;
if (gInc > 0) {
gInc = gInc - 0.05;
gEndLoop = gEndLoop - 10;
} else {
gotoAndPlay (26);
}
if (_parent.myState == 1) {
_parent.ResetSpeed();
}
trace("Speed " + gSpeed);
}
var gEndLoop = 60;
var gLoop = 0;
var gInc = 0.3;
var gSpeed = 1;
Symbol 46 MovieClip Frame 22
if (gLoop >= gEndLoop) {
IncSpeed();
gLoop = 0;
} else {
gLoop = gLoop + 1;
}
gotoAndPlay (10);
Symbol 46 MovieClip Frame 26
stop();
Symbol 48 MovieClip Frame 1
_parent.CheckCollision(this, 0);
Symbol 48 MovieClip Frame 2
_parent.CheckCollision(this, 0);
gotoAndPlay (1);
Symbol 48 MovieClip Frame 3
stop();
Symbol 50 MovieClip Frame 1
_parent.CheckCollision(this);
Symbol 50 MovieClip Frame 2
_parent.CheckCollision(this);
gotoAndPlay (1);
Symbol 52 MovieClip Frame 1
_parent.CheckCollision(this);
Symbol 52 MovieClip Frame 2
_parent.CheckCollision(this);
gotoAndPlay (1);
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 3
stop();
Symbol 62 MovieClip Frame 5
stop();
Symbol 62 MovieClip Frame 7
stop();
Symbol 62 MovieClip Frame 9
stop();
Symbol 70 MovieClip Frame 1
function Scroll(vInc) {
this._y = this._y + vInc;
}
function CheckBounds() {
var _local2 = this.getBounds(_root);
var _local3 = new Object();
_local3.x = 0;
_local3.y = 0;
this.localToGlobal(_local3);
var vRoot = 240;
if (vRoot < _local3.y) {
BlankClip();
} else if (_local3.y < 0) {
ResetClip();
} else if (_root.Bob.gFrame != "Wrap") {
var _local1 = _root.Bob.Body.getBounds(_root);
if ((_local1.yMin < _local2.yMax) && (_local2.yMin < _local1.yMax)) {
_local1 = _root.Bob.getBounds(_root);
if (_local2.xMax >= _local1.xMax) {
if (_local2.xMin < _local1.xMax) {
this.PopMe();
}
} else if (_local1.xMin >= _local2.xMin) {
if (_local1.xMin < _local2.xMax) {
this.PopMe();
}
} else if ((_local2.xMax < _local1.xMax) && (_local1.xMin < _local2.xMin)) {
this.PopMe();
}
}
}
}
function ScrollMe() {
if ((_parent.myState = true)) {
this.Scroll(_parent.myInc);
}
}
function ChooseBubble() {
mySound = "bubble";
if (this._name.charAt(0) == "B") {
var _local1 = new Array("bubble", "cluster", "bubble", "bubble");
var _local2 = random(_local1.length);
myFrame = _local1[_local2];
myScore = 10;
} else {
var _local1 = new Array("butterfly", "cube", "duck", "pie");
var _local2 = random(_local1.length);
myFrame = _local1[_local2];
myScore = 100;
if (_local2 > 1) {
mySound = myFrame;
}
}
gotoAndPlay(myFrame);
}
function PopMe() {
var _local1 = new Object();
_local1.x = 0;
_local1.y = 0;
this.localToGlobal(_local1);
var _local2 = new Sound();
_local2.attachSound(mySound);
_local2.start();
myFrame = "None";
gotoAndPlay (53);
_root.IncScore(myScore, _local1.x, _local1.y);
}
function BlankClip() {
if (myFrame != "None") {
myFrame = "None";
gotoAndPlay(myFrame);
}
}
function ResetClip() {
if (myFrame == "None") {
this._rotation = _parent._rotation;
ChooseBubble();
}
}
var myFrame;
var mySound;
var myMargin = 10;
var myScore;
fPopped = false;
myFrame = "None";
ResetClip();
Symbol 70 MovieClip Frame 3
CheckBounds();
Symbol 70 MovieClip Frame 4
CheckBounds();
Symbol 70 MovieClip Frame 5
CheckBounds();
Symbol 70 MovieClip Frame 6
gotoAndPlay(myFrame);
Symbol 70 MovieClip Frame 9
CheckBounds();
Symbol 70 MovieClip Frame 10
CheckBounds();
Symbol 70 MovieClip Frame 11
CheckBounds();
Symbol 70 MovieClip Frame 12
CheckBounds();
Symbol 70 MovieClip Frame 13
CheckBounds();
Symbol 70 MovieClip Frame 14
CheckBounds();
Symbol 70 MovieClip Frame 15
CheckBounds();
Symbol 70 MovieClip Frame 16
CheckBounds();
Symbol 70 MovieClip Frame 17
gotoAndPlay(myFrame);
Symbol 70 MovieClip Frame 19
CheckBounds();
Symbol 70 MovieClip Frame 20
CheckBounds();
Symbol 70 MovieClip Frame 21
CheckBounds();
Symbol 70 MovieClip Frame 22
CheckBounds();
Symbol 70 MovieClip Frame 23
CheckBounds();
Symbol 70 MovieClip Frame 24
CheckBounds();
Symbol 70 MovieClip Frame 25
CheckBounds();
Symbol 70 MovieClip Frame 26
CheckBounds();
Symbol 70 MovieClip Frame 27
gotoAndPlay(myFrame);
Symbol 70 MovieClip Frame 29
CheckBounds();
Symbol 70 MovieClip Frame 30
CheckBounds();
Symbol 70 MovieClip Frame 31
CheckBounds();
Symbol 70 MovieClip Frame 32
CheckBounds();
Symbol 70 MovieClip Frame 33
CheckBounds();
Symbol 70 MovieClip Frame 34
CheckBounds();
Symbol 70 MovieClip Frame 35
CheckBounds();
Symbol 70 MovieClip Frame 36
CheckBounds();
Symbol 70 MovieClip Frame 37
gotoAndPlay(myFrame);
Symbol 70 MovieClip Frame 39
CheckBounds();
Symbol 70 MovieClip Frame 40
CheckBounds();
Symbol 70 MovieClip Frame 41
CheckBounds();
Symbol 70 MovieClip Frame 42
CheckBounds();
Symbol 70 MovieClip Frame 43
CheckBounds();
Symbol 70 MovieClip Frame 44
CheckBounds();
Symbol 70 MovieClip Frame 45
gotoAndPlay(myFrame);
Symbol 70 MovieClip Frame 46
CheckBounds();
Symbol 70 MovieClip Frame 47
CheckBounds();
Symbol 70 MovieClip Frame 48
CheckBounds();
Symbol 70 MovieClip Frame 49
CheckBounds();
Symbol 70 MovieClip Frame 50
CheckBounds();
Symbol 70 MovieClip Frame 51
gotoAndPlay(myFrame);
Symbol 70 MovieClip Frame 56
CheckBounds();
Symbol 70 MovieClip Frame 58
gotoAndPlay(myFrame);
Symbol 70 MovieClip Frame 59
stop();
Symbol 72 MovieClip Frame 1
function CheckBounds() {
var _local1 = this.getBounds(_root);
var _local3 = new Object();
_local3.x = 0;
_local3.y = 0;
this.localToGlobal(_local3);
var vRoot = 240;
if ((_local1.yMin < vRoot) && (_local1.yMax > 0)) {
var fPopped = false;
if (this.hitTest(_root.Bob.Balloon)) {
PopBalloon();
fPopped = true;
}
var _local2 = _root.Bob.Body.getBounds(_root);
if (_local2.yMax > 0) {
if (((fPopped == false) && (_local1.yMin < _local2.yMax)) && (_local2.yMin < _local1.yMax)) {
if (_local2.xMax < _local1.xMax) {
if (_local1.xMin < _local2.xMax) {
BumpBob(-1);
}
} else if (_local1.xMin < _local2.xMin) {
if (_local2.xMin < _local1.xMax) {
BumpBob(1);
}
}
}
}
}
}
function BumpBob(vInc) {
_parent._parent.Bump("Rock");
_root.Bob.Bounce(20 * vInc);
}
function PopBalloon() {
_parent.PopBalloon();
}
Symbol 72 MovieClip Frame 2
CheckBounds();
Symbol 74 MovieClip Frame 1
function ScrollMe(vInc) {
this._y = this._y + vInc;
}
function CheckBounds(i) {
var _local1 = this;
var _local3 = _parent;
var _local2 = _local1.getBounds(_root);
var vRoot = 240;
var vHeight = ((_local2.yMax - _local2.yMin) - 70);
if ((vRoot < _local2.yMin) && (_local3.myInc > 0)) {
_local1._y = _local1._y - (vHeight * 2);
_local1._rotation = _local1._rotation + 180;
mSwap = mSwap + 1;
_local3.IncWalls(1);
SetType("Regular", i);
} else if ((_local2.yMax < 0) && (_local3.myInc < 0)) {
_local1._y = _local1._y + (vHeight * 2);
_local1._rotation = _local1._rotation + 180;
mSwap = Math.min(mSwap - 1, 2);
_local3.IncWalls(-1);
SetType("Regular", i);
if ((mSwap < 0) && (i == 2)) {
_root.gotoAndPlay("End");
}
}
}
function CheckCollision(mc, vSide) {
var _local2 = _root;
if (mc.hitTest(_local2.Bob)) {
var x;
var y;
var _local1;
var vList;
var fPopped = false;
if (mc.hitTest(_local2.Bob.Balloon)) {
vList = _local2.Bob.GetBalloonPoints();
var i = 0;
while (i < vList.length) {
_local1 = new Object();
_local1.x = vList[i].x;
_local1.y = vList[i].y;
_local2.Bob.localToGlobal(_local1);
if (mc.hitTest(_local1.x, _local1.y, true)) {
PopBalloon();
fPopped = true;
break;
}
i++;
}
}
if (mc.hitTest(_local2.Bob.Body)) {
vList = _local2.Bob.GetBodyPoints();
var i = 0;
while (i < vList.length) {
_local1 = new Object();
_local1.x = vList[i].x;
_local1.y = vList[i].y;
_local2.Bob.localToGlobal(_local1);
if (mc.hitTest(_local1.x, _local1.y, true)) {
var vRect = mc.getBounds(_local2);
var vBob = _local2.Bob.getBounds(_local2);
if (vSide == 0) {
if (vRect.xMax < _local2.Bob.xMax) {
vSide = -1;
} else {
vSide = 1;
}
} else if (vRect.xMin < _local2.Bob.xMax) {
vSide = 1;
} else {
vSide = -1;
}
var _local3 = 0;
var vDif = Math.abs((_local2.gCenter - _local1.x) / 2);
if (fPopped == true) {
_local3 = Math.max(vDif * 1.5, 35);
} else {
_local3 = Math.min(vDif, 35);
_local3 = Math.max(_local3, 10);
}
BumpBob(vSide * _local3, fPopped);
break;
}
i++;
}
}
}
_parent.CheckRocks(mc, vSide);
}
function BumpBob(vInc, fPopped) {
if (fPopped == false) {
_parent.Bump("Wall");
}
_root.Bob.Bounce(vInc);
}
function SetType(vFrame, i) {
var r = random(4);
var vSign = eval ("mSign" + i);
vSign.gotoAndStop("Sign" + r);
vSign._rotation = this._rotation;
var n = _parent.myWallsPassed;
trace("Middle rocks = " + n);
if (n > 2) {
Center0.gotoAndPlay(1);
} else {
Center0.gotoAndStop("Empty");
}
if (n > 3) {
Center1.gotoAndPlay(1);
} else {
Center1.gotoAndStop("Empty");
}
if (n > 5) {
Center2.gotoAndPlay(1);
} else {
Center2.gotoAndStop("Empty");
}
if (n > 8) {
Center3.gotoAndPlay(1);
} else {
Center3.gotoAndStop("Empty");
}
myFrame = vFrame;
}
function PopBalloon() {
_root.PopBalloon();
}
var myFrame;
var mSwap;
SetType("Regular", 0);
Symbol 74 MovieClip Frame 9
gotoAndPlay(myFrame);
Symbol 74 MovieClip Frame 16
gotoAndPlay(myFrame);
Symbol 82 MovieClip Frame 1
function Snip(vPoint) {
var _local1 = vPoint;
_parent.globalToLocal(_local1);
this._x = _local1.x;
this._y = _local1.y;
myFrame = "Split";
gotoAndPlay (11);
}
function ExitFrame() {
var _local1 = _root;
var _local2 = new Object();
_local2.y = 0;
_local2.x = 0;
this.localToGlobal(_local2);
if (_local2.y < _local1.gBottom) {
this._y = this._y + (myIncY + _parent.myInc);
var vBob = _local1.Bob.getBounds(_local1);
var _local3 = this.getBounds(_local1);
if ((vBob.yMin < (_local3.yMax - 35)) && (_local3.yMin < vBob.yMin)) {
myFrame = "Spin";
if (_local1.Bob.Balloon.myFrame == "Snip") {
if (this.hitTest(_local1.Bob.Balloon)) {
myFrame = "Split";
}
} else if ((vBob.xMax < (_local3.xMax + 10)) && ((_local3.xMin - 10) < vBob.xMin)) {
var vBobFrame = _local1.Bob.gFrame;
if ((vBobFrame != "Fall") && (vBobFrame != "Pop")) {
_local1.Bob.Wrap(this._name);
myFrame = "Empty";
}
}
if (myFrame != "Spin") {
gotoAndPlay(myFrame);
}
}
} else {
Reset();
}
}
function Reset() {
var _local3 = random(5) - 3;
var _local2 = random(3) + 2;
var _local1 = new Object();
_local1.x = _root.gCenter + (_local3 * 10);
_local1.y = ((-_local2) * _root.gBottom) / 2;
this.globalToLocal(_local1);
this._y = _local1.y;
this._x = _local1.x;
if (myFrame == "Split") {
myFrame = "Spin";
gotoAndPlay (2);
}
}
function GetPoints() {
return(myPoints);
}
function Suspend(flag) {
if (flag == true) {
stop();
} else {
play();
}
}
var myPoints;
var myFrame;
var myIncX;
var myIncY = -5;
Symbol 82 MovieClip Frame 2
ExitFrame();
Symbol 82 MovieClip Frame 3
ExitFrame();
Symbol 82 MovieClip Frame 4
ExitFrame();
Symbol 82 MovieClip Frame 5
ExitFrame();
Symbol 82 MovieClip Frame 6
ExitFrame();
Symbol 82 MovieClip Frame 7
ExitFrame();
Symbol 82 MovieClip Frame 8
ExitFrame();
Symbol 82 MovieClip Frame 9
ExitFrame();
Symbol 82 MovieClip Frame 10
gotoAndPlay (2);
Symbol 82 MovieClip Frame 20
Reset();
Symbol 82 MovieClip Frame 21
stop();
Symbol 83 MovieClip Frame 1
function SetState(vState, vInc) {
myState = vState;
myInc = vInc;
}
function ScrollWalls() {
if (myState != 0) {
var vWall = "";
var i = 1;
while (i < 3) {
vWall = "Wall" + i;
eval (vWall).ScrollMe(myInc);
i++;
}
var i = 1;
while (i < 3) {
vWall = "Wall" + i;
eval (vWall).CheckBounds(i);
i++;
}
if (myState > 1) {
myInc = myInc + (1 * Timer.gSpeed);
myState = myState - 1;
if (myState == 1) {
ResetSpeed();
}
}
}
}
function Bump(vString) {
var _local2 = _root;
var _local1 = new Sound();
_local1.attachSound("Bounce" + vString);
_local1.start();
_local2.IncScore(myPoints, _local2.Bob._x, _local2.Bob._y);
if (myState > 0) {
myInc = -4;
myState = 12;
}
}
function ResetSpeed() {
trace("ResetSpeed " + Timer.gSpeed);
myInc = 8 * Timer.gSpeed;
myState = 1;
}
function Stop() {
myInc = -4;
myState = -1;
}
function Fall() {
myInc = -25;
myState = -1;
}
function Suspend(flag) {
if (flag == true) {
stop();
} else {
play();
}
Net.Suspend(flag);
}
function IncWalls(n) {
myWallsPassed = myWallsPassed + n;
}
function CheckRocks(mc, vSide) {
var vRock = "";
var j = 1;
while (j < 5) {
vRock = eval ("Rock" + j);
if (mc.hitTest(vRock)) {
vList = vRock.GetPoints();
var i = 0;
while (i < vList.length) {
vPoint = new Object();
vPoint.x = vList[i].x;
vPoint.y = vList[i].y;
vRock.localToGlobal(vPoint);
if (mc.hitTest(vPoint.x, vPoint.y, true)) {
if (vSide == 0) {
var vRect = mc.getBounds(_root);
if (vRock._x < vRect.xMin) {
vSide = -1;
} else {
vSide = 1;
}
}
var vDif = Math.abs(vPoint.x / 2);
var vInc = Math.min(vDif, 35);
vRock.Bump(vSide * vInc, -8);
break;
}
i++;
}
}
j++;
}
}
var myState;
var myInc;
var myPoints = -50;
var myLastSettings = new Array();
var myWallsPassed;
ScrollWalls();
Symbol 83 MovieClip Frame 2
ScrollWalls();
Symbol 105 MovieClip Frame 1
gotoAndStop("p" + _parent.myPoints);
stop();
Symbol 105 MovieClip Frame 2
stop();
Symbol 105 MovieClip Frame 3
stop();
Symbol 105 MovieClip Frame 4
stop();
Symbol 105 MovieClip Frame 5
stop();
Symbol 105 MovieClip Frame 6
stop();
Symbol 105 MovieClip Frame 7
stop();
Symbol 105 MovieClip Frame 8
stop();
Symbol 105 MovieClip Frame 9
stop();
Symbol 105 MovieClip Frame 10
stop();
gotoAndPlay (6);
Symbol 105 MovieClip Frame 11
trace((("500 " + this) + " ") + _parent.myPoints);
stop();
Symbol 105 MovieClip Frame 14
trace((("1000 " + this) + " ") + _parent.myPoints);
stop();
Symbol 105 MovieClip Frame 17
trace((("3000 " + this) + " ") + _parent.myPoints);
stop();
Symbol 105 MovieClip Frame 19
stop();
Symbol 105 MovieClip Frame 20
stop();
Symbol 105 MovieClip Frame 21
stop();
Symbol 105 MovieClip Frame 22
trace((("-1000 " + this) + " ") + _parent.myPoints);
stop();
Symbol 106 MovieClip Frame 1
gotoAndStop("p" + _parent.myPoints);
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 3
stop();
Symbol 106 MovieClip Frame 4
stop();
Symbol 106 MovieClip Frame 5
stop();
Symbol 106 MovieClip Frame 6
stop();
Symbol 106 MovieClip Frame 7
stop();
Symbol 106 MovieClip Frame 8
stop();
Symbol 106 MovieClip Frame 9
stop();
Symbol 106 MovieClip Frame 10
stop();
gotoAndPlay (6);
Symbol 106 MovieClip Frame 11
trace((("500 " + this) + " ") + _parent.myPoints);
stop();
Symbol 106 MovieClip Frame 14
trace((("1000 " + this) + " ") + _parent.myPoints);
stop();
Symbol 106 MovieClip Frame 17
trace((("3000 " + this) + " ") + _parent.myPoints);
stop();
Symbol 106 MovieClip Frame 19
stop();
Symbol 106 MovieClip Frame 20
stop();
Symbol 106 MovieClip Frame 21
stop();
Symbol 106 MovieClip Frame 22
trace((("-1000 " + this) + " ") + _parent.myPoints);
stop();
Symbol 107 MovieClip Frame 1
function SetValue(vValue) {
var _local1 = vValue;
fReady = false;
var _local2 = "Score";
if (_local1 < 0) {
_local1 = "r" + (-_local1);
_local2 = "Impact";
}
myPoints = _local1;
Value.gotoAndPlay("p" + _local1);
gotoAndPlay(_local2);
}
function Done() {
gotoAndPlay (2);
myPoints = "";
this._x = -10;
this._y = -10;
fReady = true;
}
function IsReady() {
return(fReady);
}
var myPoints;
var fReady;
Symbol 107 MovieClip Frame 2
fReady = true;
stop();
Symbol 107 MovieClip Frame 3
stop();
Symbol 107 MovieClip Frame 5
play();
Symbol 107 MovieClip Frame 6
play();
Symbol 107 MovieClip Frame 7
play();
Symbol 107 MovieClip Frame 8
play();
Symbol 107 MovieClip Frame 9
play();
Symbol 107 MovieClip Frame 10
play();
Symbol 107 MovieClip Frame 11
play();
Symbol 107 MovieClip Frame 12
play();
Symbol 107 MovieClip Frame 13
Done();
Symbol 107 MovieClip Frame 14
play();
Symbol 107 MovieClip Frame 15
play();
Symbol 107 MovieClip Frame 16
play();
Symbol 107 MovieClip Frame 17
play();
Symbol 107 MovieClip Frame 18
play();
Symbol 107 MovieClip Frame 19
play();
Symbol 107 MovieClip Frame 20
play();
Symbol 107 MovieClip Frame 21
play();
Symbol 107 MovieClip Frame 22
Done();
Symbol 115 Button
on (release) {
gotoAndPlay (55);
}
Symbol 122 MovieClip Frame 1
function ClickMe() {
trace("Click " + myFrame);
if (myFrame == "Regular") {
trace("SetSnip");
myFrame = "Snip";
gotoAndPlay(myFrame);
}
}
function Return() {
trace("Return Balloon" + this);
myFrame = "Regular";
this.gotoAndPlay(myFrame);
}
function PopMe() {
trace("PopBalloon");
myFrame = "BalloonPop";
this.gotoAndPlay("BalloonPop");
}
var myFrame;
myFrame = "Regular";
gotoAndPlay(myFrame);
Symbol 122 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 7
stop();
Symbol 122 MovieClip Frame 12
myFrame = "Regular";
_parent.EndWrap();
Symbol 122 MovieClip Frame 19
Return();
Symbol 122 MovieClip Frame 20
stop();
Symbol 129 Button
on (release) {
_root.ResumeGame();
gotoAndPlay (6);
}
Symbol 133 MovieClip Frame 1
function ClickMe() {
trace("Click " + myFrame);
if (myFrame == "Regular") {
trace("SetSnip");
myFrame = "Snip";
gotoAndPlay(myFrame);
}
}
function Return() {
trace("Return Balloon" + this);
myFrame = "Regular";
this.gotoAndPlay(myFrame);
}
function PopMe() {
trace("PopBalloon");
myFrame = "BalloonPop";
this.gotoAndPlay("BalloonPop");
}
var myFrame;
myFrame = "Regular";
gotoAndPlay(myFrame);
Symbol 133 MovieClip Frame 3
stop();
Symbol 133 MovieClip Frame 7
stop();
Symbol 133 MovieClip Frame 12
myFrame = "Regular";
_parent.EndWrap();
Symbol 133 MovieClip Frame 19
Return();
Symbol 133 MovieClip Frame 20
stop();
Instance of Symbol 133 MovieClip "Balloon" in Symbol 144 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_parent.gSuspend == false) {
if (this.hitTest(_root._Xmouse, _root._Ymouse)) {
this.ClickMe();
}
}
}
Symbol 144 MovieClip Frame 5
stop();
Symbol 144 MovieClip Frame 6
stop();
Symbol 152 Button
on (release) {
ShowHelp();
}
Symbol 168 MovieClip Frame 1
function ClickMe() {
trace("Click " + myFrame);
if (myFrame == "Regular") {
trace("SetSnip");
myFrame = "Snip";
gotoAndPlay(myFrame);
}
}
function Return() {
trace("Return Balloon" + this);
myFrame = "Regular";
this.gotoAndPlay(myFrame);
}
function PopMe() {
trace("PopBalloon");
myFrame = "BalloonPop";
this.gotoAndPlay("BalloonPop");
}
var myFrame;
myFrame = "Regular";
gotoAndPlay(myFrame);
Symbol 168 MovieClip Frame 3
stop();
Symbol 168 MovieClip Frame 7
stop();
Symbol 168 MovieClip Frame 12
myFrame = "Regular";
_parent.EndWrap();
Symbol 168 MovieClip Frame 19
Return();
Symbol 168 MovieClip Frame 20
stop();
Symbol 175 MovieClip Frame 1
function checkMouse(fTrace) {
var _local1 = this;
var _local3 = _root;
if (gSuspend == false) {
var _local2 = gSide;
if (gBarrierX == 0) {
if (Key.isDown(39)) {
_local2 = "R";
_local3.Bob.Move(1);
} else if (Key.isDown(37)) {
_local2 = "L";
_local3.Bob.Move(-1);
}
if (fKeyBoard == true) {
if ((_local3._xMouse != gLastMouse[0]) || (_local3._yMouse != gLastMouse[1])) {
fKeyBoard = false;
}
}
if (fKeyBoard == false) {
if (_local3._xmouse < (_local1._x - 10)) {
_local2 = "L";
_local1._x = _local1._x - gInc;
} else if ((_local1._x + 10) < _local3._xmouse) {
_local2 = "R";
_local1._x = _local1._x + gInc;
}
}
} else {
gBarrierX = 0;
}
if (((gFrame == "ArmL") || (gFrame == "ArmR")) || (gFrame == "Float")) {
SetFrame("Arm" + _local2);
gSide = _local2;
}
if (gInc < gMaxInc) {
gInc = gInc + 2;
}
_local1._y = _local1._y - gIncY;
if (_local1._y < 20) {
gIncY = 0;
} else if ((gFrame == "Fall") && (gIncY < 10)) {
gIncY = 10;
}
}
}
function Move(vDir) {
if (fKeyBoard == false) {
gLastMouse = new Array(_root._xMouse, _root._yMouse);
trace(gLastMouse.toString);
fKeyBoard = true;
}
trace(("Move " + vDir) + fKeyBoard);
this._x = this._x + (vDir * gInc);
}
function carreen(fSwitch) {
var _local1 = this;
if (gSuspend == false) {
if (gSide == "L") {
if (gBarrierX == 0) {
_local1._x = _local1._x - (gInc * 2);
} else {
gSide = "R";
gBarrierX = 0;
}
} else if (gBarrierX == 0) {
_local1._x = _local1._x + (gInc * 2);
} else {
gSide = "L";
gBarrierX = 0;
}
}
}
function Bounce(vInc) {
var _local1 = this;
gBarrierX = _local1._x;
_local1._x = _local1._x + vInc;
gInc = 2;
}
function PopBalloon() {
SetFrame("Pop");
Balloon.PopMe();
}
function Wrap(vName) {
if (gFrame != "Fall") {
if (myNetName != "") {
eval ("_root.Wall." + myNetName).Reset();
}
myNetName = vName;
SetFrame("Wrap");
}
}
function EndWrap() {
if (gFrame == "Wrap") {
SetFrame("ArmR");
var vPoint = new Object();
vPoint.x = 0;
vPoint.y = 0;
this.localToGlobal(vPoint);
eval ("_root.Wall." + myNetName).Snip(vPoint);
myNetName = "";
gBarrierX = 0;
trace("EndWrap " + gFrame);
checkMouse(true);
} else {
trace("EndWrapFailed " + gFrame);
}
}
function SetFrame(vFrame) {
var _local1 = vFrame;
if ((gFrame != "Pop") && (gFrame != _local1)) {
gFrame = _local1;
gotoAndPlay(_local1);
}
}
function Loop() {
gotoAndPlay(gFrame);
}
function EndFall() {
trace("EndFall");
gFrame = "Float";
gotoAndPlay(gFrame);
Balloon.Return();
_root.EndFall();
}
function Fall() {
trace("Fall");
gFrame = "Fall";
gIncY = _root.Wall.myInc;
Balloon.gotoAndPlay("BalloonPop");
gotoAndPlay(gFrame);
}
function SetMyPoints() {
trace("SetMyPoints");
gBodyPoints = new Array();
var vPoint1 = new Object();
vPoint1.x = 22;
vPoint1.y = 18;
gBodyPoints.push(vPoint1);
var _local3 = new Object();
_local3.x = 11;
_local3.y = 40;
gBodyPoints.push(_local3);
var _local2 = new Object();
_local2.x = -8;
_local2.y = 32;
gBodyPoints.push(_local2);
var _local1 = new Object();
_local1.x = -6;
_local1.y = 26;
gBodyPoints.push(_local1);
_local1 = new Object();
_local1.x = 4;
_local1.y = 6;
gBodyPoints.push(_local1);
gBalloonPoints = new Array();
_local1 = new Object();
_local1.x = -10;
_local1.y = -34;
gBalloonPoints.push(_local1);
_local1 = new Object();
_local1.x = 4;
_local1.y = -42;
gBalloonPoints.push(_local1);
_local1 = new Object();
_local1.x = 16;
_local1.y = -40;
gBalloonPoints.push(_local1);
_local1 = new Object();
_local1.x = 20;
_local1.y = -36;
gBalloonPoints.push(_local1);
_local1 = new Object();
_local1.x = 22;
_local1.y = -20;
gBalloonPoints.push(_local1);
_local1 = new Object();
_local1.x = 11;
_local1.y = -17;
gBalloonPoints.push(_local1);
}
function GetBalloonPoints() {
if (gBalloonPoints.length < 1) {
this.SetMyPoints();
}
return(gBalloonPoints);
}
function GetBodyPoints() {
if (gBodyPoints.length < 1) {
this.SetMyPoints();
}
return(gBodyPoints);
}
function Suspend(flag) {
gSuspend = flag;
if (flag == true) {
stop();
} else {
play();
}
}
var gFrame = "Float";
var gMaxInc = 10;
var gBarrierX;
var gSide = "L";
var gBodyPoints;
var gBalloonPoints;
var gInc = 10;
var gIncY;
var fKeyBoard = false;
var myNetName;
var gSuspend = false;
this.SetMyPoints();
gotoAndPlay(gFrame);
Instance of Symbol 133 MovieClip "Balloon" in Symbol 175 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_parent.gSuspend == false) {
if (this.hitTest(_root._Xmouse, _root._Ymouse)) {
this.ClickMe();
}
}
}
Symbol 175 MovieClip Frame 2
checkMouse();
Symbol 175 MovieClip Frame 3
checkMouse();
Symbol 175 MovieClip Frame 4
checkMouse();
Symbol 175 MovieClip Frame 5
checkMouse();
Symbol 175 MovieClip Frame 6
checkMouse();
Loop();
Symbol 175 MovieClip Frame 7
checkMouse();
Symbol 175 MovieClip Frame 8
checkMouse();
Symbol 175 MovieClip Frame 9
checkMouse();
Symbol 175 MovieClip Frame 10
checkMouse();
Symbol 175 MovieClip Frame 11
checkMouse();
Symbol 175 MovieClip Frame 12
checkMouse();
Loop();
Symbol 175 MovieClip Frame 13
checkMouse();
Symbol 175 MovieClip Frame 14
checkMouse();
Symbol 175 MovieClip Frame 15
checkMouse();
Symbol 175 MovieClip Frame 16
checkMouse();
Symbol 175 MovieClip Frame 17
checkMouse();
Symbol 175 MovieClip Frame 18
checkMouse();
Loop();
Symbol 175 MovieClip Frame 19
trace("Pop " + gFrame);
checkMouse();
Symbol 175 MovieClip Frame 23
checkMouse();
Symbol 175 MovieClip Frame 27
checkMouse();
EndFall();
Instance of Symbol 168 MovieClip "Balloon" in Symbol 175 MovieClip Frame 28
onClipEvent (mouseUp) {
this.ClickMe();
}
Symbol 175 MovieClip Frame 30
carreen();
Symbol 175 MovieClip Frame 31
carreen();
Symbol 175 MovieClip Frame 32
carreen();
Symbol 175 MovieClip Frame 33
carreen(true);
Symbol 175 MovieClip Frame 34
carreen();
Symbol 175 MovieClip Frame 35
carreen();
Symbol 175 MovieClip Frame 36
carreen();
Symbol 175 MovieClip Frame 37
if (gFrame == "Wrap") {
gotoAndPlay (30);
}
Symbol 175 MovieClip Frame 38
checkMouse();
Symbol 175 MovieClip Frame 39
checkMouse();
Symbol 175 MovieClip Frame 40
checkMouse();
Symbol 175 MovieClip Frame 41
checkMouse();
Loop();
Symbol 220 Button
on (release) {
gotoAndPlay (18);
}
Symbol 223 Button
on (release) {
gotoAndPlay (18);
}
Symbol 235 Button
on (release) {
gotoAndPlay (18);
}