Frame 1
fscommand ("showmenu", "false");
Mouse.show();
Frame 66
stop();
Frame 67
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 = "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:";
Mouse.hide();
Instance of Symbol 26 MovieClip "userPaddle" in Frame 67
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 81
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);
Frame 112
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 35 MovieClip "enemyPaddle" in Frame 113
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) / 3.141593)) / 90));
VisPos.y = wy - ((wy - myPos.y) * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 90));
_x = VisPos.x;
_y = VisPos.y;
_width = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 90));
_height = (sheight * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 90));
growshrink = 0;
}
onClipEvent (enterFrame) {
bPosX = _parent.ballPosX;
bPosY = _parent.ballPosY;
bDirZ = _parent.ballDirZ;
if (bDirZ > 0) {
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) / 3.141593)) / 90));
VisPos.y = wy - ((wy - myPos.y) * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 90));
_x = VisPos.x;
_y = VisPos.y;
_width = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 90));
_height = (sheight * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 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 38 MovieClip "ball" in Frame 142
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) / 3.141593)) / 90));
_height = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 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) {
play();
};
_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 (Math.abs(myCurve.x) > 0.1) {
if (Math.abs(myCurve.y) > 0.1) {
_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 (Math.abs(myCurve.y) > 0.05) {
_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 (Math.abs(myCurve.x) > 0.05) {
_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) {
play();
};
_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) / 3.141593)) / 90));
VisPos.y = wy - ((wy - myPos.y) * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 90));
_x = VisPos.x;
_y = VisPos.y;
_width = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 90));
_height = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 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) && (_parent.world.bonusDisplay > 0)) {
_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 (Math.abs(myCurve.x) > 0.1) {
if (Math.abs(myCurve.y) > 0.1) {
_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 (Math.abs(myCurve.y) > 0.05) {
_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 (Math.abs(myCurve.x) > 0.05) {
_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);
}
}
}
Instance of Symbol 40 MovieClip "フレーム" in Frame 142
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) / 3.141593)) / 90));
_height = (sheight * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 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) / 3.141593)) / 90));
VisPos.y = wy - ((wy - myPos.y) * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 90));
_x = VisPos.x;
_y = VisPos.y;
_alpha = ((myPos.z - 100) / -1);
_width = (swidth * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 90));
_height = (sheight * ((90 - ((Math.atan(myPos.z / varA) * 180) / 3.141593)) / 90));
}
Frame 148
stop();
Frame 149
Mouse.show();
Frame 240
if (score >= hiscore) {
hiscore = score;
if (score >= 22300) {
_root.gotoAndPlay("Winner");
}
}
Frame 241
stop();
Frame 242
prevFrame();
Frame 276
so = SharedObject.getLocal("ball");
name = so.data.name;
mail = so.data.mail;
Selection.setFocus(name);
Selection.setFocus(mail);
stop();
Frame 277
prevFrame();
Frame 325
function showScores() {
var i = 10;
while (i > 0) {
var ss = scoreboard["score" + (page + i)];
var lv = scoreboard["lv" + (page + i)];
var nn = scoreboard["name" + (page + i)];
var mm = scoreboard["message" + (page + i)];
var L = this["Line" + i];
L.RankRan.text = (page + i) + ".";
L.ScoreRan.text = (ss.length ? (ss.toLowerCase()) : "-------------");
L.LvRan.text = (lv.length ? (lv.toLowerCase()) : "---");
L.NameRan.text = (nn.length ? (nn.toLowerCase()) : "----------");
L.MessageRan.text = (mm.length ? (mm.toLowerCase()) : "---------------------");
L._visible = true;
Loading._visible = false;
i--;
}
}
System.useCodepage = true;
page = 0;
maxScore = 100;
BackBtn._visible = (NextBtn._visible = false);
scoreboard = new LoadVars();
if (score) {
scoreboard.score = score;
scoreboard.lv = lv;
scoreboard.name = (name.length ? (name.toLowerCase()) : "");
scoreboard.message = message;
}
scoreboard.game = "ball";
scoreboard.sendAndLoad("index2.cgi", scoreboard, "POST");
scoreboard.onLoad = function (success) {
if (success) {
if (Boolean(scoreboard.success)) {
NextBtn._visible = true;
showScores();
} else {
Loading.errorMsg = scoreboard.errorMsg.toLowerCase();
Loading.gotoAndStop(2);
}
} else {
Loading.errorMsg = "could not load scores.";
Loading.gotoAndStop(2);
}
};
score = 0;
stop();
Frame 350
stop();
Frame 351
prevFrame();
Symbol 11 Button
on (release, keyPress "<Enter>") {
gotoAndPlay (67);
}
Symbol 15 Button
on (release, keyPress "<Down>") {
delete scoreboard;
stopAllSounds();
gotoAndPlay (325);
}
Symbol 26 MovieClip Frame 18
stop();
Symbol 26 MovieClip Frame 28
gotoAndPlay (1);
Symbol 26 MovieClip Frame 38
gotoAndPlay (1);
Symbol 26 MovieClip Frame 48
gotoAndPlay (1);
Symbol 26 MovieClip Frame 58
gotoAndPlay (1);
Symbol 26 MovieClip Frame 72
gotoAndPlay (1);
Symbol 30 MovieClip Frame 4
stop();
Symbol 30 MovieClip Frame 17
stop();
Symbol 30 MovieClip Frame 30
stop();
Symbol 30 MovieClip Frame 43
stop();
Symbol 30 MovieClip Frame 56
stop();
Symbol 30 MovieClip Frame 72
stop();
Symbol 31 MovieClip Frame 4
stop();
Symbol 31 MovieClip Frame 17
stop();
Symbol 31 MovieClip Frame 30
stop();
Symbol 31 MovieClip Frame 43
stop();
Symbol 31 MovieClip Frame 56
stop();
Symbol 31 MovieClip Frame 74
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 25
gotoAndPlay (1);
Symbol 35 MovieClip Frame 9
stop();
Symbol 35 MovieClip Frame 19
gotoAndPlay (1);
Symbol 35 MovieClip Frame 29
gotoAndPlay (1);
Symbol 35 MovieClip Frame 39
gotoAndPlay (1);
Symbol 35 MovieClip Frame 49
gotoAndPlay (1);
Symbol 35 MovieClip Frame 59
gotoAndPlay (1);
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 36
if (_parent.world.enemyLives < 1) {
tellTarget (_parent) {
world.level = world.level + 1;
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 43 Button
on (release, keyPress "<Down>") {
delete scoreboard;
stopAllSounds();
gotoAndPlay (61);
}
Symbol 57 Button
on (release) {
System.useCodepage = true;
so.data.name = name;
so.data.mail = mail;
loadVariablesNum ("index.cgi", 0, "POST");
stopAllSounds();
gotoAndPlay (278);
}
Symbol 70 MovieClip Frame 1
stop();
errorMsg = "";
Symbol 76 Button
on (release, keyPress "<Right>") {
page = page + 10;
if (page > maxScore) {
page = maxScore;
}
if (page > (maxScore - 20)) {
NextBtn._visible = false;
}
BackBtn._visible = true;
showScores();
}
Symbol 78 Button
on (release, keyPress "<Left>") {
page = page - 10;
if (page < 0) {
page = 0;
}
if (page < 10) {
BackBtn._visible = false;
}
NextBtn._visible = true;
showScores();
}