Frame 1
function cargando() {
var _local2;
var _local3;
var _local4;
_local2 = _root.getBytesTotal();
_local3 = _root.getBytesLoaded();
_local4 = Math.floor((_local3 * 100) / _local2);
porcentaje_txt.text = _local4 + " %";
barra_mc.gotoAndStop(_local4);
if (_local3 == _local2) {
clearInterval(hiloPrecarga);
play();
}
}
var hiloPrecarga = setInterval(cargando, 1);
_root.menu_sound = new Sound();
_root.menu_sound.attachSound("menu_sound");
_root.menu_sound.setVolume(20);
stop();
Instance of Symbol 39 MovieClip "paleta_user_normal" in Frame 1
onClipEvent (enterFrame) {
_rotation = (((_x - 300) * 120) / 275);
if (_rotation > 90) {
_rotation = 90;
}
if (_rotation < -90) {
_rotation = -90;
}
}
Frame 17
_root.taytus = new Sound();
_root.taytus.attachSound("taytus");
_root.bajon = new Sound();
_root.bajon.attachSound("bajon");
_root.onda = new Sound();
_root.onda.attachSound("onda");
_root.cpu = new Sound();
_root.cpu.attachSound("cpu");
_root.musica = new Sound();
_root.musica.attachSound("music");
_root.musica.setVolume(100);
_root.musica.start(0, 10);
stop();
Frame 36
stop();
Frame 56
Mouse.show();
Frame 86
stop();
Frame 111
switch (_root.nivel) {
case 1 :
_root.ball._visible = false;
_root.mc_sombra._visible = false;
play();
break;
case 2 :
gotoAndPlay ("nivel2");
break;
case 3 :
gotoAndPlay ("nivel3");
}
Frame 152
function init3() {
_root.paddle2.xdiff = _root.xdiff;
_root.paddle2.ydiff = _root.ydiff;
ball._visible = false;
ball.scales = 20;
ball.speedvar = 0.6;
ball.increasing = 2;
ball.gravity = 0.08;
_root.max_point = 11;
_root.score1 = 0;
_root.score2 = 0;
_root.ball.xspeed = 0;
_root.ball.ballspeed = 1.46300000000001;
_root.ball.yspeed = -2.1;
_root.ball._xscale = 100;
_root.ball._yscale = 100;
_root.ball.zspeed = -3;
_root.ball.realx = 300;
_root.ball.realy = 3;
_root.ball.xchill = 5;
_root.ball.ychill = 20;
_root.paddle2._x = 300;
ball._visible = true;
paddle1._visible = true;
shadow._visible = true;
paddle2._visible = true;
backbox._visible = true;
paddle2._xscale = 50;
paddle2._yscale = 50;
ball.ydir = 1;
ball.ydira = 0;
_root.arranque = true;
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var mymouse = new Object();
_root.fuerza = 0;
mymouse.onMouseDown = function () {
switch (_root.nivel) {
case 1 :
mc_data.datos.power.gotoAndPlay(2);
break;
case 2 :
mc_data2.datos.power.gotoAndPlay(2);
break;
case 3 :
mc_data3.datos.power.gotoAndPlay(2);
}
};
mymouse.onMouseUp = function () {
switch (_root.nivel) {
case 1 :
mc_data.datos.power.stop();
_root.fuerza = ((mc_data.datos.power._currentframe - 4) * 10) - 10;
break;
case 2 :
mc_data2.datos.power.stop();
_root.fuerza = ((mc_data2.datos.power._currentframe - 4) * 10) - 10;
break;
case 3 :
mc_data3.datos.power.stop();
_root.fuerza = ((mc_data3.datos.power._currentframe - 4) * 10) - 10;
}
};
_root.real_frame = 2;
switch (_root.nivel) {
case 1 :
this.mc_data.datos.tiros.gotoAndStop(1);
break;
case 2 :
this.mc_data2.datos.tiros.gotoAndStop(1);
break;
case 3 :
this.mc_data3.datos.tiros.gotoAndStop(1);
}
mymouse.onMouseWheel = function (delta) {
if (delta > 0) {
if (_root.real_frame < 3) {
_root.real_frame++;
}
} else if (_root.real_frame > 1) {
_root.real_frame--;
}
switch (_root.nivel) {
case 1 :
mc_data.datos.tiros.gotoAndStop(_root.real_frame);
break;
case 2 :
mc_data2.datos.tiros.gotoAndStop(_root.real_frame);
break;
case 3 :
mc_data3.datos.tiros.gotoAndStop(_root.real_frame);
}
};
var mytecla = new Object();
mytecla.onKeyDown = function () {
if (Key.getAscii() == 97) {
if (_root.real_frame < 3) {
_root.real_frame++;
}
} else if (Key.getAscii() == 122) {
if (_root.real_frame > 1) {
_root.real_frame--;
}
}
switch (_root.nivel) {
case 1 :
mc_data.datos.tiros.gotoAndStop(_root.real_frame);
break;
case 2 :
mc_data2.datos.tiros.gotoAndStop(_root.real_frame);
break;
case 3 :
mc_data3.datos.tiros.gotoAndStop(_root.real_frame);
}
};
Key.addListener(mytecla);
Mouse.addListener(mymouse);
paleta_user_globo._visible = false;
paleta_user_razo._visible = false;
paleta_user_globo.onEnterFrame = function () {
this._x = paleta_user_normal._x;
this._y = paleta_user_normal._y;
this._rotation = paleta_user_normal._rotation;
};
paleta_user_razo.onEnterFrame = function () {
this._x = paleta_user_normal._x;
this._y = paleta_user_normal._y;
this._rotation = paleta_user_normal._rotation;
};
paleta_user_top.onEnterFrame = function () {
this._x = paleta_user_normal._x;
this._y = paleta_user_normal._y;
this._rotation = paleta_user_normal._rotation;
};
x_start = 416.5;
y_start = 373.9;
init3();
vel = 1;
_root.mc_show_mouse.onEnterFrame = function () {
if (this.hitTest(_root.paleta_user_normal2)) {
paleta_user_normal2._alpha = 30;
} else {
paleta_user_normal2._alpha = 100;
}
};
stop();
Instance of Symbol 197 MovieClip "paleta_user_normal2" in Frame 152
onClipEvent (enterFrame) {
_x = _root.paleta_user_normal._x;
_y = _root.paleta_user_normal._y;
_rotation = _root.paleta_user_normal._rotation;
}
Instance of Symbol 199 MovieClip "mc_sombra" in Frame 152
onClipEvent (enterFrame) {
_x = _root.ball._x;
_y = _root.ball._y;
}
Instance of Symbol 201 MovieClip "ball" in Frame 152
onClipEvent (enterFrame) {
if ((_root.nivel == 1) && (_root.saque._visible == false)) {
_visible = true;
if (win != true) {
if (_root.musica.getVolume() == 0) {
_root.musica.stop();
_root.taytus.setVolume(100);
} else if ((_root.musica.getVolume() <= 100) || (_root.musica.getVolume() >= 0)) {
_root.musica.setVolume(_root.musica.getVolume() - 5);
}
fps = 20;
if (saca_user == true) {
_root.cant2++;
} else {
_root.cant2 = 0;
}
if ((_root.cant2 / fps) >= 2) {
_root.fuerza = 0;
_root.ball.taytus = false;
_root.ball.cant = 0;
_root.ball.xspeed = 0;
_root.ball.ballspeed = 1.1005;
_root.ball.yspeed = -2.1;
_root.ball._xscale = 99;
_root.ball._yscale = 99;
_root.ball.zspeed = -3;
_root.ball.realx = 310;
_root.ball.realy = 3;
_root.ball.xchill = 5;
_root.ball.ychill = 20;
_root.salio = false;
_root.ball.ydir = 1;
_root.score.gotoAndStop(1);
_root.real_frame = 2;
_root.tiros.gotoAndStop(2);
_root.ta = false;
_root.ball.va = false;
_root.saque._visible = false;
saca_user = false;
_root.paleta_user_normal2._x = 290;
_root.paleta_user_normal2._y = 225;
_root.cpu.setVolume(100);
_root.cpu.start(0, 1);
_root.fuerza = 0;
}
if (taytus == true) {
if (paying != true) {
_root.counter._visible = true;
_root.counter.gotoAndPlay(2);
paying = true;
} else {
_root.counter.gotoAndStop(1);
}
cant++;
seg = cant / fps;
if ((cant / fps) >= 2) {
mysaque = true;
taytus = false;
paying = false;
cant = 0;
_root.paleta_user_normal3.gotoAndPlay(2);
_root.paddle2._x = 300;
_root.paddle2._y = 51;
_root.ball._y = 1;
_root.ball._x = _root.paddle2._x;
_root.ball.ballspeed = 1.1005;
_root.ball.yspeed = -2.1;
_root.ball._xscale = 40;
_root.ball._yscale = 40;
_root.ball.zspeed = 3;
_root.ball.realx = 300;
_root.ball.realy = 3;
_root.ball.xchill = 5;
_root.ball.ychill = 20;
_root.salio = false;
_root.ball.ydir = -1;
_root.real_frame = 2;
_root.ta = false;
_root.ball.va = false;
_root.taytus.setVolume(100);
_root.taytus.start(0, 1);
_root.fuerza = 0;
}
}
if (saca_user != true) {
_root.paleta_user_normal.startDrag(true);
Mouse.hide();
} else {
_root.paleta_user_normal2._x = 290;
_root.paleta_user_normal2._y = 225;
}
if (_root.arranque == true) {
_root.fuerza = 0;
}
if ((_root.score2 >= _root.max_point) and ((_root.score2 - _root.score1) >= 2)) {
_root.bajon.start(0, 1);
_root.gotoAndPlay(166);
Mouse.show();
win = true;
}
if ((_root.score1 >= _root.max_point) and ((_root.score1 - _root.score2) >= 2)) {
_root.gotoAndPlay(155);
win = true;
Mouse.show();
}
if ((this.hitTest(_root.mc_top) && (va == true)) && (_root.ta != true)) {
if (this._xscale < 32) {
_root.score2++;
_root.ta = true;
taytus = true;
}
}
if ((this.hitTest(_root.mc_top2) && (va == true)) && (_root.ta != true)) {
_root.score2++;
_root.ta = true;
taytus = true;
}
if ((_root.salio == true) && (_xscale < 40)) {
if (_root.ta != true) {
_root.score2++;
_root.score.gotoAndStop("cpu");
_root.ta = true;
taytus = true;
}
} else if (_root.ta != true) {
if (realy < 0) {
if (((realx > 237) & (realx < 417)) & (realy != 0)) {
realy = 0;
ydir = ydir * -1;
if (ydir != ydira) {
ydira = ydir;
}
} else {
realy = 0;
_y = ((60 + (3.7143 * (_xscale - 30))) - ((realy * _xscale) / 14));
if (zspeed > 0) {
_root.score1++;
_root.score.gotoAndStop("user");
saca_user = true;
_root.ta = true;
}
if (zspeed < 0) {
_root.score2++;
_root.score.gotoAndStop("cpu");
_root.ta = true;
taytus = true;
}
zspeed = 0;
stopDrag();
Mouse.show();
}
}
if (_xscale >= 100) {
if (this.hitTest(_root.paleta_user_normal2) && (paying != true)) {
_root.taytus.setVolume(100);
_root.taytus.start(0, 1);
va = true;
taytus = false;
cant = 0;
mysaque = false;
switch (_root.real_frame) {
case 2 :
xspeed = (_x - _root.paleta_user_normal2._x) / 17;
yspeed = ((3.5 / ballspeed) / ballspeed) + (_root.fuerza / 50);
increasing = 1;
gravity = 0.1;
break;
case 3 :
xspeed = (_x - _root.paleta_user_normal2._x) / 17;
yspeed = (2 / ballspeed) + (_root.fuerza / 400);
increasing = 1;
gravity = 0.1;
break;
case 4 :
xspeed = (_x - _root.paleta_user_normal2._x) / 17;
yspeed = (2 / ballspeed) + (_root.fuerza / 60);
increasing = 1;
gravity = 0.15;
if (ydir == 1) {
if (this._y <= 192) {
_root.score2++;
_root.score.gotoAndStop("cpu");
zspeed = 0;
_root.ta = true;
stopDrag();
Mouse.show();
}
}
break;
case 5 :
xspeed = (_x - _root.paleta_user_normal2._x) / 17;
yspeed = (2 / ballspeed) + (_root.fuerza / 60);
increasing = 1;
gravity = 0.15;
}
ydir = 1;
zspeed = zspeed * -1;
} else if ((zspeed != 0) and (_root.arranque != true)) {
_root.saca_user = false;
_root.score2++;
_root.score.gotoAndStop("cpu");
zspeed = 0;
taytus = true;
stopDrag();
Mouse.show();
}
}
if (_xscale <= 30) {
_root.arranque = false;
if (this.hitTest(_root.paddle2.paddle2real)) {
_root.cpu.setVolume(100);
_root.cpu.start(0, 1);
_root.saca_user = false;
va = false;
xspeed = (((_x - _root.paddle2._x) / 17) * 100) / 30;
yspeed = (1.5 / ballspeed) / ballspeed;
ydir = 1;
zspeed = zspeed * -1;
} else if (zspeed != 0) {
_root.score1++;
_root.score.gotoAndStop("user");
saca_user = true;
zspeed = 0;
stopDrag();
Mouse.show();
}
}
if (zspeed != 0) {
if (yspeed < 0) {
yspeed = yspeed * -1;
ydir = ydir * -1;
}
realx = realx + (((xspeed * 100) / _xscale) * ballspeed);
if (ydir < 0) {
realy = realy - ((((yspeed * 30) / _xscale) * ballspeed) / 0.6);
yspeed = yspeed + (((gravity * 0.42) * 10) / ballspeed);
}
if (ydir > 0) {
realy = realy + ((((yspeed * 30) / _xscale) * ballspeed) / 0.6);
yspeed = yspeed - (((gravity * 0.42) * 10) / ballspeed);
}
if (_root.saca_user != true) {
if (mysaque != true) {
_y = 60;
_xscale = (_xscale + zspeed);
_yscale = (_yscale + zspeed);
_y = ((60 + (3.7143 * (_xscale - 30))) - ((realy * _xscale) / 14));
_x = (300 + (((realx - 300) * _xscale) / 30));
} else {
_xscale = (_xscale + zspeed);
_yscale = (_yscale + zspeed);
_y = ((20 + (3.7143 * (_xscale - 30))) - ((realy * _xscale) / 14));
_x = (300 + (((realx - 300) * _xscale) / 30));
}
}
if (this.hitTest(_root.test)) {
if (((_xscale <= 59) && (va == true)) && ((_root.real_frame == 3) || (_root.real_frame == 4))) {
_root.red.gotoAndPlay(2);
_root.score2++;
_root.score.gotoAndStop("cpu");
zspeed = 0;
taytus = true;
stopDrag();
Mouse.show();
} else {
_root.stop();
}
}
}
if (increasing == 1) {
if (ballspeed < 1.46300000000001) {
ballspeed = ballspeed + (speedvar / 200);
}
}
if (zspeed < 0) {
zspeed = -3 * ballspeed;
}
if (zspeed > 0) {
zspeed = 3 * ballspeed;
}
}
}
} else {
_visible = false;
}
}
Instance of Symbol 39 MovieClip "paleta_user_normal" in Frame 152
onClipEvent (enterFrame) {
_rotation = (((_x - 300) * 120) / 275);
if (_rotation > 90) {
_rotation = 90;
}
if (_rotation < -90) {
_rotation = -90;
}
}
Instance of Symbol 205 MovieClip "paddle2" in Frame 152
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ball) & (_root.ta != true)) & (_root.ball.ydir == 1)) {
if (_root.ball._xscale > 50) {
_root.salio = true;
}
}
if (_root.ta != true) {
if (_root.ball.zspeed < 0) {
if (_root.ball._xscale < 37) {
if ((80 - ((_root.ball.realy * 30) / 14)) < _y) {
_y = (_y - ydiff);
}
if (_y < (80 - ((_root.ball.realy * 30) / 14))) {
_y = (_y + ydiff);
}
}
if (_x < (_root.ball.realx - (xdiff / 2))) {
_x = (_x + xdiff);
}
if ((_root.ball.realx + (xdiff / 2)) < _x) {
_x = (_x - xdiff);
}
}
if ((50 - (_height / 2)) < _y) {
_y = (50 - (_height / 2));
}
_rotation = (((_x - 300) * 90) / 84);
if (_rotation > 90) {
_rotation = 90;
}
if (_rotation < -90) {
_rotation = -90;
}
}
}
Instance of Symbol 197 MovieClip "paleta_user_normal3" in Frame 152
onClipEvent (enterFrame) {
_x = _root.paddle2._x;
_y = _root.paddle2._y;
_rotation = _root.paddle2._rotation;
}
Frame 153
empiezo = false;
stop();
Frame 154
stop();
Frame 155
Mouse.show();
Mouse.show();
Frame 158
stop();
Frame 163
switch (_root.nivel) {
case 1 :
_root.opcion = 1;
_root.empiezo = 1;
_root.nivel = 1;
_root.xdiff = 4;
_root.ydiff = 5;
_root.paddle2.xdiff = _root.xdiff;
_root.paddle2.ydiff = _root.ydiff;
_root.ball._visible = false;
_root.ball.scales = 20;
_root.ball.speedvar = 0.6;
_root.ball.increasing = 2;
_root.ball.gravity = 0.08;
_root.max_point = 3;
_root.score1 = 0;
_root.score2 = 0;
_root.ball.xspeed = 0;
_root.ball.ballspeed = 1.46300000000001;
_root.ball.yspeed = -2.1;
_root.ball._xscale = 100;
_root.ball._yscale = 100;
_root.ball.zspeed = -3;
_root.ball.realx = 300;
_root.ball.realy = 3;
_root.ball.xchill = 5;
_root.ball.ychill = 20;
_root.paddle2._x = 300;
_root.paddle2._y = 60;
_root.paddle1._visible = true;
shadow._visible = true;
_root.paddle2._visible = true;
_root.backbox._visible = true;
_root.paddle2._xscale = 50;
_root.paddle2._yscale = 50;
_root.ball.ydir = 1;
_root.ball.ydira = 0;
_root.arranque = true;
_root.gotoAndPlay(111);
break;
case 2 :
_root.gotoAndPlay(220);
break;
case 3 :
_root.gotoAndPlay(293);
}
Frame 164
Mouse.show();
stop();
Frame 166
Mouse.show();
Frame 169
stop();
Frame 174
switch (_root.nivel) {
case 1 :
_root.opcion = 1;
_root.empiezo = 1;
_root.nivel = 1;
_root.xdiff = 4;
_root.ydiff = 5;
_root.paddle2.xdiff = _root.xdiff;
_root.paddle2.ydiff = _root.ydiff;
_root.ball._visible = false;
_root.ball.scales = 20;
_root.ball.speedvar = 0.6;
_root.ball.increasing = 2;
_root.ball.gravity = 0.08;
_root.max_point = 3;
_root.score1 = 0;
_root.score2 = 0;
_root.ball.xspeed = 0;
_root.ball.ballspeed = 1.46300000000001;
_root.ball.yspeed = -2.1;
_root.ball._xscale = 100;
_root.ball._yscale = 100;
_root.ball.zspeed = -3;
_root.ball.realx = 300;
_root.ball.realy = 3;
_root.ball.xchill = 5;
_root.ball.ychill = 20;
_root.paddle2._x = 300;
_root.paddle2._y = 60;
_root.paddle1._visible = true;
shadow._visible = true;
_root.paddle2._visible = true;
_root.backbox._visible = true;
_root.paddle2._xscale = 50;
_root.paddle2._yscale = 50;
_root.ball.ydir = 1;
_root.ball.ydira = 0;
_root.arranque = true;
_root.gotoAndPlay(111);
break;
case 2 :
_root.gotoAndPlay(220);
break;
case 3 :
_root.gotoAndPlay(293);
}
Frame 175
_root.ball2._visible = false;
_root.mc_sombra._visible = false;
Frame 220
function init2() {
_root.paddle2.xdiff = _root.xdiff;
_root.paddle2.ydiff = _root.ydiff;
_root.ball2._visible = false;
ball2.scales = 20;
ball2.speedvar = 0.6;
ball2.increasing = 2;
ball2.gravity = 0.08;
_root.max_point = 11;
_root.score1 = 0;
_root.score2 = 0;
_root.ball2.xspeed = 0;
_root.ball2.ball2speed = 1.1;
_root.ball2.yspeed = -2.1;
_root.ball2._xscale = 100;
_root.ball2._yscale = 100;
_root.ball2.zspeed = -3;
_root.ball2.realx = 300;
_root.ball2.realy = 3;
_root.ball2.xchill = 5;
_root.ball2.ychill = 20;
_root.paddle2._x = 300;
paddle1._visible = true;
shadow._visible = true;
paddle2._visible = true;
backbox._visible = true;
paddle2._xscale = 50;
paddle2._yscale = 50;
ball2.ydir = 1;
ball2.ydira = 0;
_root.arranque = true;
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var mymouse = new Object();
_root.fuerza = 0;
mymouse.onMouseDown = function () {
if (_root.nivel == 2) {
mc_data2.datos.power.gotoAndPlay(2);
} else {
mc_data.datos.power.gotoAndPlay(2);
}
};
mymouse.onMouseUp = function () {
if (_root.nivel == 2) {
mc_data2.datos.power.stop();
_root.fuerza = ((mc_data2.datos.power._currentframe - 4) * 10) - 10;
} else {
mc_data.datos.power.stop();
_root.fuerza = ((mc_data.datos.power._currentframe - 4) * 10) - 10;
}
};
_root.real_frame = 2;
if (_root.nivel == 2) {
this.mc_data2.datos.tiros.gotoAndStop(1);
} else {
this.mc_data.datos.tiros.gotoAndStop(1);
}
mymouse.onMouseWheel = function (delta) {
if (delta > 0) {
if (_root.real_frame < 3) {
_root.real_frame++;
}
} else if (_root.real_frame > 1) {
_root.real_frame--;
}
if (_root.nivel == 2) {
mc_data2.datos.tiros.gotoAndStop(_root.real_frame);
} else {
mc_data.datos.tiros.gotoAndStop(_root.real_frame);
}
};
var mytecla = new Object();
mytecla.onKeyDown = function () {
if (Key.getAscii() == 97) {
if (_root.real_frame < 3) {
_root.real_frame++;
}
} else if (Key.getAscii() == 122) {
if (_root.real_frame > 1) {
_root.real_frame--;
}
}
if (_root.nivel == 2) {
mc_data2.datos.tiros.gotoAndStop(_root.real_frame);
} else {
mc_data.datos.tiros.gotoAndStop(_root.real_frame);
}
};
Key.addListener(mytecla);
Mouse.addListener(mymouse);
paleta_user_globo._visible = false;
paleta_user_razo._visible = false;
paleta_user_globo.onEnterFrame = function () {
this._x = paleta_user_normal._x;
this._y = paleta_user_normal._y;
this._rotation = paleta_user_normal._rotation;
};
paleta_user_razo.onEnterFrame = function () {
this._x = paleta_user_normal._x;
this._y = paleta_user_normal._y;
this._rotation = paleta_user_normal._rotation;
};
paleta_user_top.onEnterFrame = function () {
this._x = paleta_user_normal._x;
this._y = paleta_user_normal._y;
this._rotation = paleta_user_normal._rotation;
};
x_start = 416.5;
y_start = 373.9;
init2();
vel = 1;
_root.mc_show_mouse.onEnterFrame = function () {
if (this.hitTest(_root.paleta_user_normal2)) {
paleta_user_normal2._alpha = 30;
} else {
paleta_user_normal2._alpha = 100;
}
};
stop();
Instance of Symbol 197 MovieClip "paleta_user_normal2" in Frame 220
onClipEvent (enterFrame) {
_x = _root.paleta_user_normal_tay._x;
_y = _root.paleta_user_normal_tay._y;
_rotation = _root.paleta_user_normal_tay._rotation;
}
Instance of Symbol 241 MovieClip "mc_sombra" in Frame 220
onClipEvent (enterFrame) {
_x = _root.ball2._x;
_y = _root.ball2._y;
}
Instance of Symbol 243 MovieClip "ball2" in Frame 220
onClipEvent (enterFrame) {
if ((_root.nivel == 2) && (_root.saque2._visible == false)) {
if (win != true) {
if (_root.musica.getVolume() == 0) {
_root.musica.stop();
_root.taytus.setVolume(100);
} else if ((_root.musica.getVolume() <= 100) || (_root.musica.getVolume() >= 0)) {
_root.musica.setVolume(_root.musica.getVolume() - 5);
}
fps = 20;
if (saca_user == true) {
_root.cant2++;
} else {
_root.cant2 = 0;
}
if ((_root.cant2 / fps) >= 2) {
_root.fuerza = 0;
_root.ball2.taytus = false;
_root.ball2.cant = 0;
_root.ball2.xspeed = 0;
_root.ball2.ball2speed = 1.102;
_root.ball2.yspeed = -2.1;
_root.ball2._xscale = 99;
_root.ball2._yscale = 99;
_root.ball2.zspeed = -3;
_root.ball2.realx = 310;
_root.ball2.realy = 3;
_root.ball2.xchill = 5;
_root.ball2.ychill = 20;
_root.salio = false;
_root.ball2.ydir = 1;
_root.score.gotoAndStop(1);
_root.real_frame = 2;
_root.tiros.gotoAndStop(2);
_root.ta = false;
_root.ball2.va = false;
_root.saque._visible = false;
saca_user = false;
_root.paleta_user_normal2._x = 290;
_root.paleta_user_normal2._y = 225;
_root.cpu.setVolume(100);
_root.cpu.start(0, 1);
_root.fuerza = 0;
}
if (taytus == true) {
if (paying != true) {
_root.counter._visible = true;
_root.counter.gotoAndPlay(2);
paying = true;
} else {
_root.counter.gotoAndStop(1);
}
cant++;
seg = cant / fps;
if ((cant / fps) >= 2) {
mysaque = true;
taytus = false;
paying = false;
cant = 0;
_root.paleta_user_normal3.gotoAndPlay(2);
_root.paddle2._x = 300;
_root.paddle2._y = 51;
_root.ball2._y = 1;
_root.ball2._x = _root.paddle2._x;
_root.ball2.ball2speed = 1.102;
_root.ball2.yspeed = -2.1;
_root.ball2._xscale = 40;
_root.ball2._yscale = 40;
_root.ball2.zspeed = 3;
_root.ball2.realx = 300;
_root.ball2.realy = 3;
_root.ball2.xchill = 5;
_root.ball2.ychill = 20;
_root.salio = false;
_root.ball2.ydir = -1;
_root.real_frame = 2;
_root.ta = false;
_root.ball2.va = false;
_root.taytus.setVolume(100);
_root.taytus.start(0, 1);
_root.fuerza = 0;
}
}
if (saca_user != true) {
_root.paleta_user_normal_tay.startDrag(true);
Mouse.hide();
} else {
_root.paleta_user_normal2._x = 290;
_root.paleta_user_normal2._y = 225;
}
if (_root.arranque == true) {
_root.fuerza = 0;
}
if ((_root.score2 >= _root.max_point) and ((_root.score2 - _root.score1) >= 2)) {
_root.bajon.start(0, 1);
_root.gotoAndPlay(236);
Mouse.show();
win = true;
}
if ((_root.score1 >= _root.max_point) and ((_root.score1 - _root.score2) >= 2)) {
_root.gotoAndPlay(222);
win = true;
}
if ((this.hitTest(_root.mc_top) && (va == true)) && (_root.ta != true)) {
if (this._xscale < 32) {
_root.score2++;
_root.ta = true;
taytus = true;
}
}
if ((this.hitTest(_root.mc_top2) && (va == true)) && (_root.ta != true)) {
_root.score2++;
_root.ta = true;
taytus = true;
}
if ((_root.salio == true) && (_xscale < 40)) {
if (_root.ta != true) {
_root.score2++;
_root.score.gotoAndStop("cpu");
_root.ta = true;
taytus = true;
}
} else if (_root.ta != true) {
if (realy < 0) {
if (((realx > 237) & (realx < 417)) & (realy != 0)) {
realy = 0;
ydir = ydir * -1;
if (ydir != ydira) {
ydira = ydir;
}
} else {
realy = 0;
_y = ((60 + (3.7143 * (_xscale - 30))) - ((realy * _xscale) / 14));
if (zspeed > 0) {
_root.score1++;
_root.score.gotoAndStop("user");
saca_user = true;
_root.ta = true;
}
if (zspeed < 0) {
_root.score2++;
_root.score.gotoAndStop("cpu");
_root.ta = true;
taytus = true;
}
zspeed = 0;
stopDrag();
Mouse.show();
}
}
if (_xscale >= 100) {
if (this.hitTest(_root.paleta_user_normal_tay) && (paying != true)) {
_root.taytus.setVolume(100);
_root.taytus.start(0, 1);
va = true;
taytus = false;
cant = 0;
mysaque = false;
switch (_root.real_frame) {
case 2 :
xspeed = (_x - _root.paleta_user_normal_tay._x) / 17;
yspeed = ((3.5 / ball2speed) / ball2speed) + (_root.fuerza / 50);
increasing = 1;
gravity = 0.1;
break;
case 3 :
xspeed = (_x - _root.paleta_user_normal_tay._x) / 17;
yspeed = (2 / ball2speed) + (_root.fuerza / 400);
increasing = 1;
gravity = 0.1;
break;
case 4 :
xspeed = (_x - _root.paleta_user_normal_tay._x) / 17;
yspeed = (2 / ball2speed) + (_root.fuerza / 60);
increasing = 1;
gravity = 0.15;
if (ydir == 1) {
if (this._y <= 192) {
_root.score2++;
_root.score.gotoAndStop("cpu");
zspeed = 0;
_root.ta = true;
stopDrag();
Mouse.show();
}
}
break;
case 5 :
xspeed = (_x - _root.paleta_user_normal_tay._x) / 17;
yspeed = (2 / ball2speed) + (_root.fuerza / 60);
increasing = 1;
gravity = 0.15;
}
ydir = 1;
zspeed = zspeed * -1;
} else if ((zspeed != 0) and (_root.arranque != true)) {
_root.saca_user = false;
_root.score2++;
_root.score.gotoAndStop("cpu");
zspeed = 0;
taytus = true;
stopDrag();
Mouse.show();
}
}
if (_xscale <= 30) {
_root.arranque = false;
if (this.hitTest(_root.paddle2.paddle2real)) {
_root.cpu.setVolume(100);
_root.cpu.start(0, 1);
_root.saca_user = false;
va = false;
xspeed = (((_x - _root.paddle2._x) / 17) * 100) / 30;
yspeed = (1.5 / ball2speed) / ball2speed;
ydir = 1;
zspeed = zspeed * -1;
} else if (zspeed != 0) {
_root.score1++;
_root.score.gotoAndStop("user");
saca_user = true;
zspeed = 0;
stopDrag();
Mouse.show();
}
}
if (zspeed != 0) {
if (yspeed < 0) {
yspeed = yspeed * -1;
ydir = ydir * -1;
}
realx = realx + (((xspeed * 100) / _xscale) * ball2speed);
if (ydir < 0) {
realy = realy - ((((yspeed * 30) / _xscale) * ball2speed) / 0.6);
yspeed = yspeed + (((gravity * 0.42) * 10) / ball2speed);
}
if (ydir > 0) {
realy = realy + ((((yspeed * 30) / _xscale) * ball2speed) / 0.6);
yspeed = yspeed - (((gravity * 0.42) * 10) / ball2speed);
}
if (_root.saca_user != true) {
if (mysaque != true) {
_y = 60;
_xscale = (_xscale + zspeed);
_yscale = (_yscale + zspeed);
_y = ((60 + (3.7143 * (_xscale - 30))) - ((realy * _xscale) / 14));
_x = (300 + (((realx - 300) * _xscale) / 30));
} else {
_xscale = (_xscale + zspeed);
_yscale = (_yscale + zspeed);
_y = ((20 + (3.7143 * (_xscale - 30))) - ((realy * _xscale) / 14));
_x = (300 + (((realx - 300) * _xscale) / 30));
}
}
if (this.hitTest(_root.test)) {
if (((_xscale <= 59) && (va == true)) && ((_root.real_frame == 3) || (_root.real_frame == 4))) {
_root.red.gotoAndPlay(2);
_root.score2++;
_root.score.gotoAndStop("cpu");
zspeed = 0;
taytus = true;
stopDrag();
Mouse.show();
} else {
_root.stop();
}
}
}
if (increasing == 1) {
if (ball2speed < 1.52) {
ball2speed = ball2speed + (speedvar / 200);
}
}
if (zspeed < 0) {
zspeed = -3 * ball2speed;
}
if (zspeed > 0) {
zspeed = 3 * ball2speed;
}
}
}
}
}
Instance of Symbol 197 MovieClip "paleta_user_normal3" in Frame 220
onClipEvent (enterFrame) {
_x = _root.paddle2._x;
_y = _root.paddle2._y;
_rotation = _root.paddle2._rotation;
}
Instance of Symbol 39 MovieClip "paleta_user_normal_tay" in Frame 220
onClipEvent (enterFrame) {
_rotation = (((_x - 300) * 120) / 275);
if (_rotation > 90) {
_rotation = 90;
}
if (_rotation < -90) {
_rotation = -90;
}
}
Instance of Symbol 205 MovieClip "paddle2" in Frame 220
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ball2) & (_root.ta != true)) & (_root.ball2.ydir == 1)) {
if (_root.ball2._xscale > 50) {
_root.salio = true;
}
}
if (_root.ta != true) {
if (_root.ball2.zspeed < 0) {
if (_root.ball2._xscale < 37) {
if ((60 - ((_root.ball2.realy * 30) / 14)) < _y) {
_y = (_y - ydiff);
}
if (_y < (60 - ((_root.ball2.realy * 30) / 14))) {
_y = (_y + ydiff);
}
}
if (_x < (_root.ball2.realx - (xdiff / 2))) {
_x = (_x + xdiff);
}
if ((_root.ball2.realx + (xdiff / 2)) < _x) {
_x = (_x - xdiff);
}
}
if ((50 - (_height / 2)) < _y) {
_y = (50 - (_height / 2));
}
_rotation = (((_x - 300) * 90) / 84);
if (_rotation > 90) {
_rotation = 90;
}
if (_rotation < -90) {
_rotation = -90;
}
}
}
Frame 221
empiezo = false;
stop();
Frame 222
Mouse.show();
Mouse.show();
Frame 225
stop();
Frame 230
switch (_root.nivel) {
case 1 :
_root.gotoAndPlay(151);
break;
case 2 :
_root.paddle2.xdiff = _root.xdiff;
_root.paddle2.ydiff = _root.ydiff;
ball2._visible = false;
ball2.scales = 20;
ball2.speedvar = 0.6;
ball2.increasing = 2;
ball2.gravity = 0.08;
_root.max_point = 11;
_root.score1 = 0;
_root.score2 = 0;
_root.ball2.xspeed = 0;
_root.ball2.ball2speed = 1.1;
_root.ball2.yspeed = -2.1;
_root.ball2._xscale = 100;
_root.ball2._yscale = 100;
_root.ball2.zspeed = -3;
_root.ball2.realx = 300;
_root.ball2.realy = 3;
_root.ball2.xchill = 5;
_root.ball2.ychill = 20;
_root.paddle2._x = 300;
ball2._visible = true;
paddle1._visible = true;
shadow._visible = true;
paddle2._visible = true;
backbox._visible = true;
paddle2._xscale = 50;
paddle2._yscale = 50;
ball2.ydir = 1;
ball2.ydira = 0;
_root.arranque = true;
_root.gotoAndPlay(175);
break;
case 3 :
_root.gotoAndPlay(293);
}
Frame 236
Mouse.show();
Frame 239
stop();
Frame 244
switch (_root.nivel) {
case 1 :
_root.gotoAndPlay(151);
break;
case 2 :
_root.paddle2.xdiff = _root.xdiff;
_root.paddle2.ydiff = _root.ydiff;
ball2._visible = false;
ball2.scales = 20;
ball2.speedvar = 0.6;
ball2.increasing = 2;
ball2.gravity = 0.08;
_root.max_point = 11;
_root.score1 = 0;
_root.score2 = 0;
_root.ball2.xspeed = 0;
_root.ball2.ball2speed = 1.1;
_root.ball2.yspeed = -2.1;
_root.ball2._xscale = 100;
_root.ball2._yscale = 100;
_root.ball2.zspeed = -3;
_root.ball2.realx = 300;
_root.ball2.realy = 3;
_root.ball2.xchill = 5;
_root.ball2.ychill = 20;
_root.paddle2._x = 300;
ball2._visible = true;
paddle1._visible = true;
shadow._visible = true;
paddle2._visible = true;
backbox._visible = true;
paddle2._xscale = 50;
paddle2._yscale = 50;
ball2.ydir = 1;
ball2.ydira = 0;
_root.arranque = true;
_root.gotoAndPlay(175);
break;
case 3 :
_root.gotoAndPlay(293);
}
Frame 247
_root.ball3._visible = false;
_root.mc_sombra2._visible = false;
Frame 293
function init3() {
_root.paddle2.xdiff = _root.xdiff;
_root.paddle2.ydiff = _root.ydiff;
ball3._visible = false;
ball3.scales = 20;
ball3.speedvar = 0.6;
ball3.increasing = 2;
ball3.gravity = 0.08;
_root.max_point = 11;
_root.score1 = 0;
_root.score2 = 0;
_root.ball3.xspeed = 0;
_root.ball3.ball3speed = 1.1;
_root.ball3.yspeed = -2.1;
_root.ball3._xscale = 100;
_root.ball3._yscale = 100;
_root.ball3.zspeed = -3;
_root.ball3.realx = 300;
_root.ball3.realy = 3;
_root.ball3.xchill = 5;
_root.ball3.ychill = 20;
_root.paddle2._x = 300;
paddle1._visible = true;
shadow._visible = true;
paddle2._visible = true;
backbox._visible = true;
paddle2._xscale = 50;
paddle2._yscale = 50;
ball3.ydir = 1;
ball3.ydira = 0;
_root.arranque = true;
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var mymouse = new Object();
_root.fuerza = 0;
mymouse.onMouseDown = function () {
switch (_root.nivel) {
case 1 :
mc_data.datos.power.gotoAndPlay(2);
break;
case 2 :
mc_data2.datos.power.gotoAndPlay(2);
break;
case 3 :
mc_data3.datos.power.gotoAndPlay(2);
}
};
mymouse.onMouseUp = function () {
switch (_root.nivel) {
case 1 :
mc_data.datos.power.stop();
_root.fuerza = ((mc_data.datos.power._currentframe - 4) * 10) - 10;
break;
case 2 :
mc_data2.datos.power.stop();
_root.fuerza = ((mc_data2.datos.power._currentframe - 4) * 10) - 10;
break;
case 3 :
mc_data3.datos.power.stop();
_root.fuerza = ((mc_data3.datos.power._currentframe - 4) * 10) - 10;
}
};
_root.real_frame = 2;
switch (_root.nivel) {
case 1 :
this.mc_data.datos.tiros.gotoAndStop(1);
break;
case 2 :
this.mc_data2.datos.tiros.gotoAndStop(1);
break;
case 3 :
this.mc_data3.datos.tiros.gotoAndStop(1);
}
mymouse.onMouseWheel = function (delta) {
if (delta > 0) {
if (_root.real_frame < 3) {
_root.real_frame++;
}
} else if (_root.real_frame > 1) {
_root.real_frame--;
}
switch (_root.nivel) {
case 1 :
mc_data.datos.tiros.gotoAndStop(_root.real_frame);
break;
case 2 :
mc_data2.datos.tiros.gotoAndStop(_root.real_frame);
break;
case 3 :
mc_data3.datos.tiros.gotoAndStop(_root.real_frame);
}
};
var mytecla = new Object();
mytecla.onKeyDown = function () {
if (Key.getAscii() == 97) {
if (_root.real_frame < 3) {
_root.real_frame++;
}
} else if (Key.getAscii() == 122) {
if (_root.real_frame > 1) {
_root.real_frame--;
}
}
switch (_root.nivel) {
case 1 :
mc_data.datos.tiros.gotoAndStop(_root.real_frame);
break;
case 2 :
mc_data2.datos.tiros.gotoAndStop(_root.real_frame);
break;
case 3 :
mc_data3.datos.tiros.gotoAndStop(_root.real_frame);
}
};
Key.addListener(mytecla);
Mouse.addListener(mymouse);
paleta_user_globo._visible = false;
paleta_user_razo._visible = false;
paleta_user_globo.onEnterFrame = function () {
this._x = paleta_user_normal._x;
this._y = paleta_user_normal._y;
this._rotation = paleta_user_normal._rotation;
};
paleta_user_razo.onEnterFrame = function () {
this._x = paleta_user_normal._x;
this._y = paleta_user_normal._y;
this._rotation = paleta_user_normal._rotation;
};
paleta_user_top.onEnterFrame = function () {
this._x = paleta_user_normal._x;
this._y = paleta_user_normal._y;
this._rotation = paleta_user_normal._rotation;
};
x_start = 416.5;
y_start = 373.9;
init3();
vel = 1;
_root.mc_show_mouse.onEnterFrame = function () {
if (this.hitTest(_root.paleta_user_normal2)) {
paleta_user_normal2._alpha = 30;
} else {
paleta_user_normal2._alpha = 100;
}
};
stop();
Instance of Symbol 197 MovieClip "paleta_user_normal2" in Frame 293
onClipEvent (enterFrame) {
_x = _root.paleta_user_normal_tay._x;
_y = _root.paleta_user_normal_tay._y;
_rotation = _root.paleta_user_normal_tay._rotation;
}
Instance of Symbol 241 MovieClip "mc_sombra2" in Frame 293
onClipEvent (enterFrame) {
_x = _root.ball3._x;
_y = _root.ball3._y;
}
Instance of Symbol 262 MovieClip "ball3" in Frame 293
onClipEvent (enterFrame) {
if ((_root.nivel == 3) && (_root.saque3._visible == false)) {
if (win != true) {
if (_root.musica.getVolume() == 0) {
_root.musica.stop();
_root.taytus.setVolume(100);
} else if ((_root.musica.getVolume() <= 100) || (_root.musica.getVolume() >= 0)) {
_root.musica.setVolume(_root.musica.getVolume() - 5);
}
fps = 20;
if (saca_user == true) {
_root.cant2++;
} else {
_root.cant2 = 0;
}
if ((_root.cant2 / fps) >= 2) {
_root.fuerza = 0;
_root.ball3.taytus = false;
_root.ball3.cant = 0;
_root.ball3.xspeed = 0;
_root.ball3.ball3speed = 1.115;
_root.ball3.yspeed = -2.1;
_root.ball3._xscale = 99;
_root.ball3._yscale = 99;
_root.ball3.zspeed = -3;
_root.ball3.realx = 310;
_root.ball3.realy = 3;
_root.ball3.xchill = 5;
_root.ball3.ychill = 20;
_root.salio = false;
_root.ball3.ydir = 1;
_root.score.gotoAndStop(1);
_root.real_frame = 2;
_root.tiros.gotoAndStop(2);
_root.ta = false;
_root.ball3.va = false;
_root.saque._visible = false;
saca_user = false;
_root.paleta_user_normal2._x = 290;
_root.paleta_user_normal2._y = 225;
_root.cpu.setVolume(100);
_root.cpu.start(0, 1);
_root.fuerza = 0;
}
if (taytus == true) {
if (paying != true) {
_root.counter._visible = true;
_root.counter.gotoAndPlay(2);
paying = true;
} else {
_root.counter.gotoAndStop(1);
}
cant++;
seg = cant / fps;
if ((cant / fps) >= 2) {
mysaque = true;
taytus = false;
paying = false;
cant = 0;
_root.paleta_user_normal3.gotoAndPlay(2);
_root.paddle2._x = 300;
_root.paddle2._y = 51;
_root.ball3._y = 1;
_root.ball3._x = _root.paddle2._x;
_root.ball3.ball3speed = 1.115;
_root.ball3.yspeed = -2.1;
_root.ball3._xscale = 40;
_root.ball3._yscale = 40;
_root.ball3.zspeed = 3;
_root.ball3.realx = 300;
_root.ball3.realy = 3;
_root.ball3.xchill = 5;
_root.ball3.ychill = 20;
_root.salio = false;
_root.ball3.ydir = -1;
_root.real_frame = 2;
_root.ta = false;
_root.ball3.va = false;
_root.taytus.setVolume(100);
_root.taytus.start(0, 1);
_root.fuerza = 0;
}
}
if (saca_user != true) {
_root.paleta_user_normal_tay.startDrag(true);
Mouse.hide();
} else {
_root.paleta_user_normal2._x = 290;
_root.paleta_user_normal2._y = 225;
}
if (_root.arranque == true) {
_root.fuerza = 0;
}
if ((_root.score2 >= _root.max_point) and ((_root.score2 - _root.score1) >= 2)) {
_root.bajon.start(0, 1);
_root.gotoAndPlay(311);
Mouse.show();
win = true;
}
if ((_root.score1 >= _root.max_point) and ((_root.score1 - _root.score2) >= 2)) {
_root.gotoAndPlay(296);
win = true;
Mouse.show();
}
if ((this.hitTest(_root.mc_top) && (va == true)) && (_root.ta != true)) {
if (this._xscale < 32) {
_root.score2++;
_root.ta = true;
taytus = true;
}
}
if ((this.hitTest(_root.mc_top2) && (va == true)) && (_root.ta != true)) {
_root.score2++;
_root.ta = true;
taytus = true;
}
if ((_root.salio == true) && (_xscale < 40)) {
if (_root.ta != true) {
_root.score2++;
_root.score.gotoAndStop("cpu");
_root.ta = true;
taytus = true;
}
} else if (_root.ta != true) {
if (realy < 0) {
if (((realx > 237) & (realx < 417)) & (realy != 0)) {
realy = 0;
ydir = ydir * -1;
if (ydir != ydira) {
ydira = ydir;
}
} else {
realy = 0;
_y = ((60 + (3.7143 * (_xscale - 30))) - ((realy * _xscale) / 14));
if (zspeed > 0) {
_root.score1++;
_root.score.gotoAndStop("user");
saca_user = true;
_root.ta = true;
}
if (zspeed < 0) {
_root.score2++;
_root.score.gotoAndStop("cpu");
_root.ta = true;
taytus = true;
}
zspeed = 0;
stopDrag();
Mouse.show();
}
}
if (_xscale >= 100) {
if (this.hitTest(_root.paleta_user_normal_tay) && (paying != true)) {
_root.taytus.setVolume(100);
_root.taytus.start(0, 1);
va = true;
taytus = false;
cant = 0;
mysaque = false;
switch (_root.real_frame) {
case 2 :
xspeed = (_x - _root.paleta_user_normal_tay._x) / 17;
yspeed = ((3.5 / ball3speed) / ball3speed) + (_root.fuerza / 50);
increasing = 1;
gravity = 0.1;
break;
case 3 :
xspeed = (_x - _root.paleta_user_normal_tay._x) / 17;
yspeed = (2 / ball3speed) + (_root.fuerza / 400);
increasing = 1;
gravity = 0.1;
break;
case 4 :
xspeed = (_x - _root.paleta_user_normal_tay._x) / 17;
yspeed = (2 / ball3speed) + (_root.fuerza / 60);
increasing = 1;
gravity = 0.15;
if (ydir == 1) {
if (this._y <= 192) {
_root.score2++;
_root.score.gotoAndStop("cpu");
zspeed = 0;
_root.ta = true;
stopDrag();
Mouse.show();
}
}
break;
case 5 :
xspeed = (_x - _root.paleta_user_normal_tay._x) / 17;
yspeed = (2 / ball3speed) + (_root.fuerza / 60);
increasing = 1;
gravity = 0.15;
}
ydir = 1;
zspeed = zspeed * -1;
} else if ((zspeed != 0) and (_root.arranque != true)) {
_root.saca_user = false;
_root.score2++;
_root.score.gotoAndStop("cpu");
zspeed = 0;
taytus = true;
stopDrag();
Mouse.show();
}
}
if (_xscale <= 30) {
_root.arranque = false;
if (this.hitTest(_root.paddle2.paddle2real)) {
_root.cpu.setVolume(100);
_root.cpu.start(0, 1);
_root.saca_user = false;
va = false;
xspeed = (((_x - _root.paddle2._x) / 17) * 100) / 30;
yspeed = (1.5 / ball3speed) / ball3speed;
ydir = 1;
zspeed = zspeed * -1;
} else if (zspeed != 0) {
_root.score1++;
_root.score.gotoAndStop("user");
saca_user = true;
zspeed = 0;
stopDrag();
Mouse.show();
}
}
if (zspeed != 0) {
if (yspeed < 0) {
yspeed = yspeed * -1;
ydir = ydir * -1;
}
realx = realx + (((xspeed * 100) / _xscale) * ball3speed);
if (ydir < 0) {
realy = realy - ((((yspeed * 30) / _xscale) * ball3speed) / 0.6);
yspeed = yspeed + (((gravity * 0.42) * 10) / ball3speed);
}
if (ydir > 0) {
realy = realy + ((((yspeed * 30) / _xscale) * ball3speed) / 0.6);
yspeed = yspeed - (((gravity * 0.42) * 10) / ball3speed);
}
if (_root.saca_user != true) {
if (mysaque != true) {
_y = 60;
_xscale = (_xscale + zspeed);
_yscale = (_yscale + zspeed);
_y = ((60 + (3.7143 * (_xscale - 30))) - ((realy * _xscale) / 14));
_x = (300 + (((realx - 300) * _xscale) / 30));
} else {
_xscale = (_xscale + zspeed);
_yscale = (_yscale + zspeed);
_y = ((20 + (3.7143 * (_xscale - 30))) - ((realy * _xscale) / 14));
_x = (300 + (((realx - 300) * _xscale) / 30));
}
}
if (this.hitTest(_root.test)) {
if (((_xscale <= 59) && (va == true)) && ((_root.real_frame == 3) || (_root.real_frame == 4))) {
_root.red.gotoAndPlay(2);
_root.score2++;
_root.score.gotoAndStop("cpu");
zspeed = 0;
taytus = true;
stopDrag();
Mouse.show();
} else {
_root.stop();
}
}
}
if (increasing == 1) {
if (ball3speed < 1.57) {
ball3speed = ball3speed + (speedvar / 200);
}
}
if (zspeed < 0) {
zspeed = -3 * ball3speed;
}
if (zspeed > 0) {
zspeed = 3 * ball3speed;
}
}
}
}
}
Instance of Symbol 197 MovieClip "paleta_user_normal3" in Frame 293
onClipEvent (enterFrame) {
_x = _root.paddle2._x;
_y = _root.paddle2._y;
_rotation = _root.paddle2._rotation;
}
Instance of Symbol 39 MovieClip "paleta_user_normal_tay" in Frame 293
onClipEvent (enterFrame) {
_rotation = (((_x - 300) * 120) / 275);
if (_rotation > 90) {
_rotation = 90;
}
if (_rotation < -90) {
_rotation = -90;
}
}
Instance of Symbol 205 MovieClip "paddle2" in Frame 293
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ball3) & (_root.ta != true)) & (_root.ball3.ydir == 1)) {
if (_root.ball3._xscale > 50) {
_root.salio = true;
}
}
if (_root.ta != true) {
if (_root.ball3.zspeed < 0) {
if (_root.ball3._xscale < 37) {
if ((60 - ((_root.ball3.realy * 30) / 14)) < _y) {
_y = (_y - ydiff);
}
if (_y < (60 - ((_root.ball3.realy * 30) / 14))) {
_y = (_y + ydiff);
}
}
if (_x < (_root.ball3.realx - (xdiff / 2))) {
_x = (_x + xdiff);
}
if ((_root.ball3.realx + (xdiff / 2)) < _x) {
_x = (_x - xdiff);
}
}
if ((50 - (_height / 2)) < _y) {
_y = (50 - (_height / 2));
}
_rotation = (((_x - 300) * 90) / 84);
if (_rotation > 90) {
_rotation = 90;
}
if (_rotation < -90) {
_rotation = -90;
}
}
}
Frame 294
empiezo = false;
stop();
Frame 295
stop();
Mouse.show();
Frame 298
stop();
Frame 303
switch (_root.nivel) {
case 1 :
_root.gotoAndPlay(151);
break;
case 2 :
_root.gotoAndPlay(220);
break;
case 3 :
_root.paddle2.xdiff = _root.xdiff;
_root.paddle2.ydiff = _root.ydiff;
ball3._visible = false;
ball3.scales = 20;
ball3.speedvar = 0.6;
ball3.increasing = 2;
ball3.gravity = 0.08;
_root.max_point = 4;
_root.score1 = 0;
_root.score2 = 0;
_root.ball3.xspeed = 0;
_root.ball3.ball3speed = 1.1;
_root.ball3.yspeed = -2.1;
_root.ball3._xscale = 100;
_root.ball3._yscale = 100;
_root.ball3.zspeed = -3;
_root.ball3.realx = 300;
_root.ball3.realy = 3;
_root.ball3.xchill = 5;
_root.ball3.ychill = 20;
_root.paddle2._x = 300;
ball3._visible = true;
paddle1._visible = true;
shadow._visible = true;
paddle2._visible = true;
backbox._visible = true;
paddle2._xscale = 50;
paddle2._yscale = 50;
ball3.ydir = 1;
ball3.ydira = 0;
_root.arranque = true;
_root.gotoAndPlay(247);
}
Frame 311
Mouse.show();
Frame 314
stop();
Frame 319
switch (_root.nivel) {
case 1 :
_root.gotoAndPlay(151);
break;
case 2 :
_root.gotoAndPlay(220);
break;
case 3 :
_root.paddle2.xdiff = _root.xdiff;
_root.paddle2.ydiff = _root.ydiff;
ball3._visible = false;
ball3.scales = 20;
ball3.speedvar = 0.6;
ball3.increasing = 2;
ball3.gravity = 0.08;
_root.max_point = 4;
_root.score1 = 0;
_root.score2 = 0;
_root.ball3.xspeed = 0;
_root.ball3.ball3speed = 1.1;
_root.ball3.yspeed = -2.1;
_root.ball3._xscale = 100;
_root.ball3._yscale = 100;
_root.ball3.zspeed = -3;
_root.ball3.realx = 300;
_root.ball3.realy = 3;
_root.ball3.xchill = 5;
_root.ball3.ychill = 20;
_root.paddle2._x = 300;
ball3._visible = true;
paddle1._visible = true;
shadow._visible = true;
paddle2._visible = true;
backbox._visible = true;
paddle2._xscale = 50;
paddle2._yscale = 50;
ball3.ydir = 1;
ball3.ydira = 0;
_root.arranque = true;
_root.gotoAndPlay(247);
}
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 9
stop();
Symbol 6 MovieClip Frame 16
stop();
Symbol 14 Button
on (press) {
getURL ("http://www.dailygames.com", "_blank");
}
Symbol 21 MovieClip Frame 100
stop();
Symbol 50 Button
on (release) {
_root.getURL("http://www.dailygames.com/powerpong.zip", "_blank");
}
on (rollOver) {
_root.menu_sound.start(0, 1);
}
Symbol 55 Button
on (release) {
_root.getURL("http://www.dailygames.com", "_blank");
}
on (rollOver) {
_root.menu_sound.start(0, 1);
}
Symbol 60 Button
on (release) {
_root.opcion = 2;
_parent.play();
}
on (rollOver) {
_root.menu_sound.start(0, 1);
}
Symbol 65 Button
on (release) {
_root.opcion = 1;
_parent.play();
}
on (rollOver) {
_root.menu_sound.start(0, 1);
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 2
stop();
Symbol 84 Button
on (release) {
_root.opcion = 1;
_parent.play();
}
Symbol 87 MovieClip Frame 8
stop();
Symbol 87 MovieClip Frame 11
switch (_root.opcion) {
case 1 :
_root.gotoAndPlay("niveles");
break;
case 2 :
this.gotoAndPlay(15);
}
Symbol 87 MovieClip Frame 12
stop();
Symbol 87 MovieClip Frame 22
stop();
Symbol 87 MovieClip Frame 25
if (!(_root.opcion === 1)) {
} else {
_root.gotoAndPlay("niveles");
}
Symbol 98 Button
on (release) {
_root.nivel = 1;
_root.xdiff = 4;
_root.ydiff = 5;
gotoAndPlay ("jugadores_out");
}
on (rollOver) {
_root.menu_sound.start(0, 1);
}
Symbol 103 Button
on (release) {
_root.nivel = 3;
_root.xdiff = 10;
_root.ydiff = 12;
gotoAndPlay ("jugadores_out");
}
on (rollOver) {
_root.menu_sound.start(0, 1);
}
Symbol 108 Button
on (release) {
_root.nivel = 2;
_root.xdiff = 7;
_root.ydiff = 5;
gotoAndPlay ("jugadores_out");
}
on (rollOver) {
_root.menu_sound.start(0, 1);
}
Symbol 143 Button
on (press) {
gotoAndPlay (41);
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 15
stop();
Symbol 184 Button
on (press) {
_root.ball.taytus = false;
_root.ball.cant = 0;
_root.ball.xspeed = 0;
_root.ball.ballspeed = 1.1;
_root.ball.yspeed = -2.1;
_root.ball._xscale = 99;
_root.ball._yscale = 99;
_root.ball.zspeed = -3;
_root.ball.realx = 310;
_root.ball.realy = 3;
_root.ball.xchill = 5;
_root.ball.ychill = 20;
_root.salio = false;
_root.ball.ydir = 1;
_root.score.gotoAndStop(1);
_root.real_frame = 2;
_root.tiros.gotoAndStop(2);
_root.ta = false;
_root.gotoAndStop("Nivel1", 42);
_root.ball.va = false;
_root.saque._visible = false;
}
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 15
gotoAndStop (1);
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 15
gotoAndStop (1);
Symbol 210 Button
on (press) {
_root.ball.taytus = false;
_root.ball.cant = 0;
_root.ball.xspeed = 0;
_root.ball.ballspeed = 1.1;
_root.ball.yspeed = -2.1;
_root.ball._xscale = 100;
_root.ball._yscale = 100;
_root.ball.zspeed = -3;
_root.ball.realx = 310;
_root.ball.realy = 3;
_root.ball.xchill = 5;
_root.ball.ychill = 20;
_root.salio = false;
_root.mc_sombra._visible = true;
_root.ball.ydir = 1;
_root.score.gotoAndStop(1);
_root.real_frame = 2;
_root.tiros.gotoAndStop(2);
_root.ta = false;
_root.ball.va = false;
_root.saque._visible = false;
}
Symbol 211 Button
on (press) {
_root.ball.taytus = false;
_root.ball.cant = 0;
_root.ball.xspeed = 0;
_root.ball.ballspeed = 1.1;
_root.ball.yspeed = -2.1;
_root.ball._xscale = 99;
_root.ball._yscale = 99;
_root.ball.zspeed = -3;
_root.ball.realx = 310;
_root.ball.realy = 3;
_root.ball.xchill = 5;
_root.ball.ychill = 20;
_root.salio = false;
_root.ball.ydir = 1;
_root.score.gotoAndStop(1);
_root.real_frame = 2;
_root.tiros.gotoAndStop(2);
_root.ta = false;
_root.ball.va = false;
_root.saque._visible = false;
}
Symbol 213 Button
on (press) {
gotoAndPlay (190);
}
Symbol 215 Button
on (press) {
gotoAndPlay (179);
}
Symbol 220 Button
on (release) {
gotoAndPlay ("menu_principal");
}
Symbol 223 Button
on (press) {
play();
}
Symbol 228 Button
on (release) {
gotoAndPlay ("menu_principal");
}
Symbol 229 Button
on (press) {
play();
}
Symbol 244 Button
on (press) {
_root.ball2.taytus = false;
_root.ball2.cant = 0;
_root.ball2.xspeed = 0;
_root.ball2.ball2speed = 1.1;
_root.ball2.yspeed = -2.1;
_root.ball2._visible = true;
_root.ball2._xscale = 100;
_root.ball2._yscale = 100;
_root.ball2.zspeed = -3;
_root.ball2.realx = 310;
_root.ball2.realy = 3;
_root.ball2.xchill = 5;
_root.ball2.ychill = 20;
_root.salio = false;
_root.ball2.ydir = 1;
_root.score.gotoAndStop(1);
_root.real_frame = 2;
_root.tiros.gotoAndStop(2);
_root.ta = false;
_root.gotoAndStop("Nivel1", 42);
_root.ball2.va = false;
_root.saque2._visible = false;
}
Symbol 245 Button
on (press) {
gotoAndPlay (430);
}
Symbol 246 Button
on (press) {
gotoAndPlay (417);
}
Symbol 247 Button
on (press) {
gotoAndPlay ("menu_principal");
}
Symbol 248 Button
on (press) {
gotoAndPlay ("menu_principal");
}
Symbol 260 Button
on (press) {
_root.ballita.taytus = false;
_root.ballita.cant = 0;
_root.ballita.xspeed = 0;
_root.ballita.ballspeed = 1.1;
_root.ballita.yspeed = -2.1;
_root.ballita._xscale = 99;
_root.ballita._yscale = 99;
_root.ballita.zspeed = -3;
_root.ballita.realx = 310;
_root.ballita.realy = 3;
_root.ballita.xchill = 5;
_root.ballita.ychill = 20;
_root.salio = false;
_root.ballita.ydir = 1;
_root.score.gotoAndStop(1);
_root.real_frame = 2;
_root.tiros.gotoAndStop(2);
_root.ta = false;
_root.ballita.va = false;
_root.saque._visible = false;
}
Symbol 263 Button
on (press) {
_root.ball3.taytus = false;
_root.ball3.cant = 0;
_root.ball3.xspeed = 0;
_root.ball3.ball3speed = 1.1;
_root.ball3.yspeed = -2.1;
_root.ball3._xscale = 99;
_root.ball3._visible = true;
_root.ball3._yscale = 99;
_root.ball3.zspeed = -3;
_root.ball3.realx = 310;
_root.ball3.realy = 3;
_root.mc_sombra2._visible = true;
_root.ball3.xchill = 5;
_root.ball3.ychill = 20;
_root.salio = false;
_root.ball3.ydir = 1;
_root.score.gotoAndStop(1);
_root.real_frame = 2;
_root.tiros.gotoAndStop(2);
_root.ta = false;
_root.ball3.va = false;
_root.saque3._visible = false;
}
Symbol 264 Button
on (press) {
gotoAndPlay (715);
}
Symbol 265 Button
on (press) {
gotoAndPlay (699);
}
Symbol 266 Button
on (press) {
gotoAndPlay ("menu_principal");
}
Symbol 267 Button
on (press) {
gotoAndPlay ("menu_principal");
}