Frame 1
this.stop();
Instance of Symbol 13 MovieClip in Frame 1
//component parameters
onClipEvent (initialize) {
nextframe = "GAME";
waitFrames = 20;
}
Frame 2
function DispatchGameData(value, value2) {
var _local1 = _root;
if (_local1.dbconnect == "yes") {
_local1.score = value + 969696;
_local1.score_play = value2;
this.loadVariables((_local1.dir + "game_record.") + _local1.scripttype, "POST");
}
}
var score = 0;
function SoundPlay(name, vol) {
var _local1 = vol;
var _local2 = this;
_local1 = _local1 / 100;
if (snd_vol > 0) {
switch (name) {
case "ball" :
LS1.start(0, 1);
LS1.setVolume(_local2.snd_vol * _local1);
break;
case "pin" :
LS2.start(0, 1);
LS2.setVolume(_local2.snd_vol * _local1);
break;
case "hand" :
LS3.start(0, 1);
LS3.setVolume(_local2.snd_vol * _local1);
break;
case "button" :
LS4.start(0, 1);
LS4.setVolume(_local2.snd_vol * _local1);
}
} else {
switch (name) {
case "ball" :
LS1.setVolume(0);
return;
case "pin" :
LS2.setVolume(0);
return;
case "hand" :
LS3.setVolume(0);
return;
case "button" :
LS4.setVolume(0);
}
}
}
System.useCodepage = true;
fscommand ("showmenu", "true");
fscommand ("trapallkeys", "true");
x = 280;
y = 100;
z = 560;
f = 280;
snd_vol = 100;
LS1 = new Sound();
LS1.attachSound("sndBALL");
LS2 = new Sound();
LS2.attachSound("sndPIN");
LS3 = new Sound();
LS3.attachSound("sndHAND");
LS4 = new Sound();
LS4.attachSound("sndBUTTON");
this.stop();
Instance of Symbol 56 MovieClip "SCOREBAR" in Frame 2
onClipEvent (load) {
this.fix3d_depths(2500);
half = 1;
frame = 1;
num = 0;
total = 0;
game = 1;
player = 1;
playstart = false;
this.strikeAction = function () {
var _local1 = _parent;
_local1.SoundPlay("hand", 50);
i = 2;
while (i <= 5) {
_local1["PINGBAR" + i].auto = 1;
i++;
}
};
this.clearing = function () {
var _local2 = this;
var _local3 = _parent;
half = 1;
frame = 1;
num = 0;
total = 0;
game = 1;
var _local1 = 1;
while (_local1 <= 2) {
if (_local1 <= _local2.player) {
if ((_local3.name == null) || (_local3.name == "")) {
_local2["GAME" + _local1].NAME = _local1 + "UP";
} else {
_local2["GAME" + _local1].NAME = _local3.name;
}
_local2["GAME" + _local1].TOTAL = 0;
} else {
_local2["GAME" + _local1].NAME = "";
_local2["GAME" + _local1].TOTAL = "";
}
i = 1;
while (i <= 10) {
_local2["GAME" + _local1]["F" + i].HALF1 = "";
_local2["GAME" + _local1]["F" + i].HALF2 = "";
if (i == 10) {
_local2["GAME" + _local1]["F" + i].HALF3 = "";
}
_local2["GAME" + _local1]["F" + i].TOTAL = "";
_root.DISPLAY["P" + i].gotoAndStop(1);
i++;
}
_local1++;
}
i = 1;
while (i <= 2) {
_local2["LIGHT" + i].gotoAndStop(1);
i++;
}
_local2.N1.setColor(0, -34, -255, 100);
i = 2;
while (i <= 10) {
_local2["N" + i].setColor(0, 0, 0, 100);
i++;
}
_local3.PINGBAR.action(1, 1);
};
this.clearing();
}
Instance of Symbol 80 MovieClip "BALL" in Frame 2
onClipEvent (load) {
x = (y = (z = 0));
px = (py = (pz = 0));
sx = (sy = (sz = 0));
x = 180;
y = -100;
hand = false;
hit = 0;
go = 0;
oz = 12;
this.BUTTON._visible = false;
}
onClipEvent (enterFrame) {
if ((hand == false) && (this.BUTTON._visible == true)) {
_parent.ARROW1._visible = true;
_parent.ARROW2._visible = true;
_parent.ARROW3._visible = true;
_parent.ARROW4._visible = true;
} else {
_parent.ARROW1._visible = false;
_parent.ARROW2._visible = false;
_parent.ARROW3._visible = false;
_parent.ARROW4._visible = false;
}
if (hand == true) {
mx = this._x;
my = this._y;
this.x = mx - _root.x;
this.y = (my - _root.y) - _root.f;
this.px = (this.px + (mx - fx)) / 2;
this.pz = (this.pz + (my - fy)) / 2;
this.sx = this.px * -0.08;
fx = mx;
fy = my;
_root.BALL_R.x = mx - _root.x;
_root.BALL_R.z = this.z + 1;
_root.BALL_R.fix3d_display(_root.x, _root.y, _root.z, _root.f);
_root.BALL_R._alpha = 100 + (this.y / 4);
} else {
if ((this.y < 3) && (_root.HILL.hitTest(this._x, this._y, true))) {
this.px = this.px * 0.5;
}
fz = this.z;
this.fix3d_move(0.9);
_root.BALL_R.x = this.x;
_root.BALL_R.z = this.z + 1;
_root.BALL_R.fix3d_display(_root.x, _root.y, _root.z, _root.f);
_root.BALL_R._alpha = 100 + (this.y / 4);
this.fix3d_display(_root.x, _root.y, _root.z, _root.f);
if (this.z > 2500) {
i = 1;
while (i <= 10) {
MC = _root["P" + i];
if ((MC._visible == true) && (this.fix3d_hitTest(MC, fz, true))) {
MC.move = true;
MC._rotation = MC.x - this.x;
_root.DISPLAY["P" + i].gotoAndStop(2);
if (this.hit == 0) {
this.hit = 1;
}
}
i++;
}
}
if (((go == 0) && (this.z > 10)) && (this.y > -0.5)) {
_parent.SoundPlay("ball", (80 - (this.z / 60)) + (this.oz * 2));
go = 1;
}
if (this.hit == 1) {
_parent.SoundPlay("pin", 50);
this.hit = 2;
}
this.DESIGN._rotation = this.DESIGN._rotation + (this.px + (this.sx * 2));
}
if (this.z > 5000) {
this.BallSetup();
_root.SCOREBAR.checking();
}
}
Instance of Symbol 84 MovieClip "BALL_R" in Frame 2
onClipEvent (load) {
x = (y = (z = -1));
px = (py = (pz = 0));
hand = false;
}
Instance of Symbol 90 MovieClip "DISPLAY" in Frame 2
onClipEvent (enterFrame) {
if ((_parent.SCOREBAR.playstart == true) || (_parent.STARTBUTTON._visible == true)) {
if (this.P1.BUTTON._visible == true) {
var i = 1;
while (i <= 10) {
this["P" + i].BUTTON._visible = false;
i++;
}
}
} else if (this.P1.BUTTON._visible == false) {
var i = 1;
while (i <= 10) {
this["P" + i].BUTTON._visible = true;
i++;
}
}
}
Instance of Symbol 92 MovieClip "PINGBAR" in Frame 2
onClipEvent (load) {
pin = 0;
auto = 2;
this.fix3d_depths(2800);
this.action = function (a, p) {
this.auto = a;
this.pin = p;
};
}
onClipEvent (enterFrame) {
switch (auto) {
case 1 :
this.smoothMove(this._x, 140, 0.2);
if (this.Limit(this._x, 140, 0.3)) {
auto = 2;
if (pin == 1) {
_root._3Dmethod.pinSetup();
}
}
break;
case 2 :
this.smoothMove(this._x, 120, 0.2);
if (!this.Limit(this._x, 120, 0.3)) {
break;
}
auto = 0;
if (pin != 1) {
break;
}
i = 1;
for(;;){
if (i > 10) {
break;
}
_root.DISPLAY["P" + i].gotoAndStop(1);
i++;
};
}
}
Instance of Symbol 95 MovieClip "_3Dmethod" in Frame 2
onClipEvent (load) {
pinxy = [[0, 0], [-1, 2], [1, 2], [-2, 4], [0, 4], [2, 4], [-3, 6], [-1, 6], [1, 6], [3, 6]];
this.pinOne = function (num) {
var _local1 = num;
name = "P" + _local1;
MC = _root[name];
MC.visible = false;
MC.move = false;
MC.x = this.pinxy[_local1 - 1][0] * 60;
MC.y = -200;
MC.z = (3000 + (this.pinxy[_local1 - 1][1] * 50)) + _local1;
MC.px = (MC.py = (MC.pz = 0));
MC.sx = (MC.sy = (MC.sz = 0));
MC._rotation = 0;
MC.visible = true;
};
this.pinSetup = function () {
var _local2 = this;
var _local1 = 1;
while (_local1 <= 10) {
_local2.pinOne(_local1);
_local1++;
}
};
var i = 1;
while (i <= 10) {
name = "P" + i;
duplicateMovieClip (_root.PIN, name, i);
MC = _root[name];
MC.x = (MC.y = (MC.z = 0));
MC.px = (MC.py = (MC.pz = 0));
MC.sx = (MC.sy = (MC.sz = 0));
MC.onEnterFrame = function () {
var _local2 = this;
var _local3 = _root;
if (_local2.visible == true) {
fz = _local2.z;
_local2.fix3d_move(0.98);
_local2.fix3d_display(_local3.x, _local3.y, _local3.z, _local3.f);
if (_local2.move == true) {
if ((Math.abs(_local2.x) > 500) || (_local2.z > 4000)) {
_local2.visible = false;
} else {
var _local1 = 1;
while (_local1 <= 10) {
MC = _local3["P" + _local1];
if ((_local2 != MC) && (_local2.fix3d_hitTest(MC, fz, true))) {
MC.move = true;
_local3.DISPLAY["P" + _local1].gotoAndStop(2);
}
_local1++;
}
}
}
} else {
_local2._visible = false;
}
};
i++;
}
this.pinSetup();
}
Instance of Symbol 92 MovieClip "PINGBAR3" in Frame 2
onClipEvent (load) {
auto = 2;
this.fix3d_depths(2600 + int(this._name.substr(7)));
}
onClipEvent (enterFrame) {
switch (auto) {
case 1 :
this.smoothMove(this._x, 140, 0.2);
if (this.Limit(this._x, 140, 0.3)) {
auto = 2;
}
break;
case 2 :
this.smoothMove(this._x, 120, 0.2);
if (!this.Limit(this._x, 120, 0.3)) {
break;
}
auto = 0;
}
}
Instance of Symbol 92 MovieClip "PINGBAR4" in Frame 2
onClipEvent (load) {
auto = 2;
this.fix3d_depths(2600 + int(this._name.substr(7)));
}
onClipEvent (enterFrame) {
switch (auto) {
case 1 :
this.smoothMove(this._x, 140, 0.2);
if (this.Limit(this._x, 140, 0.3)) {
auto = 2;
}
break;
case 2 :
this.smoothMove(this._x, 120, 0.2);
if (!this.Limit(this._x, 120, 0.3)) {
break;
}
auto = 0;
}
}
Instance of Symbol 92 MovieClip "PINGBAR2" in Frame 2
onClipEvent (load) {
auto = 2;
this.fix3d_depths(2600 + int(this._name.substr(7)));
}
onClipEvent (enterFrame) {
switch (auto) {
case 1 :
this.smoothMove(this._x, 140, 0.2);
if (this.Limit(this._x, 140, 0.3)) {
auto = 2;
}
break;
case 2 :
this.smoothMove(this._x, 120, 0.2);
if (!this.Limit(this._x, 120, 0.3)) {
break;
}
auto = 0;
}
}
Instance of Symbol 92 MovieClip "PINGBAR5" in Frame 2
onClipEvent (load) {
auto = 2;
this.fix3d_depths(2600 + int(this._name.substr(7)));
}
onClipEvent (enterFrame) {
switch (auto) {
case 1 :
this.smoothMove(this._x, 140, 0.2);
if (this.Limit(this._x, 140, 0.3)) {
auto = 2;
}
break;
case 2 :
this.smoothMove(this._x, 120, 0.2);
if (!this.Limit(this._x, 120, 0.3)) {
break;
}
auto = 0;
}
}
Instance of Symbol 103 MovieClip "STARTBUTTON" in Frame 2
onClipEvent (load) {
this.swapDepths(500001);
}
Instance of Symbol 137 MovieClip "HELP" in Frame 2
onClipEvent (load) {
frame = 0;
mov = new Array();
show = -1;
mov[1] = [[409, 350.3], [409, 350.3], [334, 365.3], [275, 371.3], [262, 363.3], [262, 363.3], [262, 363.3], [266, 364.3], [269, 364.3], [288, 350.3], [319, 320.3], [342, 295.3], [350, 282.3], [351, 281.3], [351, 281.3], [352, 283.3], [350, 307.3], [335, 355.3], [299, 399.3], [266, 405], [199, 376], [153, 310]];
mov[2] = [[467, 380], [460, 382], [419, 388], [341, 393], [286, 385], [286, 385], [286, 385], [286, 385], [286, 385], [294, 391], [285, 384], [264, 362], [232, 326], [208, 301], [202, 297], [197, 295], [194, 295], [193, 296], [195, 306], [222, 346], [283, 389], [327, 377], [397, 300]];
mov[3] = [[460, 380], [388, 308], [317, 226], [280, 144], [288, 116], [299, 100], [302, 92], [303, 88], [303, 86], [302, 85], [302, 85], [302, 85], [302, 85], [302, 85], [302, 85], [302, 85], [299, 99], [283, 175], [272, 329], [266, 478]];
this.MENU._visible = false;
var i = 0;
while (i < 3) {
this["B" + i]._visible = false;
i++;
}
}
onClipEvent (enterFrame) {
if (_parent.SCOREBAR.playstart == true) {
if (this.HELP._visible == true) {
this.HELP._visible = false;
this.MENU._visible = false;
var i = 0;
while (i < 3) {
this["B" + i]._visible = false;
i++;
}
}
} else {
if (_parent.STARTBUTTON._visible == false) {
this.MENU._visible = true;
} else {
this.MENU._visible = false;
}
if (this.HELP._visible == false) {
this.HELP._visible = true;
}
}
MC = _parent.BALL;
if (show > -1) {
if (frame == 0) {
if ((mov[show] == null) || (mov[show].length == 0)) {
show = -1;
} else {
_parent.PINGBAR.action(1, 1);
MC.BallSetup();
}
}
if (frame < mov[show].length) {
MC.BUTTON._visible = false;
MC.hand = true;
MC._x = mov[show][frame][0];
MC._y = mov[show][frame][1];
frame++;
} else if (show > -1) {
MC.BallShot();
show = -1;
frame = 0;
}
} else if (_parent.SCOREBAR.playstart == false) {
if ((MC.hand == true) && (MC.BUTTON._visible == true)) {
if (frame == 0) {
mov[0] = Array();
}
mov[0][frame] = new Array(MC._x, MC._y);
frame++;
} else {
frame = 0;
}
}
}
Instance of Symbol 153 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.getFrame();
}
onClipEvent (keyDown) {
this.checkKey();
}
Symbol 13 MovieClip Frame 1
function display_one(num) {
var _local3 = num;
var _local1 = this.attachMovie("loadingone", "one" + _local3, -_local3);
_local1._rotation = (15 * _local3) - 90;
var _local2 = (_local1._rotation * Math.PI) / 180;
_local1._x = 125 * Math.cos(_local2);
_local1._y = 125 * Math.sin(_local2);
}
this.per = 0;
this.num = 0;
this.f = 0;
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.per >= 100) {
_local1.f++;
if (_local1.f >= _local1.waitFrames) {
_parent.gotoAndPlay(_local1.nextframe);
}
} else {
_local1.per = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_local1.BAR._xscale = _local1.per;
_local1.TXT = _local1.per + "% Load";
}
_local1.B2._rotation = _local1.B2._rotation + 4;
};
this.stop();
Symbol 28 MovieClip Frame 1
this.gotoAndStop(int(this._name.substr(1)));
this.stop();
Symbol 35 MovieClip Frame 1
this.HALF1 = "";
this.HALF2 = "";
this.TOTAL = "";
Symbol 41 MovieClip Frame 1
this.HALF1 = "";
this.HALF2 = "";
this.HALF3 = "";
this.TOTAL = "";
Symbol 47 Button
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_parent._parent.snd_vol = 0;
} else {
this.gotoAndStop(1);
_parent._parent.snd_vol = 80;
}
}
Symbol 50 MovieClip Frame 1
this.stop();
Symbol 53 MovieClip Frame 1
this.stop();
Symbol 55 MovieClip Frame 1
this.stop();
Symbol 56 MovieClip Frame 1
function ending() {
var _local2 = this;
half = 1;
frame = 1;
playstart = false;
_parent.PINGBAR.action(1, 1);
_parent.STARTBUTTON._visible = true;
info = "";
f = 1;
while (f <= 10) {
var _local1 = _local2["GAME" + game]["F" + f];
info = info + _local1.HALF1;
if (_local1.HALF2 != "") {
info = info + _local1.HALF2;
} else {
info = info + "_";
}
if (f == 10) {
if (_local1.HALF3 != "") {
info = info + _local1.HALF3;
} else {
info = info + "_";
}
} else {
info = info + ",";
}
f++;
}
_root.DispatchGameData(_local2.total, info);
}
function scoreNum(Str) {
var _local1 = Str;
if (_local1 == "") {
return(-1);
}
if ((_local1 == "X") || (_local1 == "/")) {
return(10);
}
if ((_local1 == "G") || (_local1 == "-")) {
return(0);
}
return(Number(_local1));
}
function scoreCal() {
var _local1 = this;
_local1.total = 0;
var _local2 = 1;
while (_local2 <= 10) {
var _local3 = scoreNum(_local1["GAME" + game]["F" + _local2].HALF1);
var h2 = scoreNum(_local1["GAME" + game]["F" + _local2].HALF2);
if (_local2 < 10) {
if (h2 >= 10) {
var n1 = scoreNum(_local1["GAME" + game]["F" + (_local2 + 1)].HALF1);
if (n1 >= 0) {
_local1.total = _local1.total + (n1 + 10);
} else {
break;
}
} else if (_local3 >= 10) {
var n1 = scoreNum(_local1["GAME" + game]["F" + (_local2 + 1)].HALF1);
if (_local2 < 9) {
if (n1 >= 10) {
var n2 = _local1.scoreNum(_local1["GAME" + game]["F" + (_local2 + 2)].HALF1);
if (n2 < 0) {
break;
}
_local1.total = _local1.total + (n2 + 20);
} else {
if (n1 < 0) {
break;
}
var n2 = _local1.scoreNum(_local1["GAME" + game]["F" + (_local2 + 1)].HALF2);
if (n2 < 0) {
break;
}
_local1.total = _local1.total + ((n1 + n2) + 10);
}
} else {
var n2 = scoreNum(_local1["GAME" + game]["F" + (_local2 + 1)].HALF2);
if ((n1 >= 0) && (n2 >= 0)) {
if (_local1["GAME" + game]["F" + (_local2 + 1)].HALF2 == "/") {
_local1.total = _local1.total + 20;
} else {
_local1.total = _local1.total + ((n1 + n2) + 10);
}
} else {
break;
}
}
} else {
if (_local3 < 0) {
break;
}
if (h2 < 0) {
break;
}
_local1.total = _local1.total + (_local1.scoreNum(_local3) + _local1.scoreNum(h2));
}
} else {
var h3 = scoreNum(_local1["GAME" + game]["F" + _local2].HALF3);
if (_local3 < 0) {
break;
}
if (h2 < 0) {
break;
}
if (((_local3 >= 10) || (h2 >= 10)) && (h3 < 0)) {
break;
}
if (h3 < 0) {
h3 = 0;
}
if (_local1["GAME" + game]["F" + _local2].HALF2 == "/") {
_local1.total = _local1.total + (10 + _local1.scoreNum(h3));
} else if (_local1["GAME" + game]["F" + _local2].HALF3 == "/") {
_local1.total = _local1.total + (_local1.scoreNum(_local3) + 10);
} else {
_local1.total = _local1.total + ((_local1.scoreNum(_local3) + _local1.scoreNum(h2)) + _local1.scoreNum(h3));
}
}
_local1["GAME" + game]["F" + _local2].TOTAL = _local1.total;
_local2++;
}
_local1["GAME" + game].TOTAL = _local1.total;
}
function nextFrameNum() {
var _local2 = this;
var _local1 = _local2.scoreNum(_local2["GAME" + game]["F" + frame]["HALF" + half]);
if (frame < 10) {
if ((_local1 == 10) || (half >= 2)) {
frame++;
half = 1;
} else {
half++;
}
} else if ((((half == 2) && (_local1 < 10)) && (_local2.scoreNum(_local2["GAME" + game]["F" + frame].HALF1) < 10)) || (half >= 3)) {
frame++;
half = 1;
} else {
half++;
}
}
function scorePut() {
var _local2 = this;
var _local1 = _local2["GAME" + game]["F" + frame];
if (frame < 10) {
if (half == 1) {
if (num >= 10) {
_local1.HALF1 = "X";
} else if (num <= 0) {
_local1.HALF1 = "G";
} else {
_local1.HALF1 = num;
}
} else if (half == 2) {
if (num >= 10) {
_local1.HALF2 = "/";
} else {
if (_local1.HALF1 == "G") {
_local1.HALF2 = num;
} else {
_local1.HALF2 = num - _local2.scoreNum(_local1.HALF1);
}
if (_local1.HALF2 == "0") {
_local1.HALF2 = "-";
}
}
}
} else if (half == 1) {
if (num >= 10) {
_local1.HALF1 = "X";
} else if (num <= 0) {
_local1.HALF1 = "G";
} else {
_local1.HALF1 = num;
}
} else if (half == 2) {
if (_local1.HALF1 == "X") {
if (num >= 10) {
_local1.HALF2 = "X";
} else {
_local1.HALF2 = num;
}
} else if (num >= 10) {
_local1.HALF2 = "/";
} else {
_local1.HALF2 = num - _local2.scoreNum(_local1.HALF1);
}
if (_local1.HALF2 == "0") {
_local1.HALF2 = "-";
}
} else {
if ((_local1.HALF2 == "X") || (_local1.HALF2 == "/")) {
if (num >= 10) {
_local1.HALF3 = "X";
} else {
_local1.HALF3 = num;
}
} else if (num >= 10) {
_local1.HALF3 = "/";
} else {
_local1.HALF3 = num - _local2.scoreNum(_local1.HALF2);
}
if (_local1.HALF3 == "0") {
_local1.HALF3 = "-";
}
}
}
function checking() {
var _local2 = this;
num = 0;
var _local1 = 1;
while (_local1 <= 10) {
if (_root.DISPLAY["P" + _local1]._currentframe == 2) {
num++;
}
_local1++;
}
if (playstart == false) {
if ((half == 1) && (num >= 10)) {
_local2.strikeAction();
}
if ((num >= 10) || (half > 2)) {
_parent.PINGBAR.action(1, 1);
half = 1;
} else {
_parent.PINGBAR.action(1, 0);
}
_local1 = 1;
while (_local1 <= 2) {
if (_local2.half > _local1) {
_local2["LIGHT" + _local1].gotoAndStop(2);
} else {
_local2["LIGHT" + _local1].gotoAndStop(1);
}
_local1++;
}
return(false);
}
_local2.scorePut();
_local2.nextFrameNum();
_local2.scoreCal();
if (half == 1) {
_parent.PINGBAR.action(1, 1);
} else {
var M = _local2["GAME" + game]["F" + frame]["HALF" + (half - 1)];
if ((frame == 10) && ((M == "X") || (M == "/"))) {
_parent.PINGBAR.action(1, 1);
} else {
_parent.PINGBAR.action(1, 0);
}
}
var _local3 = 1;
while (_local3 <= frame) {
_local2["N" + _local3].setColor(0, -34, -255, 100);
_local3++;
}
_local1 = 1;
while (_local1 <= 2) {
if (_local2.half > _local1) {
_local2["LIGHT" + _local1].gotoAndStop(2);
} else {
_local2["LIGHT" + _local1].gotoAndStop(1);
}
_local1++;
}
if (frame > 10) {
_local2.ending();
}
return(undefined);
}
this.stop();
Instance of Symbol 55 MovieClip "ARROW" in Symbol 56 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.playstart == true) {
if (this._visible == false) {
this._visible = true;
}
this._y = _parent["GAME" + _parent.game]._y + 15;
} else if (this._visible == true) {
this._visible = false;
}
}
Symbol 62 Button
on (press) {
this.hand = true;
this.startDrag();
}
on (release, releaseOutside) {
this.stopDrag();
this.BallShot();
}
Symbol 79 MovieClip Frame 1
this.stop();
Symbol 80 MovieClip Frame 1
function BallShot() {
var _local1 = this;
var _local2 = _root;
_local1.x = mx - _local2.x;
_local1.y = (my - _local2.y) - _local2.f;
_local1.px = _local1.px / 10;
_local1.pz = Math.abs(_local1.pz) - ((_local1.oz - 12) * 2);
if (_local1.pz < 10) {
_local1.pz = 10;
}
_local1.hand = false;
_local1.BUTTON._visible = false;
}
function BallSetup() {
var _local1 = this;
var _local2 = _root;
_local1.x = (_local1.y = (_local1.z = 0));
_local1.px = (_local1.py = (_local1.pz = 0));
_local1.sx = (_local1.sy = (_local1.sz = 0));
_local1.x = 180;
_local1.y = -100;
_local1.fix3d_display(_local2.x, _local2.y, _local2.z, _local2.f);
_local1.DESIGN._rotation = 0;
_local1.hit = 0;
_local1.go = 0;
if (_parent.STARTBUTTON._visible == true) {
_local1.BUTTON._visible = false;
} else {
_local1.BUTTON._visible = true;
}
}
Symbol 82 MovieClip Frame 1
this._visible = false;
Symbol 85 Button
on (release) {
if (_parent._parent.BALL.z < 100) {
MC = _root["P" + this.NUM];
if (this._currentframe == 1) {
this.gotoAndStop(2);
MC.visible = false;
MC._x = (MC._y = -10);
} else {
this.gotoAndStop(1);
_root._3Dmethod.pinOne(this.NUM);
MC.y = (MC.py = 0);
MC.visible = true;
}
}
}
Symbol 89 MovieClip Frame 1
this.NUM = int(this._name.substr(1));
this.stop();
Symbol 89 MovieClip Frame 2
this.NUM = int(this._name.substr(1));
this.stop();
Symbol 95 MovieClip Frame 1
#initclip 1
Color.prototype.setTintOffset = function (r, g, b, a) {
var _local1 = new Object();
_local1.rb = r;
_local1.gb = g;
_local1.bb = b;
_local1.aa = a;
this.setTransform(_local1);
};
MovieClip.prototype.setColor = function (r, g, b, a) {
var _local1 = new Color(this);
_local1.setTintOffset(r, g, b, a);
};
MovieClip.prototype.fix3d_depths = function (cz) {
this.swapDepths(500000 - int(cz * 100));
};
MovieClip.prototype.fix3d_display = function (cx, cy, cz, f) {
var _local1 = this;
if (_local1.z < 0) {
_local1._visible = false;
} else {
_local1._visible = true;
var _local2 = cz / (_local1.z + cz);
_local1._x = cx + (_local1.x * _local2);
_local1._y = (cy + (_local1.y * _local2)) + (f * _local2);
if (_local2 < 0.05) {
_local2 = 0.05;
}
_local1._yscale = (_local1._xscale = _local2 * 100);
_local1.fix3d_depths(_local1.z);
}
};
MovieClip.prototype.fix3d_move = function (g) {
var _local1 = this;
_local1.py = _local1.py + g;
if (_local1.y > -1) {
_local1.px = _local1.px + _local1.sx;
_local1.py = _local1.py + _local1.sy;
_local1.pz = _local1.pz + _local1.sz;
_local1.sx = _local1.sx * 0.5;
_local1.sy = _local1.sy * 0.5;
_local1.sz = _local1.sz * 0.5;
}
_local1.x = _local1.x + _local1.px;
_local1.y = _local1.y + _local1.py;
_local1.z = _local1.z + _local1.pz;
if (_local1.y > 0) {
_local1.y = 0;
_local1.px = _local1.px * 1;
_local1.pz = _local1.pz * 1;
_local1.py = _local1.py * -0.6;
return(true);
}
return(false);
};
MovieClip.prototype.fix3d_hitTest = function (mc, fz, action) {
var _local1 = this;
var _local2 = mc;
if ((_local1.z >= _local2.z) && (fz < _local2.z)) {
if (_local1.hitTest(_local2)) {
if (action == true) {
var diffX = (_local2.x - _local1.x);
var diffY = (_local1.z - _local2.z);
var _local3 = Math.atan2(diffY, diffX);
var s = Math.sqrt((_local1.px * _local1.px) + (_local1.pz * _local1.pz));
_local2.px = (Math.cos(_local3) * s) - _local1.sx;
_local2.pz = (Math.sin(_local3) * s) * _local1.pz;
_local2.py = _local1.py;
_local1.px = _local1.px - (_local2.px * 0.2);
}
return(true);
}
}
return(false);
};
MovieClip.prototype.smoothMove = function (targetX, targetY, speed) {
var _local1 = this;
_local1._x = _local1._x + (speed * (targetX - _local1._x));
_local1._y = _local1._y + (speed * (targetY - _local1._y));
};
MovieClip.prototype.Limit = function (x, y, max) {
var _local1 = this;
if ((Math.abs(_local1._x - x) < max) && (Math.abs(_local1._y - y) < max)) {
_local1._x = x;
_local1._y = y;
return(true);
}
return(false);
};
#endinitclip
this._visible = false;
Symbol 100 Button
on (release) {
_parent.SCOREBAR.playstart = true;
_parent.SCOREBAR.clearing();
_parent.BALL.BallSetup();
_parent.BALL.BUTTON._visible = true;
this._visible = false;
_parent.SoundPlay("button", 50);
}
Symbol 102 Button
on (release) {
if (_parent.BALL.z < 100) {
_parent.BALL.BUTTON._visible = true;
}
this._visible = false;
_parent.SoundPlay("button", 50);
}
Symbol 107 Button
on (release) {
txt = "";
var n = 2;
var i = 0;
while (i < _root.HELP.mov[n].length) {
txt = txt + ((((",[" + (_root.HELP.mov[n][i][0] + int(_root.LIMIT))) + ",") + _root.HELP.mov[n][i][1]) + "]");
i++;
}
trace(txt);
}
Symbol 108 Button
on (release) {
_root.BALL.BallSetup();
_root._3Dmethod.pinSetup();
}
Symbol 109 Button
on (release) {
N = 0;
_root.SCOREBAR.half = 1;
_root.SCOREBAR.frame = 10;
i = 1;
while (i <= 9) {
_root.SCOREBAR.GAME1["F" + i].HALF1 = "X";
if (i <= 7) {
N = N + 30;
_root.SCOREBAR.GAME1["F" + i].TOTAL = N;
}
i++;
}
_root.SCOREBAR.total = N;
}
Symbol 110 Button
on (release) {
_root.HELP.show = 1;
}
Symbol 113 Button
on (release) {
_parent.DUSTS._visible = true;
_parent.DUSTS._x = this._x;
_parent.DUSTS._y = this._y;
var i = 1;
while (i <= 4) {
_parent.DUSTS["D" + i].gotoAndPlay(1);
i++;
}
}
Symbol 119 MovieClip Frame 9
this.stop();
Symbol 120 MovieClip Frame 1
this._visible = true;
Symbol 124 Button
on (release) {
if (this.B1._visible == true) {
this.GAME24._y = -30;
var i = 0;
while (i < 3) {
this["B" + i]._visible = false;
i++;
}
} else {
this.GAME24._y = -112;
var i = 0;
while (i < 3) {
this["B" + i]._visible = true;
i++;
}
}
_parent.SoundPlay("button", 50);
}
Symbol 129 Button
on (release) {
_parent.STARTBUTTON._visible = false;
this.MENU._visible = true;
this.show = 1;
_parent.SoundPlay("button", 50);
}
Symbol 131 Button
on (release) {
_parent.STARTBUTTON._visible = false;
this.MENU._visible = true;
this.show = 2;
_parent.SoundPlay("button", 50);
}
Symbol 133 Button
on (release) {
_parent.STARTBUTTON._visible = false;
this.MENU._visible = true;
this.show = 0;
_parent.SoundPlay("button", 50);
}
Symbol 136 Button
on (release) {
_parent.STARTBUTTON._visible = true;
_parent.BALL.BUTTON._visible = false;
this.MENU._visible = false;
_parent.SoundPlay("button", 50);
}
Symbol 138 Button
on (release) {
var MC = this.BALL.DESIGN;
if (MC._currentframe == MC._totalframes) {
MC.gotoAndStop(1);
} else {
MC.nextFrame();
}
this.SoundPlay("button", 50);
}
Symbol 139 Button
on (release) {
var MC = this.BALL.DESIGN;
if (MC._currentframe == 1) {
MC.gotoAndStop(MC._totalframes);
} else {
MC.prevFrame();
}
this.SoundPlay("button", 50);
}
Symbol 142 Button
on (release) {
var MC = this.BALL;
if (MC.oz < 20) {
MC.oz++;
this.OZ = MC.oz;
MC.DESIGN._xscale = (MC.DESIGN._yscale = 88 + MC.oz);
MC.DESIGN._y = -(MC.DESIGN._height / 2);
MC.BUTTON._xscale = (MC.BUTTON._yscale = MC.DESIGN._xscale);
MC.BUTTON._y = MC.DESIGN._y;
this.SoundPlay("button", 50);
}
}
Symbol 143 Button
on (release) {
var MC = this.BALL;
if (MC.oz > 9) {
MC.oz--;
this.OZ = MC.oz;
MC.DESIGN._xscale = (MC.DESIGN._yscale = 88 + MC.oz);
MC.DESIGN._y = -(MC.DESIGN._height / 2);
MC.BUTTON._xscale = (MC.BUTTON._yscale = MC.DESIGN._xscale);
MC.BUTTON._y = MC.DESIGN._y;
this.SoundPlay("button", 50);
}
}
Symbol 148 Button
on (release) {
getURL ("http://www.game24.co.kr", "_self", "GET");
}
Symbol 153 MovieClip Frame 1
this.stop();
function getFrame(MC) {
var _local1 = this;
f++;
te = getTimer();
t = te - ts;
if (t >= 1000) {
if (_local1._currentframe == 1) {
_local1.frametxt = "";
} else {
_local1.frametxt = f;
}
f = 0;
ts = te;
}
}
function checkKey() {
var _local2 = this;
var _local1 = Key.getAscii();
if (Key.isDown(16) && ((_local1 == 86) || (_local1 == 118))) {
if (_local2._currentframe == 1) {
_local2.gotoAndStop(2);
} else {
_local2.gotoAndStop(1);
}
}
}
f = 0;
ts = getTimer();
Symbol 157 Button
on (release) {
var domain = "http://www.game24.co.kr";
getURL (domain, "_blank", "GET");
}
Symbol 158 MovieClip Frame 1
this.stop();