Combined Code
frame 1 {
function randRange(min, max) {
var v1 = Math.floor(Math.random() * (max - min + 1)) + min;
return v1;
}
var IntroFlag = true;
var LEVEL = 1;
var gamecnt = 0;
var differscoreNew = 0;
var differscoreOld = 0;
var highscore2 = 0;
var highscore1 = 0;
var EasyHard = 1;
var Incr = 16;
var incrmax = 14;
var BlonBrun = true;
var BvB = 1;
var wincnt = 0;
var moreFlag = false;
var testFlag = false;
var incr_x = new Array(0, 0);
var incr_y = new Array(0, 0);
var dirAngle = new Array(50, 200);
var DrebCnt = new Array(0, 0, 0, 0, 0);
var alfarad = 0;
var tang;
var angle;
var angle2;
var alfa = 0;
var Beta = 0;
var Gamma;
var hitBat1 = false;
var hitBat2 = false;
var MouseShowFlag = false;
var MouseSh2Fl = false;
var PlayerArr = new Array(5);
PlayerArr[1] = bat1_mc;
PlayerArr[2] = bat2_mc;
PlayerArr[4] = batCopy_mc;
OutAll_mc._visible = false;
dirAngle[1] = randRange(0, 360);
dark_mc.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha -= 2;
}
};
}
frame 1 {
LoadLine_mc.setMask(LoadMask_mc);
var X_start = LoadMask_mc._x;
var frmsLoaded;
GamcoreLink_mc.onRelease = function () {
getURL('http://gamcore.com', '_blank');
};
}
movieClip 2 {
}
movieClip 4 {
}
movieClip 6 {
}
// unknown tag 88 length 197
movieClip 11 {
}
movieClip 16 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay('outPlay');
}
}
movieClip 17 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay('outPlay');
}
}
movieClip 18 {
}
// unknown tag 88 length 138
movieClip 24 {
}
movieClip 26 {
}
movieClip 28 {
}
// unknown tag 88 length 171
// unknown tag 88 length 51
movieClip 36 {
}
movieClip 40 {
}
movieClip 42 {
}
movieClip 44 {
}
// unknown tag 88 length 86
movieClip 48 {
}
movieClip 51 {
}
movieClip 52 {
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 54 {
}
movieClip 58 {
}
movieClip 60 {
}
movieClip 63 {
}
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 5 {
function otskok(i) {
if (dirAngle[i] > 360) {
dirAngle[i] -= 360;
}
if (dirAngle[i] < 0) {
dirAngle[i] += 360;
}
incr_x[i] = Math.cos(dirAngle[i] / 57.32) * Incr;
incr_y[i] = Math.sin(dirAngle[i] / 57.32) * Incr;
}
function BB(n, DY, DX, i) {
var v2 = 40;
if (ball_mc._x < PlayerArr[n]._x) {
alfarad = Math.atan((PlayerArr[n]._y + v2 * DY - ball_mc._y) / (PlayerArr[n]._x + v2 * DX - ball_mc._x));
} else {
alfarad = Math.atan((PlayerArr[n]._y + v2 * DY - ball_mc._y) / (PlayerArr[n]._x + v2 * DX - ball_mc._x)) - Math.PI;
}
alfa = alfarad * 90 / 1.57;
Gamma = alfa - dirAngle[1];
Beta = alfa + 180 + Gamma;
if (Beta > 360) {
Beta -= 360;
}
if (Beta < 0) {
Beta += 360;
}
dirAngle[i] = Beta;
if (dirAngle[1] > 360) {
dirAngle[1] -= 360;
}
if (dirAngle[1] < 0) {
dirAngle[1] += 360;
}
incr_x[1] = Math.cos(dirAngle[1] / 57.32) * Incr;
incr_y[1] = Math.sin(dirAngle[1] / 57.32) * Incr;
}
Help_mc._visible = false;
MouseShow_mc._visible = false;
MouseSh2Fl = false;
OutAll_mc._visible = false;
switch (EasyHard) {
case 1:
Easy_mc._visible = true;
Hard_mc._visible = false;
incrmax = 12;
Incr = 14;
break;
case 3:
Easy_mc._visible = false;
Hard_mc._visible = true;
incrmax = 14;
Incr = 16;
}
dirAngle[1] = randRange(0, 360);
otskok(1);
go_btn.onRelease = function () {
testFlag = false;
IntroFlag = false;
};
TEST_btn.onRelease = function () {
testFlag = true;
IntroFlag = false;
this._visible = false;
};
help_btn.onRelease = function () {
Help_mc._visible = !Help_mc._visible;
PreText_mc._visible = !PreText_mc._visible;
MouseShow_mc._visible = !MouseShow_mc._visible;
OutAll_mc._visible = !OutAll_mc._visible;
if (!MouseSh2Fl) {
MouseShow_mc._x = _root._xmouse;
MouseShow_mc._y = _root._ymouse;
MouseShow_mc.startDrag();
MouseSh2Fl = true;
} else {
MouseShow_mc.stopDrag();
MouseSh2Fl = false;
}
};
MouseShow_mc.onEnterFrame = function () {
if (MouseSh2Fl && this._x < 713 && this._y < 509) {
MouseShow_mc._visible = true;
} else {
MouseShow_mc._visible = false;
}
};
ballslogic_mc.onEnterFrame = function () {
ball_mc._x += incr_x[1];
ball_mc._y += incr_y[1];
if (bat1_mc.contact_mc.hitTest(ball_mc)) {
hitBat1 = true;
ball_mc._x = bat1_mc._x - 18;
} else {
hitBat1 = false;
}
if (bat2_mc.contact_mc.hitTest(ball_mc)) {
hitBat2 = true;
ball_mc._y = bat2_mc._y - 18;
} else {
hitBat2 = false;
}
if (borderLf_mc.hitTest(ball_mc._x, ball_mc._y, true)) {
dirAngle[1] = 180 - dirAngle[1];
ball_mc._x = borderLf_mc._x + 25;
otskok(1);
}
if (borderUp_mc.hitTest(ball_mc._x, ball_mc._y, true)) {
dirAngle[1] = 360 - dirAngle[1];
ball_mc._y += 35;
otskok(1);
}
if (borderRt_mc.hitTest(ball_mc._x, ball_mc._y, true)) {
dirAngle[1] = 180 - dirAngle[1];
ball_mc._x = borderRt_mc._x - 25;
otskok(1);
}
if (borderDn_mc.hitTest(ball_mc._x, ball_mc._y, true)) {
dirAngle[1] = 360 - dirAngle[1];
ball_mc._y = borderDn_mc._y - 25;
otskok(1);
}
};
bat1_mc.onEnterFrame = function () {
if (_root._ymouse > 50 && _root._ymouse < 509) {
this._y = _root._ymouse;
} else {
if (_root._ymouse < 50) {
this._y = 50;
}
if (_root._ymouse > 509) {
this._y = 509;
MouseShowFlag = false;
} else {
MouseShowFlag = true;
}
}
if (hitBat1) {
hitBat1 = false;
BB(1, 0, 1, 1);
ball_mc._x += incr_x[1];
ball_mc._y += incr_y[1];
}
};
bat2_mc.onEnterFrame = function () {
if (_root._xmouse > 50 && _root._xmouse < 713) {
this._x = _root._xmouse;
} else {
if (_root._xmouse < 50) {
this._x = 50;
}
if (_root._xmouse > 713) {
this._x = 713;
MouseShowFlag = false;
} else {
MouseShowFlag = true;
}
}
if (hitBat2) {
hitBat2 = false;
BB(2, 1, 0, 1);
ball_mc._x += incr_x[1];
ball_mc._y += incr_y[1];
}
};
dark_mc.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha -= 2;
}
};
Easy_btn.onRelease = function () {
Easy_mc._visible = true;
Hard_mc._visible = false;
incrmax = 12;
Incr = 14;
EasyHard = 1;
};
Hard_btn.onRelease = function () {
Easy_mc._visible = false;
Hard_mc._visible = true;
incrmax = 14;
Incr = 16;
EasyHard = 3;
};
}
movieClip 78 {
}
// unknown tag 88 length 143
movieClip 99 {
}
movieClip 107 {
}
movieClip 109 {
}
movieClip 111 {
}
frame 7 {
if (IntroFlag) {
gotoAndPlay('Incyc');
}
}
frame 15 {
++gamecnt;
OutAll_mc._visible = false;
}
frame 16 {
function BB(n, DY, DX, i) {
var v2 = 25;
if (ball_mc._x < PlayerArr[n]._x) {
alfarad = Math.atan((PlayerArr[n]._y + v2 * DY - ball_mc._y) / (PlayerArr[n]._x + v2 * DX - ball_mc._x));
} else {
alfarad = Math.atan((PlayerArr[n]._y + v2 * DY - ball_mc._y) / (PlayerArr[n]._x + v2 * DX - ball_mc._x)) - Math.PI;
}
alfa = alfarad * 90 / 1.57;
Gamma = alfa - dirAngle[1];
Beta = alfa + 180 + Gamma;
if (Beta > 360) {
Beta -= 360;
}
if (Beta < 0) {
Beta += 360;
}
dirAngle[i] = Beta;
dirAngle[1] = AngleTo360(dirAngle[1]);
if (n == 1) {
if (dirAngle[1] > 0 && dirAngle[1] < 90) {
dirAngle[1] = 180 - dirAngle[1];
}
if (dirAngle[1] < 0 && dirAngle[1] > -90) {
dirAngle[1] = -180 - dirAngle[1];
}
}
if (n == 2) {
if (dirAngle[1] > 0 && dirAngle[1] < 90) {
dirAngle[1] = -dirAngle[1];
}
if (dirAngle[1] < 90 && dirAngle[1] > 180) {
dirAngle[1] = -dirAngle[1];
}
}
if (n == 4) {
if (dirAngle[1] < -10) {
dirAngle[1] = -5;
}
}
incr_x[1] = Math.cos(dirAngle[1] / 57.32) * Incr;
incr_y[1] = Math.sin(dirAngle[1] / 57.32) * Incr;
}
function otskok(i) {
if (!goal_flag) {
if (dirAngle[i] > 360) {
dirAngle[i] -= 360;
}
if (dirAngle[i] < 0) {
dirAngle[i] += 360;
}
incr_x[i] = Math.cos(dirAngle[i] / 57.32) * Incr;
incr_y[i] = Math.sin(dirAngle[i] / 57.32) * Incr;
}
}
function AngleTo360(ang) {
dirAn_mc._rotation = ang;
ang = dirAn_mc._rotation;
return ang;
}
function randRange(min, max) {
var v1 = Math.floor(Math.random() * (max - min + 1)) + min;
return v1;
}
var limit = 180;
if (testFlag) {
limit = 30;
Sec30_txt._visible = true;
} else {
Sec30_txt._visible = false;
}
heavy_txt._rotation = 45;
var i;
var j;
var winflag = false;
var Pause_Flag = false;
var goal_flag = false;
var PlayerArr = new Array(5);
var undressFlag = false;
var ballJump = 0;
var DrebCnt = new Array(0, 0, 0, 0, 0);
var DelayCnt = new Array(0, 10, 10, 10, 10);
var dirAngle = new Array(50, 200);
var alfarad = 0;
var tang;
var angle;
var angle2;
var alfa = 0;
var Beta = 0;
var Gamma;
var deltX;
var dir = -1;
var dirY = 1;
var incr_x = new Array(0, 0);
var incr_y = new Array(0, 0);
var cc = 0;
var seconds = 0;
var minites = 0;
var time = 0;
var minutesLeft = limit / 60;
var secondsLeft = 0;
var seconds_prnt;
var score1 = 0;
var score2 = 0;
var wt = 0;
var wt1 = 0;
var myPoint = new Object();
var headX;
var headY;
var waitCycFlag = true;
var WCF2 = true;
var afterHit = 0;
var cycNum = 0;
var angDir;
var hitBat1 = false;
var hitBat2 = false;
var hitLeftRight = false;
var curFr;
var LoseFlag = 0;
var AwardFlag = 0;
var Award2Flag = 0;
var Award3Flag = 0;
var Award4Flag = 0;
var cyc = 0;
var coordMem = new Array(0, 0, 0, 0, 0, 0, 0);
PlayerArr[1] = bat1_mc;
PlayerArr[2] = bat2_mc;
PlayerArr[4] = batCopy_mc;
BustyPing_mc._visible = false;
var ContactFrames = new Array(5);
ContactFrames[0] = 1;
BustyPing_mc.gotoAndStop('C1_1');
ContactFrames[1] = BustyPing_mc._currentframe;
BustyPing_mc.gotoAndStop('C3_1');
ContactFrames[2] = BustyPing_mc._currentframe;
BustyPing_mc.gotoAndStop('W0_2');
ContactFrames[3] = BustyPing_mc._currentframe;
BustyPing_mc._visible = true;
BustyPing_mc.gotoAndPlay('W5');
BustyDance_mc._visible = false;
BustyDance_mc.stop();
assAward_mc._visible = false;
assAward_mc.stop();
assAward2_mc._visible = false;
assAward2_mc.stop();
assAward3_mc._visible = false;
assAward3_mc.stop();
Award4Win_mc._visible = false;
Award4Win_mc.stop();
AwardHigher_mc._visible = false;
Level_txt.text = LEVEL;
score1_txt.text = score1;
score2_txt.text = score2;
GameCnt_txt.text = gamecnt;
BstComp_txt.text = highscore1;
BstYou_txt.text = highscore2;
minute_txt.text = minutesLeft;
seconds_prnt = '00';
seconds_txt.text = seconds_prnt;
YouWin_txt._visible = false;
YouLose_txt._visible = false;
next_btn._visible = false;
nextGame_btn._visible = false;
Easy_mc._visible = false;
Hard_mc._visible = false;
SoundOn_btn._visible = false;
borderUp_mc._visible = false;
borderRt_mc._visible = false;
borderDn_mc._visible = false;
borderLf_mc._visible = false;
outOpLf_mc._visible = false;
outOpUp_mc._visible = false;
outOpUp2_mc._visible = false;
outOpRt_mc._visible = false;
outOpDn_mc._visible = false;
goal_txt._visible = false;
OopsSound_mc.gotoAndStop('StopSound');
UraGoal_mc.gotoAndStop('lusastop');
var IntBatX = BustyPing_mc._x;
var IntBatY = BustyPing_mc._y;
var IntBallX = ball_mc._x;
var IntBallY = ball_mc._y;
var DeltaX;
var PrevX = BustyPing_mc._x;
var MaskX = VidMask_mc._x - BustyPing_mc._x;
var MaskY = VidMask_mc._y - BustyPing_mc._y;
BustyPing_mc.setMask(VidMask_mc);
Award4Win_mc.setMask(AwardWinMask_mc);
VidMask_mc._x = BustyPing_mc._x + MaskX;
VidMask_mc._y = BustyPing_mc._y + MaskY;
var CenterX = BustyPing_mc._x + 120;
switch (EasyHard) {
case 1:
Easy_mc._visible = true;
Hard_mc._visible = false;
incrmax = 8;
Incr = 12;
break;
case 3:
Easy_mc._visible = false;
Hard_mc._visible = true;
incrmax = 14;
Incr = 16;
}
wt1 = 1;
goal_flag = false;
waitCycFlag = true;
stop();
ballslogic_mc.onEnterFrame = function () {
if (!Pause_Flag) {
if (!goal_flag) {
ball_mc._x += incr_x[1];
ball_mc._y += incr_y[1];
if (bat1_mc.contact_mc.hitTest(ball_mc)) {
hitBat1 = true;
ball_mc._x = bat1_mc._x - 18;
} else {
hitBat1 = false;
}
if (bat2_mc.contact_mc.hitTest(ball_mc)) {
hitBat2 = true;
ball_mc._y = bat2_mc._y - 18;
} else {
hitBat2 = false;
}
if (borderLf_mc.hitTest(ball_mc._x, ball_mc._y, true)) {
dirAngle[1] = 180 - dirAngle[1];
ball_mc._x = borderLf_mc._x + 25;
otskok(1);
}
if (borderUp_mc.hitTest(ball_mc._x, ball_mc._y, true)) {
goal_flag = true;
goalMeYou = 1;
waitCycFlag = true;
dirAngle[1] = 90;
incr_x[i] = 0;
incr_y[i] = 0;
++score2;
++wt;
outOpUp_mc._visible = true;
outOpUp_mc.play();
outOpUp2_mc._visible = true;
outOpUp2_mc.play();
}
if (borderRt_mc.hitTest(ball_mc._x, ball_mc._y, true)) {
goal_flag = true;
goalMeYou = 2;
waitCycFlag = true;
dirAngle[1] = 90;
incr_x[i] = 0;
incr_y[i] = 0;
++score1;
++wt;
outOpRt_mc._visible = true;
outOpRt_mc.play();
}
if (borderDn_mc.hitTest(ball_mc._x, ball_mc._y, true)) {
goal_flag = true;
goalMeYou = 2;
waitCycFlag = true;
dirAngle[1] = 90;
incr_x[i] = 0;
incr_y[i] = 0;
++score1;
++wt;
outOpDn_mc._visible = true;
outOpDn_mc.play();
}
}
}
};
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);
}
goalMeYou = 0;
}
if (wt == 25) {
score1_txt.text = score1;
score2_txt.text = score2;
goal_txt._visible = true;
}
if (wt == 80) {
ball_mc._x = IntBallX;
ball_mc._y = IntBallY;
whistle1_mc.play();
outOpLf_mc._visible = false;
outOpUp_mc._visible = false;
outOpUp2_mc._visible = false;
outOpRt_mc._visible = false;
outOpDn_mc._visible = false;
outOpUp_mc.stop();
goal_txt._visible = false;
}
if (wt >= 100) {
goal_flag = false;
ball_mc._xscale = 100;
ball_mc._yscale = ball_mc._xscale;
dirAngle[1] = randRange(0, 360);
otskok(1);
PasFlag = false;
wt = 0;
}
}
if (wt1 > 0) {
++wt1;
if (wt1 == 5) {
whistle1_mc.play();
}
if (wt1 >= 25) {
wt1 = 0;
dirAngle[1] = randRange(0, 360);
otskok(1);
}
}
};
bat1_mc.onEnterFrame = function () {
if (!winflag) {
if (_root._ymouse > 30 && _root._ymouse < 509) {
this._y = _root._ymouse;
} else {
if (_root._ymouse < 30) {
this._y = 30;
}
if (_root._ymouse > 509) {
this._y = 509;
}
}
}
if (hitBat1) {
hitBat1 = false;
BB(1, 0, 1, 1);
ball_mc._x += incr_x[1];
ball_mc._y += incr_y[1];
}
};
bat2_mc.onEnterFrame = function () {
if (!winflag) {
if (_root._xmouse > 50 && _root._xmouse < 713) {
this._x = _root._xmouse;
} else {
if (_root._xmouse < 50) {
this._x = 50;
}
if (_root._xmouse > 713) {
this._x = 713;
}
}
}
if (hitBat2) {
hitBat2 = false;
BB(2, 1, 0, 1);
ball_mc._x += incr_x[1];
ball_mc._y += incr_y[1];
}
};
BustyPing_mc.BatHer_mc.onEnterFrame = function () {
myPoint.x = this._x;
myPoint.y = this._y;
BustyPing_mc.localToGlobal(myPoint);
headX = myPoint.x;
headY = myPoint.y;
batCopy_mc._x = headX;
batCopy_mc._y = headY;
};
BustyPing_mc.onEnterFrame = function () {
var v3;
var v8 = 8;
var v7 = new Array(2);
var v9;
var v6;
var v5;
var v4;
var v2;
if (!Pause_Flag) {
if (!winflag) {
if (!goal_flag) {
angDir = AngleTo360(dirAngle[1]);
if (angDir < 0) {
v5 = ball_mc._x - batCopy_mc._x;
v4 = ball_mc._y - batCopy_mc._y;
v6 = Math.sqrt(v5 * v5 + v4 * v4);
v2 = Math.floor(v6 / Incr);
if (angDir > -90) {
if (v2 <= 17 && waitCycFlag) {
waitCycFlag = false;
WCF2 = true;
afterHit = 0;
BustyPing_mc.gotoAndPlay(ContactFrames[2] - v2);
hitLeftRight = true;
}
}
if (angDir < -90) {
if (v2 <= 18 && waitCycFlag) {
waitCycFlag = false;
WCF2 = true;
afterHit = 0;
BustyPing_mc.gotoAndPlay(ContactFrames[1] - v2);
hitLeftRight = false;
}
}
}
if (afterHit == 1 && angDir < 0) {
if (angDir > -90) {
if (v2 < 17) {
waitCycFlag = false;
afterHit = 2;
BustyPing_mc.gotoAndPlay(ContactFrames[2] - v2);
}
}
if (angDir < -90) {
if (v2 < 18) {
waitCycFlag = false;
WCF2 = true;
afterHit = 2;
BustyPing_mc.gotoAndPlay(ContactFrames[1] - v2);
}
}
}
}
if (!goal_flag) {
if (angDir < 0) {
v3 = ball_mc._x - headX;
} else {
v3 = CenterX - headX;
}
} else {
v3 = CenterX - headX;
}
if (v3 > incrmax) {
v3 = incrmax;
}
if (v3 < -incrmax) {
v3 = -incrmax;
}
PrevX = this._x;
this._x += v3;
if (this._x < -397) {
this._x = -397;
}
if (this._x > 460) {
this._x = 460;
}
DeltaX = PrevX - this._x;
this._y += DeltaX * 0.18;
if (Math.abs(this._x - IntBatX) < 5) {
this._y = IntBatY;
}
VidMask_mc._x = BustyPing_mc._x + MaskX;
VidMask_mc._y = BustyPing_mc._y + MaskY;
if (this.BatHer_mc.hitTest(ball_mc)) {
++afterHit;
BB(4, -1, -1, 1);
ball_mc._x += incr_x[1];
ball_mc._y += incr_y[1];
if (!hitLeftRight) {
curFr = this._currentframe;
if (curFr > 23 && curFr < 52) {
BustyPing_mc.gotoAndPlay(19);
}
}
}
}
}
};
timer_mc.onEnterFrame = function () {
if (!Pause_Flag) {
if (!winflag) {
++cc;
}
}
if (cc >= 25) {
cc = 0;
++seconds;
--secondsLeft;
++time;
if (seconds >= 60) {
seconds = 0;
++minites;
}
if (secondsLeft < 0) {
secondsLeft = 59;
--minutesLeft;
}
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) {
gameover_mc.play();
wistlEnd_mc.play();
winflag = true;
waitCycFlag = true;
dirAngle[1] = 90;
score1_txt.text = score1;
score2_txt.text = score2;
goal_txt._visible = false;
outOpLf_mc._visible = false;
outOpUp_mc._visible = false;
outOpUp2_mc._visible = false;
outOpRt_mc._visible = false;
outOpDn_mc._visible = false;
next_btn._visible = true;
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;
if (LEVEL == 4) {
if (!testFlag) {
if (differscoreNew > differscoreOld) {
Award4Flag = 1;
next_btn._visible = false;
nextGame_btn._visible = true;
++LEVEL;
}
} else {
Award4Flag = 1;
next_btn._visible = false;
nextGame_btn._visible = true;
++LEVEL;
}
}
if (LEVEL == 3) {
if (!testFlag) {
if (differscoreNew > differscoreOld) {
Award3Flag = 1;
++LEVEL;
}
} else {
Award3Flag = 1;
++LEVEL;
}
}
if (LEVEL == 2) {
if (!testFlag) {
if (differscoreNew > differscoreOld) {
Award2Flag = 1;
++LEVEL;
}
} else {
Award2Flag = 1;
++LEVEL;
}
}
if (LEVEL == 1) {
AwardFlag = 1;
++LEVEL;
}
Level_txt.text = LEVEL;
}
if (score2 < score1) {
YouLose_txt._visible = true;
LoseFlag = 1;
}
incr_x[1] = 0;
incr_y[1] = 0;
ball_mc._x = IntBallX;
ball_mc._y = IntBallY;
wt = 0;
}
}
};
LoseProc_mc.onEnterFrame = function () {
if (winflag) {
if (LoseFlag == 1) {
if (BustyPing_mc._x < BustyDance_mc._x) {
PrevX = BustyPing_mc._x;
BustyPing_mc._x += 2;
DeltaX = PrevX - BustyPing_mc._x;
BustyPing_mc._y += DeltaX * 0.18;
VidMask_mc._x = BustyPing_mc._x + MaskX;
VidMask_mc._y = BustyPing_mc._y + MaskY;
} else {
LoseFlag = 2;
BustyPing_mc._visible = false;
BustyDance_mc._visible = true;
BustyDance_mc.gotoAndPlay(1);
WowSound_mc.gotoAndPlay(2);
}
}
}
};
assAward_mc.onEnterFrame = function () {
if (winflag) {
if (AwardFlag == 1) {
if (BustyPing_mc._x < assAward_mc._x) {
PrevX = BustyPing_mc._x;
BustyPing_mc._x += 2;
DeltaX = PrevX - BustyPing_mc._x;
BustyPing_mc._y += DeltaX * 0.18;
VidMask_mc._x = BustyPing_mc._x + MaskX;
VidMask_mc._y = BustyPing_mc._y + MaskY;
} else {
AwardFlag = 2;
BustyPing_mc._visible = false;
assAward_mc._visible = true;
assAward_mc.gotoAndPlay(1);
}
}
if (AwardFlag == 2) {
if (assAward_mc._x > 12) {
assAward_mc._x -= 2;
} else {
AwardFlag = 3;
AwardHigher_mc._visible = true;
}
}
}
};
assAward2_mc.onEnterFrame = function () {
if (winflag) {
if (Award2Flag == 1) {
if (BustyPing_mc._x < assAward2_mc._x) {
PrevX = BustyPing_mc._x;
BustyPing_mc._x += 2;
DeltaX = PrevX - BustyPing_mc._x;
BustyPing_mc._y += DeltaX * 0.18;
VidMask_mc._x = BustyPing_mc._x + MaskX;
VidMask_mc._y = BustyPing_mc._y + MaskY;
} else {
Award2Flag = 2;
assAward2_mc._x = BustyPing_mc._x;
BustyPing_mc._visible = false;
assAward2_mc._visible = true;
assAward2_mc.gotoAndPlay(1);
}
}
if (Award2Flag == 2) {
if (assAward2_mc._x > 12) {
assAward2_mc._x -= 2;
} else {
Award2Flag = 3;
AwardHigher_mc._visible = true;
}
}
}
};
assAward3_mc.onEnterFrame = function () {
if (winflag) {
if (Award3Flag == 1) {
if (BustyPing_mc._x < assAward3_mc._x) {
PrevX = BustyPing_mc._x;
BustyPing_mc._x += 2;
DeltaX = PrevX - BustyPing_mc._x;
BustyPing_mc._y += DeltaX * 0.18;
VidMask_mc._x = BustyPing_mc._x + MaskX;
VidMask_mc._y = BustyPing_mc._y + MaskY;
} else {
Award3Flag = 2;
assAward3_mc._x = BustyPing_mc._x;
BustyPing_mc._visible = false;
assAward3_mc._visible = true;
assAward3_mc.gotoAndPlay(1);
}
}
if (Award3Flag == 2) {
if (assAward3_mc._x > 12) {
assAward3_mc._x -= 2;
} else {
Award3Flag = 3;
AwardHigher_mc._visible = true;
}
}
}
};
Award4Win_mc.onEnterFrame = function () {
if (winflag) {
if (Award4Flag == 1) {
if (BustyPing_mc._x < Award4Win_mc._x) {
PrevX = BustyPing_mc._x;
BustyPing_mc._x += 2;
DeltaX = PrevX - BustyPing_mc._x;
BustyPing_mc._y += DeltaX * 0.18;
VidMask_mc._x = BustyPing_mc._x + MaskX;
VidMask_mc._y = BustyPing_mc._y + MaskY;
} else {
Award4Flag = 2;
BustyPing_mc._visible = false;
Award4Win_mc._visible = true;
Award4Win_mc.gotoAndPlay(1);
}
}
if (Award4Flag == 2) {
if (Award4Win_mc._currentframe == 50) {
Award4Flag = 3;
Congrats_mc._visible = true;
Congrats_mc.gotoAndPlay(2);
gameover_mc.gotoAndStop(1);
}
}
}
};
End_btn.onRelease = function () {
IntroFlag = true;
LEVEL = 1;
differscoreNew = 0;
differscoreOld = 0;
highscore2 = 0;
highscore1 = 0;
gotoAndPlay('introwait');
};
help_btn.onRelease = function () {
help_mc.play();
Pause_Flag = !Pause_Flag;
};
help_mc.onRelease = function () {
help_mc.play();
if (help_mc._currentframe > 1) {
}
};
help_mc.onEnterFrame = function () {
if (this._currentframe > 1) {
Pause_Flag = true;
}
if (this._currentframe >= 30) {
Pause_Flag = false;
}
};
pause_btn.onRelease = function () {
Pause_Flag = !Pause_Flag;
};
next_btn.onRelease = function () {
if (this._visible) {
gotoAndPlay('intronext');
}
};
nextGame_btn.onRelease = function () {
if (this._visible) {
LEVEL = 1;
differscoreNew = 0;
differscoreOld = 0;
highscore2 = 0;
highscore1 = 0;
gotoAndPlay('intronext');
}
};
Easy_btn.onRelease = function () {
Easy_mc._visible = true;
Hard_mc._visible = false;
incrmax = 8;
Incr = 12;
EasyHard = 1;
};
Hard_btn.onRelease = function () {
Easy_mc._visible = false;
Hard_mc._visible = true;
incrmax = 14;
Incr = 14;
EasyHard = 3;
};
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 129 {
}
movieClip 152 {
}
movieClip 155 {
}
movieClip 204 {
frame 2 {
if (_root.waitCycFlag) {
gotoAndPlay('W5');
}
}
frame 29 {
_root.afterHit = 1;
}
frame 51 {
_root.waitCycFlag = true;
gotoAndPlay('W55');
}
frame 52 {
if (_root.waitCycFlag) {
gotoAndPlay('W55');
}
}
frame 71 {
_root.afterHit = 1;
}
frame 90 {
_root.waitCycFlag = true;
gotoAndPlay('W5');
}
frame 91 {
_root.afterHit = 0;
}
frame 102 {
if (_root.cycNum < 2) {
++_root.cycNum;
gotoAndPlay('T2');
}
if (_root.cycNum == 4) {
++_root.cycNum;
gotoAndPlay('T2');
}
}
frame 104 {
if (_root.cycNum == 3) {
++_root.cycNum;
gotoAndPlay('T1');
}
if (_root.cycNum == 5) {
++_root.cycNum;
}
}
frame 113 {
if (_root.waitCycFlag) {
++_root.cycNum;
if (_root.cycNum > 7) {
_root.cycNum = 0;
}
gotoAndPlay('W5');
}
}
}
movieClip 210 {
frame 22 {
++_root.cyc;
if (_root.cyc < 2) {
gotoAndPlay('D000');
}
}
frame 32 {
}
frame 42 {
}
frame 48 {
}
frame 63 {
++_root.cyc;
if (_root.cyc < 5) {
gotoAndPlay('D5');
}
}
frame 67 {
}
frame 76 {
_root.cyc = 0;
}
}
movieClip 250 {
frame 86 {
}
frame 106 {
gotoAndPlay('C1');
}
}
movieClip 324 {
}
movieClip 390 {
}
movieClip 392 {
}
movieClip 397 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay('outPlay');
}
}
movieClip 403 {
}
movieClip 412 {
}
movieClip 422 {
}
movieClip 424 {
}
movieClip 427 {
frame 1 {
stop();
}
frame 60 {
stop();
}
}
movieClip 431 {
frame 1 {
stop();
}
frame 15 {
stop();
}
frame 31 {
gotoAndStop(1);
}
}
movieClip 436 {
}
movieClip 439 {
frame 1 {
stop();
}
frame 80 {
stop();
}
}
movieClip 443 {
frame 1 {
stop();
}
frame 51 {
gotoAndStop('sndStop');
}
}
movieClip 445 {
frame 1 {
stop();
}
frame 6 {
gotoAndStop('wstStop');
}
}
movieClip 446 {
frame 1 {
stop();
}
frame 38 {
gotoAndStop('wstStop');
}
}
movieClip 448 {
frame 33 {
stop();
}
}
movieClip 450 {
frame 30 {
stop();
}
}