Frame 1
pcent_loaded = (getBytesLoaded() / getBytesTotal()) * 100;
progBar._width = pcent_loaded * 7.2;
if (getBytesLoaded() >= getBytesTotal()) {
gotoAndPlay (3);
}
Instance of Symbol 20 MovieClip in Frame 1
onClipEvent (mouseUp) {
getURL ("http://www.littlecitygames.com/", "_blank");
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Instance of Symbol 24 MovieClip in Frame 3
onClipEvent (load) {
var counter = 0;
}
onClipEvent (enterFrame) {
if (counter <= 100) {
counter++;
} else {
_root.nextFrame();
}
}
onClipEvent (mouseUp) {
getURL ("http://www.littlecitygames.com/", "_blank");
}
Frame 4
stop();
Instance of Symbol 92 MovieClip "net1b_mc" in Frame 4
onClipEvent (load) {
xINT = this._x;
}
onClipEvent (enterFrame) {
if (netmove == true) {
this._xscale = this._xscale + 3;
active = true;
} else {
active = false;
}
if ((this._xscale >= 100) && (active != true)) {
this._xscale = this._xscale - 3;
}
if ((this._x != xINT) && (active != true)) {
this._x = this._x - ((this._x - xINT) / 3);
}
}
Instance of Symbol 94 MovieClip "net2b_mc" in Frame 4
onClipEvent (load) {
xINT = this._x;
}
onClipEvent (enterFrame) {
if (netmove == true) {
this._xscale = this._xscale + 5;
active = true;
} else {
active = false;
}
if ((this._xscale >= 100) && (active != true)) {
this._xscale = this._xscale - 5;
}
if ((this._x != xINT) && (active != true)) {
this._x = this._x - ((this._x - xINT) / 4);
}
}
Instance of Symbol 96 MovieClip "net3b_mc" in Frame 4
onClipEvent (load) {
xINT = this._x;
}
onClipEvent (enterFrame) {
if (netmove == true) {
this._xscale = this._xscale + 8;
active = true;
} else {
active = false;
}
if ((this._xscale >= 100) && (active != true)) {
this._xscale = this._xscale - 8;
}
if ((this._x != xINT) && (active != true)) {
this._x = this._x - ((this._x - xINT) / 5);
}
}
Instance of Symbol 99 MovieClip "shoulderLFT_mc" in Frame 4
onClipEvent (enterFrame) {
this._x = _root.player_mc._x - 5;
this._y = _root.player_mc._y - 100;
}
Instance of Symbol 102 MovieClip "elbowLFT_mc" in Frame 4
onClipEvent (load) {
armDist = 32;
}
onClipEvent (enterFrame) {
deltaTX = _root.handLFT_mc._x - _root.shoulderLFT_mc._x;
deltaTY = _root.handLFT_mc._y - _root.shoulderLFT_mc._y;
totalDist = math.sqrt((deltaTX * deltaTX) + (deltaTY * deltaTY));
thetaT = math.atan2(deltaTY, deltaTX);
halfDist = totalDist / 2;
pointDist = math.sqrt((armDist * armDist) - (halfDist * halfDist));
halfDistX = math.cos(thetaT) * halfDist;
halfDistY = math.sin(thetaT) * halfDist;
halfPointX = _root.shoulderLFT_mc._x + halfDistX;
halfPointY = _root.shoulderLFT_mc._y + halfDistY;
halfANG = 1.570796 - thetaT;
pointDistX = math.cos(halfANG) * pointDist;
pointDistY = math.sin(halfANG) * pointDist;
pointX = halfPointX - pointDistX;
pointY = halfPointY + pointDistY;
_root.elbowLFT_mc._x = pointX;
_root.elbowLFT_mc._y = pointY;
deltaSX = _root.elbowLFT_mc._x - _root.shoulderLFT_mc._x;
deltaSY = _root.elbowLFT_mc._y - _root.shoulderLFT_mc._y;
thetaS = math.atan2(deltaSY, deltaSX) / 0.017453;
_root.shoulderLFT_mc._rotation = thetaS;
deltaHX = _root.handLFT_mc._x - _root.elbowLFT_mc._x;
deltaHY = _root.handLFT_mc._y - _root.elbowLFT_mc._y;
thetaH = math.atan2(deltaHY, deltaHX) / 0.017453;
_root.elbowLFT_mc._rotation = thetaH;
}
Instance of Symbol 107 MovieClip "ball_mc" in Frame 4
onClipEvent (load) {
g = 100;
litTime = 100;
frct = 0.3;
radius = 18;
spdDV = 10.2;
rimFCT = 0;
rimBCT = 0;
BBounce = false;
bounceCT = 0;
}
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
if ((_root.gameover != true) && (shot != true)) {
mouseDown = true;
_root.creator_mc.remake = true;
}
}
}
onClipEvent (mouseUp) {
if ((mouseDown == true) && (shot != true)) {
if (_root.gameover != true) {
shot = true;
_root.breathHolder.breathSND.start(0, 1);
_root.shotplace_mc.shots++;
}
if (_root.play != true) {
point = false;
_root.score = 0;
_root.play = true;
_root.whistleHolder.whistleSND.start(0, 1);
_root.endgame_btn._visible = true;
_root.reset_btn._visible = false;
_root.shotplace_mc.shots = 1;
_root.selected = false;
_root.selectlevel = false;
}
}
mouseDown = false;
}
onClipEvent (enterFrame) {
mouseCKX = _root._xmouse - _root.shoulder_mc._x;
mouseCKY = _root._ymouse - _root.shoulder_mc._y;
totalDist = math.sqrt((mouseCKX * mouseCKX) + (mouseCKY * mouseCKY));
if ((mouseDown == true) && (shot != true)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
t = Number(t) + 0.1;
x = this._x;
y = this._y;
vx = _root.vxLevel + ((this._x - oldX) * 3);
vy = _root.vyLevel + ((this._y - oldY) * 3);
oldX = this._x;
oldY = this._y;
rotationVAL = (Math.random() * 20) - 10;
spd = Math.sqrt((vx * vx) + (vy * vy));
if (totalDist >= 90) {
if (_root.gameover != true) {
shot = true;
_root.breathHolder.breathSND.start(0, 1);
_root.shotplace_mc.shots++;
}
if (_root.play != true) {
point = false;
_root.score = 0;
_root.play = true;
_root.whistleHolder.whistleSND.start(0, 1);
_root.endgame_btn._visible = true;
_root.reset_btn._visible = false;
_root.shotplace_mc.shots = 1;
_root.selected = false;
_root.selectlevel = false;
}
mouseDown = false;
}
if (_root.gameover == true) {
vx = 1;
vy = 1;
shot = true;
mouseDown = false;
}
}
if (shot == true) {
if (((this._y <= 350) && (this._x >= -70)) && (this._x <= 700)) {
t = Number(t) + 0.1;
oldX = this._x;
oldY = this._y;
x = this._x;
y = this._y;
x = Number(x) + Number(vx / spdDV);
y = Number(y) + Number(vy / spdDV);
this._x = x;
this._y = y;
deltaFX = this._x - _root.frim_mc._x;
deltaFY = this._y - _root.frim_mc._y;
distF = math.sqrt((deltaFX * deltaFX) + (deltaFY * deltaFY));
thetaFY = math.atan2(deltaFX, deltaFY) / 0.017453;
thetaFYabs = math.abs(thetaFY);
thetaFX = math.atan2(deltaFY, deltaFX) / 0.017453;
thetaFXabs = math.abs(thetaFX);
deltaTX = this._x - _root.top_mc._x;
deltaTY = this._y - _root.top_mc._y;
distT = math.sqrt((deltaTX * deltaTX) + (deltaTY * deltaTY));
thetaTY = math.atan2(deltaTX, deltaTY) / 0.017453;
thetaTYabs = math.abs(thetaTY);
thetaTX = math.atan2(deltaTY, deltaTX) / 0.017453;
thetaTXabs = math.abs(thetaTX);
deltaBX = this._x - _root.brim_mc._x;
deltaBY = this._y - _root.brim_mc._y;
distB = math.sqrt((deltaBX * deltaBX) + (deltaBY * deltaBY));
thetaBY = math.atan2(deltaBX, deltaBY) / 0.017453;
thetaBYabs = math.abs(thetaBY);
thetaBX = math.atan2(deltaBY, deltaBX) / 0.017453;
thetaBXabs = math.abs(thetaBX);
if ((distF <= radius) && (bounce != true)) {
if (vx > 0) {
vx = ((((-vx) * frct) * (thetaFXabs - 90)) / 90) - ((vy * (thetaFXabs - 90)) / 90);
vy = ((-vy) * (thetaFYabs - 90)) / 90;
} else if (vx <= 0) {
vx = (((vx * frct) * (thetaFXabs - 90)) / 90) - ((vy * (thetaFXabs - 90)) / 90);
vy = ((-vy) * (thetaFYabs - 90)) / 90;
}
_root.rimHolder.rimSND.start(0, 1);
rimF = true;
bounce = true;
bounceCT++;
} else if ((distB <= radius) && (bounce != true)) {
vy = ((-vy) * (thetaBYabs - 90)) / 90;
if (vx >= 0) {
vx = ((((-vx) * frct) * (thetaBXabs - 90)) / 90) - ((vy * (thetaBXabs - 90)) / 90);
}
_root.brimHolder.brimSND.start(0, 1);
rimB = true;
bounce = true;
} else if ((((this._x >= ((_root.bb_mc._x - radius) - 8)) && (this._x <= _root.bb_mc._x)) && (this._y >= (_root.bb_mc._y - 45.6))) && (this._y <= (_root.bb_mc._y + 17.5))) {
if (bboard != true) {
vx = (-vx) * 0.8;
_root.backHolder.backSND.start(0, 1);
bboard = true;
} else {
vx = -50;
}
} else if ((distT <= radius) && (bounce != true)) {
if (vx > 0) {
vx = ((((-vx) * frct) * (thetaTXabs - 90)) / 90) - ((vy * (thetaTXabs - 90)) / 90);
tempVY = ((-vy) * (thetaTYabs - 90)) / 90;
if (tempVY < 0) {
vy = tempVY;
}
} else if (vx <= 0) {
vx = (((vx * frct) * (thetaTXabs - 90)) / 90) - ((vy * (thetaTXabs - 90)) / 90);
vy = ((-vy) * (thetaTYabs - 90)) / 90;
}
bounce = true;
bounceCT++;
_root.backHolder.backSND.start(0, 1);
} else {
if ((distF > radius) && (distB > radius)) {
bounce = false;
}
vy = Number(vy) + Number(g / spdDV);
bboard = false;
}
if (bounceCT == 5) {
bounceRNDM = math.random();
if (bounceRNDM >= 0.5) {
vx = vx + 2;
} else {
vx = vx - 2;
}
}
if ((rimFCT <= 3) && (rimF == true)) {
_root.rim_mc._xscale = _root.rim_mc._xscale + 1;
_root.orim_mc._xscale = _root.orim_mc._xscale + 1;
rimFCT++;
} else if ((_root.rim_mc._xscale > 100) && (rimB != true)) {
_root.rim_mc._xscale = _root.rim_mc._xscale - 1;
_root.orim_mc._xscale = _root.orim_mc._xscale - 1;
} else {
rimF = false;
rimFCT = 0;
}
if ((rimBCT <= 2) && (rimB == true)) {
_root.rim_mc._xscale = _root.rim_mc._xscale + 1;
_root.orim_mc._xscale = _root.orim_mc._xscale + 1;
rimBCT++;
} else if ((_root.rim_mc._xscale > 100) && (rimF != true)) {
_root.rim_mc._xscale = _root.rim_mc._xscale - 1;
_root.orim_mc._xscale = _root.orim_mc._xscale - 1;
} else {
rimB = false;
rimBCT = 0;
}
this._rotation = this._rotation + rotationVal;
if (_root.ptABV_mc.hitTest(this._x, this._y, true)) {
hitABV = true;
}
if (_root.ptSDS_mc.hitTest(this._x, this._y, true)) {
hitABV = false;
}
if (_root.ptBLW_mc.hitTest(this._x, this._y, true)) {
if ((point != true) && (hitABV == true)) {
_root.score++;
_root.netHolder.netSND.setVolume(85);
_root.netHolder.netSND.start(0, 1);
point = true;
}
}
if ((hitabv == true) || (x > 535)) {
if ((((this._y >= _root.net1a_mc._y) && (this._y <= (_root.net1a_mc._y + 20))) && (this._x > 525)) && (this._x < 590)) {
_root.net1a_mc.netmove = true;
_root.net1a_mc._x = this._x;
} else {
_root.net1a_mc.netmove = false;
}
if ((((this._y >= _root.net2a_mc._y) && (this._y <= (_root.net2a_mc._y + 25))) && (this._x > 522)) && (this._x < 590)) {
_root.net2a_mc.netmove = true;
_root.net2a_mc._x = this._x;
} else {
_root.net2a_mc.netmove = false;
}
if ((((this._y >= _root.net3a_mc._y) && (this._y <= (_root.net3a_mc._y + 30))) && (this._x > 519)) && (this._x < 590)) {
_root.net3a_mc.netmove = true;
_root.net3a_mc._x = this._x;
} else {
_root.net3a_mc.netmove = false;
}
if ((((this._y >= _root.net4a_mc._y) && (this._y <= (_root.net4a_mc._y + 35))) && (this._x > 516)) && (this._x < 590)) {
_root.net4a_mc.netmove = true;
_root.net4a_mc._x = this._x;
} else {
_root.net4a_mc.netmove = false;
}
if ((((this._y >= _root.net5a_mc._y) && (this._y <= (_root.net5a_mc._y + 40))) && (this._x > 513)) && (this._x < 590)) {
_root.net5a_mc.netmove = true;
_root.net5a_mc._x = this._x;
} else {
_root.net5a_mc.netmove = false;
}
if ((((this._y >= _root.net6a_mc._y) && (this._y <= (_root.net6a_mc._y + 45))) && (this._x > 510)) && (this._x < 590)) {
_root.net6a_mc.netmove = true;
_root.net6a_mc._x = this._x;
if ((net != true) && (point != true)) {
_root.netHolder.netSND.setVolume(30);
_root.netHolder.netSND.start(0, 1);
net = true;
}
} else {
_root.net6a_mc.netmove = false;
}
if ((((this._y >= _root.net1b_mc._y) && (this._y <= (_root.net1b_mc._y + 20))) && (this._x > 525)) && (this._x < 590)) {
_root.net1b_mc.netmove = true;
_root.net1b_mc._x = this._x;
} else {
_root.net1b_mc.netmove = false;
}
if ((((this._y >= _root.net2b_mc._y) && (this._y <= (_root.net2b_mc._y + 25))) && (this._x > 522)) && (this._x < 590)) {
_root.net2b_mc.netmove = true;
_root.net2b_mc._x = this._x;
} else {
_root.net2b_mc.netmove = false;
}
if ((((this._y >= _root.net3b_mc._y) && (this._y <= (_root.net3b_mc._y + 30))) && (this._x > 519)) && (this._x < 590)) {
_root.net3b_mc.netmove = true;
_root.net3b_mc._x = this._x;
} else {
_root.net3b_mc.netmove = false;
}
if ((((this._y >= _root.net4b_mc._y) && (this._y <= (_root.net4b_mc._y + 35))) && (this._x > 516)) && (this._x < 590)) {
_root.net4b_mc.netmove = true;
_root.net4b_mc._x = this._x;
} else {
_root.net4b_mc.netmove = false;
}
} else {
_root.net1a_mc.netmove = false;
_root.net2a_mc.netmove = false;
_root.net3a_mc.netmove = false;
_root.net4a_mc.netmove = false;
_root.net5a_mc.netmove = false;
_root.net6a_mc.netmove = false;
_root.net1b_mc.netmove = false;
_root.net2b_mc.netmove = false;
_root.net3b_mc.netmove = false;
_root.net4b_mc.netmove = false;
}
} else {
shot = false;
vx = 0;
vy = 0;
x = this._x;
y = this._y;
oldX = this._x;
oldY = this._y;
if (point != true) {
_root.miss = true;
}
this.removeMovieClip();
point = false;
hitABV = false;
}
}
}
Instance of Symbol 109 MovieClip "timer_mc" in Frame 4
onClipEvent (load) {
_root.play = false;
_root.gameover = true;
_root.selected = false;
_root.reset_btn._visible = false;
_root.shotplace_mc.shots = 0;
_root.shotplace_mc._visible = false;
_root.begin_mc._visible = true;
_root.timer_mc.timeCT = 0;
_root.time = 30;
_root.buzzed = false;
id = 0;
while (id <= 5) {
_root["ball_mc" + id].point = true;
id++;
}
trace("///////////////////////////////////////////////////////////");
trace("//Flash Basketball Game //");
trace("//Created by Ian Molla / LittleCityGames.com //");
trace("//Protected by copyright 2007, all rights reserverved //");
trace("//For more info, visit http://www.littlecitygames.com/ //");
trace("//Contact: license@littlecitygames.com //");
trace("// //");
trace("//CODE MAY NOT BE USED WITHOUT LICENSING! //");
trace("///////////////////////////////////////////////////////////");
trace(" ");
trace(" ");
}
onClipEvent (enterFrame) {
if (_root.play == true) {
timeCT++;
}
if (_root.classicmode == true) {
if (_root.time > 0) {
_root.time = 30 - math.floor(timeCT / 45);
} else if (_root.buzzed != true) {
_root.buzzHolder.buzzSND.start(0, 1);
_root.buzzed = true;
_root.reset_btn._visible = true;
_root.play = false;
_root.gameover = true;
_root.selected = false;
_root.begin_mc._visible = true;
}
} else {
_root.time = x;
}
if (_root.classicmode == true) {
if (_root.score > _root.highscore) {
_root.highscore = _root.score;
}
} else if (_root.percentmode == true) {
if (_root.score > _root.percenthigh) {
_root.percenthigh = _root.score;
}
if ((_root.shotplace_mc.shots >= 20) && (_root.buzzed != true)) {
_root.buzzHolder.buzzSND.start(0, 1);
_root.buzzed = true;
_root.gameover = true;
_root.play = false;
_root.gameover = true;
_root.selected = false;
_root.begin_mc._visible = true;
}
} else if (_root.rowmode == true) {
if (_root.score > _root.rowhigh) {
_root.rowhigh = _root.score;
}
if (_root.miss == true) {
_root.score = 0;
_root.miss = false;
}
}
if (_root.play != true) {
if ((_root.gameover == true) && (_root.selected != true)) {
if (countG <= 10) {
_root.gArrow_mc._x = _root.sec_btn._x;
countG++;
} else if (countG <= 20) {
_root.gArrow_mc._x = _root.shot_btn._x;
countG++;
} else if (countG <= 30) {
_root.gArrow_mc._x = _root.row_btn._x;
countG++;
} else {
countG = 0;
}
}
}
}
Instance of Symbol 111 MovieClip "creator_mc" in Frame 4
onClipEvent (load) {
id = 0;
_root.player_mc._x = 275;
_root.player_mc._y = 326;
posX = _root.player_mc._x + 20;
posY = _root.player_mc._y - 70;
_root.vxLevel = 75;
_root.vyLevel = -150;
}
onClipEvent (enterFrame) {
if (id >= 5) {
id = 0;
}
posX = _root.player_mc._x + 20;
posY = _root.player_mc._y - 70;
if (create != true) {
id++;
_root.ball_mc.duplicateMovieClip("ball_mc" + id, id + 100);
_root["ball_mc" + id]._x = posX;
_root["ball_mc" + id]._y = posY;
_root["ball_mc" + id].id = id;
create = true;
}
if (remake == true) {
if (wait <= 10) {
wait++;
} else {
create = false;
wait = 0;
remake = false;
}
}
}
Instance of Symbol 116 MovieClip "elbow_mc" in Frame 4
onClipEvent (load) {
armDist = 35;
this.swapDepths(225);
}
onClipEvent (enterFrame) {
deltaTX = _root.hand_mc._x - _root.shoulder_mc._x;
deltaTY = _root.hand_mc._y - _root.shoulder_mc._y;
totalDist = math.sqrt((deltaTX * deltaTX) + (deltaTY * deltaTY));
thetaT = math.atan2(deltaTY, deltaTX);
halfDist = totalDist / 2;
pointDist = math.sqrt((armDist * armDist) - (halfDist * halfDist));
halfDistX = math.cos(thetaT) * halfDist;
halfDistY = math.sin(thetaT) * halfDist;
halfPointX = _root.shoulder_mc._x + halfDistX;
halfPointY = _root.shoulder_mc._y + halfDistY;
halfANG = 1.570796 - thetaT;
pointDistX = math.cos(halfANG) * pointDist;
pointDistY = math.sin(halfANG) * pointDist;
pointX = halfPointX - pointDistX;
pointY = halfPointY + pointDistY;
_root.elbow_mc._x = pointX;
_root.elbow_mc._y = pointY;
deltaSX = _root.elbow_mc._x - _root.shoulder_mc._x;
deltaSY = _root.elbow_mc._y - _root.shoulder_mc._y;
thetaS = math.atan2(deltaSY, deltaSX) / 0.017453;
_root.shoulder_mc._rotation = thetaS;
deltaHX = _root.hand_mc._x - _root.elbow_mc._x;
deltaHY = _root.hand_mc._y - _root.elbow_mc._y;
thetaH = math.atan2(deltaHY, deltaHX) / 0.017453;
_root.elbow_mc._rotation = thetaH;
}
Instance of Symbol 118 MovieClip "hand_mc" in Frame 4
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
deltaTX = _root._xmouse - _root.shoulder_mc._x;
deltaTY = _root._ymouse - _root.shoulder_mc._y;
totalDist = math.sqrt((deltaTX * deltaTX) + (deltaTY * deltaTY));
if (totalDist <= 70) {
this._x = _root._xmouse - 3;
this._y = _root._ymouse + 10;
} else {
theta = Math.atan2(deltaTY, deltaTX);
this._x = _root.shoulder_mc._x + (math.cos(theta) * 65);
this._y = _root.shoulder_mc._y + (math.sin(theta) * 65);
}
}
Instance of Symbol 119 MovieClip "shoulder_mc" in Frame 4
onClipEvent (load) {
this.swapDepths(250);
}
onClipEvent (enterFrame) {
this._x = _root.player_mc._x - 19;
this._y = _root.player_mc._y - 95;
}
Instance of Symbol 120 MovieClip "handLFT_mc" in Frame 4
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
deltaTX = _root._xmouse - _root.shoulderLFT_mc._x;
deltaTY = _root._ymouse - _root.shoulderLFT_mc._y;
totalDist = math.sqrt((deltaTX * deltaTX) + (deltaTY * deltaTY));
if (totalDist <= 65) {
this._x = _root._xmouse - 0;
this._y = _root._ymouse + 3;
} else {
theta = Math.atan2(deltaTY, deltaTX);
this._x = _root.shoulderLFT_mc._x + (math.cos(theta) * 60);
this._y = _root.shoulderLFT_mc._y + (math.sin(theta) * 60);
}
}
Instance of Symbol 92 MovieClip "net1a_mc" in Frame 4
onClipEvent (load) {
xINT = this._x;
this.swapDepths(310);
}
onClipEvent (enterFrame) {
if (netmove == true) {
this._xscale = this._xscale + 3;
active = true;
} else {
active = false;
}
if ((this._xscale >= 100) && (active != true)) {
this._xscale = this._xscale - 3;
}
if ((this._x != xINT) && (active != true)) {
this._x = this._x - ((this._x - xINT) / 3);
}
}
Instance of Symbol 94 MovieClip "net2a_mc" in Frame 4
onClipEvent (load) {
xINT = this._x;
this.swapDepths(311);
}
onClipEvent (enterFrame) {
if (netmove == true) {
this._xscale = this._xscale + 5;
active = true;
} else {
active = false;
}
if ((this._xscale >= 100) && (active != true)) {
this._xscale = this._xscale - 5;
}
if ((this._x != xINT) && (active != true)) {
this._x = this._x - ((this._x - xINT) / 4);
}
}
Instance of Symbol 96 MovieClip "net3a_mc" in Frame 4
onClipEvent (load) {
xINT = this._x;
this.swapDepths(312);
}
onClipEvent (enterFrame) {
if (netmove == true) {
this._xscale = this._xscale + 8;
active = true;
} else {
active = false;
}
if ((this._xscale >= 100) && (active != true)) {
this._xscale = this._xscale - 8;
}
if ((this._x != xINT) && (active != true)) {
this._x = this._x - ((this._x - xINT) / 5);
}
}
Instance of Symbol 122 MovieClip "net4a_mc" in Frame 4
onClipEvent (load) {
xINT = this._x;
this.swapDepths(313);
}
onClipEvent (enterFrame) {
if (netmove == true) {
this._xscale = this._xscale + 10;
active = true;
} else {
active = false;
}
if ((this._xscale >= 100) && (active != true)) {
this._xscale = this._xscale - 10;
}
if ((this._x != xINT) && (active != true)) {
this._x = this._x - ((this._x - xINT) / 6);
}
}
Instance of Symbol 124 MovieClip "net5a_mc" in Frame 4
onClipEvent (load) {
xINT = this._x;
this.swapDepths(314);
}
onClipEvent (enterFrame) {
if (netmove == true) {
this._xscale = this._xscale + 12.5;
active = true;
} else {
active = false;
}
if ((this._xscale >= 100) && (active != true)) {
this._xscale = this._xscale - 12.5;
}
if ((this._x != xINT) && (active != true)) {
this._x = this._x - ((this._x - xINT) / 7);
}
}
Instance of Symbol 126 MovieClip "net6a_mc" in Frame 4
onClipEvent (load) {
xINT = this._x;
this.swapDepths(315);
}
onClipEvent (enterFrame) {
if (netmove == true) {
this._xscale = this._xscale + 15;
active = true;
} else {
active = false;
}
if ((this._xscale >= 100) && (active != true)) {
this._xscale = this._xscale - 15;
}
if ((this._x != xINT) && (active != true)) {
this._x = this._x - ((this._x - xINT) / 8);
}
}
Instance of Symbol 122 MovieClip "net4b_mc" in Frame 4
onClipEvent (load) {
xINT = this._x;
}
onClipEvent (enterFrame) {
if (netmove == true) {
this._xscale = this._xscale + 10;
active = true;
} else {
active = false;
}
if ((this._xscale >= 100) && (active != true)) {
this._xscale = this._xscale - 10;
}
if ((this._x != xINT) && (active != true)) {
this._x = this._x - ((this._x - xINT) / 6);
}
}
Instance of Symbol 128 MovieClip in Frame 4
onClipEvent (load) {
this.swapDepths(275);
}
Instance of Symbol 130 MovieClip "orim_mc" in Frame 4
onClipEvent (load) {
this.swapDepths(200);
}
Instance of Symbol 143 MovieClip "dArrow_mc" in Frame 4
onClipEvent (load) {
this._x = _root.easy_btn._x;
turn = false;
}
onClipEvent (enterFrame) {
if (_root.play != true) {
if ((this._xscale > 70) && (turn != true)) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
} else if (this._xscale < 90) {
this._xscale = this._xscale + 2;
this._yscale = this._yscale + 2;
turn = true;
} else {
turn = false;
}
} else {
this._xscale = 90;
this._yscale = 90;
}
}
Instance of Symbol 143 MovieClip "gArrow_mc" in Frame 4
onClipEvent (load) {
this._x = _root.sec_btn._x;
turn = false;
}
onClipEvent (enterFrame) {
if (_root.play != true) {
if ((this._xscale > 70) && (turn != true)) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
} else if (this._xscale < 90) {
this._xscale = this._xscale + 2;
this._yscale = this._yscale + 2;
turn = true;
} else {
turn = false;
}
} else {
this._xscale = 90;
this._yscale = 90;
}
}
Instance of Symbol 154 MovieClip "rimHolder" in Frame 4
onClipEvent (load) {
rimSND = new Sound(_root.rimHolder);
rimSND.attachSound("rim.wav");
rimSND.setVolume(100);
}
Instance of Symbol 154 MovieClip "backHolder" in Frame 4
onClipEvent (load) {
backSND = new Sound(_root.backHolder);
backSND.attachSound("back.wav");
backSND.setVolume(100);
}
Instance of Symbol 154 MovieClip "brimHolder" in Frame 4
onClipEvent (load) {
brimSND = new Sound(_root.brimHolder);
brimSND.attachSound("brim.wav");
brimSND.setVolume(100);
}
Instance of Symbol 154 MovieClip "netHolder" in Frame 4
onClipEvent (load) {
netSND = new Sound(_root.netHolder);
netSND.attachSound("net.wav");
netSND.setVolume(85);
}
Instance of Symbol 154 MovieClip "gymHolder" in Frame 4
onClipEvent (load) {
gymSND = new Sound(_root.gymHolder);
gymSND.attachSound("gym.wav");
gymSND.setVolume(100);
_root.gymHolder.gymSND.start(0, 999);
}
Instance of Symbol 154 MovieClip "breathHolder" in Frame 4
onClipEvent (load) {
breathSND = new Sound(_root.breathHolder);
breathSND.attachSound("breath.wav");
breathSND.setVolume(25);
}
Instance of Symbol 154 MovieClip "buzzHolder" in Frame 4
onClipEvent (load) {
buzzSND = new Sound(_root.buzzHolder);
buzzSND.attachSound("buzz.wav");
buzzSND.setVolume(50);
}
Instance of Symbol 158 MovieClip "begin_mc" in Frame 4
onClipEvent (enterFrame) {
if (_root.play == true) {
_root.begin_mc._visible = false;
}
}
Instance of Symbol 154 MovieClip "whistleHolder" in Frame 4
onClipEvent (load) {
whistleSND = new Sound(_root.whistleHolder);
whistleSND.attachSound("whistle.wav");
whistleSND.setVolume(20);
}
Instance of Symbol 154 MovieClip "clickHolder" in Frame 4
onClipEvent (load) {
clickSND = new Sound(_root.clickHolder);
clickSND.attachSound("plastic button");
clickSND.setVolume(40);
}
Symbol 22 MovieClip Frame 40
gotoAndPlay (1);
Symbol 37 Button
on (release) {
getURL ("http://www.littlecitygames.com/", "_blank");
}
Symbol 40 Button
on (release) {
getURL ("http://www.ugotgames.com/", "_blank");
}
Symbol 43 Button
on (release) {
getURL ("http://www.gamesloth.com/", "_blank");
}
Symbol 46 Button
on (release) {
getURL ("http://www.frostyz.com/", "_blank");
}
Symbol 49 Button
on (release) {
getURL ("http://www.hotpinkgames.com/", "_blank");
}
Symbol 52 Button
on (release) {
getURL ("http://www.simplythebestgames.com/", "_blank");
}
Symbol 55 Button
on (release) {
getURL ("http://www.mrfungames.com/", "_blank");
}
Symbol 58 Button
on (release) {
getURL ("http://www.bluestargames.com/", "_blank");
}
Symbol 67 Button
on (release) {
getURL ("http://www.flashbasketballgame.com/", "_blank");
}
Symbol 135 Button
on (press) {
_root.clickHolder.clickSND.start(0, 1);
}
on (release) {
if (_root.play == true) {
_root.buzzHolder.buzzSND.start(0, 1);
}
_root.dArrow_mc._x = _root.easy_btn._x;
_root.player_mc._x = 275;
_root.dArrow_mc._x = _root.easy_btn._x;
_root.vxLevel = 75;
_root.vyLevel = -150;
id = 0;
while (id <= 5) {
if (_root["ball_mc" + id].shot != true) {
_root["ball_mc" + id]._x = _root.player_mc._x + 20;
}
id++;
}
id = 0;
while (id <= 5) {
_root["ball_mc" + id].point = true;
id++;
}
_root.play = false;
_root.begin_mc._visible = true;
_root.reset_btn._visible = true;
_root.score = 0;
_root.shotplace_mc.shots = 0;
if (_root.classicmode == true) {
_root.timer_mc.timeCT = 0;
_root.time = 30;
}
}
Symbol 138 Button
on (press) {
_root.clickHolder.clickSND.start(0, 1);
}
on (release) {
if (_root.play == true) {
_root.buzzHolder.buzzSND.start(0, 1);
}
_root.dArrow_mc._x = _root.medium_btn._x;
_root.player_mc._x = 165;
_root.dArrow_mc._x = _root.medium_btn._x;
_root.vxLevel = 80;
_root.vyLevel = -160;
id = 0;
while (id <= 5) {
if (_root["ball_mc" + id].shot != true) {
_root["ball_mc" + id]._x = _root.player_mc._x + 20;
}
id++;
}
id = 0;
while (id <= 5) {
_root["ball_mc" + id].point = true;
id++;
}
_root.play = false;
_root.begin_mc._visible = true;
_root.reset_btn._visible = true;
_root.score = 0;
_root.shotplace_mc.shots = 0;
if (_root.classicmode == true) {
_root.timer_mc.timeCT = 0;
_root.time = 30;
}
}
Symbol 141 Button
on (press) {
_root.clickHolder.clickSND.start(0, 1);
}
on (release) {
if (_root.play == true) {
_root.buzzHolder.buzzSND.start(0, 1);
}
_root.dArrow_mc._x = _root.medium_btn._x;
_root.player_mc._x = 80;
_root.dArrow_mc._x = _root.hard_btn._x;
_root.vxLevel = 85;
_root.vyLevel = -170;
id = 0;
while (id <= 5) {
if (_root["ball_mc" + id].shot != true) {
_root["ball_mc" + id]._x = _root.player_mc._x + 20;
}
id++;
}
id = 0;
while (id <= 5) {
_root["ball_mc" + id].point = true;
id++;
}
_root.play = false;
_root.begin_mc._visible = true;
_root.reset_btn._visible = true;
_root.score = 0;
_root.shotplace_mc.shots = 0;
if (_root.classicmode == true) {
_root.timer_mc.timeCT = 0;
_root.time = 30;
}
}
Symbol 147 Button
on (press) {
_root.clickHolder.clickSND.start(0, 1);
}
on (release) {
if (_root.play == true) {
_root.buzzHolder.buzzSND.start(0, 1);
}
_root.reset_btn._visible = true;
_root.play = false;
_root.gameover = false;
_root.selected = true;
_root.begin_mc._visible = true;
_root.timer_mc.timeCT = 0;
_root.time = 30;
_root.buzzed = false;
id = 0;
while (id <= 5) {
_root["ball_mc" + id].point = true;
id++;
}
_root.score = 0;
_root.shotplace_mc.shots = 0;
_root.shotplace_mc._visible = false;
_root.gArrow_mc._x = _root.sec_btn._x;
_root.classicmode = true;
_root.percentmode = false;
_root.rowmode = false;
_root.time = 30;
_root.timer_mc.timeCT = 0;
}
Symbol 150 Button
on (press) {
_root.clickHolder.clickSND.start(0, 1);
}
on (release) {
if (_root.play == true) {
_root.buzzHolder.buzzSND.start(0, 1);
}
_root.reset_btn._visible = true;
_root.play = false;
_root.gameover = false;
_root.selected = true;
_root.begin_mc._visible = true;
id = 0;
while (id <= 5) {
_root["ball_mc" + id].point = true;
id++;
}
_root.score = 0;
_root.shotplace_mc.shots = 0;
_root.shotplace_mc._visible = true;
_root.gArrow_mc._x = _root.shot_btn._x;
_root.classicmode = false;
_root.percentmode = true;
_root.rowmode = false;
_root.buzzed = false;
}
Symbol 152 Button
on (press) {
_root.clickHolder.clickSND.start(0, 1);
}
on (release) {
if (_root.play == true) {
_root.buzzHolder.buzzSND.start(0, 1);
}
_root.reset_btn._visible = true;
_root.play = false;
_root.gameover = false;
_root.selected = true;
_root.begin_mc._visible = true;
id = 0;
while (id <= 5) {
_root["ball_mc" + id].point = true;
id++;
}
_root.score = 0;
_root.shotplace_mc.shots = 0;
_root.shotplace_mc._visible = false;
_root.gArrow_mc._x = _root.row_btn._x;
_root.classicmode = false;
_root.percentmode = false;
_root.rowmode = true;
_root.buzzed = false;
}
Symbol 161 Button
on (release) {
_root.score = 0;
_root.highscore = 0;
_root.percenthigh = 0;
_root.rowhigh = 0;
}
Symbol 164 Button
on (release) {
getURL ("http://www.littlecitygames.com/", "_blank");
}