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 Incr = 12;
var IncrInit = 16;
var IncrInit2 = 12;
var EasyHard = 2;
var introflag = true;
var Stg = 1;
var TEST = false;
var gamecnt = 0;
var FirstLaunch = true;
var firstTime = true;
var differscoreNew = 0;
var differscoreOld = 0;
var highscore2 = 0;
var highscore1 = 0;
var moreFlag = false;
var Xspeed = 10;
var incrmax = 12;
var incrmaY = 11;
var i;
var SPORT = 1;
var SportsFlag = new Array(6);
var BtnsArr = new Array(6);
var CrclsArr = new Array(6);
var helpFlag = false;
var TESTFlag = false;
var BlitzFlag = 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 2 {
}
movieClip 5 {
}
// unknown tag 88 length 138
movieClip 9 {
frame 1 {
function randRange(min, max) {
var v1 = Math.floor(Math.random() * (max - min + 1)) + min;
return v1;
}
var delcyc = 10;
var cnt = 0;
}
frame 2 {
++cnt;
}
frame 3 {
if (delcyc > cnt) {
delcyc = 15;
cnt = 0;
this._x = randRange(100, 650);
this._y = randRange(1, 580);
gotoAndPlay('bulplay');
} else {
gotoAndPlay('waitcyc');
}
}
frame 13 {
gotoAndPlay('waitcyc');
}
}
// unknown tag 88 length 171
// unknown tag 88 length 171
// unknown tag 88 length 120
// unknown tag 88 length 143
movieClip 31 {
frame 1 {
stop();
}
frame 8 {
stop();
}
frame 16 {
gotoAndStop(1);
}
}
movieClip 33 {
}
// unknown tag 88 length 86
movieClip 37 {
}
movieClip 40 {
}
movieClip 41 {
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 43 {
}
movieClip 46 {
}
movieClip 48 {
}
movieClip 50 {
}
movieClip 53 {
}
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;
firstTime = true;
VictoryFlag = false;
TESTFlag = false;
BlitzFlag = false;
}
movieClip 75 {
}
frame 15 {
if (introflag) {
gotoAndPlay('chooseCyc');
}
Play_btn.onRelease = function () {
introflag = false;
};
help_btn.onRelease = function () {
helpFlag = !helpFlag;
if (helpFlag) {
help_mc.gotoAndPlay('goCome');
} else {
help_mc.gotoAndPlay('goOut');
}
};
help_mc.onRelease = function () {
helpFlag = false;
if (helpFlag) {
help_mc.gotoAndPlay('goCome');
} else {
help_mc.gotoAndPlay('goOut');
}
};
TEST_btn.onRelease = function () {
TESTFlag = true;
introflag = false;
};
Blitz_btn.onRelease = function () {
BlitzFlag = true;
introflag = false;
};
}
frame 46 {
function initset() {
i = 1;
while (i <= OutsQ) {
Outs[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;
++gamecnt;
ballsQ = 1;
batL_mc._x = BatLXint;
GXlimL = GXlimLInt;
GXlimR = GXlimRInt;
CenterX = Girl_mc._x;
ball2_mc._visible = false;
ball2_mc._x = 880;
Incr = IncrInit;
choseB = 0;
helpFlag = false;
playMore_btn._visible = false;
MoreSports_btn._visible = false;
Next_btn._visible = false;
CheckAward_btn._visible = false;
CatchBallTXT_mc._visible = false;
wt = 0;
wtPic = 0;
ShowPicFlag = false;
goal_flag = true;
winflag = false;
Tablo_mc.goal_txt._visible = false;
Balls[0]._x = IntBallX;
Balls[0]._y = IntBallY;
dirAngle[0] = randRange(0, 360);
incr_x[0] = Math.cos(dirAngle[0] / 57.32) * Incr;
incr_y[0] = Math.sin(dirAngle[0] / 57.32) * Incr;
if (LEVEL > Lev2Shaybs) {
ballsQ = 2;
ball2_mc._visible = true;
Incr = IncrInit2;
i = 0;
while (i < ballsQ) {
Balls[i]._x = IntBallX2[i];
Balls[i]._y = IntBallY;
dirAngle[i] = randRange(0, 360);
incr_x[i] = Math.cos(dirAngle[i] / 57.32) * Incr;
incr_y[i] = Math.sin(dirAngle[i] / 57.32) * Incr;
++i;
}
}
BstComp_txt.text = highscore1;
BstYou_txt.text = highscore2;
time = 0;
minutesLeft = Math.floor(limit / 60);
Tablo_mc.minute_txt.text = minutesLeft;
secondsLeft = limit % 60;
if (secondsLeft < 10) {
seconds_prnt = '0' + secondsLeft;
} else {
seconds_prnt = '' + secondsLeft;
}
Tablo_mc.seconds_txt.text = seconds_prnt;
score1 = 0;
Tablo_mc.score1_txt.text = score1;
score2 = 0;
Tablo_mc.score2_txt.text = score2;
GameCnt_txt.text = gamecnt;
Tablo_mc.YouWin_txt._visible = false;
Tablo_mc.YouLose_txt._visible = false;
OopsSound_mc.gotoAndStop('StopSound');
UraGoal_mc.gotoAndStop('lusastop');
touchNet = false;
Tablo_mc.Level_txt.text = 'LEVEL ' + LEVEL;
++wt1;
}
function detouch() {
touch = false;
touch1_mc._x = MemX[0];
touch1_mc._y = MemY[0];
k = 0;
while (k <= Incr * 2) {
if (!touch) {
if (Balls[1].hitTest(touch1_mc._x, touch1_mc._y, true)) {
touch = true;
Balls[0]._x = touch1_mc._x;
Balls[0]._y = touch1_mc._y;
}
touch1_mc._x += Math.cos(dirAngle[0] / 57.32);
touch1_mc._y += Math.sin(dirAngle[0] / 57.32);
}
++k;
}
}
function BB(n, DY, DX, i) {
var v3 = 40;
if (Balls[i]._x < Bats[n]._x) {
alfarad = Math.atan((Bats[n]._y - Balls[i]._y) / (Bats[n]._x - Balls[i]._x));
} else {
alfarad = Math.atan((Bats[n]._y - Balls[i]._y) / (Bats[n]._x - Balls[i]._x)) - Math.PI;
}
alfa = alfarad * 90 / 1.57;
dirAngle[i] = AngleTo360(dirAngle[i]);
Gamma = alfa - dirAngle[i];
Beta = alfa + 180 + Gamma;
if (Beta > 360) {
Beta -= 360;
}
if (Beta < 0) {
Beta += 360;
}
dirAngle[i] = Beta;
kasatelnaya(i);
dirAngle[i] = AngleTo360(dirAngle[i]);
incr_x[i] = Math.cos(dirAngle[i] / 57.32) * Incr;
incr_y[i] = Math.sin(dirAngle[i] / 57.32) * Incr;
}
function BBSh(n1, n2) {
var v4;
var v3;
var v6;
var v5;
ShaybSound_mc.gotoAndPlay(2);
if (Balls[n1]._x < Balls[n2]._x) {
alfarad = Math.atan((Balls[n2]._y - Balls[n1]._y) / (Balls[n2]._x - Balls[n1]._x));
} else {
alfarad = Math.atan((Balls[n2]._y - Balls[n1]._y) / (Balls[n2]._x - Balls[n1]._x)) - Math.PI;
}
alfa = alfarad * 90 / 1.57;
Gamma = alfa - dirAngle[n1];
if (Gamma > 360) {
Gamma -= 360;
}
if (Gamma < -360) {
Gamma += 360;
}
if (Gamma > 180 && Gamma < 360) {
Gamma = -(360 - Gamma);
}
if (Gamma < -180) {
Gamma += 360;
}
Beta = alfa + 180 + Gamma;
OldDir = dirAngle[n1];
Omega = Beta - dirAngle[n1];
dirAngle[n1] = Beta;
dirAngle[n1] = AngleTo360(dirAngle[n1]);
dirAngle[n2] = OldDir + Gamma;
dirAngle[n2] = AngleTo360(dirAngle[n2]);
incr_x[n1] = Math.cos(dirAngle[n1] / 57.32) * Incr;
incr_y[n1] = Math.sin(dirAngle[n1] / 57.32) * Incr;
incr_x[n2] = Math.cos(dirAngle[n2] / 57.32) * Incr;
incr_y[n2] = Math.sin(dirAngle[n2] / 57.32) * Incr;
kasatelnaya(0);
}
function AngleTo360(ang) {
dirAn_mc._rotation = ang;
ang = dirAn_mc._rotation;
return ang;
}
function kasatelnaya(i) {
kasat_mc._x = Balls[i]._x;
kasat_mc._y = Balls[i]._y;
kasat_mc._rotation = dirAngle[i];
}
function kasatelnayaY(i) {
kasatY_mc._x = Balls[i]._x;
kasatY_mc._y = Balls[i]._y;
kasatY_mc._rotation = dirAngle[i];
}
function randRange(min, max) {
var v1 = Math.floor(Math.random() * (max - min + 1)) + min;
return v1;
}
var limit = 120;
test30sec_mc._visible = false;
BlitzTXT_mc._visible = false;
var Lev2Shaybs = 4;
if (BlitzFlag) {
limit = 30;
Lev2Shaybs = 0;
BlitzTXT_mc._visible = true;
}
var VictoryLevel = 8;
var LevChngFlag = false;
var goal_flag = false;
var OutsQ = 4;
var Outs = new Array();
Outs[1] = outL_mc;
Outs[2] = outR_mc;
Outs[3] = outD_mc;
Outs[4] = outUp_mc;
var Balls = new Array(2);
Balls[0] = ball_mc;
Balls[1] = ball2_mc;
var DB = 33;
var OutN = 0;
var dirAngle = new Array(2);
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 = 0;
var seconds_prnt;
var time = 0;
var cc = 0;
var score1 = 0;
var score2 = 0;
var hitFlag = false;
var incr_x = new Array(0, 0);
var incr_y = new Array(0, 0);
var incr0_x = 5;
var incr0_y = 5;
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 = new Array(0, 0);
var MemY = new Array(0, 0);
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] = batR_mc;
Bats[2] = batDn_mc;
Bats[3] = batL_mc;
Bats[4] = batUp_mc;
var LeftFramesArr = 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 IntBallX2 = new Array(2);
IntBallX2[0] = IntBallX - 60;
IntBallX2[1] = IntBallX + 60;
var wt = 0;
var wt1 = 0;
var wtCongr = 0;
var goalMeYou = 0;
var Pause_Flag = 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 = 35;
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 ballsQ = 1;
var ballNum = 1;
var pixQ = 5;
var wtPic = 0;
var ShowPicFlag = false;
var choseB = 0;
var stukFlag = false;
i = 1;
while (i <= OutsQ) {
Outs[i]._visible = false;
++i;
}
var CueTimes = new Array(10);
if (FirstLaunch) {
PollDancer_mc._visible = false;
PollDancer_mc.gotoAndStop('C0');
CueTimes[0] = PollDancer_mc._currentframe;
PollDancer_mc.gotoAndStop('C1');
CueTimes[1] = PollDancer_mc._currentframe;
PollDancer_mc.gotoAndStop('C2');
CueTimes[2] = PollDancer_mc._currentframe;
PollDancer_mc.gotoAndStop('C3');
CueTimes[3] = PollDancer_mc._currentframe;
PollDancer_mc.gotoAndStop('C4');
CueTimes[4] = PollDancer_mc._currentframe;
PollDancer_mc.gotoAndStop('C5');
CueTimes[5] = PollDancer_mc._currentframe;
PollDancer_mc.gotoAndStop('C6');
CueTimes[6] = PollDancer_mc._currentframe;
PollDancer_mc.gotoAndStop('C7');
CueTimes[7] = PollDancer_mc._currentframe;
PollDancer_mc.gotoAndStop('C8');
CueTimes[8] = PollDancer_mc._currentframe;
PollDancer_mc._visible = true;
PollDancer_mc.gotoAndPlay('C0');
}
FLVlog_mc.onEnterFrame = function () {
if (!VictoryFlag) {
if (!LevChngFlag) {
if (PollDancer_mc._currentframe >= CueTimes[LEVEL] - 1) {
PollDancer_mc.gotoAndPlay(CueTimes[LEVEL - 1]);
}
}
if (LevChngFlag) {
LevChngFlag = false;
PollDancer_mc.gotoAndPlay(CueTimes[LEVEL - 1]);
if (LEVEL == VictoryLevel) {
VictoryFlag = true;
}
}
}
};
SoundOn_btn._visible = false;
UnderIce_mc._visible = true;
UnderIce_mc._alpha = 100;
initset();
stop();
BallLogic_mc.onEnterFrame = function () {
if (!goal_flag && !Pause_Flag) {
MemX[0] = Balls[0]._x;
MemY[0] = Balls[0]._y;
stukFlag = false;
i = 0;
while (i < ballsQ) {
Balls[i]._x += incr_x[i];
Balls[i]._y += incr_y[i];
if (!stukFlag) {
if (Balls[0].hitTest(Balls[1]._x, Balls[1]._y, true)) {
stukFlag = true;
detouch();
BBSh(0, 1);
}
}
if (batR_mc.contact_mc.hitTest(Balls[i].Body_mc)) {
Mem2X = Balls[i]._x;
Mem2Y = Balls[i]._y;
Balls[i]._x = batR_mc._x - DB / 2 - 40;
BB(1, 0, 1, i);
Balls[i]._x += incr_x[i];
Balls[i]._y += incr_y[i];
}
if (batL_mc.contact_mc.hitTest(Balls[i].Body_mc)) {
Mem2X = Balls[i]._x;
Mem2Y = Balls[i]._y;
Balls[i]._x = batL_mc._x + DB / 2 + 40;
BB(3, 0, -1, i);
Balls[i]._x += incr_x[i];
Balls[i]._y += incr_y[i];
}
if (batDn_mc.contact_mc.hitTest(Balls[i].Body_mc)) {
Mem2X = Balls[i]._x;
Mem2Y = Balls[i]._y;
Balls[i]._y = batDn_mc._y - DB / 2 - 40;
BB(2, 1, 0, i);
Balls[i]._x += incr_x[i];
Balls[i]._y += incr_y[i];
}
if (batUp_mc.contact_mc.hitTest(Balls[i].Body_mc)) {
Mem2X = Balls[i]._x;
Mem2Y = Balls[i]._y;
Balls[i]._y = batUp_mc._y + DB / 2 + 40;
BB(4, -1, 0, i);
Balls[i]._x += incr_x[i];
Balls[i]._y += incr_y[i];
}
if (BordL_mc.hitTest(Balls[i]._x, Balls[i]._y, true)) {
goal_flag = true;
incr_x[i] = 0;
incr_y[i] = 0;
Balls[i]._x = BordL_mc._x + 30;
OutN = 1;
Outs[OutN]._visible = true;
GirlWait = true;
goalMeYou = 1;
++score2;
++wt;
}
if (BordR_mc.hitTest(Balls[i]._x, Balls[i]._y, true)) {
goal_flag = true;
incr_x[i] = 0;
incr_y[i] = 0;
Balls[i]._x = BordR_mc._x - 30;
OutN = 2;
Outs[OutN]._visible = true;
GirlWait = true;
goalMeYou = 2;
++score1;
++wt;
}
if (floor_mc.hitTest(Balls[i]._x, Balls[i]._y, true)) {
OutN = 3;
Outs[OutN]._visible = true;
goalMeYou = 2;
++score1;
++wt;
goal_flag = true;
incr_x[i] = 0;
incr_y[i] = 0;
Balls[i]._y = 560;
}
if (BordUp_mc.hitTest(Balls[i]._x, Balls[i]._y, true)) {
OutN = 4;
Outs[OutN]._visible = true;
goalMeYou = 1;
whohit = 0;
++score2;
++wt;
goal_flag = true;
incr_x[i] = 0;
incr_y[i] = 0;
Balls[i]._y = 40;
}
++i;
}
}
};
var ShaybCopy = new Array(40);
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;
}
}
}
};
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;
}
}
}
}
};
batL_mc.onEnterFrame = function () {
var v3;
var v2 = new Array(2);
if (LEVEL > Lev2Shaybs) {
i = 0;
while (i < ballsQ) {
v2[i] = false;
dirAngle[i] = AngleTo360(dirAngle[i]);
if (dirAngle[i] > 90 || dirAngle[i] < -90) {
v2[i] = true;
}
++i;
}
i = 0;
while (i < ballsQ) {
if (v2[i]) {
if (v2[0] && v2[1]) {
if (Balls[0]._x < Balls[1]._x) {
choseB = 0;
} else {
choseB = 1;
}
} else {
choseB = i;
}
}
++i;
}
}
if (goal_flag) {
v3 = 300 - this._y;
} else {
v3 = Balls[choseB]._y - this._y;
}
if (v3 > incrmaY) {
v3 = incrmaY;
}
if (v3 < -incrmaY) {
v3 = -incrmaY;
}
this._y += v3;
if (this._y < 74) {
this._y = 74;
}
if (this._y > 530) {
this._y = 530;
}
};
batUp_mc.onEnterFrame = function () {
var v3;
var v4 = 8;
var v2 = new Array(2);
if (LEVEL > Lev2Shaybs) {
i = 0;
while (i <= 1) {
v2[i] = false;
dirAngle[i] = AngleTo360(dirAngle[i]);
if (dirAngle[i] > -180 || dirAngle[i] < 0) {
v2[i] = true;
}
++i;
}
i = 0;
while (i <= 1) {
if (v2[i]) {
if (v2[0] && v2[1]) {
if (Balls[0]._y < Balls[1]._y) {
choseB = 0;
} else {
choseB = 1;
}
} else {
choseB = i;
}
}
++i;
}
}
if (goal_flag) {
v3 = 400 - this._x;
} else {
v3 = Balls[choseB]._x - this._x;
}
if (v3 > incrmax) {
v3 = incrmax;
}
if (v3 < -incrmax) {
v3 = -incrmax;
}
this._x += v3;
if (this._x < BtDnXL) {
this._x = BtDnXL;
}
if (this._x > BtDnXR) {
this._x = BtDnXR;
}
};
goallogic_mc.onEnterFrame = function () {
if (wt > 0) {
++wt;
if (wt == 4) {
if (goalMeYou == 1) {
UraGoal_mc.gotoAndPlay(2);
}
if (goalMeYou == 2) {
OopsSnd2_mc.gotoAndPlay(2);
}
}
if (wt == 25) {
Tablo_mc.score1_txt.text = score1;
Tablo_mc.score2_txt.text = score2;
Tablo_mc.goal_txt._visible = true;
}
if (wt == 80) {
Balls[0]._x = IntBallX;
Balls[0]._y = IntBallY;
if (LEVEL > Lev2Shaybs) {
i = 0;
while (i < ballsQ) {
Balls[i]._x = IntBallX2[i];
Balls[i]._y = IntBallY;
++i;
}
}
whistle1_mc.play();
i = 1;
while (i <= OutsQ) {
Outs[i]._visible = false;
++i;
}
Tablo_mc.goal_txt._visible = false;
}
if (wt >= 100) {
goal_flag = false;
i = 0;
while (i < ballsQ) {
Balls[i]._xscale = 100;
Balls[i]._yscale = Balls[i]._xscale;
dirAngle[i] = randRange(0, 360);
incr_x[i] = Math.cos(dirAngle[i] / 57.32) * Incr;
incr_y[i] = Math.sin(dirAngle[i] / 57.32) * Incr;
++i;
}
goalMeYou = 0;
wt = 0;
}
}
if (wt1 > 0) {
++wt1;
if (wt1 == 2) {
if (LEVEL > Lev2Shaybs) {
i = 0;
while (i < ballsQ) {
Balls[i]._x = IntBallX2[i];
Balls[i]._y = IntBallY;
++i;
}
}
}
if (wt1 == 5) {
whistle1_mc.play();
}
if (wt1 >= 25) {
wt1 = 0;
goal_flag = false;
winflag = false;
i = 0;
while (i < ballsQ) {
dirAngle[i] = randRange(0, 360);
incr_x[i] = Math.cos(dirAngle[i] / 57.32) * Incr;
incr_y[i] = Math.sin(dirAngle[i] / 57.32) * Incr;
++i;
}
}
}
};
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;
}
}
Tablo_mc.timelim_mc._xscale = Math.round((time / limit) * 100);
if (secondsLeft < 10) {
seconds_prnt = '0' + secondsLeft;
} else {
seconds_prnt = '' + secondsLeft;
}
Tablo_mc.minute_txt.text = minutesLeft;
Tablo_mc.seconds_txt.text = seconds_prnt;
}
if (time >= limit) {
if (!winflag) {
GirlWait = true;
wistlEnd_mc.play();
winflag = true;
Tablo_mc.score1_txt.text = score1;
Tablo_mc.score2_txt.text = score2;
Tablo_mc.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;
incr_x[0] = 0;
incr_y[0] = 0;
Balls[0]._x = IntBallX;
Balls[0]._y = IntBallY;
wt = 0;
if (score2 > score1) {
Tablo_mc.YouWin_txt._visible = true;
if (LEVEL < VictoryLevel) {
++LEVEL;
LevChngFlag = true;
iceTrnsp_mc._alpha -= 14;
}
Tablo_mc.Level_txt.text = 'LEVEL ' + LEVEL;
}
if (score2 < score1) {
Tablo_mc.YouLose_txt._visible = true;
LoseFlag = 1;
if (BlitzFlag) {
if (LEVEL > 1) {
--LEVEL;
LevChngFlag = true;
iceTrnsp_mc._alpha += 14;
}
}
Tablo_mc.Level_txt.text = 'LEVEL ' + LEVEL;
}
Next_btn._visible = true;
if (LEVEL == VictoryLevel) {
Next_btn._visible = false;
playMore_btn._visible = true;
Congrats_mc.gotoAndPlay(2);
++wtCongr;
iceTrnsp_mc._alpha = 0;
i = 0;
while (i < ballsQ) {
Balls[i]._visible = false;
++i;
}
Tablo_mc._visible = false;
}
i = 0;
while (i < ballsQ) {
incr_x[i] = 0;
incr_y[i] = 0;
++i;
}
Balls[0]._x = IntBallX;
Balls[0]._y = IntBallY;
if (LEVEL > Lev2Shaybs) {
i = 0;
while (i < ballsQ) {
Balls[i]._x = IntBallX2[i];
Balls[i]._y = IntBallY;
++i;
}
}
wt = 0;
}
}
if (firstTime) {
if (UnderIce_mc._alpha > 0) {
UnderIce_mc._alpha -= 0.25;
} else {
firstTime = false;
UnderIce_mc._visible = false;
UnderIce_mc._alpha = 100;
}
}
if (wtCongr > 0) {
++wtCongr;
if (wtCongr > 125) {
wtCongr = 0;
Congrats_mc.gotoAndStop(1);
}
}
};
Next_btn.onRelease = function () {
initset();
};
MoreSports_btn.onRelease = function () {
gotoAndPlay('introChoose');
};
CheckAward_btn.onRelease = function () {
introflag = true;
gotoAndPlay('introChoose');
};
playMore_btn.onRelease = function () {
introflag = true;
VictoryFlag = false;
LEVEL = 1;
differscoreNew = 0;
differscoreOld = 0;
highscore2 = 0;
highscore1 = 0;
gotoAndPlay('introChoose');
};
End_btn.onRelease = function () {
introflag = true;
LEVEL = 1;
VictoryFlag = false;
differscoreNew = 0;
differscoreOld = 0;
highscore2 = 0;
highscore1 = 0;
gotoAndPlay('introChoose');
};
help_btn.onRelease = function () {
helpFlag = !helpFlag;
if (helpFlag) {
help_mc.gotoAndPlay('goCome');
Pause_Flag = true;
} else {
help_mc.gotoAndPlay('goOut');
Pause_Flag = false;
}
};
help_mc.onRelease = function () {
helpFlag = false;
Pause_Flag = false;
if (helpFlag) {
help_mc.gotoAndPlay('goCome');
} else {
help_mc.gotoAndPlay('goOut');
}
};
pause_btn.onRelease = function () {
if (!helpFlag) {
Pause_Flag = !Pause_Flag;
}
};
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 97 {
}
movieClip 99 {
}
movieClip 103 {
}
movieClip 106 {
}
movieClip 108 {
}
movieClip 112 {
frame 1 {
stop();
}
frame 80 {
stop();
}
}
movieClip 118 {
}
movieClip 130 {
}
movieClip 133 {
}
movieClip 134 {
}
movieClip 135 {
}
movieClip 137 {
}
movieClip 139 {
}
movieClip 141 {
}
movieClip 143 {
}
movieClip 145 {
}
movieClip 146 {
}
movieClip 148 {
}
movieClip 149 {
}
movieClip 151 {
}
movieClip 197 {
}
movieClip 199 {
frame 1 {
stop();
}
frame 6 {
gotoAndStop('wstStop');
}
}
movieClip 200 {
frame 1 {
stop();
}
frame 38 {
gotoAndStop('wstStop');
}
}
movieClip 202 {
frame 33 {
stop();
}
}
movieClip 206 {
frame 1 {
stop();
}
frame 51 {
gotoAndStop('sndStop');
}
}
movieClip 208 {
frame 1 {
stop();
}
frame 30 {
stop();
}
}
movieClip 210 {
frame 1 {
stop();
}
}
movieClip 212 {
frame 1 {
stop();
}
}