Combined Code
frame 1 {
var LEVEL = 1;
var VICTORYflag = false;
var picN = 0;
var Spd = 4;
var SpdFast = 10;
var SpdHard = 4;
var SpdEasy = 3;
var rotInc = 0.7;
var rotInc2 = 1;
var BIncr = 12;
var BIncrInit = 12;
var EasyHard = 2;
var introflag = true;
var Stg = 1;
var TEST = false;
var gamecnt = 0;
var differscoreNew = 0;
var differscoreOld = 0;
var highscore2 = 0;
var highscore1 = 0;
var moreFlag = false;
var Xspeed = 10;
var incrmax = 14;
var i;
var SPORT = 1;
var SportsFlag = new Array(6);
var BtnsArr = new Array(6);
var CrclsArr = new Array(6);
BtnsArr[1] = VolleyBall_btn;
BtnsArr[2] = VolleyNet_btn;
BtnsArr[3] = VolleyPin_btn;
BtnsArr[4] = Volley2balls_btn;
BtnsArr[5] = Basketball_btn;
CrclsArr[1] = CrlChs1_mc;
CrclsArr[2] = CrlChs2_mc;
CrclsArr[3] = CrlChs3_mc;
CrclsArr[4] = CrlChs4_mc;
CrclsArr[5] = CrlChs5_mc;
i = 1;
while (i <= 5) {
SportsFlag[i] = false;
BtnsArr[i]._visible = false;
CrclsArr[i]._visible = false;
CrclsArr[i].SpN_txt.text = i;
++i;
}
help_mc._visible = false;
}
frame 1 {
LoadLine_mc.setMask(LoadMask_mc);
var X_start = LoadMask_mc._x;
var frmsLoaded;
var darkOff = true;
GamcoreLink_mc.onRelease = function () {
getURL('http://gamcore.com', '_blank');
};
ShadePreload_mc.onEnterFrame = function () {
if (darkOff) {
if (this._alpha > 70) {
--this._alpha;
} else {
darkOff = false;
}
} else {
if (this._alpha < 100) {
++this._alpha;
} else {
darkOff = true;
}
}
};
}
movieClip 5 {
}
movieClip 8 {
}
// unknown tag 88 length 138
// unknown tag 88 length 143
// unknown tag 88 length 51
movieClip 34 {
}
movieClip 35 {
}
// unknown tag 88 length 171
// unknown tag 88 length 120
movieClip 48 {
}
movieClip 50 {
}
// unknown tag 88 length 86
movieClip 54 {
}
movieClip 57 {
}
movieClip 58 {
frame 1 {
var i;
var cc = 0;
var sec = 0;
var intvl = 5;
var crnt = 0;
var advsLim = 12;
var AdvArr = new Array(14);
var URLsArr = new Array(14);
var AdsTexts = new Array();
var StrngTmp = new String();
var httpN;
var adN;
advSponsored_mc._visible = false;
advSponsored_mc.onRelease = function () {
getURL(URLsArr[crnt], '_blank');
};
advGamcore_mc.onRelease = function () {
getURL('http://gamcore.com', '_blank');
};
RedString_mc.onEnterFrame = function () {
++cc;
if (cc >= 25) {
cc = 0;
++sec;
if (sec >= intvl) {
sec = 0;
++crnt;
if (crnt >= advsLim) {
crnt = 0;
}
advSponsored_mc.advString_txt.text = AdvArr[crnt];
}
}
};
var reviews_xml = new XML();
reviews_xml.ignoreWhite = true;
reviews_xml.onLoad = function (success) {
if (success) {
AdsTexts = reviews_xml.firstChild.childNodes;
i = 0;
while (i < AdsTexts.length) {
AdvArr[i] = AdsTexts[i].firstChild.nodeValue;
StrngTmp = AdsTexts[i].toString();
httpN = StrngTmp.indexOf('http');
adN = StrngTmp.indexOf('>') - 1;
URLsArr[i] = StrngTmp.substring(httpN, adN);
++i;
}
advSponsored_mc.advString_txt.text = AdvArr[crnt];
advSponsored_mc._visible = true;
} else {}
};
reviews_xml.load('http://zazzybabes.com/misc/adverts.xml');
}
}
movieClip 60 {
}
movieClip 65 {
}
movieClip 67 {
}
movieClip 69 {
}
movieClip 72 {
}
frame 2 {
frmsLoaded = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
LoadMask_mc._x = X_start + 1.45 * frmsLoaded;
procLoad_txt.text = 'loading ' + frmsLoaded + '%';
}
frame 3 {
if (this._framesloaded < this._totalframes) {
this.gotoAndPlay(2);
}
}
frame 4 {
stop();
LoadMask_mc._x = X_start + 145;
procLoad_txt.text = 'loading 100%';
PlayGamcore_btn.onRelease = function () {
play();
};
}
frame 13 {
introflag = true;
play_btn._visible = false;
help_mc._visible = false;
ChoseSport_mc._visible = true;
Award_btn._visible = false;
i = 1;
while (i <= 5) {
BtnsArr[i]._visible = true;
CrclsArr[i]._visible = true;
CrclsArr[i].SpN_txt.text = i;
CrclsArr[i].Gal_mc._visible = SportsFlag[i];
if (SportsFlag[i]) {
BtnsArr[i]._alpha = 20;
} else {
BtnsArr[i]._alpha = 100;
}
++i;
}
if (SportsFlag[1] && SportsFlag[2] && SportsFlag[3] && SportsFlag[4] && SportsFlag[5]) {
VICTORYflag = true;
}
if (VICTORYflag) {
Award_btn._visible = true;
}
Award_btn.onRelease = function () {
gotoAndPlay('awardPlay');
};
}
movieClip 87 {
}
movieClip 89 {
}
movieClip 109 {
}
frame 15 {
if (introflag) {
gotoAndPlay('chooseCyc');
}
play_btn.onRelease = function () {
introflag = false;
i = 1;
while (i <= 5) {
BtnsArr[i]._visible = false;
++i;
}
BtnsArr[SPORT]._visible = true;
};
help_btn.onRelease = function () {
help_mc._visible = !help_mc._visible;
Pause_Flag = !Pause_Flag;
};
help_mc.onRelease = function () {
help_mc._visible = false;
Pause_Flag = false;
};
VolleyBall_btn.onRelease = function () {
SPORT = 1;
VolleyNet_btn._visible = false;
VolleyPin_btn._visible = false;
Volley2balls_btn._visible = false;
Basketball_btn._visible = false;
play_btn._visible = true;
ChoseSport_mc._visible = false;
introflag = false;
};
VolleyNet_btn.onRelease = function () {
SPORT = 2;
VolleyBall_btn._visible = false;
VolleyPin_btn._visible = false;
Volley2balls_btn._visible = false;
Basketball_btn._visible = false;
play_btn._visible = true;
ChoseSport_mc._visible = false;
introflag = false;
};
VolleyPin_btn.onRelease = function () {
SPORT = 3;
VolleyBall_btn._visible = false;
VolleyNet_btn._visible = false;
Volley2balls_btn._visible = false;
Basketball_btn._visible = false;
play_btn._visible = true;
ChoseSport_mc._visible = false;
introflag = false;
};
Volley2balls_btn.onRelease = function () {
SPORT = 4;
VolleyBall_btn._visible = false;
VolleyNet_btn._visible = false;
VolleyPin_btn._visible = false;
Basketball_btn._visible = false;
play_btn._visible = true;
ChoseSport_mc._visible = false;
introflag = false;
};
Basketball_btn.onRelease = function () {
SPORT = 5;
VolleyBall_btn._visible = false;
VolleyNet_btn._visible = false;
VolleyPin_btn._visible = false;
Volley2balls_btn._visible = false;
play_btn._visible = true;
ChoseSport_mc._visible = false;
introflag = false;
};
}
frame 46 {
function initset() {
i = 1;
while (i <= pixQ) {
GirlsPix[i]._visible = false;
++i;
}
i = 0;
while (i <= 10) {
ChkFrmsArr[i] = 0;
++i;
}
i = 1;
while (i <= PinMax) {
Pins[i]._visible = false;
++i;
}
BorderUp_mc._visible = false;
pushUp._visible = false;
BasketFront_mc._visible = false;
Basket_mc._visible = false;
RingBasketCopy_mc._visible = false;
filedBtn_mc._visible = false;
net_mc._visible = false;
kasat_mc._visible = false;
batL_mc._x = BatLXint;
GXlimL = GXlimLInt;
GXlimR = GXlimRInt;
batDn_mc._visible = false;
batDn_mc._y = 880;
CenterX = Girl_mc._x;
ball2_mc._visible = false;
ball2_mc._x = 880;
BIncr = BIncrInit;
help_mc._visible = false;
playMore_btn._visible = false;
MoreSports_btn._visible = false;
Next_btn._visible = false;
CheckAward_btn._visible = false;
CatchBallTXT_mc._visible = false;
BIncr = 12;
wt = 0;
wtPic = 0;
ShowPicFlag = false;
goal_flag = true;
winflag = false;
goal_txt._visible = false;
BallPlay_mc = ball_mc;
BallPlay_mc._x = IntBallX;
BallPlay_mc._y = IntBallY;
BallPlay_mc.gotoAndStop('rollstop');
basketball_mc._x = 880;
dirAngle = randRange(0, 180);
Bincr_x = Math.cos(dirAngle / 57.32) * BIncr;
Bincr_y = Math.sin(dirAngle / 57.32) * BIncr;
BstComp_txt.text = highscore1;
BstYou_txt.text = highscore2;
time = 0;
minutesLeft = Math.floor(limit / 60);
minute_txt.text = minutesLeft;
seconds_prnt = '30';
secondsLeft = limit % 60;
seconds_txt.text = seconds_prnt;
score1 = 0;
score1_txt.text = score1;
score2 = 0;
score2_txt.text = score2;
GameCnt_txt.text = gamecnt;
YouWin_txt._visible = false;
YouLose_txt._visible = false;
OopsSound_mc.gotoAndStop('StopSound');
UraGoal_mc.gotoAndStop('lusastop');
touchNet = false;
switch (SPORT) {
case 1:
Level_txt.text = 'VOLLEYBALL 2x1';
incrmax = 12;
break;
case 2:
Level_txt.text = 'VOLLEYBALL(net)';
net_mc._visible = true;
batL_mc._x = -100;
Girl_mc._x = 200;
GXlimL = GXlimLNet;
GXlimR = GXlimNet;
batDn_mc._visible = true;
batDn_mc._y = BatDnYInt;
CenterX = 200;
incrmax = 6;
break;
case 3:
Level_txt.text = 'VOLLEY-PINBALL';
i = 1;
while (i <= PinMax) {
Pins[i]._visible = true;
++i;
}
BorderUp_mc._visible = true;
pushUp._visible = true;
incrmax = 11;
break;
case 4:
Level_txt.text = 'VOLLEYBALL 2 balls';
ball2_mc._visible = true;
ball2_mc._x = IntBallX4_2;
ball2_mc._y = IntBallY;
BallPlay_mc._x = IntBallX4;
BallPlay_mc._y = IntBallY;
BIncr = BIncrInit * 0.75;
ball2_mc.gotoAndStop('rollstop');
dirAngle2 = randRange(0, 30);
Chance = randRange(1, 100);
if (Chance < 50) {
dirAngle2 = 180 - dirAngle2;
}
Bincr2_x = Math.cos(dirAngle2 / 57.32) * BIncr;
Bincr2_y = Math.sin(dirAngle2 / 57.32) * BIncr;
incrmax = 18;
break;
case 5:
Level_txt.text = 'BASKETBALL';
CatchBallTXT_mc._visible = true;
BallPlay_mc = basketball_mc;
BallPlay_mc._x = IntBallX;
BallPlay_mc._y = IntBallY;
ball_mc._x = 880;
BallPlay_mc.gotoAndStop('rolleft');
BasketFront_mc._visible = true;
Basket_mc._visible = true;
RingBasketCopy_mc._visible = true;
filedBtn_mc._visible = true;
incrmax = 10;
}
++wt1;
}
function definAngle() {
Mem2X = BallPlay_mc._x;
Mem2Y = BallPlay_mc._y;
dx = MemX - Mem2X;
dy = Mem2Y - MemY;
if (MemX < Mem2X) {
dirAngRad = -Math.atan(dy / dx);
} else {
dirAngRad = -Math.atan(dy / dx) + Math.PI;
}
dirAngle = dirAngRad * 90 / 1.57;
dirAngle = AngleTo360(dirAngle);
}
function BB(b) {
var v1 = 0;
var v3 = 1;
var v4 = 60;
if (b == 1) {
v3 = -1;
v1 = 0;
if (SPORT == 5) {
v1 = 0.5;
}
}
if (b == 2) {
v3 = 1;
v1 = 0;
if (SPORT == 5) {
v1 = 0.5;
}
}
if (b == 3) {
v3 = 0;
v1 = 1;
}
if (b == 4) {
v3 = 0;
v1 = 1;
}
dx = MemX - Mem2X;
dy = Mem2Y - MemY;
if (MemX < Mem2X) {
dirAngRad = -Math.atan(dy / dx);
} else {
dirAngRad = -Math.atan(dy / dx) + Math.PI;
}
dirAngle = dirAngRad * 90 / 1.57;
dirAngle = AngleTo360(dirAngle);
if (BallPlay_mc._x < Bats[b]._x) {
alfarad = Math.atan((Bats[b]._y + v4 * v1 - BallPlay_mc._y) / (Bats[b]._x + v4 * v3 - BallPlay_mc._x));
} else {
alfarad = Math.atan((Bats[b]._y + v4 * v1 - BallPlay_mc._y) / (Bats[b]._x + v4 * v3 - BallPlay_mc._x)) - Math.PI;
}
alfa = alfarad * 90 / 1.57;
if (dirAngle < 0) {
dirAngle = -dirAngle;
}
Gamma = alfa - dirAngle;
Beta = alfa + 180 + Gamma;
if (Beta > 360) {
Beta -= 360;
}
if (Beta < 0) {
Beta += 360;
}
dirAngle = Beta;
dirAngle = AngleTo360(dirAngle);
kasatelnaya();
Bincr_x = Math.cos(dirAngle / 57.32) * BIncr;
Bincr_y = Math.sin(dirAngle / 57.32) * BIncr;
}
function BB2(b) {
var v2 = 0;
var v3 = 1;
var v4 = 60;
if (b == 1) {
v3 = -1;
v2 = 0;
}
if (b == 2) {
v3 = 1;
v2 = 0;
}
if (b == 3) {
v3 = 0;
v2 = 1;
}
if (b == 4) {
v3 = 0;
v2 = 1;
}
dx = MemX2 - Mem2X2;
dy = Mem2Y2 - MemY2;
if (MemX2 < Mem2X2) {
dirAngRad = -Math.atan(dy / dx);
} else {
dirAngRad = -Math.atan(dy / dx) + Math.PI;
}
dirAngle2 = dirAngRad * 90 / 1.57;
dirAngle2 = AngleTo360(dirAngle2);
if (ball2_mc._x < Bats[b]._x) {
alfarad = Math.atan((Bats[b]._y + v4 * v2 - ball2_mc._y) / (Bats[b]._x + v4 * v3 - ball2_mc._x));
} else {
alfarad = Math.atan((Bats[b]._y + v4 * v2 - ball2_mc._y) / (Bats[b]._x + v4 * v3 - ball2_mc._x)) - Math.PI;
}
alfa = alfarad * 90 / 1.57;
if (dirAngle2 < 0) {
dirAngle2 = -dirAngle2;
}
Gamma = alfa - dirAngle2;
Beta = alfa + 180 + Gamma;
if (Beta > 360) {
Beta -= 360;
}
if (Beta < 0) {
Beta += 360;
}
dirAngle2 = Beta;
dirAngle2 = AngleTo360(dirAngle2);
kasatelnaya();
Bincr2_x = Math.cos(dirAngle2 / 57.32) * BIncr;
Bincr2_y = Math.sin(dirAngle2 / 57.32) * BIncr;
}
function AngleTo360(ang) {
dirAn_mc._rotation = ang;
ang = dirAn_mc._rotation;
return ang;
}
function otskok() {
if (!goal_flag) {
if (dirAngle > 360) {
dirAngle -= 360;
}
if (dirAngle < 0) {
dirAngle += 360;
}
Bincr_x = Math.cos(dirAngle / 57.32) * BIncr;
Bincr_y = Math.sin(dirAngle / 57.32) * BIncr;
kasatelnaya();
}
}
function kasatelnaya() {
kasat_mc._x = BallPlay_mc._x;
kasat_mc._y = BallPlay_mc._y;
kasat_mc._rotation = dirAngle;
}
function BBpin(j) {
var v3;
var v5;
var v1;
var v4;
dx = MemX - Mem2X;
dy = Mem2Y - MemY;
if (MemX < Mem2X) {
dirAngRad = -Math.atan(dy / dx);
} else {
dirAngRad = -Math.atan(dy / dx) + Math.PI;
}
dirAngle = dirAngRad * 90 / 1.57;
dirAngle = AngleTo360(dirAngle);
if (BallPlay_mc._x < Pins[j]._x) {
v4 = Math.atan((Pins[j]._y - BallPlay_mc._y) / (Pins[j]._x - BallPlay_mc._x));
} else {
v4 = Math.atan((Pins[j]._y - BallPlay_mc._y) / (Pins[j]._x - BallPlay_mc._x)) + Math.PI;
}
v3 = v4 * 90 / 1.57;
v5 = v3 - dirAngle;
v1 = v3 + 180 + v5;
if (v1 > 360) {
v1 -= 360;
}
if (v1 < 0) {
v1 += 360;
}
dirAngle = v1;
kasatelnaya();
Bincr_x = Math.cos(dirAngle / 57.32) * BIncr;
Bincr_y = Math.sin(dirAngle / 57.32) * BIncr;
}
function randRange(min, max) {
var v1 = Math.floor(Math.random() * (max - min + 1)) + min;
return v1;
}
var limit = 150;
var goal_flag = false;
var OutsQ = 5;
var Outs = new Array();
Outs[1] = outL_mc;
Outs[2] = outR_mc;
Outs[3] = outD_mc;
Outs[4] = outDLf_mc;
Outs[5] = outDRt_mc;
var DB = 34;
var OutN = 0;
var dirAngle = 50;
var alfarad = 0;
var alfa = 0;
var Beta = 0;
var Gamma;
var Tgx;
var Tgy;
var BetaRad;
var seconds = 0;
var minutes = 0;
var minutesLeft = Math.floor(limit / 60);
var secondsLeft = 30;
var seconds_prnt;
var time = 0;
var cc = 0;
var score1 = 0;
var score2 = 0;
var hitFlag = false;
var Bincr_x = -6;
var Bincr_y = -8;
var incrI_x = 6;
var incrI_y = -8;
var i;
var j;
var touch = false;
var k = 0;
var winflag = false;
var HelpFlag = false;
var coefI = 0.3;
var coef = coefI;
var myPoint = new Object();
var headX;
var headY;
var MemX;
var MemY;
var Mem2X;
var Mem2Y;
var dx;
var dy;
var hitBat1 = false;
var hitBat2 = false;
var hitBat3 = false;
var dirAngRad;
var LeftRight;
var GirlWait = true;
var Bats = new Array();
Bats[1] = batL_mc;
Bats[2] = batR_mc;
Bats[3] = batCopy_mc;
Bats[4] = batDn_mc;
var PinMax = 3;
var Pins = new Array();
Pins[1] = pin1_mc;
Pins[2] = pin2_mc;
Pins[3] = pin3_mc;
Pins[4] = RingBasketCopy_mc;
var LeftFramesArr = new Array(100);
var ChkFrmsArr = new Array(100);
var Xm;
var Ym;
var BdY;
var BskDX = 0;
var LeftFrames;
var p2incr;
var CenterX = Girl_mc._x;
var IntBallX = ball_mc._x;
var IntBallY = ball_mc._y;
var wt = 0;
var wt1 = 0;
var goalMeYou = 0;
var Pause_Flag = false;
var GoalBasket = 0;
var baskMoveFlg = false;
var MemBincrX = 0;
var MemBincrY = 0;
var whohit = 0;
var L_R_Chance = true;
var Chance;
var trueHit = true;
var BallCatchFlag = 0;
var batN = 1;
var touchNet = false;
var BatLXint = batL_mc._x;
var BatDnYInt = batDn_mc._y;
var GXlimRInt = 687;
var GXlimLInt = 86;
var GXlimLNet = 0;
var GXlimNet = 318;
var GXlimL = GXlimLInt;
var GXlimR = GXlimRInt;
var BtDnXL = 441;
var BtDnXR = 765;
var IntBallX4 = 277;
var IntBallX4_2 = 520;
var MemX2;
var MemY2;
var Mem2X2;
var Mem2Y2;
var X2m;
var Y2m;
var Bincr2_x;
var Bincr2_y;
var dirAngle2;
var comeFlag = new Array(3);
var BallEmpty_mc = new MovieClip();
var BallPlay_mc = new MovieClip();
var ballNum = 1;
var pixQ = 5;
var wtPic = 0;
var ShowPicFlag = false;
var GirlsPix = new Array(6);
GirlsPix[1] = NakedVoll1_mc;
GirlsPix[2] = NakedVoll2_mc;
GirlsPix[3] = NakedVoll3_mc;
GirlsPix[4] = NakedVoll4_mc;
GirlsPix[5] = NakedVoll5_mc;
i = 1;
while (i <= OutsQ) {
Outs[i]._visible = false;
++i;
}
SoundOn_btn._visible = false;
initset();
stop();
ball2_mc.onEnterFrame = function () {
if (SPORT == 4) {
if (!goal_flag) {
if (!Pause_Flag) {
MemX2 = this._x;
MemY2 = this._y;
X2m = this._x;
Y2m = this._y;
this._x += Bincr2_x;
this._y += Bincr2_y;
Bincr2_y += coef;
}
if (batR_mc.contact_mc.hitTest(ball2_mc)) {
Mem2X2 = ball2_mc._x;
Mem2Y2 = ball2_mc._y;
ball2_mc._x = this._x - DB / 2 - 10;
BB2(2);
ball2_mc._x += Bincr2_x;
ball2_mc._y += Bincr2_y;
ball2_mc.gotoAndPlay('rolleft');
}
if (batL_mc.contact_mc.hitTest(ball2_mc)) {
Mem2X2 = ball2_mc._x;
Mem2Y2 = ball2_mc._y;
ball2_mc._x = this._x + DB / 2 + 10;
BB2(1);
ball2_mc._x += Bincr2_x;
ball2_mc._y += Bincr2_y;
ball2_mc.gotoAndPlay('rollright');
}
if (BordL_mc.hitTest(this._x, this._y, true)) {
goal_flag = true;
Bincr2_x = 0;
Bincr2_y = 0;
this._x = BordL_mc._x + 30;
OutN = 1;
Outs[OutN]._visible = true;
ball2_mc.gotoAndStop('rollstop');
goalMeYou = 2;
++score1;
++wt;
}
if (BordR_mc.hitTest(this._x, this._y, true)) {
goal_flag = true;
Bincr2_x = 0;
Bincr2_y = 0;
this._x = BordR_mc._x - 30;
OutN = 2;
Outs[OutN]._visible = true;
ball2_mc.gotoAndStop('rollstop');
goalMeYou = 2;
++score1;
++wt;
}
if (floor_mc.hitTest(this._x, this._y, true)) {
OutN = 3;
Outs[OutN]._visible = true;
goalMeYou = 1;
whohit = 0;
++score2;
++wt;
goal_flag = true;
Bincr2_x = 0;
Bincr2_y = 0;
this._y = 560;
ball2_mc.gotoAndStop('rollstop');
}
}
}
};
BallPlay_mc.onEnterFrame = function () {
if (!goal_flag) {
if (!Pause_Flag) {
MemX = this._x;
MemY = this._y;
Xm = this._x;
Ym = this._y;
this._x += Bincr_x;
this._y += Bincr_y;
Bincr_y += coef;
}
if (batR_mc.contact_mc.hitTest(BallPlay_mc)) {
hitBat1 = true;
Mem2X = BallPlay_mc._x;
Mem2Y = BallPlay_mc._y;
whohit = 1;
if (SPORT == 5 && BallCatchFlag == 1) {
BallPlay_mc._x = batR_mc._x - DB / 2 - 4;
BallPlay_mc._y = batR_mc._y;
BallPlay_mc.gotoAndStop('rollright');
batN = 2;
} else {
BallPlay_mc._x = this._x - DB / 2 - 10;
BB(2);
BallPlay_mc._x += Bincr_x;
BallPlay_mc._y += Bincr_y;
BallPlay_mc.gotoAndPlay('rolleft');
}
} else {
hitBat1 = false;
}
if (batL_mc.contact_mc.hitTest(BallPlay_mc)) {
hitBat2 = true;
Mem2X = BallPlay_mc._x;
Mem2Y = BallPlay_mc._y;
whohit = 1;
if (SPORT == 5 && BallCatchFlag == 1) {
BallPlay_mc._x = batL_mc._x + DB / 2 + 4;
BallPlay_mc._y = batL_mc._y;
BallPlay_mc.gotoAndStop('rollright');
batN = 1;
} else {
BallPlay_mc._x = this._x + DB / 2 + 10;
BB(1);
BallPlay_mc._x += Bincr_x;
BallPlay_mc._y += Bincr_y;
BallPlay_mc.gotoAndPlay('rollright');
}
} else {
hitBat2 = false;
}
if (SPORT == 2) {
if (batDn_mc.contact_mc.hitTest(BallPlay_mc)) {
hitBat3 = true;
Mem2X = BallPlay_mc._x;
Mem2Y = BallPlay_mc._y;
BallPlay_mc._y = this._y - DB / 2 - 10;
BB(4);
BallPlay_mc._x += Bincr_x;
BallPlay_mc._y += Bincr_y;
BallPlay_mc.gotoAndPlay('rollright');
} else {
hitBat3 = false;
}
if (net_mc.hitTest(this._x, this._y, true)) {
touchNet = true;
Bincr_x = -Bincr_x;
if (BallPlay_mc._x < net_mc._x) {
BallPlay_mc._x = net_mc._x - 13 - DB / 2;
} else {
BallPlay_mc._x = net_mc._x + 13 + DB / 2;
}
this._x += Bincr_x;
this._y += Bincr_y;
} else {
touchNet = false;
}
}
if (SPORT == 3) {
j = 1;
while (j <= PinMax) {
if (Pins[j].hitTest(this._x, this._y, true)) {
touch = false;
touch_mc._x = Xm;
touch_mc._y = Ym;
definAngle();
k = 0;
while (k <= BIncr * 2) {
if (!touch) {
touch_mc.N_txt.text = k;
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 += Math.cos(dirAngle / 57.32);
touch_mc._y += Math.sin(dirAngle / 57.32);
++k;
}
BBpin(j);
this._x += Bincr_x;
this._y += Bincr_y;
Pins[j].push_mc.play();
}
++j;
}
if (BorderUp_mc.hitTest(this)) {
definAngle();
dirAngle = 360 - dirAngle;
dirAngle = AngleTo360(dirAngle);
this._y = BorderUp_mc._y + DB / 2 + 10 + 5;
Bincr_x = Math.cos(dirAngle / 57.32) * BIncr;
Bincr_y = Math.sin(dirAngle / 57.32) * BIncr;
kasatelnaya();
this._x += Bincr_x * 2;
this._y += Bincr_y * 2;
pushUp.play();
}
}
if (SPORT != 5) {
if (BordL_mc.hitTest(this._x, this._y, true)) {
goal_flag = true;
Bincr_x = 0;
Bincr_y = 0;
this._x = BordL_mc._x + 30;
OutN = 1;
Outs[OutN]._visible = true;
BallPlay_mc.gotoAndStop('rollstop');
GirlWait = true;
if (SPORT != 2) {
goalMeYou = 2;
++score1;
} else {
goalMeYou = 1;
++score2;
}
++wt;
}
if (BordR_mc.hitTest(this._x, this._y, true)) {
goal_flag = true;
Bincr_x = 0;
Bincr_y = 0;
this._x = BordR_mc._x - 30;
OutN = 2;
Outs[OutN]._visible = true;
BallPlay_mc.gotoAndStop('rollstop');
GirlWait = true;
goalMeYou = 2;
++score1;
++wt;
}
if (floor_mc.hitTest(this._x, this._y, true)) {
if (SPORT == 2) {
if (outDLf_mc.hitTest(this)) {
OutN = 4;
Outs[OutN]._visible = true;
goalMeYou = 1;
whohit = 0;
++score2;
++wt;
}
if (outDRt_mc.hitTest(this)) {
OutN = 5;
Outs[OutN]._visible = true;
goalMeYou = 2;
whohit = 0;
++score1;
++wt;
}
} else {
OutN = 3;
Outs[OutN]._visible = true;
goalMeYou = 1;
whohit = 0;
++score2;
++wt;
}
goal_flag = true;
Bincr_x = 0;
Bincr_y = 0;
this._y = 560;
BallPlay_mc.gotoAndStop('rollstop');
GirlWait = true;
}
}
if (SPORT == 5) {
if (GoalBasket == 0) {
if (Basket_mc.BasketGoal_mc.hitTest(this._x, this._y, true)) {
BskDX = (this._x - Basket_mc._x) / 10;
Bincr_x = 0;
Bincr_y = 1;
GoalBasket = 1;
GirlWait = true;
goal_flag = true;
if (whohit == 1) {
++score2;
++wt;
goalMeYou = 1;
}
if (whohit == 2) {
++score1;
++wt;
goalMeYou = 2;
}
}
}
if (Basket_mc.BasketTouch_mc.hitTest(this._x, this._y, true) && !Basket_mc.BasketGoal_mc.hitTest(this._x, this._y, true)) {
Mem2X = BallPlay_mc._x;
Mem2Y = BallPlay_mc._y;
BBpin(4);
this._x += Bincr_x;
this._y += Bincr_y;
GirlWait = true;
}
if (BordL_mc.hitTest(this._x, this._y, true)) {
definAngle();
dirAngle = 180 - dirAngle;
BallPlay_mc._x = borderLf_mc._x + DB / 2 + 5;
dirAngle = AngleTo360(dirAngle);
Bincr_x = Math.cos(dirAngle / 57.32) * BIncr;
Bincr_y = Math.sin(dirAngle / 57.32) * BIncr;
kasatelnaya();
this._x += Bincr_x * 2;
this._y += Bincr_y * 2;
}
if (BordR_mc.hitTest(this._x, this._y, true)) {
definAngle();
dirAngle = 180 - dirAngle;
BallPlay_mc._x = borderLf_mc._x - DB / 2 - 5;
dirAngle = AngleTo360(dirAngle);
Bincr_x = Math.cos(dirAngle / 57.32) * BIncr;
Bincr_y = Math.sin(dirAngle / 57.32) * BIncr;
kasatelnaya();
this._x += Bincr_x * 2;
this._y += Bincr_y * 2;
}
if (floor_mc.hitTest(this._x, this._y, true)) {
definAngle();
dirAngle = 360 - dirAngle;
dirAngle = AngleTo360(dirAngle);
this._y = floor_mc._y - DB / 2 - 10 - 5;
Bincr_x = Math.cos(dirAngle / 57.32) * BIncr;
Bincr_y = Math.sin(dirAngle / 57.32) * BIncr;
kasatelnaya();
this._x += Bincr_x * 2;
this._y += Bincr_y * 2;
}
}
}
if (SPORT == 5) {
if (GoalBasket == 1) {
if (!floor_mc.hitTest(this)) {
if (Math.abs(this._x - Basket_mc._x) > 5) {
this._x -= BskDX;
} else {
this._x = Basket_mc._x;
if (!baskMoveFlg) {
BasketFront_mc.NetFront_mc.gotoAndPlay(2);
Basket_mc.netBack_mc.gotoAndPlay(2);
baskMoveFlg = true;
}
}
this._y += Bincr_y;
Bincr_y += coef;
} else {
GoalBasket = 2;
baskMoveFlg = false;
this._y = floor_mc._y - DB / 2 - 10 - 2;
GirlWait = true;
this.gotoAndStop('rollstop');
}
}
}
};
Girl_mc.onEnterFrame = function () {
myPoint.x = Girl_mc.HerBat_mc._x;
myPoint.y = Girl_mc.HerBat_mc._y;
Girl_mc.localToGlobal(myPoint);
headX = myPoint.x;
headY = myPoint.y;
batCopy_mc._x = headX;
batCopy_mc._y = headY;
if (SPORT == 4) {
if (Bincr_y > 0) {
comeFlag[1] = true;
} else {
comeFlag[1] = false;
}
if (Bincr2_y > 0) {
comeFlag[2] = true;
} else {
comeFlag[2] = false;
}
if (!comeFlag[2]) {
BallEmpty_mc = BallPlay_mc;
ballNum = 1;
if (!goal_flag) {
p2incr = ball_mc._x - headX;
} else {
p2incr = CenterX - headX;
}
if (p2incr > incrmax) {
p2incr = incrmax;
}
if (p2incr < -incrmax) {
p2incr = -incrmax;
}
}
if (!comeFlag[1]) {
BallEmpty_mc = ball2_mc;
ballNum = 2;
if (!goal_flag) {
p2incr = ball2_mc._x - headX;
} else {
p2incr = CenterX - headX;
}
if (p2incr > incrmax) {
p2incr = incrmax;
}
if (p2incr < -incrmax) {
p2incr = -incrmax;
}
}
if (!comeFlag[1] && !comeFlag[2]) {
if (p2incr > incrmax) {
p2incr = incrmax;
}
if (p2incr < -incrmax) {
p2incr = -incrmax;
}
}
if (comeFlag[1] && comeFlag[2]) {
if (ball_mc._y > ball2_mc._y) {
BallEmpty_mc = BallPlay_mc;
ballNum = 1;
if (!goal_flag) {
p2incr = ball_mc._x - headX;
} else {
p2incr = CenterX - headX;
}
if (p2incr > incrmax) {
p2incr = incrmax;
}
if (p2incr < -incrmax) {
p2incr = -incrmax;
}
} else {
ballNum = 2;
BallEmpty_mc = ball2_mc;
if (!goal_flag) {
p2incr = ball2_mc._x - headX;
} else {
p2incr = CenterX - headX;
}
if (p2incr > incrmax) {
p2incr = incrmax;
}
if (p2incr < -incrmax) {
p2incr = -incrmax;
}
}
}
}
if (SPORT != 4) {
BallEmpty_mc = BallPlay_mc;
ballNum = 1;
if (!goal_flag) {
p2incr = BallPlay_mc._x - headX;
} else {
p2incr = CenterX - headX;
}
if (p2incr > incrmax) {
p2incr = incrmax;
}
if (p2incr < -incrmax) {
p2incr = -incrmax;
}
}
this._x += p2incr;
if (this._x < GXlimL) {
this._x = GXlimL;
}
if (this._x > GXlimR) {
this._x = GXlimR;
}
if (GoalBasket == 0) {
if (SPORT != 2 || SPORT == 2 && BallPlay_mc._x < 400) {
if (Bincr_y > 0) {
BdY = this._y - BallEmpty_mc._y;
LeftFrames = BdY / Bincr_y;
if (LeftFrames >= 54 && LeftFrames < 55) {
Girl_mc.gotoAndPlay('C1');
GirlWait = false;
ChkFrmsArr[0] = 1;
}
if (LeftFrames >= 19 && LeftFrames < 20) {
Girl_mc.gotoAndPlay('T_1');
GirlWait = false;
ChkFrmsArr[0] = 2;
}
if (LeftFrames >= 7 && LeftFrames < 8) {
Girl_mc.gotoAndPlay('T_2');
GirlWait = false;
ChkFrmsArr[0] = 3;
}
if (LeftFrames >= 6 && LeftFrames < 7) {
Girl_mc.gotoAndPlay('T_3');
GirlWait = false;
ChkFrmsArr[0] = 4;
}
if (GirlWait) {
if (LeftFrames < 6) {
Girl_mc.gotoAndPlay('T_4');
GirlWait = false;
ChkFrmsArr[0] = 9;
}
}
}
}
}
};
batR_mc.onEnterFrame = function () {
if (!winflag) {
if (_root._ymouse > 30 && _root._ymouse < 570) {
this._y = _root._ymouse;
} else {
if (_root._ymouse < 30) {
this._y = 30;
}
if (_root._ymouse > 570) {
this._y = 570;
}
}
batL_mc._y = this._y;
}
};
batL_mc.onEnterFrame = function () {};
batDn_mc.onEnterFrame = function () {
if (this._visible) {
if (!winflag) {
if (_root._xmouse > BtDnXL && _root._xmouse < BtDnXR) {
this._x = _root._xmouse;
} else {
if (_root._xmouse < BtDnXL) {
this._x = BtDnXL;
}
if (_root._xmouse > BtDnXR) {
this._x = BtDnXR;
}
}
}
}
};
Girl_mc.HerBat_mc.onEnterFrame = function () {
if (!goal_flag) {
if (SPORT != 5) {
trueHit = true;
} else {
if (Bincr_y > 0) {
trueHit = true;
} else {
trueHit = false;
}
}
if (SPORT == 4) {
if (Girl_mc.HerBat2balls_mc.hitTest(BallEmpty_mc)) {
BallEmpty_mc._y = batCopy_mc._y;
}
}
if (trueHit) {
if (this.hitTest(BallEmpty_mc)) {
Mem2X = BallEmpty_mc._x;
Mem2Y = BallEmpty_mc._y;
whohit = 2;
BallEmpty_mc._y = batCopy_mc._y - 10 - DB / 2;
L_R_Chance = true;
Chance = randRange(1, 100);
if (Girl_mc._x < 400) {
L_R_Chance = true;
} else {
L_R_Chance = false;
}
if (Chance > 80) {
L_R_Chance = !L_R_Chance;
}
if (L_R_Chance) {
target_mc._x = 0;
} else {
target_mc._x = 800;
}
target_mc._y = randRange(0, 200) - 50;
if (SPORT == 2) {
target_mc._x = 400;
target_mc._y = randRange(0, 200) - 50;
}
if (SPORT == 5) {
Chance = randRange(1, 100);
var v2 = randRange(1, 100);
if (score2 - score1 > 2) {
Chance = randRange(1, 80);
v2 = randRange(20, 60);
}
if (this._x < 300 || this._x > 500) {
if (Chance < 40) {
target_mc._x = Basket_mc._x;
target_mc._y = Basket_mc._y - 100 - v2;
}
}
}
Tgx = target_mc._x - batCopy_mc._x;
Tgy = target_mc._y - batCopy_mc._y;
if (target_mc._x > batCopy_mc._x) {
BetaRad = Math.atan(Tgy / Tgx);
} else {
BetaRad = Math.atan(Tgy / Tgx) - Math.PI;
}
if (SPORT == 4 && ballNum == 2) {
Bincr2_x = BIncr * Math.cos(BetaRad);
Bincr2_y = BIncr * Math.sin(BetaRad);
} else {
Bincr_x = BIncr * Math.cos(BetaRad);
Bincr_y = BIncr * Math.sin(BetaRad);
}
var v3 = BetaRad * 90 / 1.57;
if (!goal_flag) {
if (ballNum == 1) {
BallEmpty_mc._x += Bincr_x * 2;
BallEmpty_mc._y += Bincr_y * 2;
} else {
BallEmpty_mc._x += Bincr2_x * 2;
BallEmpty_mc._y += Bincr2_y * 2;
}
}
if (v3 > 90) {
BallEmpty_mc.gotoAndPlay('rolleft');
} else {
BallEmpty_mc.gotoAndPlay('rollright');
}
GirlWait = true;
}
}
}
};
goallogic_mc.onEnterFrame = function () {
if (wt > 0) {
++wt;
if (wt == 4) {
if (goalMeYou == 1) {
UraGoal_mc.gotoAndPlay(2);
}
if (goalMeYou == 2) {
WowSound_mc.gotoAndPlay(2);
}
}
if (wt == 25) {
score1_txt.text = score1;
score2_txt.text = score2;
goal_txt._visible = true;
}
if (wt == 80) {
BallPlay_mc._x = IntBallX;
BallPlay_mc._y = IntBallY;
if (SPORT == 4) {
ball2_mc._visible = true;
ball2_mc._x = IntBallX4_2;
ball2_mc._y = IntBallY;
BallPlay_mc._x = IntBallX4;
BallPlay_mc._y = IntBallY;
dirAngle = randRange(0, 30);
Chance = randRange(1, 100);
if (Chance < 50) {
dirAngle = 180 - dirAngle;
}
dirAngle2 = randRange(0, 30);
Chance = randRange(1, 100);
if (Chance < 50) {
dirAngle2 = 180 - dirAngle2;
}
Bincr2_x = Math.cos(dirAngle2 / 57.32) * BIncr;
Bincr2_y = Math.sin(dirAngle2 / 57.32) * BIncr;
}
whistle1_mc.play();
i = 1;
while (i <= OutsQ) {
Outs[i]._visible = false;
++i;
}
goal_txt._visible = false;
if (SPORT == 5) {
GoalBasket = 0;
}
}
if (wt >= 100) {
goal_flag = false;
BallPlay_mc._xscale = 100;
BallPlay_mc._yscale = BallPlay_mc._xscale;
dirAngle = randRange(0, 180);
if (SPORT == 5) {
dirAngle = randRange(0, 60);
Chance = randRange(0, 100);
if (Chance < 50) {
dirAngle = 180 - dirAngle;
}
}
if (SPORT == 2) {
if (goalMeYou == 2) {
dirAngle = randRange(0, 60);
}
if (goalMeYou == 1) {
dirAngle = randRange(30, 50) + 90;
}
}
Bincr_x = Math.cos(dirAngle / 57.32) * BIncr;
Bincr_y = Math.sin(dirAngle / 57.32) * BIncr;
if (dirAngle > 90 && dirAngle < 180) {
BallPlay_mc.gotoAndPlay('rolleft');
}
if (dirAngle > -180 && dirAngle < -90) {
BallPlay_mc.gotoAndPlay('rolleft');
}
if (dirAngle < 90 && dirAngle > 0) {
BallPlay_mc.gotoAndPlay('rollright');
}
if (dirAngle < 0 && dirAngle > -90) {
BallPlay_mc.gotoAndPlay('rollright');
}
goalMeYou = 0;
wt = 0;
}
}
if (wt1 > 0) {
++wt1;
if (wt1 == 5) {
whistle1_mc.play();
}
if (wt1 >= 25) {
wt1 = 0;
goal_flag = false;
winflag = false;
dirAngle = randRange(0, 180);
if (SPORT == 4) {
ball2_mc._visible = true;
ball2_mc._x = IntBallX4_2;
ball2_mc._y = IntBallY;
BallPlay_mc._x = IntBallX4;
BallPlay_mc._y = IntBallY;
dirAngle = randRange(0, 30);
Chance = randRange(1, 100);
if (Chance < 50) {
dirAngle = 180 - dirAngle;
}
dirAngle2 = randRange(0, 30);
Chance = randRange(1, 100);
if (Chance < 50) {
dirAngle2 = 180 - dirAngle2;
}
Bincr2_x = Math.cos(dirAngle2 / 57.32) * BIncr;
Bincr2_y = Math.sin(dirAngle2 / 57.32) * BIncr;
}
if (SPORT == 5) {
dirAngle = randRange(0, 60);
Chance = randRange(0, 100);
if (Chance < 50) {
dirAngle = 180 - dirAngle;
}
}
if (SPORT == 2) {
dirAngle = randRange(0, 60);
Chance = randRange(0, 100);
if (Chance < 50) {
dirAngle = randRange(30, 50) + 90;
}
}
Bincr_x = Math.cos(dirAngle / 57.32) * BIncr;
Bincr_y = Math.sin(dirAngle / 57.32) * BIncr;
if (dirAngle > 90 && dirAngle < 180) {
BallPlay_mc.gotoAndPlay('rolleft');
}
if (dirAngle > -180 && dirAngle < -90) {
BallPlay_mc.gotoAndPlay('rolleft');
}
if (dirAngle < 90 && dirAngle > 0) {
BallPlay_mc.gotoAndPlay('rollright');
}
if (dirAngle < 0 && dirAngle > -90) {
BallPlay_mc.gotoAndPlay('rollright');
}
}
}
};
timer_mc.onEnterFrame = function () {
if (!Pause_Flag) {
if (!winflag) {
++cc;
}
}
if (cc >= 25) {
cc = 0;
--secondsLeft;
++time;
if (secondsLeft < 0) {
secondsLeft = 59;
--minutesLeft;
if (minutesLeft < 0) {
minutesLeft = 0;
}
}
timelim_mc._xscale = Math.round((time / limit) * 100);
if (secondsLeft < 10) {
seconds_prnt = '0' + secondsLeft;
} else {
seconds_prnt = '' + secondsLeft;
}
minute_txt.text = minutesLeft;
seconds_txt.text = seconds_prnt;
}
if (time >= limit) {
if (!winflag) {
GirlWait = true;
wistlEnd_mc.play();
winflag = true;
dirAngle = -90;
score1_txt.text = score1;
score2_txt.text = score2;
goal_txt._visible = false;
Next_btn._visible = true;
CatchBallTXT_mc._visible = false;
i = 1;
while (i <= OutsQ) {
Outs[i]._visible = false;
++i;
}
goal_flag = true;
Bincr_x = 0;
Bincr_y = 0;
BallPlay_mc._x = IntBallX;
BallPlay_mc._y = IntBallY;
BallPlay_mc.gotoAndStop('rolleft');
wt = 0;
differscoreNew = score2 - score1;
differscoreOld = highscore2 - highscore1;
if (gamecnt == 1) {
highscore1 = score1;
highscore2 = score2;
differscoreOld = -1000;
}
if (differscoreNew > differscoreOld) {
highscore1 = score1;
highscore2 = score2;
} else {
if (differscoreNew == differscoreOld) {
if (score2 > highscore2) {
highscore1 = score1;
highscore2 = score2;
}
}
}
BstComp_txt.text = highscore1;
BstYou_txt.text = highscore2;
if (score2 > score1) {
YouWin_txt._visible = true;
SportsFlag[SPORT] = true;
if (SportsFlag[1] && SportsFlag[2] && SportsFlag[3] && SportsFlag[4] && SportsFlag[5]) {
VICTORYflag = true;
CheckAward_btn._visible = true;
}
if (picN < pixQ) {
++picN;
}
GirlsPix[picN]._visible = true;
GirlsPix[picN]._alpha = 0;
++wtPic;
}
if (score2 < score1) {
YouLose_txt._visible = true;
LoseFlag = 1;
}
Next_btn._visible = true;
if (SportsFlag[SPORT]) {
}
Bincr_x = 0;
Bincr_y = 0;
BallPlay_mc._x = IntBallX;
BallPlay_mc._y = IntBallY;
wt = 0;
}
}
if (wtPic > 0) {
++wtPic;
if (wtPic >= 50) {
wtPic = 0;
ShowPicFlag = true;
}
}
if (ShowPicFlag) {
if (GirlsPix[picN]._alpha < 100) {
GirlsPix[picN]._alpha += 2;
} else {
ShowPicFlag = false;
}
}
};
filedBtn_mc.onPress = function () {
if (SPORT == 5) {
BallCatchFlag = 1;
}
};
filedBtn_mc.onRelease = function () {
if (SPORT == 5) {
BallCatchFlag = 2;
if (batN == 1) {
MemX = batL_mc._x + 20;
MemY = batL_mc._y + randRange(1, 10) - 10;
Mem2X = batL_mc._x + 10;
Mem2Y = batL_mc._y;
BallPlay_mc.gotoAndPlay('rollright');
if (BallPlay_mc.hitTest(batL_mc)) {
BB(batN);
BallPlay_mc._x += Bincr_x;
BallPlay_mc._y += Bincr_y;
}
}
if (batN == 2) {
MemX = batR_mc._x - 20;
MemY = batR_mc._y + randRange(1, 10) - 5;
Mem2X = batR_mc._x - 10;
Mem2Y = batR_mc._y;
BallPlay_mc.gotoAndPlay('rolleft');
if (BallPlay_mc.hitTest(batR_mc)) {
BB(batN);
BallPlay_mc._x += Bincr_x;
BallPlay_mc._y += Bincr_y;
}
}
CatchBallTXT_mc._visible = false;
}
};
Next_btn.onRelease = function () {
gotoAndPlay('introChoose');
};
MoreSports_btn.onRelease = function () {
gotoAndPlay('introChoose');
};
CheckAward_btn.onRelease = function () {
introflag = true;
gotoAndPlay('introChoose');
};
playMore_btn.onRelease = function () {
introflag = true;
LEVEL = 1;
differscoreNew = 0;
differscoreOld = 0;
highscore2 = 0;
highscore1 = 0;
gotoAndPlay('introChoose');
};
End_btn.onRelease = function () {
introflag = true;
LEVEL = 1;
differscoreNew = 0;
differscoreOld = 0;
highscore2 = 0;
highscore1 = 0;
gotoAndPlay('introChoose');
};
help_btn.onRelease = function () {
help_mc._visible = !help_mc._visible;
if (help_mc._visible) {
help_mc.Rules0_mc._visible = false;
help_mc.Rules1_mc._visible = false;
help_mc.Rules2_mc._visible = false;
help_mc.Rules3_mc._visible = false;
help_mc.Rules4_mc._visible = false;
help_mc.Rules5_mc._visible = false;
switch (SPORT) {
case 1:
help_mc.Rules1_mc._visible = true;
break;
case 2:
help_mc.Rules2_mc._visible = true;
break;
case 3:
help_mc.Rules3_mc._visible = true;
break;
case 4:
help_mc.Rules4_mc._visible = true;
break;
case 5:
help_mc.Rules5_mc._visible = true;
}
}
Pause_Flag = !Pause_Flag;
if (Pause_Flag) {
BallPlay_mc.gotoAndStop('rollstop');
ball2_mc.gotoAndStop('rollstop');
} else {
BallPlay_mc.play();
}
};
help_mc.onRelease = function () {
help_mc._visible = false;
Pause_Flag = false;
BallPlay_mc.play();
};
pause_btn.onRelease = function () {
if (!help_mc._visible) {
Pause_Flag = !Pause_Flag;
if (Pause_Flag) {
BallPlay_mc.gotoAndStop('rollstop');
ball2_mc.gotoAndStop('rollstop');
} else {
BallPlay_mc.play();
}
}
};
SoundOff_btn.onRelease = function () {
this._visible = false;
SoundOn_btn._visible = true;
};
SoundOn_btn.onRelease = function () {
this._visible = false;
SoundOff_btn._visible = true;
};
MoreGames_btn.onRelease = function () {
getURL('http://gamcore.com', '_blank');
};
}
movieClip 112 {
}
movieClip 114 {
}
movieClip 121 {
}
movieClip 122 {
}
movieClip 249 {
frame 106 {
if (_root.GirlWait) {
gotoAndPlay('W1');
}
}
}
movieClip 251 {
}
movieClip 254 {
}
movieClip 256 {
}
movieClip 258 {
frame 1 {
stop();
}
frame 2 {
if (!_root.soundsOff) {
_root.touchSnd_mc.gotoAndPlay(1);
}
}
}
movieClip 260 {
}
movieClip 261 {
}
movieClip 263 {
}
movieClip 265 {
}
movieClip 267 {
}
movieClip 273 {
}
movieClip 279 {
}
movieClip 288 {
}
movieClip 291 {
frame 1 {
stop();
}
}
movieClip 292 {
}
movieClip 294 {
}
movieClip 295 {
}
movieClip 300 {
frame 30 {
if (_root.winflag || _root.goal_flag) {
gotoAndStop('rollstop');
} else {
gotoAndPlay('rolleft');
}
}
frame 60 {
if (_root.winflag || _root.goal_flag) {
gotoAndStop('rollstop');
} else {
gotoAndPlay('rollright');
}
}
frame 61 {
stop();
}
}
movieClip 303 {
frame 30 {
if (_root.winflag || _root.goal_flag) {
gotoAndStop('rollstop');
} else {
gotoAndPlay('rolleft');
}
}
frame 60 {
if (_root.winflag || _root.goal_flag) {
gotoAndStop('rollstop');
} else {
gotoAndPlay('rollright');
}
}
frame 61 {
stop();
}
}
movieClip 308 {
frame 19 {
gotoAndPlay('rollright');
}
frame 38 {
gotoAndPlay('rolleft');
}
frame 39 {
stop();
}
}
movieClip 311 {
frame 1 {
stop();
}
frame 2 {
if (!_root.soundsOff) {
_root.touchPinSnd_mc.gotoAndPlay(1);
}
}
}
movieClip 313 {
}
movieClip 315 {
frame 1 {
stop();
}
}
movieClip 317 {
}
movieClip 319 {
}
movieClip 320 {
}
movieClip 321 {
}
movieClip 324 {
}
movieClip 327 {
}
movieClip 330 {
}
movieClip 333 {
}
movieClip 336 {
}
movieClip 342 {
}
movieClip 345 {
}
movieClip 348 {
}
movieClip 351 {
}
movieClip 354 {
}
movieClip 355 {
}
movieClip 371 {
frame 1 {
stop();
}
}
movieClip 374 {
}
movieClip 414 {
}
movieClip 418 {
frame 1 {
stop();
}
frame 51 {
gotoAndStop('sndStop');
}
}
movieClip 420 {
frame 1 {
stop();
}
frame 6 {
gotoAndStop('wstStop');
}
}
movieClip 421 {
frame 1 {
stop();
}
frame 38 {
gotoAndStop('wstStop');
}
}
movieClip 423 {
frame 33 {
stop();
}
}
movieClip 425 {
frame 1 {
stop();
}
frame 30 {
stop();
}
}
frame 47 {
help_mc._visible = false;
stop();
ResetResults_btn.onRelease = function () {
i = 1;
while (i <= 5) {
SportsFlag[i] = false;
++i;
}
VICTORYflag = false;
};
playMore_btn.onRelease = function () {
introflag = true;
LEVEL = 1;
differscoreNew = 0;
differscoreOld = 0;
highscore2 = 0;
highscore1 = 0;
gotoAndPlay('introChoose');
};
End_btn.onRelease = function () {
introflag = true;
LEVEL = 1;
differscoreNew = 0;
differscoreOld = 0;
highscore2 = 0;
highscore1 = 0;
gotoAndPlay('introChoose');
};
help_btn.onRelease = function () {
help_mc._visible = !help_mc._visible;
};
help_mc.onRelease = function () {
help_mc._visible = false;
};
pause_btn.onRelease = function () {};
SoundOff_btn.onRelease = function () {
this._visible = false;
SoundOn_btn._visible = true;
};
SoundOn_btn.onRelease = function () {
this._visible = false;
SoundOff_btn._visible = true;
};
MoreGames_btn.onRelease = function () {};
}
movieClip 432 {
}