Frame 5
stop();
Frame 15
loading = "yes";
loadVariables ("highscore.php", _parent);
Frame 17
if (loading == "no") {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 19
stop();
Frame 44
world = new Object();
world.left = bounds._x;
world.right = bounds._x + bounds._width;
world.top = bounds._y;
world.bottom = bounds._y + bounds._height;
world.depth = 75;
world.speed = 2;
world.bounce = 1;
world.skillFactor = 17;
world.curveAmount = 50;
world.curveDecay = 0.01;
world.score = 0;
score = 0;
world.enemyLives = 3;
world.playerLives = 5;
world.level = 1;
level = "Level 1";
levelNumber = world.level;
world.bonus = 10;
world.bonusDisplay = 3000;
world.hitScore = 100;
world.curveBonus = 50;
world.superCurveBonus = 150;
world.accuracyBonus = 100;
world.hitDegrade = 10;
world.curveDegrade = 5;
world.superCurveDegrade = 15;
world.accuracyDegrade = 10;
bonusWord = "bonus:";
levelSkillFactor = new Array(17, 14, 11, 9, 7, 5, 3.5, 2.75, 2, 1);
levelSpeed = new Array(2, 2.33, 2.66, 3, 3.33, 3.66, 4, 4.33, 4.66, 6);
levelCurve = new Array(25, 22.5, 20, 17.5, 15, 12.5, 10, 10, 10, 10);
wallBounce1 = new Sound();
wallBounce1.attachSound("wallBounce1");
wallBounce2 = new Sound();
wallBounce2.attachSound("wallBounce2");
pPaddleBounce = new Sound();
pPaddleBounce.attachSound("pPaddleBounce");
ePaddleBounce = new Sound();
ePaddleBounce.attachSound("ePaddleBounce");
missSound = new Sound();
missSound.attachSound("missSound");
globalSound = new Sound();
globalSound.attachSound(_root);
globalSound.setVolume(80);
Instance of Symbol 59 MovieClip "userPaddle" in Frame 45
onClipEvent (load) {
lagFactor = _parent.world.lagFactor;
wleft = _parent.world.left;
wright = _parent.world.right;
wtop = _parent.world.top;
wbottom = _parent.world.bottom;
wdepth = _parent.world.depth;
wl = wleft;
wr = wright;
wt = wtop;
wb = wbottom;
wx = ((wright - wleft) / 2) + wleft;
wy = ((wbottom - wtop) / 2) + wtop;
myPos = new Object();
myPos.x = wx;
myPos.y = wy;
_root._xmouse = wx;
_root._ymouse = wy;
myPos.z = 0;
oldPos = new Object();
oldPos.x = myPos.x;
oldPos.y = myPos.y;
mySpeed = new Object();
mySpeed.x = 0;
mySpeed.y = 0;
m = 100;
f = 0.8;
swidth = _width;
sheight = _height;
_x = myPos.x;
_y = myPos.y;
}
onClipEvent (enterFrame) {
myTarX = _root._xmouse;
myTarY = _root._ymouse;
myPos.x = myPos.x - ((myPos.x - myTarX) / 1.5);
myPos.y = myPos.y - ((myPos.y - myTarY) / 1.5);
if ((myPos.y - (sheight / 2)) < wtop) {
myPos.y = wtop + (sheight / 2);
} else if (wbottom < (myPos.y + (sheight / 2))) {
myPos.y = wbottom - (sheight / 2);
}
if ((myPos.x - (swidth / 2)) < wleft) {
myPos.x = wleft + (swidth / 2);
} else if (wright < (myPos.x + (swidth / 2))) {
myPos.x = wright - (swidth / 2);
}
_x = myPos.x;
_y = myPos.y;
mySpeed.x = myPos.x - oldPos.x;
mySpeed.y = myPos.y - oldPos.y;
oldPos.x = myPos.x;
oldPos.y = myPos.y;
_parent.world.paddlePosX = myPos.x;
_parent.world.paddlePosY = myPos.y;
_parent.world.paddleSpeedX = mySpeed.x;
_parent.world.paddleSpeedY = mySpeed.y;
}
Frame 90
tellTarget (enemyLives) {
gotoAndPlay("L" + _parent.world.enemyLives);
};
tellTarget (playerLives) {
gotoAndPlay("L" + _parent.world.playerLives);
};
world.speed = levelSpeed[world.level - 1];
world.skillFactor = levelSkillFactor[world.level - 1];
world.curveAmount = levelCurve[world.level - 1];
world.hitScore = 100;
world.curveBonus = 50;
world.superCurveBonus = 150;
world.accuracyBonus = 100;
world.bonusDisplay = 3000;
bonusScore = world.bonusDisplay;
world.bonus = 10;
Instance of Symbol 75 MovieClip "enemyPaddle" in Frame 91
onClipEvent (load) {
skillFactor = _parent.world.skillFactor;
wleft = _parent.world.left;
wright = _parent.world.right;
wtop = _parent.world.top;
wbottom = _parent.world.bottom;
wdepth = _parent.world.depth;
wl = wleft;
wr = wright;
wt = wtop;
wb = wbottom;
wx = ((wright - wleft) / 2) + wleft;
wy = ((wbottom - wtop) / 2) + wtop;
myPos = new Object();
myPos.x = wx;
myPos.y = wy;
myPos.z = 75;
oldPos = new Object();
oldPos.x = myPos.x;
oldPos.y = myPos.y;
VisPos = new Object();
VisPos.x = myPos.x;
VisPos.y = myPos.y;
mySpeed = new Object();
mySpeed.x = 0;
mySpeed.y = 0;
m = 100;
f = 0.8;
swidth = _width;
sheight = _height;
varA = 31.066017;
VisPos.x = wx - ((wx - myPos.x) * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
VisPos.y = wy - ((wy - myPos.y) * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
_x = VisPos.x;
_y = VisPos.y;
_width = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
_height = (sheight * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
growshrink = 0;
}
onClipEvent (enterFrame) {
bPosX = _parent.ballPosX;
bPosY = _parent.ballPosY;
bDirZ = _parent.ballDirZ;
if (0 < bDirZ) {
myTarX = bPosX;
myTarY = bPosY;
myPos.x = myPos.x - ((myPos.x - myTarX) / skillFactor);
myPos.y = myPos.y - ((myPos.y - myTarY) / skillFactor);
} else {
myTarX = wx;
myTarY = wy;
myPos.x = myPos.x - ((myPos.x - myTarX) / 15);
myPos.y = myPos.y - ((myPos.y - myTarY) / 15);
}
if ((myPos.y - (sheight / 2)) < wtop) {
myPos.y = wtop + (sheight / 2);
} else if (wbottom < (myPos.y + (sheight / 2))) {
myPos.y = wbottom - (sheight / 2);
}
if ((myPos.x - (swidth / 2)) < wleft) {
myPos.x = wleft + (swidth / 2);
} else if (wright < (myPos.x + (swidth / 2))) {
myPos.x = wright - (swidth / 2);
}
VisPos.x = wx - ((wx - myPos.x) * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
VisPos.y = wy - ((wy - myPos.y) * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
_x = VisPos.x;
_y = VisPos.y;
_width = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
_height = (sheight * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
mySpeed.x = myPos.x - oldPos.x;
mySpeed.y = myPos.y - oldPos.y;
oldPos.x = myPos.x;
oldPos.y = myPos.y;
_parent.world.enemyPosX = myPos.x;
_parent.world.enemyPosY = myPos.y;
_parent.world.enemySpeedX = mySpeed.x;
_parent.world.enemySpeedY = mySpeed.y;
}
Instance of Symbol 77 MovieClip in Frame 92
onClipEvent (load) {
wleft = _parent.world.left;
wright = _parent.world.right;
wtop = _parent.world.top;
wbottom = _parent.world.bottom;
wdepth = _parent.world.depth;
wl = wleft;
wr = wright;
wt = wtop;
wb = wbottom;
wx = ((wright - wleft) / 2) + wleft;
wy = ((wbottom - wtop) / 2) + wtop;
speed = _parent.world.speed;
myPos = new Object();
myPos.x = wl;
myPos.y = wt;
myPos.z = 0;
VisPos = new Object();
VisPos.x = myPos.x;
VisPos.y = myPos.y;
mySpeed = new Object();
mySpeed.x = speed;
mySpeed.y = speed;
mySpeed.z = speed;
m = 100;
f = 0.8;
swidth = _width;
sheight = _height;
_x = myPos.x;
_y = myPos.y;
varA = 31.066017;
_width = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
_height = (sheight * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
growshrink = 0;
}
onClipEvent (enterFrame) {
myPos.z = _parent.ballPosZ;
if (myPos.z < 0) {
myPos.z = 0;
}
VisPos.x = wx - ((wx - myPos.x) * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
VisPos.y = wy - ((wy - myPos.y) * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
_x = VisPos.x;
_y = VisPos.y;
_alpha = ((myPos.z - 100) / -1);
_width = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
_height = (sheight * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
}
Instance of Symbol 80 MovieClip in Frame 92
onClipEvent (load) {
wleft = _parent.world.left;
wright = _parent.world.right;
wtop = _parent.world.top;
wbottom = _parent.world.bottom;
wdepth = _parent.world.depth;
wl = wleft;
wr = wright;
wt = wtop;
wb = wbottom;
wx = ((wright - wleft) / 2) + wleft;
wy = ((wbottom - wtop) / 2) + wtop;
speed = _parent.world.speed;
curveAmount = _parent.world.curveAmount;
curveDecay = 1.004;
myPos = new Object();
myPos.x = wx;
myPos.y = wy;
myPos.z = 0;
myCurve = new Object();
myCurve.x = 0;
myCurve.y = 0;
VisPos = new Object();
VisPos.x = myPos.x;
VisPos.y = myPos.y;
mySpeed = new Object();
mySpeed.x = 0;
mySpeed.y = 0;
mySpeed.z = 0;
m = 100;
f = 0.8;
swidth = _width;
_x = myPos.x;
_y = myPos.y;
varA = 31.066017;
_width = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
_height = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
growshrink = 0;
}
onClipEvent (enterFrame) {
if (ballStop != 1) {
pSpeedX = _parent.world.paddleSpeedX;
pSpeedY = _parent.world.paddleSpeedY;
pPosX = _parent.world.paddlePosX;
pPosY = _parent.world.paddlePosY;
eSpeedX = _parent.world.enemySpeedX;
eSpeedY = _parent.world.enemySpeedY;
ePosX = _parent.world.enemyPosX;
ePosY = _parent.world.enemyPosY;
mySpeed.x = mySpeed.x + myCurve.x;
mySpeed.y = mySpeed.y + myCurve.y;
myPos.z = myPos.z + mySpeed.z;
myPos.x = myPos.x + mySpeed.x;
myPos.y = myPos.y - mySpeed.y;
if (myCurve.x != 0) {
myCurve.x = myCurve.x / curveDecay;
}
if (myCurve.y != 0) {
myCurve.y = myCurve.y / curveDecay;
}
radius = swidth / 2;
if ((myPos.y - radius) < wtop) {
myPos.y = wtop + radius;
myCurve.y = myCurve.y / (((curveDecay - 1) * 50) + 1);
mySpeed.y = -mySpeed.y;
_parent.wallBounce2.start(0, 1);
} else if (wbottom < (myPos.y + radius)) {
myPos.y = wbottom - radius;
myCurve.y = myCurve.y / (((curveDecay - 1) * 50) + 1);
mySpeed.y = -mySpeed.y;
_parent.wallBounce2.start(0, 1);
}
if ((myPos.x - radius) < wleft) {
myPos.x = wleft + radius;
myCurve.x = myCurve.x / (((curveDecay - 1) * 50) + 1);
mySpeed.x = -mySpeed.x;
_parent.wallBounce1.start(0, 1);
} else if (wright < (myPos.x + radius)) {
myPos.x = wright - radius;
myCurve.x = myCurve.x / (((curveDecay - 1) * 50) + 1);
mySpeed.x = -mySpeed.x;
_parent.wallBounce1.start(0, 1);
}
if (wdepth < myPos.z) {
if (hitTest(_parent.enemyPaddle)) {
if ((ePosX + 7) < myPos.x) {
if (myPos.y < ePosY) {
tellTarget (_parent.enemyPaddle) {
gotoAndPlay ("UR");
};
} else if (myPos.y >= ePosY) {
tellTarget (_parent.enemyPaddle) {
gotoAndPlay ("BR");
};
}
} else if (myPos.x < (ePosX - 7)) {
if (myPos.y < ePosY) {
tellTarget (_parent.enemyPaddle) {
gotoAndPlay ("UL");
};
} else if (myPos.y >= ePosY) {
tellTarget (_parent.enemyPaddle) {
gotoAndPlay ("BL");
};
}
} else if ((ePosX + 7) >= myPos.x) {
if ((ePosY + 5) >= myPos.y) {
if (myPos.y >= (ePosY - 5)) {
tellTarget (_parent.enemyPaddle) {
gotoAndPlay ("C");
};
} else if (myPos.x >= ePosX) {
tellTarget (_parent.enemyPaddle) {
gotoAndPlay ("UR");
};
} else {
tellTarget (_parent.enemyPaddle) {
gotoAndPlay ("UL");
};
}
} else if (myPos.x >= ePosX) {
tellTarget (_parent.enemyPaddle) {
gotoAndPlay ("BR");
};
} else {
tellTarget (_parent.enemyPaddle) {
gotoAndPlay ("BL");
};
}
}
myPos.z = wdepth;
myCurve.x = eSpeedX / curveAmount;
myCurve.y = (-eSpeedY) / curveAmount;
mySpeed.z = -mySpeed.z;
_parent.ePaddleBounce.start(0, 1);
} else {
mySpeed.x = 0;
mySpeed.y = 0;
mySpeed.z = 0;
myCurve.x = 0;
myCurve.y = 0;
play();
_parent.world.enemyLives = _parent.world.enemyLives - 1;
tellTarget (_parent.enemyLives) {
gotoAndPlay("L" + _parent.world.enemyLives);
};
_parent.missSound.start(0, 1);
ballStop = 1;
}
} else if (myPos.z < 0) {
if (hitTest(_parent.userPaddle)) {
if ((pPosX + 7) < myPos.x) {
if (myPos.y < pPosY) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("UR");
};
} else if (myPos.y >= pPosY) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("BR");
};
}
} else if (myPos.x < (pPosX - 7)) {
if (myPos.y < pPosY) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("UL");
};
} else if (myPos.y >= pPosY) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("BL");
};
}
} else if ((pPosX + 7) >= myPos.x) {
if ((pPosY + 5) >= myPos.y) {
if (myPos.y >= (pPosY - 5)) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("C");
};
_parent.world.score = _parent.world.score + _parent.world.accuracyBonus;
_parent.world.accuracyBonus = _parent.world.accuracyBonus - _parent.world.accuracyDegrade;
if (_parent.world.accuracyBonus < 0) {
_parent.world.accuracyBonus = 0;
}
tellTarget (_parent.bonus) {
bonus = "Accuracy Bonus!";
gotoAndPlay ("bonus");
};
} else if (myPos.x >= pPosX) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("UR");
};
} else {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("UL");
};
}
} else if (myPos.x >= pPosX) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("BR");
};
} else {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("BL");
};
}
}
myPos.z = 0;
myCurve.x = (-pSpeedX) / curveAmount;
myCurve.y = pSpeedY / curveAmount;
mySpeed.z = -mySpeed.z;
_parent.world.score = _parent.world.score + _parent.world.hitScore;
_parent.world.hitScore = _parent.world.hitScore - _parent.world.hitDegrade;
if (_parent.world.hitScore < 0) {
_parent.world.hitScore = 0;
}
if (0.1 < Math.abs(myCurve.x)) {
if (0.1 < Math.abs(myCurve.y)) {
_parent.world.score = _parent.world.score + _parent.world.superCurveBonus;
_parent.world.superCurveBonus = _parent.world.superCurveBonus - _parent.world.superCurveDegrade;
if (_parent.world.superCurveBonus < 0) {
_parent.world.superCurveBonus = 0;
}
tellTarget (_parent.bonus) {
bonus = "Super Curve Bonus!";
gotoAndPlay ("bonus");
};
} else {
_parent.world.score = _parent.world.score + _parent.world.curveBonus;
_parent.world.curveBonus = _parent.world.curveBonus - _parent.world.curveDegrade;
if (_parent.world.curveBonus < 0) {
_parent.world.curveBonus = 0;
}
tellTarget (_parent.bonus) {
bonus = "Curve Bonus!";
gotoAndPlay ("bonus");
};
}
} else if (0.05 < Math.abs(myCurve.y)) {
_parent.world.score = _parent.world.score + _parent.world.curveBonus;
_parent.world.curveBonus = _parent.world.curveBonus - _parent.world.curveDegrade;
if (_parent.world.curveBonus < 0) {
_parent.world.curveBonus = 0;
}
tellTarget (_parent.bonus) {
bonus = "Curve Bonus!";
gotoAndPlay ("bonus");
};
} else if (0.05 < Math.abs(myCurve.x)) {
_parent.world.score = _parent.world.score + _parent.world.curveBonus;
_parent.world.curveBonus = _parent.world.curveBonus - _parent.world.curveDegrade;
if (_parent.world.curveBonus < 0) {
_parent.world.curveBonus = 0;
}
tellTarget (_parent.bonus) {
bonus = "Curve Bonus!";
gotoAndPlay ("bonus");
};
}
_parent.score = _parent.world.score;
_parent.pPaddleBounce.start(0, 1);
} else {
mySpeed.x = 0;
mySpeed.y = 0;
mySpeed.z = 0;
myCurve.x = 0;
myCurve.y = 0;
play();
_parent.world.playerLives = _parent.world.playerLives - 1;
tellTarget (_parent.playerLives) {
gotoAndPlay("L" + _parent.world.playerLives);
};
_parent.world.hitScore = 100;
_parent.world.curveBonus = 50;
_parent.world.superCurveBonus = 150;
_parent.world.accuracyBonus = 100;
ballStop = 1;
_parent.missSound.start(0, 1);
}
}
VisPos.x = wx - ((wx - myPos.x) * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
VisPos.y = wy - ((wy - myPos.y) * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
_x = VisPos.x;
_y = VisPos.y;
_width = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
_height = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / Math.PI)) / 90));
_parent.ballPosX = myPos.x;
_parent.ballPosY = myPos.y;
_parent.ballPosZ = myPos.z;
_parent.ballDirX = mySpeed.x;
_parent.ballDirY = mySpeed.y;
_parent.ballDirZ = mySpeed.z;
if ((mySpeed.z != 0) && (0 < _parent.world.bonusDisplay)) {
_parent.world.bonus = _parent.world.bonus - 1;
}
if (_parent.world.bonus < 0) {
_parent.world.bonus = 10;
_parent.world.bonusDisplay = _parent.world.bonusDisplay - 25;
_parent.bonusScore = _parent.world.bonusDisplay;
}
}
}
onClipEvent (mouseDown) {
if (mySpeed.z == 0) {
if (hitTest(_parent.userPaddle)) {
if ((pPosX + 7) < myPos.x) {
if (myPos.y < pPosY) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("UR");
};
} else if (myPos.y >= pPosY) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("BR");
};
}
} else if (myPos.x < (pPosX - 7)) {
if (myPos.y < pPosY) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("UL");
};
} else if (myPos.y >= pPosY) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("BL");
};
}
} else if ((pPosX + 7) >= myPos.x) {
if ((pPosY + 5) >= myPos.y) {
if (myPos.y >= (pPosY - 5)) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("C");
};
_parent.world.score = _parent.world.score + _parent.world.accuracyBonus;
_parent.world.accuracyBonus = _parent.world.accuracyBonus - _parent.world.accuracyDegrade;
if (_parent.world.accuracyBonus < 0) {
_parent.world.accuracyBonus = 0;
}
tellTarget (_parent.bonus) {
bonus = "Accuracy Bonus!";
gotoAndPlay ("bonus");
};
} else if (myPos.x >= pPosX) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("UR");
};
} else {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("UL");
};
}
} else if (myPos.x >= pPosX) {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("BR");
};
} else {
tellTarget (_parent.userPaddle) {
gotoAndPlay ("BL");
};
}
}
mySpeed.z = speed;
myCurve.x = (-pSpeedX) / curveAmount;
myCurve.y = pSpeedY / curveAmount;
if (Math.abs(myCurve.x) < 0.01) {
if (pPosX < wx) {
myCurve.x = 0.01;
} else {
myCurve.x = -0.01;
}
}
if (Math.abs(myCurve.y) < 0.01) {
if (wy < pPosY) {
myCurve.y = 0.01;
} else {
myCurve.y = -0.01;
}
}
if (0.1 < Math.abs(myCurve.x)) {
if (0.1 < Math.abs(myCurve.y)) {
_parent.world.score = _parent.world.score + _parent.world.superCurveBonus;
_parent.world.superCurveBonus = _parent.world.superCurveBonus - _parent.world.superCurveDegrade;
if (_parent.world.superCurveBonus < 0) {
_parent.world.superCurveBonus = 0;
}
tellTarget (_parent.bonus) {
bonus = "Super Curve Bonus!";
gotoAndPlay ("bonus");
};
} else {
_parent.world.score = _parent.world.score + _parent.world.curveBonus;
_parent.world.curveBonus = _parent.world.curveBonus - _parent.world.curveDegrade;
if (_parent.world.curveBonus < 0) {
_parent.world.curveBonus = 0;
}
tellTarget (_parent.bonus) {
bonus = "Curve Bonus!";
gotoAndPlay ("bonus");
};
}
} else if (0.05 < Math.abs(myCurve.y)) {
_parent.world.score = _parent.world.score + _parent.world.curveBonus;
_parent.world.curveBonus = _parent.world.curveBonus - _parent.world.curveDegrade;
if (_parent.world.curveBonus < 0) {
_parent.world.curveBonus = 0;
}
tellTarget (_parent.bonus) {
bonus = "Curve Bonus!";
gotoAndPlay ("bonus");
};
} else if (0.05 < Math.abs(myCurve.x)) {
_parent.world.score = _parent.world.score + _parent.world.curveBonus;
_parent.world.curveBonus = _parent.world.curveBonus - _parent.world.curveDegrade;
if (_parent.world.curveBonus < 0) {
_parent.world.curveBonus = 0;
}
tellTarget (_parent.bonus) {
bonus = "Curve Bonus!";
gotoAndPlay ("bonus");
};
}
_parent.score = _parent.world.score;
_parent.pPaddleBounce.start(0, 1);
}
}
}
Frame 96
stop();
Frame 101
loading = "yes";
loadVariables ((("checkscore.php?Score=" + world.score) + "&Level=") + world.level, _parent);
Frame 103
if (loading == "no") {
if (0 < winner) {
winner = null;
gotoAndPlay (104);
} else if (winner == 0) {
winner = null;
gotoAndPlay (111);
}
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 108
stop();
Frame 110
if (loading == "no") {
gotoAndPlay (14);
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 115
stop();
Symbol 12 Button
on (release) {
tellTarget (_parent) {
gotoAndPlay ("StartGame");
};
}
Symbol 14 Button
on (release) {
tellTarget (_parent) {
gotoAndPlay ("HighScores");
};
}
Symbol 21 Button
on (release) {
tellTarget (_parent) {
gotoAndPlay ("Start");
};
}
Symbol 59 MovieClip Frame 9
stop();
Symbol 59 MovieClip Frame 19
gotoAndPlay (1);
Symbol 59 MovieClip Frame 29
gotoAndPlay (1);
Symbol 59 MovieClip Frame 39
gotoAndPlay (1);
Symbol 59 MovieClip Frame 49
gotoAndPlay (1);
Symbol 59 MovieClip Frame 59
gotoAndPlay (1);
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 70
gotoAndPlay (1);
Symbol 66 MovieClip Frame 5
stop();
Symbol 66 MovieClip Frame 10
stop();
Symbol 66 MovieClip Frame 15
stop();
Symbol 66 MovieClip Frame 20
stop();
Symbol 66 MovieClip Frame 25
stop();
Symbol 66 MovieClip Frame 30
stop();
Symbol 68 MovieClip Frame 5
stop();
Symbol 68 MovieClip Frame 10
stop();
Symbol 68 MovieClip Frame 15
stop();
Symbol 68 MovieClip Frame 20
stop();
Symbol 68 MovieClip Frame 25
stop();
Symbol 68 MovieClip Frame 30
stop();
Symbol 75 MovieClip Frame 9
stop();
Symbol 75 MovieClip Frame 19
gotoAndPlay (1);
Symbol 75 MovieClip Frame 29
gotoAndPlay (1);
Symbol 75 MovieClip Frame 39
gotoAndPlay (1);
Symbol 75 MovieClip Frame 49
gotoAndPlay (1);
Symbol 75 MovieClip Frame 59
gotoAndPlay (1);
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 20
if (_parent.world.enemyLives < 1) {
tellTarget (_parent) {
world.level = world.level + 1;
level = "Level " + world.level;
levelNumber = world.level;
world.enemyLives = 3;
world.score = world.score + world.bonusDisplay;
score = world.score;
gotoAndPlay ("Level");
};
} else if (_parent.world.playerLives < 1) {
tellTarget (_parent) {
bonusScore = "";
bonusWord = "";
gotoAndPlay ("GameOver");
};
} else {
tellTarget (_parent) {
gotoAndPlay ("Serve");
};
}
Symbol 87 Button
on (release) {
if (Name != "enter here") {
_parent.loading = "yes";
alg = ((_parent.world.level + Name) + _parent.world.score) + "a83l9xj";
loadVariables ((((((("enterscore.php?Score=" + _parent.world.score) + "&Level=") + _parent.world.level) + "&Name=") + Name) + "&alg=") + alg, _parent);
}
tellTarget (_parent) {
gotoAndPlay ("Submit");
};
}