Frame 1
Stage.showMenu = false;
_focusrect = false;
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Instance of Symbol 139 MovieClip "mouse" in Frame 6
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.mouse._x = _root._xmouse;
_root.mouse._y = _root._ymouse;
}
Frame 7
stop();
Frame 8
stop();
Instance of Symbol 292 MovieClip "cursor" in Frame 8
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
}
Frame 9
stop();
_root.score = 0;
Frame 10
_root.enemy.gotoAndStop(1);
_root.totalthrows = _root.totalthrows + 1;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
stop();
aSound = new Sound();
aSound.attachSound("aSound");
Instance of Symbol 355 MovieClip "controller" in Frame 10
onClipEvent (load) {
_root.hitcounter = 0;
_root.totalhits = 0;
_root.enemyhits = 0;
_root.enemythrows = 0;
_root.totalthrows = 1;
_root.playerscore = 0;
_root.enemyscore = 0;
_root.totalhit1 = 0;
_root.totalhit2 = 0;
_root.totalhit3 = 0;
}
onClipEvent (enterFrame) {
if (_root.enemyscore >= 15) {
_root.gotoAndStop("perdiendo");
}
if (_root.playerscore >= 15) {
_root.transp.play();
}
}
Instance of Symbol 377 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._x = _root.player._x - 5;
}
}
Instance of Symbol 378 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._x = _root.player._x + 5;
}
}
Instance of Symbol 378 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._y = _root.player._y + 5;
}
}
Instance of Symbol 378 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._y = _root.player._y - 5;
}
}
Instance of Symbol 408 MovieClip "enemy" in Frame 10
onClipEvent (load) {
speed = 1.5;
this._xscale = -100;
perdiendo = false;
ganando = false;
empezando = false;
}
onClipEvent (enterFrame) {
if (((_root.ball.hitTest(_root.barra) && (perdiendo == false)) && (ganando == false)) && (empezando == false)) {
gotoAndStop ("enemywalk");
if (_root.ball._x > _x) {
_x = (_x + speed);
this._xscale = 100;
}
if ((((_root.ball._x < _x) && (perdiendo == false)) && (ganando == false)) && (empezando == false)) {
_x = (_x - speed);
this._xscale = -100;
}
}
}
Instance of Symbol 423 MovieClip "red" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
this.gotoAndStop("2");
}
}
onClipEvent (enterFrame) {
if (_root.ball._x <= this._x) {
gotoAndStop (2);
}
if (_root.ball._x >= this._x) {
gotoAndStop (1);
}
}
Instance of Symbol 425 MovieClip "ball" in Frame 10
onClipEvent (load) {
h = _height / 2;
w = _width / 2;
xspeed = 0;
yspeed = 0;
drag = 0.99;
bounce = 1;
gravity = 0.64;
hit1 = false;
hit2 = false;
activado = false;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + (xspeed * 3));
if (this.hitTest(_root.player.at.hit)) {
yspeed = -15;
_root.aSound.start(0, 1);
_root.player.at.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 10;
if (_root.player._xscale < 0) {
xspeed = xspeed + 4.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 4.8;
}
}
if (this.hitTest(_root.player.at2.hit)) {
yspeed = -15;
_root.player.at2.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 30;
if (_root.player._xscale < 0) {
xspeed = xspeed + 6.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 6.8;
}
}
if (this.hitTest(_root.player.at3.hit)) {
yspeed = -15;
_root.player.at3.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 10;
if (_root.player._xscale < 0) {
xspeed = xspeed + 4.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 4.8;
}
}
if (this.hitTest(_root.saque1.inicio1.hitsaque1)) {
yspeed = -18;
xspeed = xspeed + 0;
}
if (this.hitTest(_root.saque1.saque12.hitsaque1)) {
yspeed = -15;
xspeed = xspeed + 5.8;
_root.saque1.biensacado = true;
}
if (this.hitTest(_root.saque2.inicio2.hitsaque2)) {
yspeed = -18;
xspeed = xspeed + 0;
}
if (this.hitTest(_root.saque2.saque22.hitsaque2)) {
yspeed = -15;
xspeed = xspeed - 8.8;
}
_root.speed = this.xspeed;
if (!dragging) {
_x = (_x + xspeed);
_y = ((_y + yspeed) - 0.29);
if (_root.ground.hitTest((_x + w) + 12, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.ground.hitTest((_x - w) - 10, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.ground.hitTest(_x, (_y + h) + 3, true)) {
yspeed = yspeed * (-bounce);
_root._root.stats.combo = 0;
_root.j = 0;
}
if (_root.rb.hitTest(_x, (_y - h) - 10, true)) {
yspeed = yspeed * (-bounce);
}
if (_root.rb.hitTest((_x + w) + 12, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.rb.hitTest((_x - w) - 10, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.rb.hitTest(_x, _y + h, true)) {
yspeed = yspeed * (-bounce);
_root.rb.rainbow = 2;
_root.k = 0;
}
if (_root.rb.hitTest(_x, (_y - h) - 10, true)) {
yspeed = yspeed * (-bounce);
}
yspeed = (yspeed * drag) + gravity;
xspeed = xspeed * drag;
} else {
xspeed = _x - oldx;
yspeed = _y - oldy;
oldx = _x;
oldy = _y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.hit)) {
yspeed = -15;
_root.enemyhits = _root.enemyhits + 1;
if (_root.enemy._xscale < 0) {
xspeed = xspeed - 3.8;
}
if (_root.enemy._xscale > 0) {
xspeed = xspeed - 3.8;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ground.HIT1) && (hit1 == false)) && (hit2 == false)) {
hit1 = true;
_root.player.perdiendo = true;
_root.player.gotoAndStop("perdiendo");
_root.enemy.ganando = true;
_root.enemy.gotoAndStop("ganando");
_root.player._xscale = 100;
_root.saque1.perdiendo = true;
}
if ((this.hitTest(_root.ground.HIT2) && (hit1 == false)) && (hit2 == false)) {
hit2 = true;
_root.player.ganando = true;
_root.player.gotoAndStop("ganando");
_root.enemy.perdiendo = true;
_root.enemy.gotoAndStop("perdiendo");
_root.player._xscale = 100;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.barra)) {
_root.hitcounter = 0;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.red.cosin)) {
_root.red.mov.play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.hitenemyhit)) {
_root.enemy.empezando = true;
_root.enemy.gotoAndStop("pegando1");
}
}
Instance of Symbol 447 MovieClip "saque1" in Frame 10
onClipEvent (load) {
yapegado = false;
biensacado = false;
perdiendo = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(65) && (perdiendo == false)) {
this.gotoAndStop("2");
}
}
onClipEvent (enterFrame) {
if ((yapegado == true) && (biensacado == true)) {
_root.gotoAndStop("juego");
}
if (perdiendo == true) {
gotoAndStop ("perdiendo");
}
}
Frame 11
_root.player.pegando1 = false;
_root.player.pegando2 = false;
_root.player.pegando3 = false;
_root.player.ganando = false;
_root.player.perdiendo = false;
_root.enemy.ganando = false;
_root.enemy.perdiendo = false;
_root.enemy.empezando = false;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
Instance of Symbol 469 MovieClip "player" in Frame 11
onClipEvent (load) {
velocidade = 5;
walk = false;
pegando1 = false;
pegando2 = false;
pegando3 = false;
perdiendo = false;
ganando = false;
}
onClipEvent (enterFrame) {
if (((((Key.isDown(37) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
this._xscale = -100;
walk = true;
_x = (_x - velocidade);
} else if (((((Key.isDown(39) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
this._xscale = 100;
walk = true;
_x = (_x + velocidade);
} else if (((((Key.isDown(38) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
walk = true;
_y = (_y - velocidade);
} else if (((((Key.isDown(40) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
walk = true;
_y = (_y + velocidade);
} else if ((((Key.isDown(65) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando1");
pegando1 = true;
} else if ((((Key.isDown(83) && (pegando1 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando2");
pegando2 = true;
} else if ((((Key.isDown(68) && (pegando1 == false)) && (pegando2 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando3");
pegando3 = true;
} else {
walk = false;
}
if ((((((walk == false) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("1");
}
}
onClipEvent (enterFrame) {
if (_root.hitcounter >= 4) {
perdiendo = true;
gotoAndStop ("perdiendo");
_root.enemy.ganando = true;
_root.enemy.gotoAndStop("ganando");
this._xscale = 100;
}
}
Frame 12
_root.player.pegando1 = false;
_root.player.pegando2 = false;
_root.player.pegando3 = false;
_root.player.ganando = false;
_root.player.perdiendo = false;
_root.enemy.ganando = false;
_root.enemy.perdiendo = false;
_root.enemy.empezando = false;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
_root.enemythrows = _root.enemythrows + 1;
Instance of Symbol 484 MovieClip "saque2" in Frame 12
onClipEvent (load) {
this._xscale = -100;
}
Frame 13
stop();
Instance of Symbol 292 MovieClip "cursor" in Frame 13
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
}
Frame 14
stop();
Frame 15
_root.enemy.gotoAndStop(1);
_root.totalthrows = _root.totalthrows + 1;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
stop();
Instance of Symbol 355 MovieClip "controller" in Frame 15
onClipEvent (load) {
_root.hitcounter = 0;
_root.totalhits = 0;
_root.enemyhits = 0;
_root.enemythrows = 0;
_root.totalthrows = 1;
_root.playerscore = 0;
_root.enemyscore = 0;
_root.totalhit1 = 0;
_root.totalhit2 = 0;
_root.totalhit3 = 0;
}
onClipEvent (enterFrame) {
if (_root.enemyscore >= 15) {
_root.gotoAndStop("perdiendo");
}
if (_root.playerscore >= 15) {
_root.transp2.play();
}
}
Instance of Symbol 377 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._x = _root.player._x - 5;
}
}
Instance of Symbol 378 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._x = _root.player._x + 5;
}
}
Instance of Symbol 378 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._y = _root.player._y + 5;
}
}
Instance of Symbol 378 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._y = _root.player._y - 5;
}
}
Instance of Symbol 408 MovieClip "enemy" in Frame 15
onClipEvent (load) {
speed = 2;
this._xscale = -100;
perdiendo = false;
ganando = false;
empezando = false;
}
onClipEvent (enterFrame) {
if (((_root.ball.hitTest(_root.barra) && (perdiendo == false)) && (ganando == false)) && (empezando == false)) {
gotoAndStop ("enemywalk");
if (_root.ball._x > _x) {
_x = (_x + speed);
this._xscale = 100;
}
if ((((_root.ball._x < _x) && (perdiendo == false)) && (ganando == false)) && (empezando == false)) {
_x = (_x - speed);
this._xscale = -100;
}
}
}
Instance of Symbol 423 MovieClip "red" in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
this.gotoAndStop("2");
}
}
onClipEvent (enterFrame) {
if (_root.ball._x <= this._x) {
gotoAndStop (2);
}
if (_root.ball._x >= this._x) {
gotoAndStop (1);
}
}
Instance of Symbol 425 MovieClip "ball" in Frame 15
onClipEvent (load) {
h = _height / 2;
w = _width / 2;
xspeed = 0;
yspeed = 0;
drag = 0.99;
bounce = 1;
gravity = 0.64;
hit1 = false;
hit2 = false;
activado = false;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + (xspeed * 3));
if (this.hitTest(_root.player.at.hit)) {
yspeed = -15;
_root.player.at.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 10;
if (_root.player._xscale < 0) {
xspeed = xspeed + 4.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 4.8;
}
}
if (this.hitTest(_root.player.at2.hit)) {
yspeed = -15;
_root.player.at2.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 30;
if (_root.player._xscale < 0) {
xspeed = xspeed + 6.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 6.8;
}
}
if (this.hitTest(_root.player.at3.hit)) {
yspeed = -15;
_root.player.at3.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 10;
if (_root.player._xscale < 0) {
xspeed = xspeed + 4.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 4.8;
}
}
if (this.hitTest(_root.saque1.inicio1.hitsaque1)) {
yspeed = -18;
xspeed = xspeed + 0;
}
if (this.hitTest(_root.saque1.saque12.hitsaque1)) {
yspeed = -15;
xspeed = xspeed + 5.8;
_root.saque1.biensacado = true;
}
if (this.hitTest(_root.saque2.inicio2.hitsaque2)) {
yspeed = -18;
xspeed = xspeed + 0;
}
if (this.hitTest(_root.saque2.saque22.hitsaque2)) {
yspeed = -15;
xspeed = xspeed - 8.8;
}
_root.speed = this.xspeed;
if (!dragging) {
_x = (_x + xspeed);
_y = ((_y + yspeed) - 0.29);
if (_root.ground.hitTest((_x + w) + 12, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.ground.hitTest((_x - w) - 10, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.ground.hitTest(_x, (_y + h) + 3, true)) {
yspeed = yspeed * (-bounce);
_root._root.stats.combo = 0;
_root.j = 0;
}
if (_root.rb.hitTest(_x, (_y - h) - 10, true)) {
yspeed = yspeed * (-bounce);
}
if (_root.rb.hitTest((_x + w) + 12, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.rb.hitTest((_x - w) - 10, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.rb.hitTest(_x, _y + h, true)) {
yspeed = yspeed * (-bounce);
_root.rb.rainbow = 2;
_root.k = 0;
}
if (_root.rb.hitTest(_x, (_y - h) - 10, true)) {
yspeed = yspeed * (-bounce);
}
yspeed = (yspeed * drag) + gravity;
xspeed = xspeed * drag;
} else {
xspeed = _x - oldx;
yspeed = _y - oldy;
oldx = _x;
oldy = _y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.hit)) {
yspeed = -15;
_root.enemyhits = _root.enemyhits + 1;
if (_root.enemy._xscale < 0) {
xspeed = xspeed - 3.8;
}
if (_root.enemy._xscale > 0) {
xspeed = xspeed - 3.8;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ground.HIT1) && (hit1 == false)) && (hit2 == false)) {
hit1 = true;
_root.player.perdiendo = true;
_root.player.gotoAndStop("perdiendo");
_root.enemy.ganando = true;
_root.enemy.gotoAndStop("ganando");
_root.player._xscale = 100;
_root.saque1.perdiendo = true;
}
if ((this.hitTest(_root.ground.HIT2) && (hit1 == false)) && (hit2 == false)) {
hit2 = true;
_root.player.ganando = true;
_root.player.gotoAndStop("ganando");
_root.enemy.perdiendo = true;
_root.enemy.gotoAndStop("perdiendo");
_root.player._xscale = 100;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.barra)) {
_root.hitcounter = 0;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.red.cosin)) {
_root.red.mov.play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.hitenemyhit)) {
_root.enemy.empezando = true;
_root.enemy.gotoAndStop("pegando1");
}
}
Instance of Symbol 528 MovieClip "saque1" in Frame 15
onClipEvent (load) {
yapegado = false;
biensacado = false;
perdiendo = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(65) && (perdiendo == false)) {
this.gotoAndStop("2");
}
}
onClipEvent (enterFrame) {
if ((yapegado == true) && (biensacado == true)) {
_root.gotoAndStop("juego1");
}
if (perdiendo == true) {
gotoAndStop ("perdiendo");
}
}
Frame 16
_root.player.pegando1 = false;
_root.player.pegando2 = false;
_root.player.pegando3 = false;
_root.player.ganando = false;
_root.player.perdiendo = false;
_root.enemy.ganando = false;
_root.enemy.perdiendo = false;
_root.enemy.empezando = false;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
Instance of Symbol 536 MovieClip "player" in Frame 16
onClipEvent (load) {
velocidade = 5;
walk = false;
pegando1 = false;
pegando2 = false;
pegando3 = false;
perdiendo = false;
ganando = false;
}
onClipEvent (enterFrame) {
if (((((Key.isDown(37) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
this._xscale = -100;
walk = true;
_x = (_x - velocidade);
} else if (((((Key.isDown(39) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
this._xscale = 100;
walk = true;
_x = (_x + velocidade);
} else if (((((Key.isDown(38) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
walk = true;
_y = (_y - velocidade);
} else if (((((Key.isDown(40) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
walk = true;
_y = (_y + velocidade);
} else if ((((Key.isDown(65) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando1");
pegando1 = true;
} else if ((((Key.isDown(83) && (pegando1 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando2");
pegando2 = true;
} else if ((((Key.isDown(68) && (pegando1 == false)) && (pegando2 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando3");
pegando3 = true;
} else {
walk = false;
}
if ((((((walk == false) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("1");
}
}
onClipEvent (enterFrame) {
if (_root.hitcounter >= 4) {
perdiendo = true;
gotoAndStop ("perdiendo");
_root.enemy.ganando = true;
_root.enemy.gotoAndStop("ganando");
this._xscale = 100;
}
}
Frame 17
_root.player.pegando1 = false;
_root.player.pegando2 = false;
_root.player.pegando3 = false;
_root.player.ganando = false;
_root.player.perdiendo = false;
_root.enemy.ganando = false;
_root.enemy.perdiendo = false;
_root.enemy.empezando = false;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
_root.enemythrows = _root.enemythrows + 1;
Instance of Symbol 538 MovieClip "saque2" in Frame 17
onClipEvent (load) {
this._xscale = -100;
}
Frame 18
stop();
Instance of Symbol 292 MovieClip "cursor" in Frame 18
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
}
Frame 19
stop();
Frame 20
_root.enemy.gotoAndStop(1);
_root.totalthrows = _root.totalthrows + 1;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
stop();
Instance of Symbol 355 MovieClip "controller" in Frame 20
onClipEvent (load) {
_root.hitcounter = 0;
_root.totalhits = 0;
_root.enemyhits = 0;
_root.enemythrows = 0;
_root.totalthrows = 1;
_root.playerscore = 0;
_root.enemyscore = 0;
_root.totalhit1 = 0;
_root.totalhit2 = 0;
_root.totalhit3 = 0;
}
onClipEvent (enterFrame) {
if (_root.enemyscore >= 15) {
_root.gotoAndStop("perdiendo");
}
if (_root.playerscore >= 15) {
_root.transp3.play();
}
}
Instance of Symbol 377 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._x = _root.player._x - 5;
}
}
Instance of Symbol 378 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._x = _root.player._x + 5;
}
}
Instance of Symbol 378 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._y = _root.player._y + 5;
}
}
Instance of Symbol 378 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._y = _root.player._y - 5;
}
}
Instance of Symbol 408 MovieClip "enemy" in Frame 20
onClipEvent (load) {
speed = 2.5;
this._xscale = -100;
perdiendo = false;
ganando = false;
empezando = false;
}
onClipEvent (enterFrame) {
if (((_root.ball.hitTest(_root.barra) && (perdiendo == false)) && (ganando == false)) && (empezando == false)) {
gotoAndStop ("enemywalk");
if (_root.ball._x > _x) {
_x = (_x + speed);
this._xscale = 100;
}
if ((((_root.ball._x < _x) && (perdiendo == false)) && (ganando == false)) && (empezando == false)) {
_x = (_x - speed);
this._xscale = -100;
}
}
}
Instance of Symbol 423 MovieClip "red" in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
this.gotoAndStop("2");
}
}
onClipEvent (enterFrame) {
if (_root.ball._x <= this._x) {
gotoAndStop (2);
}
if (_root.ball._x >= this._x) {
gotoAndStop (1);
}
}
Instance of Symbol 425 MovieClip "ball" in Frame 20
onClipEvent (load) {
h = _height / 2;
w = _width / 2;
xspeed = 0;
yspeed = 0;
drag = 0.99;
bounce = 1;
gravity = 0.64;
hit1 = false;
hit2 = false;
activado = false;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + (xspeed * 3));
if (this.hitTest(_root.player.at.hit)) {
yspeed = -15;
_root.player.at.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 10;
if (_root.player._xscale < 0) {
xspeed = xspeed + 4.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 4.8;
}
}
if (this.hitTest(_root.player.at2.hit)) {
yspeed = -15;
_root.player.at2.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 30;
if (_root.player._xscale < 0) {
xspeed = xspeed + 6.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 6.8;
}
}
if (this.hitTest(_root.player.at3.hit)) {
yspeed = -15;
_root.player.at3.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 10;
if (_root.player._xscale < 0) {
xspeed = xspeed + 4.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 4.8;
}
}
if (this.hitTest(_root.saque1.inicio1.hitsaque1)) {
yspeed = -18;
xspeed = xspeed + 0;
}
if (this.hitTest(_root.saque1.saque12.hitsaque1)) {
yspeed = -15;
xspeed = xspeed + 5.8;
_root.saque1.biensacado = true;
}
if (this.hitTest(_root.saque2.inicio2.hitsaque2)) {
yspeed = -18;
xspeed = xspeed + 0;
}
if (this.hitTest(_root.saque2.saque22.hitsaque2)) {
yspeed = -15;
xspeed = xspeed - 8.8;
}
_root.speed = this.xspeed;
if (!dragging) {
_x = (_x + xspeed);
_y = ((_y + yspeed) - 0.29);
if (_root.ground.hitTest((_x + w) + 12, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.ground.hitTest((_x - w) - 10, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.ground.hitTest(_x, (_y + h) + 3, true)) {
yspeed = yspeed * (-bounce);
_root._root.stats.combo = 0;
_root.j = 0;
}
if (_root.rb.hitTest(_x, (_y - h) - 10, true)) {
yspeed = yspeed * (-bounce);
}
if (_root.rb.hitTest((_x + w) + 12, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.rb.hitTest((_x - w) - 10, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.rb.hitTest(_x, _y + h, true)) {
yspeed = yspeed * (-bounce);
_root.rb.rainbow = 2;
_root.k = 0;
}
if (_root.rb.hitTest(_x, (_y - h) - 10, true)) {
yspeed = yspeed * (-bounce);
}
yspeed = (yspeed * drag) + gravity;
xspeed = xspeed * drag;
} else {
xspeed = _x - oldx;
yspeed = _y - oldy;
oldx = _x;
oldy = _y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.hit)) {
yspeed = -15;
_root.enemyhits = _root.enemyhits + 1;
if (_root.enemy._xscale < 0) {
xspeed = xspeed - 4.8;
}
if (_root.enemy._xscale > 0) {
xspeed = xspeed - 4.8;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ground.HIT1) && (hit1 == false)) && (hit2 == false)) {
hit1 = true;
_root.player.perdiendo = true;
_root.player.gotoAndStop("perdiendo");
_root.enemy.ganando = true;
_root.enemy.gotoAndStop("ganando");
_root.player._xscale = 100;
_root.saque1.perdiendo = true;
}
if ((this.hitTest(_root.ground.HIT2) && (hit1 == false)) && (hit2 == false)) {
hit2 = true;
_root.player.ganando = true;
_root.player.gotoAndStop("ganando");
_root.enemy.perdiendo = true;
_root.enemy.gotoAndStop("perdiendo");
_root.player._xscale = 100;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.barra)) {
_root.hitcounter = 0;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.red.cosin)) {
_root.red.mov.play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.hitenemyhit)) {
_root.enemy.empezando = true;
_root.enemy.gotoAndStop("pegando1");
}
}
Instance of Symbol 559 MovieClip "saque1" in Frame 20
onClipEvent (load) {
yapegado = false;
biensacado = false;
perdiendo = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(65) && (perdiendo == false)) {
this.gotoAndStop("2");
}
}
onClipEvent (enterFrame) {
if ((yapegado == true) && (biensacado == true)) {
_root.gotoAndStop("juego2");
}
if (perdiendo == true) {
gotoAndStop ("perdiendo");
}
}
Frame 21
_root.player.pegando1 = false;
_root.player.pegando2 = false;
_root.player.pegando3 = false;
_root.player.ganando = false;
_root.player.perdiendo = false;
_root.enemy.ganando = false;
_root.enemy.perdiendo = false;
_root.enemy.empezando = false;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
Instance of Symbol 567 MovieClip "player" in Frame 21
onClipEvent (load) {
velocidade = 5;
walk = false;
pegando1 = false;
pegando2 = false;
pegando3 = false;
perdiendo = false;
ganando = false;
}
onClipEvent (enterFrame) {
if (((((Key.isDown(37) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
this._xscale = -100;
walk = true;
_x = (_x - velocidade);
} else if (((((Key.isDown(39) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
this._xscale = 100;
walk = true;
_x = (_x + velocidade);
} else if (((((Key.isDown(38) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
walk = true;
_y = (_y - velocidade);
} else if (((((Key.isDown(40) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
walk = true;
_y = (_y + velocidade);
} else if ((((Key.isDown(65) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando1");
pegando1 = true;
} else if ((((Key.isDown(83) && (pegando1 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando2");
pegando2 = true;
} else if ((((Key.isDown(68) && (pegando1 == false)) && (pegando2 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando3");
pegando3 = true;
} else {
walk = false;
}
if ((((((walk == false) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("1");
}
}
onClipEvent (enterFrame) {
if (_root.hitcounter >= 4) {
perdiendo = true;
gotoAndStop ("perdiendo");
_root.enemy.ganando = true;
_root.enemy.gotoAndStop("ganando");
this._xscale = 100;
}
}
Frame 22
_root.player.pegando1 = false;
_root.player.pegando2 = false;
_root.player.pegando3 = false;
_root.player.ganando = false;
_root.player.perdiendo = false;
_root.enemy.ganando = false;
_root.enemy.perdiendo = false;
_root.enemy.empezando = false;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
_root.enemythrows = _root.enemythrows + 1;
Instance of Symbol 569 MovieClip "saque2" in Frame 22
onClipEvent (load) {
this._xscale = -100;
}
Frame 23
stop();
Instance of Symbol 292 MovieClip "cursor" in Frame 23
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
}
Frame 24
stop();
Frame 25
stop();
Frame 26
stop();
Instance of Symbol 139 MovieClip "mouse" in Frame 26
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.mouse._x = _root._xmouse;
_root.mouse._y = _root._ymouse;
}
Frame 27
stop();
Instance of Symbol 292 MovieClip "cursor" in Frame 27
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
}
Frame 28
_root.enemy.gotoAndStop(1);
_root.totalthrows = _root.totalthrows + 1;
_root.enemy.ganando = false;
_root.enemy.perdiendo = false;
_root.enemy.empezando = false;
_root.enemy.pegando1 = false;
_root.enemy.pegando2 = false;
_root.enemy.pegando3 = false;
_root.enemy.ganando = false;
_root.enemy.perdiendo = false;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
stop();
Instance of Symbol 355 MovieClip "controller" in Frame 28
onClipEvent (load) {
_root.hitcounter = 0;
_root.totalhits = 0;
_root.enemyhits = 0;
_root.enemythrows = 0;
_root.totalthrows = 1;
_root.playerscore = 0;
_root.enemyscore = 0;
_root.totalhit1 = 0;
_root.totalhit2 = 0;
_root.totalhit3 = 0;
_root.totalhits2p = 0;
_root.totalhit12p = 0;
_root.totalhit22p = 0;
_root.totalhit32p = 0;
_root.totalthrows2p = 0;
_root.hitcounter2 = 0;
}
onClipEvent (enterFrame) {
if (_root.enemyscore >= 15) {
_root.transp4.play();
}
if (_root.playerscore >= 15) {
_root.transp4.play();
}
}
Instance of Symbol 377 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._x = _root.player._x - 5;
}
}
Instance of Symbol 378 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._x = _root.player._x + 5;
}
}
Instance of Symbol 378 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._y = _root.player._y + 5;
}
}
Instance of Symbol 378 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.paredhit)) {
_root.player._y = _root.player._y - 5;
}
}
Instance of Symbol 640 MovieClip "enemy" in Frame 28
onClipEvent (load) {
this._xscale = -100;
velocidade = 5;
walk = false;
pegando1 = false;
pegando2 = false;
pegando3 = false;
perdiendo = false;
ganando = false;
}
onClipEvent (enterFrame) {
if (((((Key.isDown(37) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
this._xscale = -100;
walk = true;
_x = (_x - velocidade);
} else if (((((Key.isDown(39) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
this._xscale = 100;
walk = true;
_x = (_x + velocidade);
} else if (((((Key.isDown(38) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
walk = true;
_y = (_y - velocidade);
} else if (((((Key.isDown(40) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
walk = true;
_y = (_y + velocidade);
} else if ((((Key.isDown(66) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando1");
pegando1 = true;
} else if ((((Key.isDown(78) && (pegando1 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando2");
pegando2 = true;
} else if ((((Key.isDown(77) && (pegando1 == false)) && (pegando2 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando3");
pegando3 = true;
} else {
walk = false;
}
if ((((((walk == false) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("1");
}
}
onClipEvent (enterFrame) {
if (_root.hitcounter2 >= 4) {
perdiendo = true;
gotoAndStop ("perdiendo");
_root.player.ganando = true;
_root.player.gotoAndStop("ganando");
this._xscale = -100;
}
}
Instance of Symbol 423 MovieClip "red" in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
this.gotoAndStop("2");
}
}
onClipEvent (enterFrame) {
if (_root.ball._x <= this._x) {
gotoAndStop (2);
}
if (_root.ball._x >= this._x) {
gotoAndStop (1);
}
}
Instance of Symbol 378 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.paredhit)) {
_root.enemy._y = _root.enemy._y - 5;
}
}
Instance of Symbol 378 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.paredhit)) {
_root.enemy._y = _root.enemy._y + 5;
}
}
Instance of Symbol 378 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.paredhit)) {
_root.enemy._x = _root.enemy._x - 5;
}
}
Instance of Symbol 377 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.paredhit)) {
_root.enemy._x = _root.enemy._x + 5;
}
}
Instance of Symbol 425 MovieClip "ball" in Frame 28
onClipEvent (load) {
h = _height / 2;
w = _width / 2;
xspeed = 0;
yspeed = 0;
drag = 0.99;
bounce = 1;
gravity = 0.64;
hit1 = false;
hit2 = false;
activado = false;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + (xspeed * 3));
if (this.hitTest(_root.player.at.hit)) {
yspeed = -15;
_root.player.at.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 10;
if (_root.player._xscale < 0) {
xspeed = xspeed + 4.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 4.8;
}
}
if (this.hitTest(_root.player.at2.hit)) {
yspeed = -15;
_root.player.at2.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 30;
if (_root.player._xscale < 0) {
xspeed = xspeed + 6.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 6.8;
}
}
if (this.hitTest(_root.player.at3.hit)) {
yspeed = -15;
_root.player.at3.hit.play();
_root.hitcounter = _root.hitcounter + 1;
_root.totalhits = _root.totalhits + 1;
_root.score = _root.score + 10;
if (_root.player._xscale < 0) {
xspeed = xspeed + 4.8;
}
if (_root.player._xscale > 0) {
xspeed = xspeed + 4.8;
}
}
if (this.hitTest(_root.saque1.inicio1.hitsaque1)) {
yspeed = -18;
xspeed = xspeed + 0;
}
if (this.hitTest(_root.saque1.saque12.hitsaque1)) {
yspeed = -15;
xspeed = xspeed + 5.8;
_root.saque1.biensacado = true;
}
if (this.hitTest(_root.saque2.inicio2.hitsaque2)) {
yspeed = -18;
xspeed = xspeed + 0;
}
if (this.hitTest(_root.saque2.saque22.hitsaque1)) {
yspeed = -15;
xspeed = xspeed - 5.8;
_root.saque2.biensacado = true;
}
_root.speed = this.xspeed;
if (!dragging) {
_x = (_x + xspeed);
_y = ((_y + yspeed) - 0.29);
if (_root.ground.hitTest((_x + w) + 12, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.ground.hitTest((_x - w) - 10, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.ground.hitTest(_x, (_y + h) + 3, true)) {
yspeed = yspeed * (-bounce);
_root._root.stats.combo = 0;
_root.j = 0;
}
if (_root.rb.hitTest(_x, (_y - h) - 10, true)) {
yspeed = yspeed * (-bounce);
}
if (_root.rb.hitTest((_x + w) + 12, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.rb.hitTest((_x - w) - 10, _y, true)) {
xspeed = xspeed * (-bounce);
}
if (_root.rb.hitTest(_x, _y + h, true)) {
yspeed = yspeed * (-bounce);
_root.rb.rainbow = 2;
_root.k = 0;
}
if (_root.rb.hitTest(_x, (_y - h) - 10, true)) {
yspeed = yspeed * (-bounce);
}
yspeed = (yspeed * drag) + gravity;
xspeed = xspeed * drag;
} else {
xspeed = _x - oldx;
yspeed = _y - oldy;
oldx = _x;
oldy = _y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.at1.hit)) {
yspeed = -15;
_root.totalhits2p = _root.totalhits2p + 1;
if (_root.enemy._xscale < 0) {
xspeed = xspeed - 4.8;
}
if (_root.enemy._xscale > 0) {
xspeed = xspeed - 4.8;
}
}
if (this.hitTest(_root.enemy.at2.hit)) {
yspeed = -15;
_root.totalhits2p = _root.totalhits2p + 1;
if (_root.enemy._xscale < 0) {
xspeed = xspeed - 6.8;
}
if (_root.enemy._xscale > 0) {
xspeed = xspeed - 6.8;
}
}
if (this.hitTest(_root.enemy.at3.hit)) {
yspeed = -15;
_root.totalhits2p = _root.totalhits2p + 1;
if (_root.enemy._xscale < 0) {
xspeed = xspeed - 4.8;
}
if (_root.enemy._xscale > 0) {
xspeed = xspeed - 4.8;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ground.HIT1) && (hit1 == false)) && (hit2 == false)) {
hit1 = true;
_root.player.perdiendo = true;
_root.player.gotoAndStop("perdiendo");
_root.enemy.ganando = true;
_root.enemy.gotoAndStop("ganando");
_root.player._xscale = 100;
_root.saque1.perdiendo = true;
}
if ((this.hitTest(_root.ground.HIT2) && (hit1 == false)) && (hit2 == false)) {
hit2 = true;
_root.player.ganando = true;
_root.player.gotoAndStop("ganando");
_root.enemy.perdiendo = true;
_root.enemy.gotoAndStop("perdiendo");
_root.player._xscale = 100;
_root.saque2.perdiendo = true;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.barra)) {
_root.hitcounter = 0;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.red.cosin)) {
_root.red.mov.play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy.hitenemyhit)) {
_root.enemy.empezando = true;
_root.enemy.gotoAndStop("pegando1");
}
}
Instance of Symbol 654 MovieClip "saque1" in Frame 28
onClipEvent (load) {
yapegado = false;
biensacado = false;
perdiendo = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(81) && (perdiendo == false)) {
this.gotoAndStop("2");
}
}
onClipEvent (enterFrame) {
if ((yapegado == true) && (biensacado == true)) {
_root.gotoAndStop("juego3");
}
if (perdiendo == true) {
gotoAndStop ("perdiendo");
}
}
Frame 29
_root.player.pegando1 = false;
_root.player.pegando2 = false;
_root.player.pegando3 = false;
_root.player.ganando = false;
_root.player.perdiendo = false;
_root.enemy.ganando = false;
_root.enemy.perdiendo = false;
_root.enemy.empezando = false;
_root.enemy.pegando1 = false;
_root.enemy.pegando2 = false;
_root.enemy.pegando3 = false;
_root.enemy.ganando = false;
_root.enemy.perdiendo = false;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
Instance of Symbol 663 MovieClip "player" in Frame 29
onClipEvent (load) {
velocidade = 5;
walk = false;
pegando1 = false;
pegando2 = false;
pegando3 = false;
perdiendo = false;
ganando = false;
}
onClipEvent (enterFrame) {
if (((((Key.isDown(65) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
this._xscale = -100;
walk = true;
_x = (_x - velocidade);
} else if (((((Key.isDown(68) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
this._xscale = 100;
walk = true;
_x = (_x + velocidade);
} else if (((((Key.isDown(87) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
walk = true;
_y = (_y - velocidade);
} else if (((((Key.isDown(83) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("walk");
walk = true;
_y = (_y + velocidade);
} else if ((((Key.isDown(81) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando1");
pegando1 = true;
} else if ((((Key.isDown(69) && (pegando1 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando2");
pegando2 = true;
} else if ((((Key.isDown(82) && (pegando1 == false)) && (pegando2 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("pegando3");
pegando3 = true;
} else {
walk = false;
}
if ((((((walk == false) && (pegando1 == false)) && (pegando2 == false)) && (pegando3 == false)) && (perdiendo == false)) && (ganando == false)) {
this.gotoAndStop("1");
}
}
onClipEvent (enterFrame) {
if (_root.hitcounter >= 4) {
perdiendo = true;
gotoAndStop ("perdiendo");
_root.enemy.ganando = true;
_root.enemy.gotoAndStop("ganando");
this._xscale = 100;
}
}
Frame 30
_root.totalthrows2p = _root.totalthrows2p + 1;
_root.player.pegando1 = false;
_root.player.pegando2 = false;
_root.player.pegando3 = false;
_root.player.ganando = false;
_root.player.perdiendo = false;
_root.enemy.pegando1 = false;
_root.enemy.pegando2 = false;
_root.enemy.pegando3 = false;
_root.enemy.ganando = false;
_root.enemy.perdiendo = false;
_root.enemy.empezando = false;
_root.ball.hit1 = false;
_root.ball.hit2 = false;
Instance of Symbol 666 MovieClip "saque2" in Frame 30
onClipEvent (load) {
this._xscale = -100;
yapegado = false;
biensacado = false;
perdiendo = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(66) && (perdiendo == false)) {
this.gotoAndStop("2");
}
}
onClipEvent (enterFrame) {
if ((yapegado == true) && (biensacado == true)) {
_root.gotoAndStop("juego3");
}
if (perdiendo == true) {
gotoAndStop ("perdiendo");
}
}
Frame 31
stop();
Instance of Symbol 292 MovieClip "cursor" in Frame 31
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
}
Symbol 27 MovieClip Frame 45
_root.play();
Symbol 29 MovieClip Frame 10
stop();
Symbol 57 MovieClip Frame 102
stopAllSounds();
_root.play();
Symbol 123 MovieClip Frame 525
_root.play();
Symbol 137 Button
on (release) {
_root.nextFrame();
}
Symbol 142 MovieClip Frame 17
stop();
Instance of Symbol 139 MovieClip "mouse" in Symbol 142 MovieClip Frame 17
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.mouse._x = _root._xmouse;
_root.mouse._y = _root._ymouse;
}
Symbol 142 MovieClip Frame 18
play();
Symbol 145 MovieClip Frame 19
stop();
Symbol 151 MovieClip Frame 68
_root.play();
Symbol 201 Button
on (release) {
_root.gotoAndPlay("2");
}
Symbol 215 Button
on (release) {
_root.menugame.play();
}
Symbol 216 Button
on (release) {
_root.menugame.gotoAndPlay(120);
}
Symbol 217 Button
on (release) {
_root.menugame.gotoAndPlay(161);
}
Symbol 218 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 223 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=322", "_blank");
}
Symbol 235 Button
on (release) {
_root.play();
}
Symbol 236 Button
on (release) {
_root.gotoAndStop("2playersfill");
}
Symbol 249 Button
on (release) {
_root.menugame.gotoAndStop(101);
}
Symbol 258 Button
on (release) {
_root.menugame.gotoAndStop("160");
}
Symbol 285 Button
on (release) {
_root.menugame.gotoAndStop("140");
}
Symbol 290 MovieClip Frame 101
stop();
Symbol 290 MovieClip Frame 119
stop();
Symbol 290 MovieClip Frame 140
stop();
Symbol 290 MovieClip Frame 160
stop();
Symbol 290 MovieClip Frame 177
stop();
Symbol 297 MovieClip Frame 60
_root.play();
Symbol 396 MovieClip Frame 19
_root.enemy.gotoAndStop("1");
Symbol 398 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 29
_root.enemy.empezando = false;
_root.enemy.gotoAndStop("1");
Symbol 404 MovieClip Frame 39
stop();
Symbol 407 MovieClip Frame 69
stop();
Symbol 408 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 1
stop();
_root.ball.swapDepths(_root.red);
Symbol 423 MovieClip Frame 2
_root.ball.swapDepths(_root.red);
Symbol 439 MovieClip Frame 38
stop();
_root.ball.activado = true;
Symbol 440 MovieClip Frame 20
stop();
_root.saque1.yapegado = true;
Symbol 446 MovieClip Frame 1
_root.enemyscore = _root.enemyscore + 1;
Symbol 446 MovieClip Frame 85
stop();
_root.score = _root.score - 150;
_root.ball._x = 573;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.gotoAndStop("saque2");
Symbol 447 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 30
stop();
_root.gotoAndStop("stadisticas");
Symbol 463 MovieClip Frame 19
_root.player.gotoAndStop("1");
Symbol 464 MovieClip Frame 25
_root.player.pegando1 = false;
_root.totalhit1 = _root.totalhit1 + 1;
_root.player.gotoAndStop("1");
Symbol 465 MovieClip Frame 45
_root.player.pegando2 = false;
_root.totalhit2 = _root.totalhit2 + 1;
_root.player.gotoAndStop("1");
Symbol 466 MovieClip Frame 27
_root.player.pegando3 = false;
_root.totalhit3 = _root.totalhit3 + 1;
_root.player.gotoAndStop("1");
Symbol 467 MovieClip Frame 1
_root.enemyscore = _root.enemyscore + 1;
Symbol 467 MovieClip Frame 85
stop();
_root.score = _root.score - 150;
_root.ball._x = 573;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.gotoAndStop("saque2");
Symbol 468 MovieClip Frame 1
_root.playerscore = _root.playerscore + 1;
Symbol 468 MovieClip Frame 83
stop();
_root.score = _root.score + 150;
_root.ball._x = 143;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.saque1.perdiendo = false;
_root.saque1.gotoAndStop(1);
_root.gotoAndStop("saque1");
Symbol 469 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 53
_root.saque2.gotoAndStop(2);
Symbol 483 MovieClip Frame 18
_root.gotoAndStop("juego");
Symbol 484 MovieClip Frame 1
stop();
Symbol 507 Button
on (release) {
_root.gotoAndStop("match2");
}
Symbol 517 MovieClip Frame 60
_root.play();
Symbol 527 MovieClip Frame 1
_root.enemyscore = _root.enemyscore + 1;
Symbol 527 MovieClip Frame 85
stop();
_root.score = _root.score - 150;
_root.ball._x = 573;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.gotoAndStop("saque22");
Symbol 528 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 30
stop();
_root.gotoAndStop("stadisticas2");
Symbol 534 MovieClip Frame 1
_root.enemyscore = _root.enemyscore + 1;
Symbol 534 MovieClip Frame 85
stop();
_root.score = _root.score - 150;
_root.ball._x = 573;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.gotoAndStop("saque22");
Symbol 535 MovieClip Frame 1
_root.playerscore = _root.playerscore + 1;
Symbol 535 MovieClip Frame 81
stop();
_root.score = _root.score + 150;
_root.ball._x = 143;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.saque1.perdiendo = false;
_root.saque1.gotoAndStop(1);
_root.gotoAndStop("saque12");
Symbol 536 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 18
_root.gotoAndStop("juego1");
Symbol 538 MovieClip Frame 1
stop();
Symbol 543 Button
on (release) {
_root.gotoAndStop("match3");
}
Symbol 548 MovieClip Frame 60
_root.play();
Symbol 558 MovieClip Frame 1
_root.enemyscore = _root.enemyscore + 1;
Symbol 558 MovieClip Frame 85
stop();
_root.score = _root.score - 150;
_root.ball._x = 573;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.gotoAndStop("saque23");
Symbol 559 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 30
stop();
_root.gotoAndStop("stadisticas3");
Symbol 565 MovieClip Frame 1
_root.enemyscore = _root.enemyscore + 1;
Symbol 565 MovieClip Frame 85
stop();
_root.score = _root.score - 150;
_root.ball._x = 573;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.gotoAndStop("saque23");
Symbol 566 MovieClip Frame 1
_root.playerscore = _root.playerscore + 1;
Symbol 566 MovieClip Frame 82
stop();
_root.score = _root.score + 150;
_root.ball._x = 143;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.saque1.perdiendo = false;
_root.saque1.gotoAndStop(1);
_root.gotoAndStop("saque13");
Symbol 567 MovieClip Frame 1
stop();
Symbol 568 MovieClip Frame 18
_root.gotoAndStop("juego2");
Symbol 569 MovieClip Frame 1
stop();
Symbol 578 Button
on (release) {
_root.gotoAndStop("ganando");
}
Symbol 604 Button
on (release) {
ab20_09 = new LoadVars();
ab20_09.z = _root.namev;
ab20_09.x = _root.score;
ab20_09.c = 322;
ab20_09.v = "XDTZPO";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
_root.gotoAndPlay("1");
}
Symbol 609 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 611 MovieClip Frame 85
stop();
Symbol 617 Button
on (release) {
_root.gotoAndPlay("1");
}
Symbol 618 MovieClip Frame 30
stop();
Symbol 625 Button
on (release) {
_root.gotoAndStop("match4");
}
Symbol 627 MovieClip Frame 60
_root.play();
Symbol 637 MovieClip Frame 29
_root.enemy.pegando1 = false;
_root.totalhit12p = _root.totalhit12p + 1;
_root.enemy.gotoAndStop("1");
Symbol 638 MovieClip Frame 37
_root.enemy.pegando2 = false;
_root.totalhit22p = _root.totalhit22p + 1;
_root.enemy.gotoAndStop("1");
Symbol 639 MovieClip Frame 28
_root.enemy.pegando3 = false;
_root.totalhit32p = _root.totalhit32p + 1;
_root.enemy.gotoAndStop("1");
Symbol 640 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 1
_root.enemyscore = _root.enemyscore + 1;
Symbol 653 MovieClip Frame 85
stop();
_root.score = _root.score - 150;
_root.ball._x = 573;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.gotoAndStop("saque24");
Symbol 654 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 30
stop();
_root.gotoAndStop("stadisticas4");
Symbol 661 MovieClip Frame 1
_root.enemyscore = _root.enemyscore + 1;
Symbol 661 MovieClip Frame 85
stop();
_root.score = _root.score - 150;
_root.ball._x = 573;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.gotoAndStop("saque24");
Symbol 662 MovieClip Frame 1
_root.playerscore = _root.playerscore + 1;
Symbol 662 MovieClip Frame 72
stop();
_root.score = _root.score + 150;
_root.ball._x = 143;
_root.ball._y = 247;
_root.ball.xspeed = 0;
_root.ball.yspeed = 0;
_root.saque1.perdiendo = false;
_root.saque1.gotoAndStop(1);
_root.gotoAndStop("saque14");
Symbol 663 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 53
stop();
Symbol 665 MovieClip Frame 18
stop();
_root.saque2.yapegado = true;
Symbol 666 MovieClip Frame 1
stop();
Symbol 669 Button
on (release) {
_root.gotoAndPlay("1");
}