Frame 1
ifFrameLoaded (54) {
gotoAndStop (3);
}
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
percent = Math.round((loaded / total) * 100);
lbFrm = int((percent / 100) * 15) + 2;
loadBar.gotoAndStop(lbFrm);
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 12
stop();
Frame 20
function SMOKING() {
frm = int(_root.radius + 1);
if (frm > _root.smokingTime) {
smokeLevel++;
if ((smokeLevel > 11035) and (smoke == 0)) {
smokeLevel = 11000;
}
if (Set != 1) {
Set = 1;
time = random(9);
timeCount = 0;
((smoke != 1) ? ((smoke = 1)) : ((smoke = 0)));
}
timeCount++;
((timeCount > time) ? ((Set = 0)) : 0);
if (smoke == 1) {
duplicateMovieClip ("smokeSource", "smoke" + smokeLevel, smokeLevel);
smokeSeed = random(5);
smokeSingle.gotoAndStop("smokeSeed");
} else {
smokeSingle.gotoAndStop("noSmoke");
}
this["smoke" + smokeLevel]._x = _root.GsmokeposX;
this["smoke" + smokeLevel]._y = _root.GsmokeposY;
vv = smokeLevel - 42;
unloadMovie ("smoke" + vv);
}
}
function turnScoreOn() {
n = 1;
while (n < 11) {
((n < 6) ? ((_root["s" + n]._y = scoreYpos)) : ((_root["s" + n]._y = scoreYpos + 45)));
scoreboardbg.gotoAndStop("on");
n++;
}
}
function turnScoreOff() {
n = 1;
while (n < 11) {
_root["s" + n]._y = -999;
scoreboardbg.gotoAndStop("off");
n++;
}
}
function Ball(s) {
if ((_root.rackStatus == "active") and (s != 10)) {
if (_root.rack._y < _root[s]._y) {
_root[s]._y = _root.rack._y;
}
}
if (_root.rackStatus == "none") {
_root.ballPosX[s] = _root[s]._x;
_root.ballPosY[s] = _root[s]._y;
_root[s].s = s;
_root.ballPosX[s] = _root.ballPosX[s] - _root.gXBallSpeed[s];
_root.ballPosY[s] = _root.ballPosY[s] - _root.gYBallSpeed[s];
sprN = 9;
while (sprN < ((10 + _root.nosOfBalls) + 1)) {
if (sprN != s) {
xc = _root[sprN]._x - _root.ballPosX[s];
yc = _root[sprN]._y - _root.ballPosY[s];
rc = Math.sqrt((xc * xc) + (yc * yc));
((rc < 0) ? ((rc = -rc)) : 0);
if (rc < int(_root[s]._width)) {
while (true) {
px = _root.ballPosX[s] - _root[sprN]._x;
py = _root.ballPosY[s] - _root[sprN]._y;
pr = Math.sqrt((px * px) + (py * py));
if (pr < int(_root[s]._width)) {
if (abs(_root.gXBallSpeed[s]) >= abs(_root.gYBallSpeed[s])) {
if (_root.gXBallSpeed[s] != 0) {
Xmin = Math.abs(_root.gXBallSpeed[s]) / Math.abs(_root.gXBallSpeed[s]);
}
if (_root.gXBallSpeed[s] != 0) {
ymin = Math.abs(_root.gYBallSpeed[s]) / Math.abs(_root.gXBallSpeed[s]);
}
}
if (Math.abs(_root.gYBallSpeed[s]) > Math.abs(_root.gXBallSpeed[s])) {
if (_root.gXBallSpeed[s] != 0) {
Xmin = Math.abs(_root.gXBallSpeed[s]) / Math.abs(_root.gYBallSpeed[s]);
}
if (_root.gXBallSpeed[s] != 0) {
ymin = Math.abs(_root.gYBallSpeed[s]) / Math.abs(_root.gYBallSpeed[s]);
}
}
((_root.ballPosX[s] > _root[sprN]._x) ? ((Xmin = -Math.abs(Xmin))) : 0);
((_root.ballPosY[s] > _root[sprN]._y) ? ((ymin = -Math.abs(ymin))) : 0);
_root.ballPosX[s] = _root.ballPosX[s] - Xmin;
_root.ballPosY[s] = _root.ballPosY[s] - ymin;
} else {
_root[s]._x = _root.ballPosX[s];
_root[s]._y = _root.ballPosY[s];
break;
}
}
if (true or ((_root.gLastHitList[sprN] != s) and (_root.gLastHitList[s] != _root.gLastHitList[sprN]))) {
_root.gLastHitList[sprN] = s;
if (_root.knockedDown[sprN] != true) {
_root.knockedDown[sprN] = true;
_root["sk" + sprN].gotoAndStop(2 + random(3));
_root.numKnockedDown++;
}
_root.gLastHitList[s] = _root.gLastHitList[sprN];
px = _root.ballPosX[s] - _root[sprN]._x;
py = _root.ballPosY[s] - _root[sprN]._y;
pr = Math.sqrt((px * px) + (py * py));
((pr != 0) ? ((sinTheta = py / pr)) : 0);
cDiv = Math.sqrt(1 - (sinTheta * sinTheta));
((cDiv != 0) ? ((theta = Math.atan(sinTheta / cDiv))) : 0);
if (_root[sprN]._x < _root.ballPosX[s]) {
hitAng = 90 + (theta / 0.0175);
}
if (_root[sprN]._x > _root.ballPosX[s]) {
hitAng = (180 - (theta / 0.0175)) + 90;
}
_root.hitAng = hitAng;
oldXspeed = _root.gXBallSpeed[s];
oldYspeed = _root.gYBallSpeed[s];
speedMult = Math.sqrt((oldXspeed * oldXspeed) + (oldYspeed * oldYspeed));
(((hitAng > 0) and (hitAng < 90)) ? ((pXw = (-hitAng) / 90)(pYw = (90 - hitAng) / 90)) : 0);
(((hitAng > 90) and (hitAng < 180)) ? ((pXw = (-(180 - hitAng)) / 90)(pYw = (-(hitAng - 90)) / 90)) : 0);
(((hitAng > 180) and (hitAng < 270)) ? ((pXw = (hitAng - 180) / 90)(pYw = (-(270 - hitAng)) / 90)) : 0);
(((hitAng > 270) and (hitAng < 360)) ? ((pXw = (360 - hitAng) / 90)(pYw = (hitAng - 270) / 90)) : 0);
_root.gXBallSpeed[sprN] = (-pXw) * (speedMult / 1);
_root.gYBallSpeed[sprN] = (-pYw) * (speedMult / 1);
_root.gBallAng[sprN] = hitAng;
angCalcMe = _root.gBallAng[s];
if ((hitAng - _root.gBallAng[s]) > 90) {
angCalcMe = angCalcMe - 360;
}
if ((hitAng - _root.gBallAng[s]) < -90) {
angCalcMe = angCalcMe + 360;
}
if (angCalcMe > hitAng) {
ax = _root.gBallAng[sprN] - 90;
((ax > 360) ? ((ax = ax - 360)) : 0);
((ax < 0) ? ((ax = ax + 360)) : 0);
}
if (angCalcMe <= hitAng) {
ax = _root.gBallAng[sprN] + 90;
((ax > 360) ? ((ax = ax - 360)) : 0);
((ax < 0) ? ((ax = ax + 360)) : 0);
}
(((ax > 0) and (ax < 90)) ? ((pXw2 = (-ax) / 90)(pYw2 = (90 - ax) / 90)) : 0);
(((ax > 90) and (ax < 180)) ? ((pXw2 = (-(180 - ax)) / 90)(pYw2 = (-(ax - 90)) / 90)) : 0);
(((ax > 180) and (ax < 270)) ? ((pXw2 = (ax - 180) / 90)(pYw2 = (-(270 - ax)) / 90)) : 0);
(((ax > 270) and (ax < 360)) ? ((pXw2 = (360 - ax) / 90)(pYw2 = (ax - 270) / 90)) : 0);
if (s != 10) {
_root.gXBallSpeed[s] = pXw2 * (speedMult / 1);
_root.gYBallSpeed[s] = pYw2 * (speedMult / 1);
} else {
_root.gXBallSpeed[s] = _root.gXBallSpeed[s] / 1.1;
_root.gYBallSpeed[s] = _root.gYBallSpeed[s] / 1.1;
}
}
}
}
sprN++;
}
_root[s]._x = _root.ballPosX[s];
_root[s]._y = _root.ballPosY[s];
(((s != 10) and (speedMult < 0.99)) ? ((_root.gXBallSpeed[s] = 0)(_root.gYBallSpeed[s] = 0)) : 0);
((s == 10) ? ((ballWeight = 0.99)) : ((ballWeight = 0.87)));
((_root.gXBallSpeed[s] > 0) ? ((_root.gXBallSpeed[s] = _root.gXBallSpeed[s] * ballWeight)) : 0);
((_root.gXBallSpeed[s] < 0) ? ((_root.gXBallSpeed[s] = _root.gXBallSpeed[s] * ballWeight)) : 0);
((_root.gYBallSpeed[s] > 0) ? ((_root.gYBallSpeed[s] = _root.gYBallSpeed[s] * ballWeight)) : 0);
((_root.gYBallSpeed[s] < 0) ? ((_root.gYBallSpeed[s] = _root.gYBallSpeed[s] * ballWeight)) : 0);
BoundX = ((_root.ballPosY[s] - cornerTR._y) / (cornerBR._y - cornerTR._y)) * 100;
BoundY = ((_root.ballPosX[s] - cornerTR._x) / (cornerBR._x - cornerTR._x)) * 100;
if (((BoundX < BoundY) and (_root.ballPosX[s] > cornerTR._x)) and (_root.gLastHitList[s] != "r")) {
_root.gLastHitList[s] = "r";
_root.gXBallSpeed[s] = -_root.gXBallSpeed[s];
}
BoundX = ((_root.ballPosY[s] - cornerTL._y) / (cornerBL._y - cornerTL._y)) * 100;
BoundY = ((_root.ballPosX[s] - cornerTL._x) / (cornerBL._x - cornerTL._x)) * 100;
if (((BoundX < BoundY) and (_root.ballPosX[s] < cornerTL._x)) and (_root.gLastHitList[s] != "l")) {
_root.gLastHitList[s] = "l";
_root.gXBallSpeed[s] = -_root.gXBallSpeed[s];
}
}
}
function SCORING() {
if (_root["sco3_" + _root.PL][_root.setNos] == "X") {
_root["s" + _root.setNos]["sc" + _root.turnNos].gotoAndStop("strike");
_root.turnNos = 2;
} else if (_root["sco3_" + _root.PL][_root.setNos] == "/") {
_root["s" + _root.setNos].sc1.s = _root["sco1_" + _root.PL][_root.setNos];
_root["s" + _root.setNos]["sc" + _root.turnNos].gotoAndStop("spare");
} else {
_root["s" + _root.setNos].sc1.s = _root["sco1_" + _root.PL][_root.setNos];
_root["s" + _root.setNos].sc2.s = _root["sco2_" + _root.PL][_root.setNos];
}
if (_root["sco3_" + _root.PL][_root.setNos - 1] == "X") {
_root["scoEx_" + _root.PL][_root.setNos - 1] = _root["scoEx_" + _root.PL][_root.setNos - 1] + (_root["sco1_" + _root.PL][_root.setNos] + _root["sco2_" + _root.PL][_root.setNos]);
if (_root["sco3_" + _root.PL][_root.setNos - 2] == "X") {
_root["scoEx_" + _root.PL][_root.setNos - 2] = _root["scoEx_" + _root.PL][_root.setNos - 2] + (_root["sco1_" + _root.PL][_root.setNos - 1] + _root["sco2_" + _root.PL][_root.setNos - 1]);
}
}
if (_root["sco3_" + _root.PL][_root.setNos - 1] == "/") {
_root["scoEx_" + _root.PL][_root.setNos - 1] = _root["scoEx_" + _root.PL][_root.setNos - 1] + _root["sco1_" + _root.PL][_root.setNos];
}
if (_root.setNos == 12) {
if (_root["sco3_" + _root.PL][10] == "X") {
if (_root["sco3_" + _root.PL][11] == "X") {
_root["scoEx_" + _root.PL][10] = 10 + _root["sco1_" + _root.PL][12];
}
}
}
n = 1;
while (n < (_root.setNos + 1)) {
acc = 0;
c = 1;
while (c < (n + 1)) {
acc = acc + ((_root["sco1_" + _root.PL][c] + _root["sco2_" + _root.PL][c]) + _root["scoEx_" + _root.PL][c]);
_root["s" + n].sc3 = acc;
c++;
}
n++;
}
if (_root["sco3_" + _root.PL][_root.setNos] == "X") {
_root["s" + _root.setNos].sc3 = "";
if (_root["sco3_" + _root.PL][_root.setNos - 1] == "X") {
_root["s" + (_root.setNos - 1)].sc3 = "";
}
}
if (_root["sco3_" + _root.PL][_root.setNos] == "/") {
_root["s" + _root.setNos].sc3 = "";
}
_root.gameScore = acc;
_root.rackStatus = "showingScores";
_root.turnScoreOn();
if (_root.setNos == _root.gotoSplash) {
_root.scoreboardbg.gameoverGFX.gotoAndStop(2);
}
}
_root.gBallAng = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.gXBallSpeed = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.gYBallSpeed = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.ballPosX = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.ballPosY = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.gLastHitList = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.knockedDown = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.StartXpos = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.StartYpos = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.strike = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.setScore = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.Sco1_1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.Sco2_1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.Sco3_1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.ScoEx_1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.Sco1_2 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.Sco2_2 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.Sco3_2 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.ScoEx_2 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.gotoSplash = 10;
_root.setNos = 1;
_root.turnNos = 1;
_root.PL = 1;
_root.gameType = "1player";
_root.nosOfBalls = 10;
xc = (yc = (rc = (Xmin = (Ymin = 0))));
ballWeight = 0.025;
ballFriction = 0.0003;
_root.numKnockedDown = 0;
_root.powerBar.gotoAndStop("off");
_root.rackStatus = "none";
_root.rack.gotoAndStop("off");
n = 10;
while (N < ((10 + _root.nosOfBalls) + 1)) {
_root.StartXpos[n] = _root[n]._x;
_root.StartYpos[n] = _root[n]._y;
N++;
}
scoreYpos = s1._y;
s1.bg.gotoAndStop("active");
turnScoreOff();
Instance of Symbol 61 MovieClip "10" in Frame 20
onClipEvent (load) {
xc = (yc = (rc = (Xmin = (Ymin = 0))));
ballWeight = 0.025;
ballFriction = 0.0003;
}
onClipEvent (enterFrame) {
pR = Math.sqrt((_root.gXBallSpeed[s] * _root.gXBallSpeed[s]) + (_root.gYBallSpeed[s] * _root.gYBallSpeed[s]));
((pR != 0) ? ((sinTheta = _root.gYBallSpeed[s] / pR)) : 0);
cDiv = Math.sqrt(1 - (sinTheta * sinTheta));
((cDiv != 0) ? ((theta = Math.atan(sinTheta / cDiv))) : 0);
if (_root.gXBallSpeed[s] < 0) {
_root.gBallAngle = 270 - (theta / 0.0175);
}
if (_root.gXBallSpeed[s] > 0) {
_root.gBallAngle = (theta / 0.0175) + 90;
}
ang = _root.gBallAngle + ((_root.gSpinPower - 10) / 5);
radians = (180 + ang) * (Math.PI/180);
_root.x2 = -Math.sin(radians);
_root.y2 = Math.cos(radians);
_root.mm = Math.sqrt((_root.gXBallSpeed[s] * _root.gXBallSpeed[s]) + (_root.gYBallSpeed[s] * _root.gYBallSpeed[s]));
_root.gXBallSpeed[s] = _root.x2 * _root.mm;
_root.gYBallSpeed[s] = _root.y2 * _root.mm;
if (_root.PL == 1) {
if (_root.gPowerStatus != "moving") {
((_root[10]._x > _root.cornerBR._x) ? ((_root[10]._x = _root.cornerBR._x)) : 0);
((_root[10]._x < _root.cornerBL._x) ? ((_root[10]._x = _root.cornerBL._x)) : 0);
_root[10]._x = _root[10]._x + ((_root.xmouse - _root[10]._x) / 5);
_root.powerBar._x = _root[10]._x;
}
if (_root.gPowerStatus == "set") {
cDiv = Math.sqrt((_root.x * _root.x) + (_root.y * _root.y));
_root.gXBallSpeed[s] = (_root.x / cDiv) * _root.gHitPower;
_root.gYBallSpeed[s] = (_root.y / cDiv) * _root.gHitPower;
powerBar.gotoAndStop("off");
ballWeight = 0.025;
ballFriction = 0.0003;
_root.gPowerStatus = "moving";
counter = 0;
}
}
if ((_root.gPowerStatus != "moving") and (_root.PL == 2)) {
_root.gXBallSpeed[s] = random(5) - 2.5;
_root.gYBallSpeed[s] = random(5) + 2.5;
_root.gSpinPower = random(5) - 2.5;
ballWeight = 0.025;
ballFriction = 0.0003;
_root.gPowerStatus = "moving";
counter = 0;
}
if (_root.gPowerStatus == "moving") {
_root.pR = pr;
if ((this._y < -5) or ((pr > 0.5) and (pr < 0.8))) {
if (_root.rackStatus == "none") {
_root.rackStatus = "lowering";
_root.rack.gotoAndPlay("lower");
_root.rackStartYpos = _root.rack._y;
((_root.turnNos == 1) ? ((_root["sco1_" + _root.PL][_root.setNos] = _root.numKnockedDown)) : 0);
((_root.turnNos == 2) ? ((_root["sco2_" + _root.PL][_root.setNos] = _root.numKnockedDown)) : 0);
if ((_root.turnNos == 2) and ((_root["sco1_" + _root.PL][_root.setNos] + _root.numKnockedDown) > 9)) {
_root["sco3_" + _root.PL][_root.setNos] = "/";
((_root.setNos == 10) ? (_root.gotoSplash++) : 0);
}
if (_root.numKnockedDown == 10) {
_root["sco3_" + _root.PL][_root.setNos] = "X";
((_root.setNos == 10) ? (_root.gotoSplash++) : 0);
if ((_root.setNos == 11) and (_root["sco3_" + _root.PL][10] == "X")) {
_root.gotoSplash++;
}
_root.turnNos++;
}
if (((_root.turnNos == 1) and (_root.setNos >= 10)) and (_root["sco3_" + _root.PL][10] == "/")) {
_root.turnNos++;
}
}
if ((_root.turnNos == 1) and (_root.setNos == 12)) {
_root.turnNos++;
}
if (_root.rackStatus == "active") {
_root.rack._y = _root.rack._y - 5;
if (_root.rack._y < -100) {
((_root.turnNos == 2) ? (_root.SCORING()) : ((_root.rackStatus = "nextThrow")));
}
}
if (_root.rackStatus == "nextThrow") {
_root.rack.gotoAndStop("off");
_root.rack._y = _root.rackStartYpos;
_root.gLastHitList[10] = "";
_root.gPowerStatus = "none";
_root.turnNos++;
_root.turnScoreOff();
_root.numKnockedDown = 0;
if (_root.turnNos == 2) {
counter = 0;
_root[10]._x = _root.StartXpos[10];
_root[10]._y = _root.StartYpos[10];
n = 10;
while (N < ((10 + _root.nosOfBalls) + 1)) {
_root.gXBallSpeed[n] = 0;
_root.gYBallSpeed[n] = 0;
if (_root.knockedDown[n] == true) {
_root[n]._x = -999 - (n * 20);
} else {
_root[n]._x = _root.StartXpos[n];
_root[n]._y = _root.StartYpos[n];
}
N++;
}
}
if (_root.turnNos >= 3) {
_root["s" + _root.setNos].bg.gotoAndStop("done");
if (_root.gameType == "2player") {
_root.PL++;
((_root.PL == 3) ? ((_root.PL = 1)_root.setNos++) : 0);
}
if (_root.gameType == "1player") {
_root.setNos++;
}
_root["s" + _root.setNos].bg.gotoAndStop("active");
n = 10;
while (N < ((10 + _root.nosOfBalls) + 1)) {
_root.gXBallSpeed[n] = 0;
_root.gYBallSpeed[n] = 0;
_root[n]._x = _root.StartXpos[n];
_root[n]._y = _root.StartYpos[n];
_root["sk" + n].gotoAndStop(1);
_root.knockedDown[n] = false;
N++;
}
_root.turnNos = 1;
}
_root.rackStatus = "none";
}
}
}
}
Instance of Symbol 61 MovieClip "11" in Frame 20
onClipEvent (load) {
}
Instance of Symbol 78 MovieClip in Frame 20
onClipEvent (enterFrame) {
this._x = _root[10]._x;
this._y = _root[10]._y;
}
Instance of Symbol 57 MovieClip "sk17" in Frame 20
onClipEvent (enterFrame) {
this._x = _root[17]._x;
this._y = _root[17]._y;
}
Instance of Symbol 57 MovieClip "sk20" in Frame 20
onClipEvent (enterFrame) {
this._x = _root[20]._x;
this._y = _root[20]._y;
}
Instance of Symbol 57 MovieClip "sk18" in Frame 20
onClipEvent (enterFrame) {
this._x = _root[18]._x;
this._y = _root[18]._y;
}
Instance of Symbol 57 MovieClip "sk19" in Frame 20
onClipEvent (enterFrame) {
this._x = _root[19]._x;
this._y = _root[19]._y;
}
Instance of Symbol 57 MovieClip "sk16" in Frame 20
onClipEvent (enterFrame) {
this._x = _root[16]._x;
this._y = _root[16]._y;
}
Instance of Symbol 57 MovieClip "sk14" in Frame 20
onClipEvent (enterFrame) {
this._x = _root[14]._x;
this._y = _root[14]._y;
}
Instance of Symbol 57 MovieClip "sk15" in Frame 20
onClipEvent (enterFrame) {
this._x = _root[15]._x;
this._y = _root[15]._y;
}
Instance of Symbol 57 MovieClip "sk12" in Frame 20
onClipEvent (enterFrame) {
this._x = _root[12]._x;
this._y = _root[12]._y;
}
Instance of Symbol 57 MovieClip "sk13" in Frame 20
onClipEvent (enterFrame) {
this._x = _root[13]._x;
this._y = _root[13]._y;
}
Instance of Symbol 57 MovieClip "sk11" in Frame 20
onClipEvent (enterFrame) {
this._x = _root[11]._x;
this._y = _root[11]._y;
}
Instance of Symbol 86 MovieClip "rack" in Frame 20
/* no clip actions */
Instance of Symbol 133 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.PL == 1) {
if (_root.gPowerStatus != "moving") {
this._x = _root[10]._x - 120;
}
}
if (_root.gPowerStatus == "moving") {
nextFrame();
}
if (_root.gPowerStatus == "none") {
this.gotoAndStop(1);
}
}
Instance of Symbol 165 MovieClip in Frame 20
onClipEvent (load) {
s = this.name;
_root.gHitPower = 0;
_root.gSpinPower = 0;
_root.gPowerStatus = "none";
}
onClipEvent (mouseDown) {
_root.gMouseDown = true;
}
onClipEvent (mouseUp) {
count = 0;
_root.gMouseDown = false;
}
onClipEvent (enterFrame) {
if (_root.gPowerStatus != "moving") {
Xpos = 150;
Ypos = 150;
_root.x = 0.01;
_root.y = 300;
r = Math.sqrt((_root.x * _root.x) + (_root.y * _root.y));
((r != 0) ? ((sinTheta = _root.y / r)) : 0);
cDiv = Math.sqrt(1 - (sinTheta * sinTheta));
((cDiv != 0) ? ((theta = Math.atan(sinTheta / cDiv))) : 0);
gMyRotation = this._rotation;
if (Xpos < this._x) {
ang = (180 - (theta / 0.0175)) + 90;
this._rotation = 180 - (theta / 0.0175);
}
if (Xpos > this._x) {
ang = (theta / 0.0175) + 90;
this._rotation = theta / 0.0175;
}
if (_root.gMouseDown == true) {
count = count + 1;
if (count == 1) {
if (_root.gPowerStatus == "settingSpin") {
_root.gPowerStatus = "set";
_root.powerBar.gotoAndStop("off");
} else if (_root.gPowerStatus == "settingPower") {
_root.powerDir = "up";
_root.gPowerStatus = "settingSpin";
} else if (_root.gPowerStatus == "none") {
_root.powerDir = "up";
_root.gPowerStatus = "settingPower";
_root.powerBar.gotoAndStop(1);
}
}
}
if (_root.gPowerStatus == "settingPower") {
((_root.gHitPower < 0) ? ((_root.powerDir = "up")) : 0);
((_root.gHitPower > 20) ? ((_root.powerDir = "down")) : 0);
if (_root.powerDir == "down") {
_root.gHitPower = _root.gHitPower - 0.8;
} else {
_root.gHitPower = _root.gHitPower + 0.8;
}
frm = _root.gHitPower;
_root.powerBar.powerMC.gotoAndStop(int(frm));
}
}
if (_root.gPowerStatus == "settingSpin") {
((_root.gSpinPower < 0) ? ((_root.powerDir = "up")) : 0);
((_root.gSpinPower > 20) ? ((_root.powerDir = "down")) : 0);
if (_root.powerDir == "down") {
_root.gSpinPower = _root.gSpinPower - 0.8;
} else {
_root.gSpinPower = _root.gSpinPower + 0.8;
}
frm = 2 + _root.gSpinPower;
_root.powerBar.spinMC.gotoAndStop(int(frm));
((_root.gHitPower < 1) ? ((_root.gHitPower = 1)trace("power upped to1")) : 0);
}
}
Frame 21
_root.xmouse = _xmouse;
_root.ymouse = _ymouse;
n = 10;
while (N < ((10 + _root.nosOfBalls) + 1)) {
Ball(n);
N++;
}
_root.dscore = Number(_root.s10.sc3);
Frame 22
gotoAndPlay (21);
Frame 32
function validate_mail(mail) {
primo = new String();
primo = mail.toLowerCase();
primo_array = new Array();
primo_array = primo.split("@");
if (primo_array.length == "2") {
trace("First test passed");
prefix = new String();
prefix = primo_array[0];
if (((prefix.length > 0) && (prefix.charAt(0) != ".")) && (prefix.charAt(prefix.length - 1) != ".")) {
trace("Second test passed");
suffix = new String();
suffix = primo_array[1];
suffix_array = new Array();
suffix_array = suffix.split(".");
if (suffix_array.length > 1) {
trace("Third test passed");
index_of_suffix_array = suffix_array.length - 1;
TLD = new String();
TLD = suffix_array[index_of_suffix_array];
trace((("TLD =" + TLD) + "// TLD.length =") + TLD.length);
if ((TLD.length > 1) && (TLD.length < 5)) {
trace("Fourth test passed");
suffix_particle = new String();
i = 0;
while (i <= (suffix_array.length - 1)) {
suffix_particle = suffix_array[i];
if (suffix_particle.length > 0) {
trace("Fifth test passed");
if (i == (suffix_array.length - 1)) {
char = new Array();
k = 0;
while (k <= (primo.length - 1)) {
char = primo.slice(k, k + 1);
trace(char);
if ((((((((((((((((((((((((((((((((((((((((char == "a") || (char == "b")) || (char == "c")) || (char == "d")) || (char == "e")) || (char == "f")) || (char == "g")) || (char == "h")) || (char == "i")) || (char == "j")) || (char == "k")) || (char == "l")) || (char == "m")) || (char == "n")) || (char == "o")) || (char == "p")) || (char == "q")) || (char == "r")) || (char == "s")) || (char == "t")) || (char == "u")) || (char == "v")) || (char == "w")) || (char == "x")) || (char == "y")) || (char == "z")) || (char == "0")) || (char == "1")) || (char == "2")) || (char == "3")) || (char == "4")) || (char == "5")) || (char == "6")) || (char == "7")) || (char == "8")) || (char == "9")) || (char == ".")) || (char == "@")) || (char == "_")) || (char == "-")) {
if (k == (primo.length - 1)) {
result = "Thank you for submitting !";
return(true);
}
} else {
trace("Unauthorised character " + char);
result = "Unauthorised character " + char;
break;
}
k++;
}
}
} else {
trace("Error in delimiters (.)");
result = "Error in delimiters (.)";
break;
}
i++;
}
} else {
trace("Error in TLD");
result = "Error in TLD";
}
} else {
trace("Error in the suffix");
result = "Error in the suffix";
}
} else {
trace("Malformed Prefix or Missing Prefix");
result = "Malformed Prefix or Missing Prefix";
}
} else {
trace("Mail must contain one @");
result = "Mail must contain one @";
}
}
_root.gamename = "turkeybowling";
local_data = SharedObject.getLocal("sobersanta.com", "/");
username_input = local_data.data.name_Input;
email_Input = local_data.data.email_Input;
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 27 Button
on (release) {
gotoAndPlay (12);
}
Symbol 35 Button
on (release) {
getURL ("http://www.miniworldgames.co.uk", "_blank");
}
Symbol 39 Button
on (release) {
_root.gameType = "free";
gotoAndPlay (19);
}
Symbol 44 MovieClip Frame 1
gotoAndPlay(random(15));
Symbol 47 MovieClip Frame 1
gotoAndPlay(random(15));
Symbol 50 MovieClip Frame 1
amm = random(5) - 10;
this._rotation = this._rotation + amm;
Symbol 51 MovieClip Frame 1
frm = random(15);
gotoAndPlay(frm);
Symbol 53 MovieClip Frame 29
stop();
Symbol 54 MovieClip Frame 34
stop();
Symbol 55 MovieClip Frame 21
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 1
stop();
Instance of Symbol 67 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
frm = random(10);
gotoAndPlay(frm);
}
Instance of Symbol 67 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
frm = random(10);
gotoAndPlay(frm);
}
Instance of Symbol 68 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
frm = random(10);
gotoAndPlay(frm);
}
Instance of Symbol 68 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
frm = random(10);
gotoAndPlay(frm);
}
Instance of Symbol 66 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
frm = random(10);
gotoAndPlay(frm);
}
Instance of Symbol 68 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
frm = random(10);
gotoAndPlay(frm);
}
Instance of Symbol 69 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
frm = random(10);
gotoAndPlay(frm);
}
Instance of Symbol 69 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
frm = random(10);
gotoAndPlay(frm);
}
Instance of Symbol 69 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
frm = random(10);
gotoAndPlay(frm);
}
Symbol 73 Button
on (release) {
_root.gotoAndStop(1);
}
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 22
_root.rackStatus = "active";
stop();
Symbol 86 MovieClip Frame 23
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
this.onEnterFrame = function () {
((point == null) ? ((point = new Object())) : 0);
point.x = fagTip._x;
point.y = fagTip._y;
localToGlobal(point);
_root.GsmokeposX = point.x;
_root.GsmokeposY = point.y;
};
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 2
stop();
Symbol 104 MovieClip Frame 3
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 2
stop();
Symbol 126 MovieClip Frame 3
stop();
Symbol 126 MovieClip Frame 4
stop();
Symbol 126 MovieClip Frame 5
stop();
Symbol 126 MovieClip Frame 6
stop();
Symbol 126 MovieClip Frame 7
stop();
Symbol 126 MovieClip Frame 8
stop();
Symbol 126 MovieClip Frame 9
stop();
Symbol 126 MovieClip Frame 10
stop();
Symbol 126 MovieClip Frame 11
stop();
Symbol 126 MovieClip Frame 12
stop();
Symbol 126 MovieClip Frame 13
stop();
Symbol 126 MovieClip Frame 14
stop();
Symbol 126 MovieClip Frame 15
stop();
Symbol 126 MovieClip Frame 16
stop();
Symbol 126 MovieClip Frame 17
stop();
Symbol 126 MovieClip Frame 18
stop();
Symbol 126 MovieClip Frame 19
stop();
Symbol 126 MovieClip Frame 20
stop();
Symbol 126 MovieClip Frame 21
stop();
Symbol 126 MovieClip Frame 22
stop();
Symbol 126 MovieClip Frame 23
stop();
Symbol 126 MovieClip Frame 24
stop();
Symbol 126 MovieClip Frame 25
stop();
Symbol 133 MovieClip Frame 1
Instance of Symbol 98 MovieClip "fag2" in Symbol 133 MovieClip Frame 1
onClipEvent (enterFrame) {
frm = int(_root.radius + 1);
((frm > _root.smokingTime) ? ((this._visible = true)) : ((this._visible = false)));
}
Symbol 133 MovieClip Frame 16
stop();
Symbol 140 Button
on (release) {
if (_root.setNos < _root.gotoSplash) {
_root.rackStatus = "nextThrow";
} else {
_root.gotoAndStop("end");
}
}
Symbol 150 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
gotoAndPlay(random(25));
Symbol 161 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 1
stop();
Instance of Symbol 164 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = 10 + (_root.gHitPower * 3);
}
Symbol 170 Button
on (release) {
getURL ("http://www.miniworldgames.com", "_blank");
}
Symbol 173 Button
on (release) {
gotoAndStop (3);
}