Combined Code
frame 1 {
ifFrameLoaded (5) {
gotoAndPlay(5);
}
}
button 4 {
on (keyPress '<Enter>') {
/nothing._x = '0' - '10';
}
on (keyPress '<Right>') {
/nothing._x = '0' - '10';
}
on (keyPress '<Left>') {
/nothing._x = '0' - '10';
}
on (keyPress ',') {
/nothing._x = '0' - '10';
}
on (keyPress '.') {
/nothing._x = '0' - '10';
}
}
movieClip 5 {
}
frame 2 {
call('play agin');
gotoAndPlay(1);
}
frame 5 {
ifFrameLoaded (12) {
gotoAndPlay(12);
}
}
movieClip 23 {
}
button 27 {
on (release) {
tellTarget ('_level0') {
gotoAndStop('start');
}
}
}
movieClip 30 {
frame 1 {
stop();
}
frame 30 {
stop();
}
}
button 37 {
on (release) {
getURL('http://www.CircusX.com/main.html', '_blank');
}
}
frame 6 {
call('loading title');
gotoAndPlay(5);
}
frame 30 {
ifFrameLoaded (49) {
tellTarget ('/loading bar') {
gotoAndStop('1');
}
}
ifFrameLoaded (50) {
tellTarget ('/loading bar') {
gotoAndStop('2');
}
}
ifFrameLoaded (51) {
tellTarget ('/loading bar') {
gotoAndStop('3');
}
}
ifFrameLoaded (52) {
tellTarget ('/loading bar') {
gotoAndStop('4');
}
}
ifFrameLoaded (53) {
tellTarget ('/loading bar') {
gotoAndStop('5');
}
}
ifFrameLoaded (54) {
tellTarget ('/loading bar') {
gotoAndStop('6');
}
}
ifFrameLoaded (55) {
tellTarget ('/loading bar') {
gotoAndStop('7');
}
}
ifFrameLoaded (56) {
tellTarget ('/loading bar') {
gotoAndStop('8');
}
}
ifFrameLoaded (80) {
tellTarget ('/loading bar') {
gotoAndStop('9');
}
}
ifFrameLoaded (121) {
tellTarget ('/loading bar') {
gotoAndPlay('10');
}
gotoAndStop(36);
}
}
frame 31 {
call('game loading');
gotoAndPlay(30);
}
frame 36 {
stop();
}
movieClip 45 {
frame 1 {
if (crack eq 'circusX' or crack eq 'circusx' or crack eq 'CircusX' or crack eq 'Circusx' or crack eq 'CIRCUSX') {
tellTarget ('_level0') {
gotoAndStop('level 2');
}
}
}
frame 2 {
call('on');
gotoAndPlay(1);
}
}
movieClip 60 {
frame 1 {
stop();
}
frame 2 {
ball2X = /ball2._x - '10';
ball2Y = /ball2._y - '10';
blue1aX = /blue1._x - '40';
blue1aY = /blue1._y - '60';
blue1bX = /blue1._x + '30';
blue1bY = /blue1._y - '60';
if (/:ballNumberBlue1 == '0') {
if (blue1aX + '10' >= ball2X and ball2X + '20' >= blue1aX and blue1aY + '80' >= ball2Y and ball2Y + '20' >= blue1aY) {
tellTarget ('/ccball2') {
gotoAndStop('off');
}
tellTarget ('/catchball2') {
gotoAndStop('off');
}
tellTarget ('/addScoreRed') {
gotoAndPlay('on');
}
}
}
if (/:ballNumberBlue1 == '0') {
if (blue1bX + '10' >= ball2X and ball2X + '20' >= blue1bX and blue1bY + '80' >= ball2Y and ball2Y + '20' >= blue1bY) {
tellTarget ('/ccball2') {
gotoAndStop('off');
}
tellTarget ('/catchball2') {
gotoAndStop('off');
}
tellTarget ('/addScoreRed') {
gotoAndPlay('on');
}
}
}
redaX = /red._x - '40';
redaY = /red._y - '60';
redbX = /red._x + '30';
redbY = /red._y - '60';
if (/:ballNumberRed == '0') {
if (redaX + '10' >= ball2X and ball2X + '20' >= redaX and redaY + '80' >= ball2Y and ball2Y + '20' >= redaY) {
tellTarget ('/ccball2') {
gotoAndStop('off');
}
tellTarget ('/catchball2') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
}
}
if (/:ballNumberRed == '0') {
if (redbX + '10' >= ball2X and ball2X + '20' >= redbX and redbY + '80' >= ball2Y and ball2Y + '20' >= redbY) {
tellTarget ('/ccball2') {
gotoAndStop('off');
}
tellTarget ('/catchball2') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
}
}
}
frame 3 {
call('on');
gotoAndPlay(2);
}
}
movieClip 61 {
frame 1 {
stop();
}
frame 2 {
ball1X = /ball1._x - '10';
ball1Y = /ball1._y - '10';
blue1X = /blue1._x - '10';
blue1Y = /blue1._y - '60';
redX = /red._x - '10';
redY = /red._y - '50';
if (blue1X + '20' >= ball1X and ball1X + '20' >= blue1X and blue1Y + '40' >= ball1Y and ball1Y + '20' >= blue1Y) {
/:BlueDown += '1';
tellTarget ('/blue1') {
gotoAndPlay('hit');
}
tellTarget ('/ccball1') {
gotoAndStop('off');
}
tellTarget ('/addScoreRed') {
gotoAndPlay('on');
}
/:ballNumberBlue1 = '0';
}
if (redX + '20' >= ball1X and ball1X + '20' >= redX and (redY + '75' >= ball1Y and ball1Y + '20' >= redY)) {
/:RedDown += '1';
tellTarget ('/red') {
gotoAndPlay('hit');
}
tellTarget ('/ccball1') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
/ball2._xscale = '100';
/ball2._yscale = '100';
tellTarget ('/ball2') {
gotoAndStop('off');
}
tellTarget ('/red/power') {
gotoAndStop('off');
}
/:ballNumberRed = '0';
}
}
frame 3 {
call('on');
gotoAndPlay(2);
}
frame 5 {
ball1X = /ball1._x - '10';
ball1Y = /ball1._y - '10';
blue1aX = /blue1._x - '40';
blue1aY = /blue1._y - '60';
blue1bX = /blue1._x + '30';
blue1bY = /blue1._y - '60';
if (blue1aX + '10' >= ball1X and ball1X + '20' >= blue1aX and blue1aY + '80' >= ball1Y and ball1Y + '20' >= blue1aY) {
tellTarget ('/ccball1') {
gotoAndStop('off');
}
tellTarget ('/addScoreRed') {
gotoAndPlay('on');
}
}
if (blue1bX + '10' >= ball1X and ball1X + '20' >= blue1bX and blue1bY + '80' >= ball1Y and ball1Y + '20' >= blue1bY) {
tellTarget ('/ccball1') {
gotoAndStop('off');
}
tellTarget ('/addScoreRed') {
gotoAndPlay('on');
}
}
redaX = /red._x - '40';
redaY = /red._y - '60';
redbX = /red._x + '30';
redbY = /red._y - '60';
if (redaX + '10' >= ball1X and ball1X + '20' >= redaX and redaY + '80' >= ball1Y and ball1Y + '20' >= redaY) {
tellTarget ('/ccball1') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
}
if (redbX + '10' >= ball1X and ball1X + '20' >= redbX and redbY + '80' >= ball1Y and ball1Y + '20' >= redbY) {
tellTarget ('/ccball1') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
}
}
frame 6 {
call('on');
}
}
movieClip 62 {
frame 1 {
stop();
}
frame 2 {
ball2X = /ball2._x - '10';
ball2Y = /ball2._y - '10';
blue1X = /blue1._x - '10';
blue1Y = /blue1._y - '60';
redX = /red._x - '10';
redY = /red._y - '50';
if (blue1X + '20' >= ball2X and ball2X + '20' >= blue1X and blue1Y + '40' >= ball2Y and ball2Y + '20' >= blue1Y) {
/:BlueDown += '1';
tellTarget ('/blue1') {
gotoAndPlay('hit');
}
tellTarget ('/ccball2') {
gotoAndStop('off');
}
tellTarget ('/addScoreRed') {
gotoAndPlay('on');
}
/:ballNumberBlue1 = '0';
}
if (redX + '20' >= ball2X and ball2X + '20' >= redX and (redY + '75' >= ball2Y and ball2Y + '20' >= redY)) {
/:RedDown += '1';
tellTarget ('/red') {
gotoAndPlay('hit');
}
tellTarget ('/ccball2') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
/ball1._xscale = '100';
/ball1._yscale = '100';
tellTarget ('/ball1') {
gotoAndStop('off');
}
tellTarget ('/red/power') {
gotoAndStop('off');
}
/:ballNumberRed = '0';
}
}
frame 3 {
call('on');
gotoAndPlay(2);
}
frame 5 {
ball2X = /ball2._x - '10';
ball2Y = /ball2._y - '10';
blue1aX = /blue1._x - '40';
blue1aY = /blue1._y - '60';
blue1bX = /blue1._x + '30';
blue1bY = /blue1._y - '60';
if (blue1aX + '10' >= ball2X and ball2X + '20' >= blue1aX and blue1aY + '80' >= ball2Y and ball2Y + '20' >= blue1aY) {
tellTarget ('/ccball2') {
gotoAndStop('off');
}
tellTarget ('/addScoreRed') {
gotoAndPlay('on');
}
}
if (blue1bX + '10' >= ball2X and ball2X + '20' >= blue1bX and blue1bY + '80' >= ball2Y and ball2Y + '20' >= blue1bY) {
tellTarget ('/ccball2') {
gotoAndStop('off');
}
tellTarget ('/addScoreRed') {
gotoAndPlay('on');
}
}
redaX = /red._x - '40';
redaY = /red._y - '60';
redbX = /red._x + '30';
redbY = /red._y - '60';
if (redaX + '10' >= ball2X and ball2X + '20' >= redaX and redaY + '80' >= ball2Y and ball2Y + '20' >= redaY) {
tellTarget ('/ccball2') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
}
if (redbX + '10' >= ball2X and ball2X + '20' >= redbX and redbY + '80' >= ball2Y and ball2Y + '20' >= redbY) {
tellTarget ('/ccball2') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
}
}
frame 6 {
call('on');
}
}
movieClip 63 {
frame 1 {
stop();
}
frame 2 {
ball1X = /ball1._x - '10';
ball1Y = /ball1._y - '10';
blue1aX = /blue1._x - '40';
blue1aY = /blue1._y - '60';
blue1bX = /blue1._x + '30';
blue1bY = /blue1._y - '60';
if (/:ballNumberBlue1 == '0') {
if (blue1aX + '10' >= ball1X and ball1X + '20' >= blue1aX and blue1aY + '80' >= ball1Y and ball1Y + '20' >= blue1aY) {
tellTarget ('/ccball1') {
gotoAndStop('off');
}
tellTarget ('/catchball1') {
gotoAndStop('off');
}
tellTarget ('/addScoreRed') {
gotoAndPlay('on');
}
}
}
if (/:ballNumberBlue1 == '0') {
if (blue1bX + '10' >= ball1X and ball1X + '20' >= blue1bX and blue1bY + '80' >= ball1Y and ball1Y + '20' >= blue1bY) {
tellTarget ('/ccball1') {
gotoAndStop('off');
}
tellTarget ('/catchball1') {
gotoAndStop('off');
}
tellTarget ('/addScoreRed') {
gotoAndPlay('on');
}
}
}
redaX = /red._x - '40';
redaY = /red._y - '60';
redbX = /red._x + '30';
redbY = /red._y - '60';
if (/:ballNumberRed == '0') {
if (redaX + '10' >= ball1X and ball1X + '20' >= redaX and redaY + '80' >= ball1Y and ball1Y + '20' >= redaY) {
tellTarget ('/ccball1') {
gotoAndStop('off');
}
tellTarget ('/catchball1') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
}
}
if (/:ballNumberRed == '0') {
if (redbX + '10' >= ball1X and ball1X + '20' >= redbX and redbY + '80' >= ball1Y and ball1Y + '20' >= redbY) {
tellTarget ('/ccball1') {
gotoAndStop('off');
}
tellTarget ('/catchball1') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
}
}
}
frame 3 {
call('on');
gotoAndPlay(2);
}
}
movieClip 64 {
frame 1 {
stop();
}
frame 2 {
ball1X = /Tball1._x - '5';
ball1Y = /Tball1._y - '5';
redX = /red._x - '20';
redY = /red._y - '20';
if (redX + '40' >= ball1X and ball1X + '10' >= redX and (redY + '40' >= ball1Y and ball1Y + '10' >= redY)) {
/:RedDown += '1';
tellTarget ('/red') {
gotoAndPlay('hit');
}
tellTarget ('/ccTball1') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
tellTarget ('/red/power') {
gotoAndStop('off');
}
if (/:ballNumberRed == '1') {
/ball1._xscale = '100';
/ball1._yscale = '100';
tellTarget ('/ball1') {
gotoAndStop('off');
}
}
if (/:ballNumberRed == '2') {
/ball2._xscale = '100';
/ball2._yscale = '100';
tellTarget ('/ball2') {
gotoAndStop('off');
}
}
/:ballNumberRed = '0';
}
}
frame 3 {
call('on');
gotoAndPlay(2);
}
}
movieClip 65 {
frame 1 {
stop();
}
frame 2 {
ball2X = /Tball2._x - '5';
ball2Y = /Tball2._y - '5';
redX = /red._x - '20';
redY = /red._y - '20';
if (redX + '40' >= ball2X and ball2X + '10' >= redX and (redY + '40' >= ball2Y and ball2Y + '10' >= redY)) {
/:RedDown += '1';
tellTarget ('/red') {
gotoAndPlay('hit');
}
tellTarget ('/ccTball2') {
gotoAndStop('off');
}
tellTarget ('/addScoreBlue') {
gotoAndPlay('on');
}
tellTarget ('/red/power') {
gotoAndStop('off');
}
if (/:ballNumberRed == '1') {
/ball1._xscale = '100';
/ball1._yscale = '100';
tellTarget ('/ball1') {
gotoAndStop('off');
}
}
if (/:ballNumberRed == '2') {
/ball2._xscale = '100';
/ball2._yscale = '100';
tellTarget ('/ball2') {
gotoAndStop('off');
}
}
/:ballNumberRed = '0';
}
}
frame 3 {
call('on');
gotoAndPlay(2);
}
}
movieClip 67 {
frame 1 {
randomD = random('10');
randomM = random('20') + '20';
}
frame 2 {
if (randomD == '2') {
/blue1._x = /blue1._x + RandomM;
}
if (randomD == '3') {
/blue1._x = /blue1._x - RandomM;
}
if (randomD == '4') {
/blue1._y = /blue1._y - RandomM;
}
if (randomD == '5') {
/blue1._y = /blue1._y + RandomM;
}
gotoAndPlay(1);
}
frame 5 {
play();
}
frame 25 {
gotoAndPlay(1);
}
}
movieClip 68 {
frame 1 {
blue1X = /blue1._x - '20';
blue1Y = /blue1._y - '60';
ballX = /ball._x - '15';
ballY = /ball._y - '15';
if ('0' < /:ballPower) {
if (blue1X + '40' >= ballX and ballX + '30' >= blue1X and blue1Y + '60' >= ballY and ballY + '30' >= blue1Y) {
tellTarget ('/blue1') {
gotoAndPlay('mouthfull');
}
tellTarget ('/ball') {
gotoAndStop('off');
}
/ball._y = '160';
/ball._x = '0' - '50';
/:direction = '2';
}
} else {
if (blue1X + '40' >= ballX and ballX + '30' >= blue1X and blue1Y + '60' >= ballY and ballY + '30' >= blue1Y) {
tellTarget ('/blue1') {
gotoAndPlay('ball');
}
tellTarget ('/ball') {
gotoAndStop('off');
}
/ball._y = '160';
/ball._x = '0' - '50';
/:direction = '2';
}
}
}
frame 2 {
call('on');
gotoAndPlay(1);
}
}
movieClip 75 {
frame 1 {
stop();
}
frame 2 {
if (/:ballInBlueZone == '1') {
ball1Sx = /ball1._x;
ball1Sy = /ball1._y;
blue1Sx = /blue1._x;
blue1Sy = /blue1._y;
if (ball1Sx < blue1Sx) {
/blue1._x = /blue1._x - '20';
}
if (blue1Sx < ball1Sx) {
/blue1._x = /blue1._x + '20';
}
if (ball1Sy < blue1Sy) {
/blue1._y = /blue1._y - '20';
}
if (blue1Sy < ball1Sy) {
/blue1._y = /blue1._y + '20';
}
}
if (/:ballInBlueZone == '2') {
ball2Sx = /ball2._x;
ball2Sy = /ball2._y;
blue1Sx = /blue1._x;
blue1Sy = /blue1._y;
if (ball2Sx < blue1Sx) {
/blue1._x = /blue1._x - '20';
}
if (blue1Sx < ball2Sx) {
/blue1._x = /blue1._x + '20';
}
if (ball2Sy < blue1Sy) {
/blue1._y = /blue1._y - '20';
}
if (blue1Sy < ball2Sy) {
/blue1._y = /blue1._y + '20';
}
}
}
frame 3 {
call('on');
gotoAndPlay(2);
}
frame 5 {
redSx = /red._x;
redSy = /red._y;
blue1Sx = /blue1._x - '20';
blue1Sy = /blue1._y;
if (ball1Sy < '180') {
if (redSx < blue1Sx) {
/blue1._x = /blue1._x - '20';
}
if (blue1Sx < redSx) {
/blue1._x = /blue1._x + '20';
}
}
}
frame 6 {
call('offense');
gotoAndPlay(5);
}
frame 10 {
redSx = /red._x;
redSy = /red._y;
blue1Sx = /blue1._x - '20';
blue1Sy = /blue1._y;
if (ball1Sy < '180') {
if (redSx < blue1Sx) {
/blue1._x = /blue1._x + '20';
}
if (blue1Sx < redSx) {
/blue1._x = /blue1._x - '20';
}
}
}
frame 11 {
call('defense');
gotoAndPlay(10);
}
}
movieClip 77 {
frame 1 {
stop();
}
frame 5 {
startDrag('/red', true, '25', '250', '475', '300');
tellTarget ('/bMovement') {
play();
}
tellTarget ('/blueGetBall') {
play();
}
tellTarget ('/ball1') {
play();
}
tellTarget ('/ball2') {
play();
}
tellTarget ('/boundaries') {
play();
}
}
frame 6 {
call('off');
stop();
}
frame 10 {
stopDrag();
tellTarget ('/bMovement') {
stop();
}
tellTarget ('/blueGetBall') {
stop();
}
tellTarget ('/ball1') {
stop();
}
tellTarget ('/ball2') {
stop();
}
tellTarget ('/boundaries') {
stop();
}
}
frame 11 {
call('on');
stop();
}
}
movieClip 79 {
frame 1 {
stop();
}
frame 6 {
if ('0' < /:redDown) {
/:blueScore += '50';
}
gotoAndStop(1);
}
}
movieClip 80 {
frame 1 {
stop();
}
frame 6 {
if ('0' < /:BlueDown) {
/:redScore += '50';
}
gotoAndStop(1);
}
}
movieClip 81 {
frame 1 {
if (/:level == '1') {
if (/:redScore >= '500') {
tellTarget ('_level0') {
gotoAndPlay('trans');
}
}
}
if (/:level == '1') {
if (/:blueScore >= '500') {
tellTarget ('_level0') {
gotoAndPlay('lose');
}
}
}
if (/:level == '2') {
if (/:redScore >= '1000') {
tellTarget ('_level0') {
gotoAndPlay('win');
}
}
}
if (/:level == '2') {
if (/:blueScore >= '1000') {
tellTarget ('_level0') {
gotoAndPlay('lose');
}
}
}
}
frame 1 {
ball1X = /ball1._x;
ball1Y = /ball1._y;
ball2X = /ball2._x;
ball2Y = /ball2._y;
if (ball1y < '40') {
/ball1._y = '40';
}
if ('310' < ball1y) {
/ball1._y = '310';
}
if (ball1X < '25') {
/ball1._x = '25';
}
if ('475' < ball1X) {
/ball1._x = '475';
}
if (ball2y < '40') {
/ball2._y = '40';
}
if ('310' < ball2y) {
/ball2._y = '310';
}
if (ball2X < '25') {
/ball2._x = '25';
}
if ('475' < ball2X) {
/ball2._x = '475';
}
if (ball1x < '100' and ball1y < '80') {
/ball1._y = '80';
}
if (ball2x < '100' and ball2y < '80') {
/ball2._y = '80';
}
if ('400' < ball1x and ball1y < '80') {
/ball1._y = '80';
}
if ('400' < ball2x and ball2y < '80') {
/ball2._y = '80';
}
}
frame 1 {
blue1X = /blue1._x;
blue1Y = /blue1._y;
if (blue1y < '40') {
/blue1._y = '40';
}
if ('140' < blue1y) {
/blue1._y = '140';
}
if (blue1x < '50') {
/blue1._x = '50';
}
if ('450' < blue1x) {
/blue1._x = '450';
}
if (blue1x < '100' and blue1y < '80') {
/blue1._y = '80';
}
if (blue1x < '100' and blue1y < '80') {
/blue1._y = '80';
}
if ('400' < blue1x and blue1y < '80') {
/blue1._y = '80';
}
if ('400' < blue1x and blue1y < '80') {
/blue1._y = '80';
}
}
frame 1 {
ball1 = /ball1._y;
ball2 = /ball2._y;
if ('180' < ball1) {
if ('180' < ball2) {
/:ballInBlueZone = '0';
tellTarget ('/blueGetBall') {
gotoAndPlay('defense');
}
}
}
if (ball1 < '180') {
if (ball2 < '180') {
if (/:ballNumberBlue1 == '0') {
/:ballInBlueZone = '1';
tellTarget ('/blueGetBall') {
gotoAndPlay('on');
}
}
}
}
if (/:ballInBlueZone == '0') {
if (ball1 < '180') {
/:ballInBlueZone = '1';
}
if (ball2 < '180') {
/:ballInBlueZone = '2';
}
}
if (/:ballInBlueZone == '1') {
tellTarget ('/blueGetBall') {
gotoAndPlay('on');
}
}
if (/:ballInBlueZone == '2') {
tellTarget ('/blueGetBall') {
gotoAndPlay('on');
}
}
}
frame 2 {
call('on');
gotoAndPlay(1);
}
frame 2 {
call('on');
gotoAndPlay(1);
}
frame 2 {
call('on');
}
frame 2 {
call('on');
}
}
movieClip 90 {
frame 1 {
stop();
}
frame 2 {
/:ballForceRed = '40';
}
frame 3 {
/:ballForceRed = '40';
}
frame 4 {
/:ballForceRed = '40';
}
frame 5 {
/:ballForceRed = '60';
}
frame 6 {
/:ballForceRed = '60';
}
frame 7 {
/:ballForceRed = '80';
}
frame 8 {
gotoAndPlay(2);
}
}
movieClip 96 {
frame 1 {
tellTarget ('/ccTBall1') {
gotoAndStop('off');
}
/Tball1._x = '50';
/Tball1._y = '40';
stop();
}
frame 2 {
sine1 = /:sine1;
cosine1 = /:cosine1;
/Tball1._x = /Tball1._x + '50' * cosine1;
/Tball1._y = /Tball1._y + '50' * sine1;
}
frame 3 {
call('on');
}
frame 4 {
call('on');
}
frame 5 {
call('on');
}
frame 6 {
call('on');
}
frame 7 {
call('on');
}
frame 8 {
call('on');
}
frame 9 {
call('on');
}
frame 10 {
call('on');
gotoAndStop(1);
}
}
movieClip 97 {
frame 1 {
tellTarget ('/ccTBall2') {
gotoAndStop('off');
}
/Tball2._x = '450';
/Tball2._y = '40';
stop();
}
frame 2 {
sine2 = /:sine2;
cosine2 = /:cosine2;
/Tball2._x = /Tball2._x + '50' * cosine2;
/Tball2._y = /Tball2._y + '50' * sine2;
}
frame 3 {
call('on');
}
frame 4 {
call('on');
}
frame 5 {
call('on');
}
frame 6 {
call('on');
}
frame 7 {
call('on');
}
frame 8 {
call('on');
}
frame 9 {
call('on');
}
frame 10 {
call('on');
gotoAndStop(1);
}
}
movieClip 99 {
frame 1 {
RandomT = random('7') + '1';
random = '0';
}
frame 2 {
if (RandomT == '1') {
gotoAndPlay(5);
}
if (RandomT == '2') {
gotoAndPlay(20);
}
if (RandomT == '3') {
gotoAndPlay(35);
}
if (RandomT == '4') {
gotoAndPlay(50);
}
if (RandomT == '5') {
gotoAndPlay(65);
}
if (RandomT == '6') {
gotoAndPlay(80);
}
if (RandomT == '7') {
gotoAndPlay(95);
}
}
frame 5 {
/tube1._rotation = '15';
/:cosine1 = '0' - '0.2588';
/:sine1 = '0.9659';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(7);
}
}
frame 6 {
gotoAndPlay(5);
}
frame 7 {
tellTarget ('/Tball1') {
gotoAndPlay('on');
}
tellTarget ('/ccTball1') {
gotoAndPlay('on');
}
}
frame 19 {
gotoAndPlay(1);
}
frame 20 {
/tube1._rotation = '0';
/:cosine1 = '0';
/:sine1 = '1';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(22);
}
}
frame 21 {
gotoAndPlay(20);
}
frame 22 {
tellTarget ('/Tball1') {
gotoAndPlay('on');
}
tellTarget ('/ccTball1') {
gotoAndPlay('on');
}
}
frame 34 {
gotoAndPlay(1);
}
frame 35 {
/tube1._rotation = '0' - '15';
/:cosine1 = '0.2588';
/:sine1 = '0.9659';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(37);
}
}
frame 36 {
gotoAndPlay(35);
}
frame 37 {
tellTarget ('/Tball1') {
gotoAndPlay('on');
}
tellTarget ('/ccTball1') {
gotoAndPlay('on');
}
}
frame 49 {
gotoAndPlay(1);
}
frame 50 {
/tube1._rotation = '0' - '30';
/:cosine1 = '0.5';
/:sine1 = '0.866';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(52);
}
}
frame 51 {
gotoAndPlay(50);
}
frame 52 {
tellTarget ('/Tball1') {
gotoAndPlay('on');
}
tellTarget ('/ccTball1') {
gotoAndPlay('on');
}
}
frame 64 {
gotoAndPlay(1);
}
frame 65 {
/tube1._rotation = '0' - '45';
/:cosine1 = '0.7071';
/:sine1 = '0.7071';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(67);
}
}
frame 66 {
gotoAndPlay(65);
}
frame 67 {
tellTarget ('/Tball1') {
gotoAndPlay('on');
}
tellTarget ('/ccTball1') {
gotoAndPlay('on');
}
}
frame 79 {
gotoAndPlay(1);
}
frame 80 {
/tube1._rotation = '0' - '60';
/:cosine1 = '0.866';
/:sine1 = '0.5';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(82);
}
}
frame 81 {
gotoAndPlay(80);
}
frame 82 {
tellTarget ('/Tball1') {
gotoAndPlay('on');
}
tellTarget ('/ccTball1') {
gotoAndPlay('on');
}
}
frame 94 {
gotoAndPlay(1);
}
frame 95 {
/tube1._rotation = '0' - '75';
/:cosine1 = '0.9659';
/:sine1 = '0.2588';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(97);
}
}
frame 96 {
gotoAndPlay(95);
}
frame 97 {
tellTarget ('/Tball1') {
gotoAndPlay('on');
}
tellTarget ('/ccTball1') {
gotoAndPlay('on');
}
}
frame 109 {
gotoAndPlay(1);
}
}
movieClip 100 {
frame 1 {
RandomT = random('7') + '1';
random = '0';
}
frame 2 {
if (RandomT == '1') {
gotoAndPlay(5);
}
if (RandomT == '2') {
gotoAndPlay(20);
}
if (RandomT == '3') {
gotoAndPlay(35);
}
if (RandomT == '4') {
gotoAndPlay(50);
}
if (RandomT == '5') {
gotoAndPlay(65);
}
if (RandomT == '6') {
gotoAndPlay(80);
}
if (RandomT == '7') {
gotoAndPlay(95);
}
}
frame 5 {
/tube2._rotation = '0' - '15';
/:cosine2 = '0.2588';
/:sine2 = '0.9659';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(7);
}
}
frame 6 {
gotoAndPlay(5);
}
frame 7 {
tellTarget ('/Tball2') {
gotoAndPlay('on');
}
tellTarget ('/ccTball2') {
gotoAndPlay('on');
}
}
frame 19 {
gotoAndPlay(1);
}
frame 20 {
/tube2._rotation = '0';
/:cosine2 = '0';
/:sine2 = '1';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(22);
}
}
frame 21 {
gotoAndPlay(20);
}
frame 22 {
tellTarget ('/Tball2') {
gotoAndPlay('on');
}
tellTarget ('/ccTball2') {
gotoAndPlay('on');
}
}
frame 34 {
gotoAndPlay(1);
}
frame 35 {
/tube2._rotation = '15';
/:cosine2 = '0' - '0.2588';
/:sine2 = '0.9659';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(37);
}
}
frame 36 {
gotoAndPlay(35);
}
frame 37 {
tellTarget ('/Tball2') {
gotoAndPlay('on');
}
tellTarget ('/ccTball2') {
gotoAndPlay('on');
}
}
frame 49 {
gotoAndPlay(1);
}
frame 50 {
/tube2._rotation = '30';
/:cosine2 = '0' - '0.5';
/:sine2 = '0.866';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(52);
}
}
frame 51 {
gotoAndPlay(50);
}
frame 52 {
tellTarget ('/Tball2') {
gotoAndPlay('on');
}
tellTarget ('/ccTball2') {
gotoAndPlay('on');
}
}
frame 64 {
gotoAndPlay(1);
}
frame 65 {
/tube2._rotation = '45';
/:cosine2 = '0' - '0.7071';
/:sine2 = '0.7071';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(67);
}
}
frame 66 {
gotoAndPlay(65);
}
frame 67 {
tellTarget ('/Tball2') {
gotoAndPlay('on');
}
tellTarget ('/ccTball2') {
gotoAndPlay('on');
}
}
frame 79 {
gotoAndPlay(1);
}
frame 80 {
/tube2._rotation = '60';
/:cosine2 = '0' - '0.866';
/:sine2 = '0.5';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(82);
}
}
frame 81 {
gotoAndPlay(80);
}
frame 82 {
tellTarget ('/Tball2') {
gotoAndPlay('on');
}
tellTarget ('/ccTball2') {
gotoAndPlay('on');
}
}
frame 94 {
gotoAndPlay(1);
}
frame 95 {
/tube2._rotation = '75';
/:cosine2 = '0' - '0.9659';
/:sine2 = '0.2588';
Random = random('40') + '1';
if (Random == '5') {
gotoAndPlay(1);
}
if (Random == '15') {
gotoAndPlay(97);
}
}
frame 96 {
gotoAndPlay(95);
}
frame 97 {
tellTarget ('/Tball2') {
gotoAndPlay('on');
}
tellTarget ('/ccTball2') {
gotoAndPlay('on');
}
}
frame 109 {
gotoAndPlay(1);
}
}
movieClip 101 {
}
button 104 {
on (press) {
tellTarget ('/ballPower') {
gotoAndPlay('on');
}
gotoAndPlay(16);
tellTarget ('/ballPower') {
gotoAndPlay('on');
}
}
on (release) {
tellTarget ('/ballPower') {
gotoAndPlay('off');
}
gotoAndPlay(26);
tellTarget ('/ballPower') {
gotoAndPlay('off');
}
}
on (releaseOutside) {
tellTarget ('/ballPower') {
gotoAndPlay('off');
}
gotoAndPlay(26);
tellTarget ('/ballPower') {
gotoAndPlay('off');
}
}
}
movieClip 109 {
frame 1 {
ball1X = /ball1._x - '10';
ball1Y = /ball1._y - '10';
ball2X = /ball2._x - '10';
ball2Y = /ball2._y - '10';
redaX = /red._x - '40';
redaY = /red._y - '20';
redbX = /red._x + '30';
redbY = /red._y - '20';
if (redaX + '10' >= ball1X and ball1X + '20' >= redaX and redaY + '40' >= ball1Y and ball1Y + '20' >= redaY) {
tellTarget ('/ccball1') {
gotoAndStop('off');
}
gotoAndPlay(5);
/:ball1_direction = '2';
/:ballNumberRed = '1';
}
if (redbX + '10' >= ball1X and ball1X + '20' >= redbX and redbY + '40' >= ball1Y and ball1Y + '20' >= redbY) {
tellTarget ('/ccball1') {
gotoAndStop('off');
}
gotoAndPlay(5);
/:ball1_direction = '2';
/:ballNumberRed = '1';
}
if (redaX + '10' >= ball2X and ball2X + '20' >= redaX and redaY + '40' >= ball2Y and ball2Y + '20' >= redaY) {
tellTarget ('/ccball2') {
gotoAndStop('off');
}
gotoAndPlay(5);
/:ball2_direction = '2';
/:ballNumberRed = '2';
}
if (redbX + '10' >= ball2X and ball2X + '20' >= redbX and redbY + '40' >= ball2Y and ball2Y + '20' >= redbY) {
tellTarget ('/ccball2') {
gotoAndStop('off');
}
gotoAndPlay(5);
/:ball2_direction = '2';
/:ballNumberRed = '2';
}
}
frame 2 {
call('off');
gotoAndPlay(1);
}
frame 6 {
if (/:ballNumberRed == '1') {
tellTarget ('/ball1') {
gotoAndStop('ready');
}
}
if (/:ballNumberRed == '2') {
tellTarget ('/ball2') {
gotoAndStop('ready');
}
}
}
frame 7 {
if (/:ballNumberRed == '1') {
/ball1._x = /red._x + '10';
/ball1._y = /red._y - '10';
/ball1._rotation = '0';
}
if (/:ballNumberRed == '2') {
/ball2._x = /red._x + '10';
/ball2._y = /red._y - '10';
/ball2._rotation = '0';
}
call('ball ready');
}
frame 8 {
call('ball1');
}
frame 9 {
if (/:ballNumberRed == '1') {
/ball1._x = /red._x + '10';
/ball1._y = /red._y - '10';
/ball1._rotation = '15';
}
if (/:ballNumberRed == '2') {
/ball2._x = /red._x + '10';
/ball2._y = /red._y - '10';
/ball2._rotation = '15';
}
}
frame 10 {
call('ball2');
}
frame 11 {
call('ball2');
gotoAndPlay(7);
}
frame 16 {
if (/:ballNumberRed == '1') {
/ball1._x = /red._x + '10';
/ball1._y = /red._y - '10';
/ball1._rotation = '0';
}
if (/:ballNumberRed == '2') {
/ball2._x = /red._x + '10';
/ball2._y = /red._y - '10';
/ball2._rotation = '0';
}
}
frame 17 {
call('ready');
}
frame 18 {
if (/:ballNumberRed == '1') {
/ball1._x = /red._x + '10';
/ball1._y = /red._y - '10';
/ball1._rotation = '15';
}
if (/:ballNumberRed == '2') {
/ball2._x = /red._x + '10';
/ball2._y = /red._y - '10';
/ball2._rotation = '15';
}
}
frame 19 {
call('ready1');
gotoAndPlay(16);
}
frame 31 {
/:ballNumberRed = '0';
gotoAndPlay(1);
}
frame 36 {
stopDrag();
}
frame 50 {
startDrag('/red', true, '25', '200', '475', '300');
/:RedDown = '0';
gotoAndPlay(1);
}
frame 53 {
stopDrag();
}
frame 67 {
startDrag('/red', true, '25', '200', '475', '300');
/:RedDown = '0';
gotoAndPlay(1);
}
}
movieClip 132 {
frame 1 {
ball1X = /ball1._x - '10';
ball1Y = /ball1._y - '10';
ball2X = /ball2._x - '10';
ball2Y = /ball2._y - '10';
blue1aX = /blue1._x - '40';
blue1aY = /blue1._y - '60';
blue1bX = /blue1._x + '30';
blue1bY = /blue1._y - '60';
if (blue1aX + '10' >= ball1X and ball1X + '20' >= blue1aX and blue1aY + '80' >= ball1Y and ball1Y + '20' >= blue1aY) {
gotoAndPlay(35);
tellTarget ('/ball1') {
gotoAndStop('off1');
}
tellTarget ('/ccball1') {
gotoAndStop('off');
}
/:ballInBlueZone = '3';
/:ballNumberBlue1 = '1';
}
if (blue1bX + '10' >= ball1X and ball1X + '20' >= blue1bX and blue1bY + '80' >= ball1Y and ball1Y + '20' >= blue1bY) {
gotoAndPlay(35);
tellTarget ('/ball1') {
gotoAndStop('off1');
}
tellTarget ('/ccball1') {
gotoAndStop('off');
}
/:ballInBlueZone = '3';
/:ballNumberBlue1 = '1';
}
if (blue1aX + '10' >= ball2X and ball2X + '20' >= blue1aX and blue1aY + '80' >= ball2Y and ball2Y + '20' >= blue1aY) {
gotoAndPlay(35);
tellTarget ('/ball2') {
gotoAndStop('off1');
}
tellTarget ('/ccball2') {
gotoAndStop('off');
}
/:ballInBlueZone = '3';
/:ball2_direction = '1';
/:ballNumberBlue1 = '2';
}
if (blue1bX + '10' >= ball2X and ball2X + '20' >= blue1bX and blue1bY + '80' >= ball2Y and ball2Y + '20' >= blue1bY) {
gotoAndPlay(35);
tellTarget ('/ball2') {
gotoAndStop('off1');
}
tellTarget ('/ccball2') {
gotoAndStop('off');
}
/:ballInBlueZone = '3';
/:ball2_direction = '1';
/:ballNumberBlue1 = '2';
}
}
frame 2 {
call('off');
gotoAndPlay(1);
}
frame 10 {
tellTarget ('/bMovement') {
gotoAndPlay('off');
}
tellTarget ('/blueGetBall') {
gotoAndStop('off');
}
}
frame 28 {
tellTarget ('/bMovement') {
gotoAndPlay('on');
}
}
frame 29 {
tellTarget ('/bMovement') {
gotoAndPlay('on');
}
/:BlueDown = '0';
gotoAndPlay(1);
}
frame 35 {
if (/:ballNumberBlue1 == '1') {
/:ball1_direction = '1';
}
}
frame 40 {
tellTarget ('/blueGetBall') {
gotoAndPlay('offense');
}
}
frame 41 {
tossR = random('30');
if (/:ballNumberBlue1 == '1') {
/ball1._x = /blue1._x - '20';
/ball1._y = /blue1._y;
}
if (/:ballNumberBlue1 == '2') {
/ball2._x = /blue1._x - '20';
/ball2._y = /blue1._y;
}
}
frame 42 {
if (tossR == '2') {
gotoAndPlay(48);
} else {
gotoAndPlay(41);
}
if (/:ballNumberBlue1 == '1') {
/ball1._x = /blue1._x - '20';
/ball1._y = /blue1._y;
}
if (/:ballNumberBlue1 == '2') {
/ball2._x = /blue1._x - '20';
/ball2._y = /blue1._y;
}
}
frame 48 {
tossR = '0';
if (/:ballNumberBlue1 == '1') {
/ball1._x = /blue1._x - '20';
/ball1._y = /blue1._y;
}
if (/:ballNumberBlue1 == '2') {
/ball2._x = /blue1._x - '20';
/ball2._y = /blue1._y;
}
}
frame 49 {
if (/:ballNumberBlue1 == '1') {
/ball1._x = /blue1._x - '20';
/ball1._y = /blue1._y;
}
if (/:ballNumberBlue1 == '2') {
/ball2._x = /blue1._x - '20';
/ball2._y = /blue1._y;
}
}
frame 50 {
if (/:ballNumberBlue1 == '1') {
/ball1._x = /blue1._x - '40';
/ball1._y = /blue1._y - '40';
}
if (/:ballNumberBlue1 == '2') {
/ball2._x = /blue1._x - '40';
/ball2._y = /blue1._y - '40';
}
}
frame 51 {
if (/:ballNumberBlue1 == '1') {
/ball1._x = /blue1._x - '40';
/ball1._y = /blue1._y - '40';
}
if (/:ballNumberBlue1 == '2') {
/ball2._x = /blue1._x - '40';
/ball2._y = /blue1._y - '40';
}
}
frame 52 {
if (/:ballNumberBlue1 == '1') {
tellTarget ('/ball1') {
gotoAndPlay('on');
}
}
if (/:ballNumberBlue1 == '2') {
tellTarget ('/ball2') {
gotoAndPlay('on');
}
}
}
frame 58 {
/:ballNumberBlue1 = '0';
/:ballInBlueZone = '0';
gotoAndPlay(1);
}
}
button 137 {
on (press) {
/ball1._xscale = '300';
/balL1._yscale = '300';
tellTarget ('/red') {
gotoAndPlay('ready');
}
tellTarget ('/red/power') {
gotoAndPlay('on');
}
}
on (release) {
tellTarget ('/red/power') {
gotoAndStop('off');
}
tellTarget ('/red') {
gotoAndPlay('throw');
}
tellTarget ('/ball1') {
gotoAndPlay('on');
}
/ball1._xscale = '100';
/ball1._yscale = '100';
}
on (releaseOutside) {
tellTarget ('/red/power') {
gotoAndStop('off');
}
tellTarget ('/red') {
gotoAndPlay('throw');
}
tellTarget ('/ball1') {
gotoAndPlay('on');
}
/ball1._xscale = '100';
/ball1._yscale = '100';
}
}
movieClip 140 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
if (/:ball1_direction == '1') {
/ball1._y = /ball1._y + /:ballForceBlue1;
}
if (/:ball1_direction == '2') {
/ball1._y = /ball1._y - /:ballForceRed;
}
}
frame 5 {
call('on');
tellTarget ('/ccball1') {
gotoAndPlay('on');
}
}
frame 6 {
call('on');
}
frame 7 {
call('on');
}
frame 8 {
call('on');
}
frame 9 {
call('on');
tellTarget ('/ccball1') {
gotoAndStop('off');
}
gotoAndStop(1);
}
}
button 143 {
on (press) {
/ball2._xscale = '300';
/ball2._yscale = '300';
tellTarget ('/red') {
gotoAndPlay('ready');
}
tellTarget ('/red/power') {
gotoAndPlay('on');
}
}
on (release) {
tellTarget ('/red/power') {
gotoAndStop('off');
}
tellTarget ('/red') {
gotoAndPlay('throw');
}
tellTarget ('/ball2') {
gotoAndPlay('on');
}
/ball2._xscale = '100';
/ball2._yscale = '100';
}
on (releaseOutside) {
tellTarget ('/red/power') {
gotoAndStop('off');
}
tellTarget ('/red') {
gotoAndPlay('throw');
}
tellTarget ('/ball2') {
gotoAndPlay('on');
}
/ball2._xscale = '100';
/ball2._yscale = '100';
}
}
movieClip 146 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
if (/:ball2_direction == '1') {
/ball2._y = /ball2._y + /:ballForceBlue1;
}
if (/:ball2_direction == '2') {
/ball2._y = /ball2._y - /:ballForceRed;
}
}
frame 5 {
call('on');
tellTarget ('/ccball2') {
gotoAndPlay('on');
}
}
frame 6 {
call('on');
}
frame 7 {
call('on');
}
frame 8 {
call('on');
}
frame 9 {
call('on');
tellTarget ('/ccball2') {
gotoAndStop('off');
}
gotoAndStop(1);
}
}
frame 60 {
loadMovieNum('menubar.swf', 1);
stop();
}
button 159 {
on (release) {
getURL('http://www.CircusX.com/main.html', '_self');
}
}
button 166 {
on (release) {
gotoAndStop(70);
}
}
frame 70 {
tellTarget ('_level1') {
gotoAndStop('off');
}
startDrag('/red', true, '25', '200', '475', '300');
/:level = '1';
/:redScore = '0';
/:blueScore = '0';
stop();
}
frame 80 {
tellTarget ('_level1') {
gotoAndStop('off');
}
startDrag('/red', true, '25', '200', '475', '300');
/:level = '2';
/:redScore = '0';
/:blueScore = '0';
stop();
}
frame 90 {
tellTarget ('_level1') {
gotoAndStop('on');
}
if (/:level == '1') {
gotoAndPlay(94);
}
if (/:level == '2') {
gotoAndPlay(90);
}
if (/:level == '3') {
gotoAndPlay(90);
}
}
frame 91 {
call('trans');
}
button 236 {
on (release) {
tellTarget ('_level0') {
gotoAndStop('level 2');
}
}
}
frame 110 {
stop();
}
frame 121 {
tellTarget ('_level1') {
gotoAndStop('on');
}
}
button 246 {
on (release) {
/:redScore = '0';
/:blueScore = '0';
tellTarget ('_level0') {
gotoAndPlay('play again');
}
}
}
button 252 {
on (release) {
getURL('http://www.CircusX.com/games/ultimate_dodgeball.html', '_blank');
}
}
frame 167 {
stop();
}
frame 178 {
tellTarget ('_level1') {
gotoAndStop('on');
}
}
button 261 {
on (release) {
/:redScore = '0';
/:blueScore = '0';
tellTarget ('_level0') {
gotoAndPlay('play again');
}
}
}
frame 207 {
stop();
}