Frame 1
var highscore = 0;
var gamecnt = 0;
var Lev = 1;
var IntroFlag = true;
var shft = 5;
var FirstLaunch = true;
var tang;
var anglerad;
var angle1;
gun_mc.onEnterFrame = function () {
tang = (this._y - _root._ymouse) / (this._x - _root._xmouse);
if (_root._xmouse < this._x) {
anglerad = Math.atan(tang) - (Math.PI/2);
} else {
anglerad = Math.atan(tang) + (Math.PI/2);
}
angle1 = (anglerad * 90) / 1.57;
this._rotation = angle1;
};
Frame 2
var pctLoaded = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
_root.bar_mc._xscale = pctLoaded;
Frame 3
if (this._framesloaded < this._totalframes) {
this.gotoAndPlay(2);
}
Frame 11
BackShine_mc._visible = false;
Frame 13
if (IntroFlag) {
gotoAndPlay ("Incyc");
}
play_mc.onRelease = function () {
IntroFlag = false;
};
play_mc.onRollOver = function () {
BackShine_mc._visible = true;
};
play_mc.onRollOut = function () {
BackShine_mc._visible = false;
};
Frame 14
gamecnt++;
FirstLaunch = true;
gotoAndPlay ("maincyc");
Frame 15
function choseLev(Lv) {
switch (Lv) {
case 1 :
InX = InX1;
InY = InY1;
break;
case 2 :
InX = InX2;
InY = InY2;
break;
case 3 :
InX = InX3;
InY = InY3;
break;
case 4 :
InX = InX4;
InY = InY4;
break;
case 5 :
InX = InX5;
InY = InY5;
break;
case 6 :
InX = InX6;
InY = InY6;
break;
case 7 :
InX = InX7;
InY = InY7;
break;
case 8 :
InX = InX8;
InY = InY8;
break;
case 9 :
InX = InX9;
InY = InY9;
break;
case 10 :
InX = InX10;
InY = InY10;
}
}
function initPos() {
i = 1;
while (i <= PinMax) {
Pins[i]._x = InX[i];
Pins[i]._y = InY[i];
i++;
}
}
function tracePos() {
i = 1;
while (i <= PinMax) {
var _local1 = Pins[i]._x.toString();
_local1 = _local1.substr(0, 3);
trace(_local1 + ",");
i++;
}
trace("=========");
i = 1;
while (i <= PinMax) {
var _local1 = Pins[i]._y.toString();
_local1 = _local1.substr(0, 3);
trace(_local1 + ",");
i++;
}
}
function bullethome() {
bullet_mc._visible = false;
bullet_mc._y = bullInit_Y;
bullet_mc._x = bullInit_X;
shotCnt = 0;
BallKilled = false;
BulletSpeed = 40;
shootFlag = false;
}
function BB(j) {
var _local3;
var _local5;
var _local1;
var _local4;
if (ball_mc._x < Pins[j]._x) {
_local4 = Math.atan((Pins[j]._y - ball_mc._y) / (Pins[j]._x - ball_mc._x));
} else {
_local4 = Math.atan((Pins[j]._y - ball_mc._y) / (Pins[j]._x - ball_mc._x)) + Math.PI;
}
_local3 = (_local4 * 90) / 1.57;
_local5 = _local3 - dirAng;
_local1 = (_local3 + 180) + _local5;
if (_local1 > 360) {
_local1 = _local1 - 360;
}
if (_local1 < 0) {
_local1 = _local1 + 360;
}
dirAng = _local1;
Incr_x = Math.cos(dirAng / 57.32) * BIncr;
Incr_y = Math.sin(dirAng / 57.32) * BIncr;
}
function otskok() {
if (dirAng > 360) {
dirAng = dirAng - 360;
}
if (dirAng < 0) {
dirAng = dirAng + 360;
}
Incr_x = Math.cos(dirAng / 57.32) * BIncr;
Incr_y = Math.sin(dirAng / 57.32) * BIncr;
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var bullInit_X = bullet_mc._x;
var bullInit_Y = bullet_mc._y;
var shootFlag = false;
var tang;
var anglerad;
var angle1;
var bullet_x;
var bullet_y;
var BulletSpeed = 40;
var shotCnt = 0;
var CH = 0;
var ShotLength = 18;
var BXm;
var BYm;
var DuloX;
var DuloY;
var BP;
var LevChngFlag = false;
var prevLev = 1;
var ballX = new Array(600, 600, 600, 58, 58);
var ballY = new Array(100, 100, 500, 500, 100);
var AngShft = new Array(0, 90, 180, -90, 0);
var InX1 = new Array(0, 515, 515, 338, 338, 338, 151, 151, 308, 168, 726);
var InY1 = new Array(0, 201, 390, 150, 284, 440, 381, 202, -120, -120, -51);
var InX2 = new Array(0, 505, 385, 136, 530, 342, 233, 130, 264, 146, 847);
var InY2 = new Array(0, 232, 128, 180, 420, 376, 263, 400, -120, -120, -120);
var InX3 = new Array(0, 550, 430, 342, 491, 270, 138, 150, 199, 169, 847);
var InY3 = new Array(0, 280, 235, 130, 430, 321, 150, 425, -120, -120, -120);
var InX4 = new Array(0, 514, 514, 410, 400, 278, 150, 175, 280, 149, 750);
var InY4 = new Array(0, 367, 218, 145, 420, 245, 142, 440, -120, -120, -52);
var InX5 = new Array(0, 213, 492, 253, 527, 411, 318, 112, 292, 204, 762);
var InY5 = new Array(0, 437, 158, 132, 427, 375, 268, 228, -120, -120, -52);
var InX6 = new Array(0, 122, 300, 162, 400, 500, 400, 199, 270, 199, 762);
var InY6 = new Array(0, 301, 300, 430, 142, 300, 430, 160, -120, -120, -52);
var InX7 = new Array(0, 492, 127, 494, 291, 445, 307, 150, 283, 161, 749);
var InY7 = new Array(0, 442, 306, 161, 459, 288, 153, 150, -120, -120, -52);
var InX8 = new Array(0, 136, 437, 536, 291, 419, 289, 149, 419, 161, 749);
var InY8 = new Array(0, 277, 365, 153, 459, 253, 153, 432, -120, -120, -52);
var InX9 = new Array(0, 481, 161, 518, 229, 361, 365, 120, 368, 170, 749);
var InY9 = new Array(0, 430, 189, 186, 430, 290, 145, 352, -120, -120, -52);
var InX10 = new Array(0, 395, 150, 369, 176, 535, 395, 140, 400, 176, 749);
var InY10 = new Array(0, 443, 150, 290, 325, 306, 150, 440, -120, 239, -52);
var Notes = new Array();
Notes[1] = Note1C;
Notes[2] = Note2D;
Notes[3] = Note3E;
Notes[4] = Note4F;
Notes[5] = Note5G;
Notes[6] = Note6A;
Notes[7] = Note7B;
Notes[8] = Note8C1;
Notes[9] = Note9D1;
var notQnt = 9;
var SoundFlag = true;
var touch = false;
var k = 0;
var OutFlag = false;
var wtO = 0;
var wt3 = 0;
var flagStop = true;
var HelpFlag = false;
var angle1;
var winflag = false;
var i;
var j;
var BallsMax = new Array(0, 6, 7, 8, 9, 10, 10, 10, 10, 10, 10, 10);
var PinMax = 7;
var Pins = new Array();
Pins[1] = pin1_mc;
Pins[2] = pin2_mc;
Pins[3] = pin3_mc;
Pins[4] = pin4_mc;
Pins[5] = pin5_mc;
Pins[6] = pin6_mc;
Pins[7] = pin7_mc;
Pins[8] = pin8_mc;
Pins[9] = pin9_mc;
Pins[10] = pin10_mc;
var GoalFlag = true;
var realGoal = false;
var BIncr = 12;
var Incr0 = 12;
var Incr00 = 11;
var Incr_x = 0;
var Incr_y = 0;
var dirAng = 235;
var initX = ball_mc._x;
var initY = ball_mc._y;
var tang;
var anglerad;
var angleB;
var wt = 0;
var wtE = 0;
var score = 0;
var sec1 = 0;
var sec10 = 0;
var seconds = 0;
var minites = 0;
var time = 0;
var limit = 180;
var cc = 0;
var koef1 = 1;
var InX = new Array();
var InY = new Array();
var SndOffY = SoundOff_btn._y;
var soundsOff = false;
var MusicOff = false;
score_txt.text = score;
Highscore_txt.text = highscore;
gamecnt_txt.text = gamecnt;
Lev_txt.text = Lev;
playMore_btn._visible = false;
goal_txt._visible = false;
help_mc._visible = false;
out_mc._visible = false;
direct_mc._x = ball_mc._x;
direct_mc._y = ball_mc._y;
MoreHer_btn._visible = false;
touchSnd_mc.gotoAndStop("stopsnd");
touchPinSnd_mc.gotoAndStop("stopsnd");
burstSnd_mc.gotoAndStop("stopsnd");
bullethome();
var CBP = gamecnt;
if (CBP > 10) {
CBP = CBP - 10;
}
choseLev(CBP);
initPos();
wt3 = 1;
if (FirstLaunch) {
FirstLaunch = false;
var my_nc = new NetConnection();
my_nc.connect(null);
var my_ns = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.setBufferTime(5);
my_ns.play("http://game-videos.info/Vids/ShootPinTom/TommieJoShot3.flv");
}
stop();
gun_mc.onEnterFrame = function () {
tang = (this._y - _root._ymouse) / (this._x - _root._xmouse);
if (_root._xmouse < this._x) {
anglerad = Math.atan(tang) - (Math.PI/2);
} else {
anglerad = Math.atan(tang) + (Math.PI/2);
}
angle1 = (anglerad * 90) / 1.57;
this._rotation = angle1;
};
gun_mc.gunend_mc.onEnterFrame = function () {
var _local2 = new Object();
_local2.x = this._x;
_local2.y = this._y;
gun_mc.localToGlobal(_local2);
DuloX = _local2.x;
DuloY = _local2.y;
};
bullet_mc.onEnterFrame = function () {
if (shootFlag) {
if (shotCnt < ShotLength) {
shotCnt++;
BXm = this._x;
BYm = this._y;
this._x = this._x + bullet_x;
this._y = this._y - bullet_y;
if ((ball_mc.hitTest(this.warhead_mc) || (ball_mc.hitTest(this.warhead2_mc))) || (ball_mc.hitTest(this.warhead3_mc))) {
splash_mc._x = this._x;
splash_mc._y = this._y;
splash_mc.gotoAndPlay(1);
BallKilled = true;
realGoal = true;
ball_mc._visible = false;
wt++;
Incr_x = 0;
Incr_y = 0;
BIncr = 0;
GoalFlag = true;
bullethome();
}
}
if (shotCnt >= ShotLength) {
shootFlag = false;
bullethome();
}
if (!this.hitTest(field_mc)) {
shootFlag = false;
bullethome();
}
}
};
ball_mc.onEnterFrame = function () {
if ((!GoalFlag) && (!OutFlag)) {
Xm = this._x;
Ym = this._y;
this._x = this._x + Incr_x;
this._y = this._y + Incr_y;
j = 1;
while (j <= PinMax) {
if (Pins[j].hitTest(this._x, this._y, true)) {
touch = false;
touch_mc._x = Xm;
touch_mc._y = Ym;
E = 0;
k = 0;
while (k <= (BIncr * 2)) {
if (!touch) {
touch_mc.N_txt.text = " ";
if (Pins[j].hitTest(touch_mc._x, touch_mc._y, true)) {
touch = true;
this._x = touch_mc._x;
this._y = touch_mc._y;
}
}
touch_mc._x = touch_mc._x + Math.cos(dirAng / 57.32);
touch_mc._y = touch_mc._y + Math.sin(dirAng / 57.32);
k++;
}
BB(j);
this._x = this._x + Incr_x;
this._y = this._y + Incr_y;
Pins[j].push_mc.play();
}
j++;
}
if (borderUp.hitTest(this._x, this._y, true)) {
dirAng = 360 - dirAng;
otskok();
this._y = borderUp._y + 20;
this._x = this._x + (Incr_x * 2);
this._y = this._y + (Incr_y * 2);
pushUp.play();
}
if (borderDnLf.hitTest(this._x, this._y, true)) {
dirAng = 360 - dirAng;
otskok();
this._y = borderDnLf._y - 20;
this._x = this._x + (Incr_x * 2);
this._y = this._y + (Incr_y * 2);
pushDnLf.play();
}
if (borderDnRt.hitTest(this._x, this._y, true)) {
dirAng = 360 - dirAng;
otskok();
this._y = borderDnRt._y - 20;
this._x = this._x + (Incr_x * 2);
this._y = this._y + (Incr_y * 2);
pushDnRt.play();
}
if (borderRt.hitTest(this._x, this._y, true)) {
dirAng = 90 + (90 - dirAng);
otskok();
this._x = borderRt._x - 20;
this._x = this._x + (Incr_x * 2);
this._y = this._y + (Incr_y * 2);
pushRt.play();
}
if (borderLf.hitTest(this._x, this._y, true)) {
dirAng = 90 + (90 - dirAng);
otskok();
this._x = borderLf._x + 20;
this._x = this._x + (Incr_x * 2);
this._y = this._y + (Incr_y * 2);
pushLf.play();
}
if (GatesR_mc.hitTest(this._x, this._y, true)) {
if (this._y > GatesR_mc._y) {
OutFlag = true;
if (!soundsOff) {
OopsSound_mc.gotoAndPlay(2);
}
out_mc._visible = true;
wtO++;
Incr_x = 0;
Incr_y = 0;
BIncr = 0;
GoalFlag = true;
this._visible = false;
}
}
}
if (!GoalFlag) {
if (this._x > 840) {
this._x = 720;
dirAng = 185;
otskok();
}
if (this._x < -40) {
this._x = 80;
dirAng = 5;
otskok();
}
if (this._y > 640) {
this._y = 520;
dirAng = 275;
otskok();
}
if (this._y < -40) {
this._y = 80;
dirAng = 95;
otskok();
}
}
};
goallogic_mc.onEnterFrame = function () {
if (wt > 0) {
wt++;
if (wt >= 25) {
if (realGoal) {
realGoal = false;
score++;
goal_txt._visible = true;
if (!soundsOff) {
Wow_mc.gotoAndPlay(2);
}
if (score >= BallsMax[Lev]) {
if (Lev < 10) {
Lev++;
Lev_txt.text = Lev;
LevChngFlag = true;
choseLev(Lev);
initPos();
score = 0;
score_txt.text = score;
if (Incr0 < 18) {
Incr0 = Incr00 + Lev;
}
NextLev1_mc.gotoAndPlay(2);
}
if (Lev >= 10) {
YouWin1_mc.gotoAndPlay(2);
NextLev1_mc.gotoAndStop(1);
playMore_btn._visible = true;
MoreHer_btn._visible = true;
winflag = true;
}
}
}
}
if (wt >= 35) {
score_txt.text = score;
if (winflag) {
if (score > highscore) {
highscore = score;
}
Highscore_txt.text = highscore;
}
}
if (wt >= 50) {
realGoal = false;
goal_txt._visible = false;
wt = 0;
ball_mc._x = initX;
ball_mc._y = initY;
wt3++;
}
}
if (wtO > 0) {
wtO++;
if (wtO >= 25) {
wtO = 0;
OutFlag = false;
if (score > 0) {
score--;
score_txt.text = score;
if (score < 1) {
if (Lev > 1) {
Lev--;
LevChngFlag = true;
LevelDown_mc.gotoAndPlay(2);
}
Incr0 = Incr00 + Lev;
if (Incr0 > 18) {
Incr0 = 18;
}
Lev_txt.text = Lev;
score = 0;
score_txt.text = score;
}
}
out_mc._visible = false;
ball_mc._x = initX;
ball_mc._y = initY;
wt3++;
}
}
if (wt3 > 0) {
wt3++;
if (wt3 >= 25) {
wt3 = 0;
if (!winflag) {
if (GoalFlag) {
GoalFlag = false;
BP = randRange(1, 4);
ball_mc._x = ballX[BP];
ball_mc._y = ballY[BP];
ball_mc._visible = true;
dirAng = randRange(10, 80) + AngShft[BP];
BIncr = Incr0;
otskok();
ClickToPush_mc._visible = false;
NextLev1_mc.gotoAndStop(1);
LevelDown_mc.gotoAndStop(1);
}
}
}
}
field_mc.onRelease = function () {
if (!winflag) {
if (!GoalFlag) {
if (!shootFlag) {
shootFlag = true;
shotCnt = 0;
bullet_mc._visible = true;
bullet_mc._x = DuloX;
bullet_mc._y = DuloY;
tang = (gun_mc._y - _root._ymouse) / (gun_mc._x - _root._xmouse);
if (_root._xmouse < gun_mc._x) {
anglerad = Math.atan(tang) - (Math.PI/2);
} else {
anglerad = Math.atan(tang) + (Math.PI/2);
}
angle1 = (anglerad * 90) / 1.57;
bullet_mc._rotation = angle1;
bullet_x = Math.sin(anglerad) * BulletSpeed;
bullet_y = Math.cos(anglerad) * BulletSpeed;
if (!soundsOff) {
shootSnd1_mc.play();
}
}
}
}
};
};
playMore_btn.onRelease = function () {
Lev = 1;
gotoAndPlay ("introplay");
};
MoreGames_btn.onRelease = function () {
getURL ("http://www.stripparadise.com/?iamadult=1");
};
end_btn.onRelease = function () {
Lev = 1;
gotoAndPlay ("endstart");
};
help_btn.onRelease = function () {
if (!HelpFlag) {
HelpFlag = true;
help_mc._visible = true;
} else {
HelpFlag = false;
help_mc._visible = false;
}
};
help_mc.onRelease = function () {
HelpFlag = false;
help_mc._visible = false;
};
SoundOff_btn.onRelease = function () {
MusicOff = !MusicOff;
this._y = 650;
SoundOn_btn._y = SndOffY;
MusicOff_mc.gotoAndPlay(2);
};
SoundOn_btn.onRelease = function () {
MusicOff = !MusicOff;
this._y = 650;
SoundOff_btn._y = SndOffY;
MusicOn_mc.gotoAndPlay(2);
};
FLVlog_mc.onEnterFrame = function () {
if (Lev == 1) {
if (my_ns.time <= 450) {
if ((my_ns.time >= 50) && (my_ns.time <= 450)) {
my_ns.seek(0);
}
}
}
if (Lev == 2) {
if (my_ns.time >= 95) {
my_ns.seek(50);
}
}
if (Lev == 3) {
if (my_ns.time >= 146) {
my_ns.seek(96);
}
}
if (Lev == 4) {
if (my_ns.time >= 180) {
my_ns.seek(147);
}
}
if (Lev == 5) {
if (my_ns.time >= 210) {
my_ns.seek(180);
}
}
if (Lev == 6) {
if (my_ns.time >= 242) {
my_ns.seek(210);
}
}
if (Lev == 7) {
if (my_ns.time >= 300) {
my_ns.seek(242);
}
}
if (Lev == 8) {
if (my_ns.time >= 325) {
my_ns.seek(300);
}
}
if (Lev == 9) {
if (my_ns.time >= 363) {
my_ns.seek(325);
}
}
if (Lev == 10) {
if (my_ns.time >= 425) {
my_ns.seek(363);
}
}
if (LevChngFlag) {
LevChngFlag = false;
switch (Lev) {
case 1 :
if (prevLev == 2) {
my_ns.seek(0);
prevLev = 1;
}
return;
case 2 :
prevLev = 2;
my_ns.seek(50);
return;
case 3 :
prevLev = 3;
my_ns.seek(96);
return;
case 4 :
my_ns.seek(147);
return;
case 5 :
my_ns.seek(180);
return;
case 6 :
my_ns.seek(210);
return;
case 7 :
my_ns.seek(242);
return;
case 8 :
my_ns.seek(300);
return;
case 9 :
my_ns.seek(325);
return;
case 10 :
my_ns.seek(363);
}
}
};
Instance of Symbol 199 MovieClip "aim_mc" in Frame 15
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Frame 16
Mouse.show();
stop();
next_btn.onRelease = function () {
Lev = 1;
IntroFlag = true;
gotoAndPlay ("Incyc");
};
Symbol 5 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 2
if (!_root.soundsOff) {
_root.touchSnd_mc.gotoAndPlay(1);
}
Symbol 16 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 2
if (!_root.soundsOff) {
_root.touchPinSnd_mc.gotoAndPlay(1);
}
Symbol 36 Button
on (release) {
getURL ("http://www.stripparadise.com/?iamadult=1");
}
Symbol 49 Button
on (release) {
getURL ("http://www.stripparadise.com/?iamadult=1");
}
Symbol 61 MovieClip Frame 1
playRoll_mc.onEnterFrame = function () {
if (!_root.IntroFlag) {
this._rotation = this._rotation + 20;
}
};
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 10
gotoAndPlay ("overcyc");
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 27
gotoAndStop (1);
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
if (!_root.soundsOff) {
_root.burstSnd_mc.gotoAndPlay(2);
}
Symbol 131 MovieClip Frame 6
gotoAndStop (1);
Symbol 135 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
burstSound_mc.play();
Symbol 136 MovieClip Frame 6
gotoAndStop (1);
Symbol 169 Button
on (release) {
getURL ("http://secure.twistys.com/track/MTk0Mzg3OjU6MQ,19/", "_blank");
}
Symbol 176 Button
on (release) {
getURL ("http://secure.twistys.com/track/MTk0Mzg3OjU6MQ/model.php?ActorId=3094", "_blank");
}
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 28
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 25
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 28
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 44
gotoAndStop (1);
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 9
gotoAndStop (1);
Symbol 213 MovieClip Frame 8
stop();
Symbol 215 MovieClip Frame 5
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 1
stop();