Instance of Symbol 10 MovieClip in Frame 1
onClipEvent (load) {
fscommand ("allowscale", "false");
fscommand ("fullscreen", "true");
_parent.stop();
}
onClipEvent (enterFrame) {
bloaded = _root.getBytesLoaded();
btotal = _root.getBytesTotal();
porcentaje = Math.round((bloaded * 100) / btotal);
bar.gotoAndStop(porcentaje);
if (porcentaje == 100) {
_root.nextFrame();
}
}
Frame 2
stop();
Instance of Symbol 149 MovieClip in Frame 2
onClipEvent (load) {
function sethomes(who) {
n = 1;
while (4 >= n) {
Set(("homex" + who) + n, this[String(who) + n]._x);
Set(("homey" + who) + n, this[String(who) + n]._y);
n++;
}
}
function reset(over) {
noselect = false;
if (over) {
player = 0;
computer = 0;
} else {
Set(goalby, eval (goalby) + 1);
if (computer == maxgol) {
ccopa._visible = true;
pcopa._visible = false;
jugadores._visible = true;
}
if (player == maxgol) {
ccopa._visible = false;
pcopa._visible = true;
jugadores._visible = true;
}
}
xvel = (yvel = 0);
pelota._x = homexpel;
pelota._y = homeypel;
n = 1;
while (4 >= n) {
if (players < n) {
this["p" + n]._visible = false;
} else {
this["p" + n]._visible = true;
}
if (cplayers < n) {
this["c" + n]._visible = false;
} else {
this["c" + n]._visible = true;
}
this["p" + n]._x = eval ("homexp" + n);
this["p" + n]._y = eval ("homeyp" + n);
this["c" + n]._x = eval ("homexc" + n);
this["c" + n]._y = eval ("homeyc" + n);
n++;
}
}
function goaldone() {
noselect = true;
xvel = 0;
yvel = 0;
selected = 0;
cselected = 0;
goal.play();
publico.play();
}
function volume() {
if (20 < strack.getVolume()) {
strack.setVolume(0);
} else {
strack.setVolume(100);
}
}
shoot = false;
players = 2;
cplayers = 2;
cpower = 3;
cvel = 1;
player = 0;
computer = 0;
power = 1;
Mouse.hide();
cuero4 = pelota.pelota.cuero._width / 4;
friction = 0.99;
temp = new Array();
homexpel = pelota._x;
homeypel = pelota._y;
sethomes("c");
sethomes("p");
reset();
rebote = new Sound(jugadores);
rebote.attachSound("rebote");
strack = new Sound();
strack.setVolume(100);
strack.attachSound("strack");
strack.start(0, 99999);
}
onClipEvent (enterFrame) {
if (((!jugadores._visible) and (!acerca._visible)) and (menu._currentframe == 1)) {
pelota._x = pelota._x + xvel;
pelota._y = pelota._y + yvel;
pelota.pelota.cuero._x = pelota.pelota.cuero._x - (xvel / 2);
pelota.pelota.cuero._y = pelota.pelota.cuero._y - (yvel / 2);
xvel = xvel * friction;
yvel = yvel * friction;
if (pelota.pelota.cuero._x >= cuero4) {
pelota.pelota.cuero._x = pelota.pelota.cuero._x - cuero4;
} else if ((-cuero4) >= pelota.pelota.cuero._x) {
pelota.pelota.cuero._x = pelota.pelota.cuero._x + cuero4;
}
if (pelota.pelota.cuero._y >= cuero4) {
pelota.pelota.cuero._y = pelota.pelota.cuero._y - cuero4;
} else if ((-cuero4) >= pelota.pelota.cuero._y) {
pelota.pelota.cuero._y = pelota.pelota.cuero._y + cuero4;
}
if ((pelota.pelota.shape.hitTest(r) and (0 < xvel)) or (pelota.pelota.shape.hitTest(l) and (xvel < 0))) {
xvel = -xvel;
rebote.start();
pelota.pelota.cuero.gotoAndPlay(2);
}
if ((pelota.pelota.shape.hitTest(t) and (yvel < 0)) or (pelota.pelota.shape.hitTest(b) and (0 < yvel))) {
yvel = -yvel;
rebote.start();
pelota.pelota.cuero.gotoAndPlay(2);
}
if (pelota.hitTest(goalp)) {
goalby = "player";
goaldone();
}
if (pelota.hitTest(goalc)) {
goalby = "computer";
goaldone();
}
if (!noselect) {
n = 1;
while (4 >= n) {
temp[n] = 1000000 /* 0x0F4240 */;
n++;
}
n = 1;
while (cplayers >= n) {
x = pelota._x - this["c" + n]._x;
y = pelota._y - this["c" + n]._y;
temp[n] = Math.sqrt((x * x) + (y * y));
n++;
}
if (((temp[1] < temp[2]) and (temp[1] < temp[3])) and (temp[1] < temp[4])) {
cselected = 1;
} else if (((temp[2] < temp[1]) and (temp[2] < temp[3])) and (temp[2] < temp[4])) {
cselected = 2;
} else if (((temp[3] < temp[1]) and (temp[3] < temp[2])) and (temp[3] < temp[4])) {
cselected = 3;
} else if (((temp[4] < temp[1]) and (temp[4] < temp[2])) and (temp[4] < temp[3])) {
cselected = 4;
}
}
n = 1;
while (cplayers >= n) {
if (cselected == n) {
this["c" + n].aura._visible = true;
this["c" + n]._alpha = 100;
x = pelota._x - this["c" + n]._x;
y = pelota._y - this["c" + n]._y;
h = Math.sqrt((x * x) + (y * y));
sen = y / h;
cos = x / h;
this["c" + n].men.gotoAndStop(2);
this["c" + n]._x = this["c" + n]._x + (cvel * cos);
this["c" + n]._y = this["c" + n]._y + (cvel * sen);
deltaX = this["c" + n]._x - pelota._x;
deltaY = -(this["c" + n]._y - pelota._y);
longshit = this["c" + n]._rotation + (((Math.atan2(deltaY, deltaX) / Math.PI) * -180) - this["c" + n]._rotation);
this["c" + n]._rotation = this["c" + n]._rotation + ((longshit - this["c" + n]._rotation) / 10);
if (this["c" + n].men.hitTest(pelota)) {
this["c" + cselected].play();
cshoot = true;
pelota.gotoAndPlay(1);
cpowerfinal = (xvel = (cpower + random(cpower)) * 1.4);
yvel = random(cpower * 2) - cpower;
}
} else {
this["c" + n].aura._visible = false;
x = eval ("homexc" + n) - this["c" + n]._x;
y = eval ("homeyc" + n) - this["c" + n]._y;
h = Math.sqrt((x * x) + (y * y));
sen = y / h;
cos = x / h;
if ((vel + 2) < h) {
this["c" + n].men.gotoAndStop(2);
this["c" + n]._x = this["c" + n]._x + (cvel * cos);
this["c" + n]._y = this["c" + n]._y + (cvel * sen);
deltaX = this["p" + n]._x - eval ("homexc" + n);
deltaY = -(this["p" + n]._y - eval ("homeyc" + n));
} else {
this["c" + n].men.gotoAndStop(1);
deltaX = this["c" + n]._x - pelota._x;
deltaY = -(this["c" + n]._y - pelota._y);
}
longshit = this["c" + n]._rotation + (((Math.atan2(deltaY, deltaX) / Math.PI) * -180) - this["c" + n]._rotation);
this["c" + n]._rotation = this["c" + n]._rotation + ((longshit - this["c" + n]._rotation) / 10);
this["c" + n]._alpha = 100;
}
n++;
}
arrow._x = _xmouse;
arrow._y = _ymouse;
n = 1;
while (players >= n) {
if ((this["p" + n].focus.hitTest(_root._xmouse, _root._ymouse, true) and (n != selected)) and (!noselect)) {
power = 1;
selected = n;
}
if (selected == n) {
this["p" + n].aura._visible = true;
this["p" + n]._alpha = 100;
x = _xmouse - this["p" + n]._x;
y = _ymouse - this["p" + n]._y;
h = Math.sqrt((x * x) + (y * y));
sen = y / h;
cos = x / h;
if (this["p" + n].men.hitTest(pelota)) {
colide = true;
if (this["c" + cselected].hitTest(this["p" + n].men) and (1 < random(6))) {
blocked = true;
} else {
blocked = false;
}
if ((!blocked) or shoot) {
pelota.gotoAndPlay(1);
if (shoot) {
xvel = (5 + power) * cos;
yvel = (5 + power) * sen;
} else {
xvel = 1.3 * cos;
yvel = 1.3 * sen;
}
}
} else {
colide = false;
}
if (18 < h) {
this["p" + n].men.gotoAndStop(2);
this["p" + n]._x = this["p" + n]._x + (2 * cos);
this["p" + n]._y = this["p" + n]._y + (2 * sen);
} else {
this["p" + n].men.gotoAndStop(1);
}
deltaX = this["p" + n]._x - _xmouse;
deltaY = -(this["p" + n]._y - _ymouse);
arrow._rotation = arrow._rotation + ((((Math.atan2(deltaY, deltaX) / Math.PI) * -180) - arrow._rotation) - 90);
longshit = this["p" + n]._rotation + (((Math.atan2(deltaY, deltaX) / Math.PI) * -180) - this["p" + n]._rotation);
this["p" + n]._rotation = this["p" + n]._rotation + ((longshit - this["p" + n]._rotation) / 10);
} else {
this["p" + n].aura._visible = false;
x = eval ("homexp" + n) - this["p" + n]._x;
y = eval ("homeyp" + n) - this["p" + n]._y;
h = Math.sqrt((x * x) + (y * y));
sen = y / h;
cos = x / h;
if ((vel + 2) < h) {
this["p" + n].men.gotoAndStop(2);
this["p" + n]._x = this["p" + n]._x + (2 * cos);
this["p" + n]._y = this["p" + n]._y + (2 * sen);
deltaX = this["p" + n]._x - eval ("homexp" + n);
deltaY = -(this["p" + n]._y - eval ("homeyp" + n));
} else {
this["p" + n].men.gotoAndStop(1);
deltaX = this["p" + n]._x - pelota._x;
deltaY = -(this["p" + n]._y - pelota._y);
}
longshit = this["p" + n]._rotation + (((Math.atan2(deltaY, deltaX) / Math.PI) * -180) - this["p" + n]._rotation);
this["p" + n]._rotation = this["p" + n]._rotation + ((longshit - this["p" + n]._rotation) / 10);
this["p" + n]._alpha = 100;
}
n++;
}
}
}
onClipEvent (mouseDown) {
if (!jugadores._visible) {
powerbar.play();
}
}
onClipEvent (mouseUp) {
if (!jugadores._visible) {
powerbar.gotoAndStop(1);
shoot = true;
this["p" + selected].play();
arrow.play();
}
}
Symbol 14 Button
on (keyPress "1") {
if ((selected != 1) and this["p" + selected].men.hitTest(pelota)) {
xp = p1._x - this["p" + selected]._x;
yp = p1._y - this["p" + selected]._y;
hp = Math.sqrt((xp * xp) + (yp * yp));
xvel = (9 * xp) / hp;
yvel = (9 * yp) / hp;
pelota.play();
this["p" + selected].play();
selected = 1;
}
}
on (keyPress "2") {
if ((selected != 2) and this["p" + selected].men.hitTest(pelota)) {
xp = p2._x - this["p" + selected]._x;
yp = p2._y - this["p" + selected]._y;
hp = Math.sqrt((xp * xp) + (yp * yp));
xvel = (9 * xp) / hp;
yvel = (9 * yp) / hp;
pelota.play();
this["p" + selected].play();
selected = 2;
}
}
on (keyPress "3") {
if ((selected != 3) and this["p" + selected].men.hitTest(pelota)) {
xp = p3._x - this["p" + selected]._x;
yp = p3._y - this["p" + selected]._y;
hp = Math.sqrt((xp * xp) + (yp * yp));
xvel = (9 * xp) / hp;
yvel = (9 * yp) / hp;
pelota.play();
this["p" + selected].play();
selected = 3;
}
}
on (keyPress "4") {
if ((selected != 4) and this["p" + selected].men.hitTest(pelota)) {
xp = p4._x - this["p" + selected]._x;
yp = p4._y - this["p" + selected]._y;
hp = Math.sqrt((xp * xp) + (yp * yp));
xvel = (9 * xp) / hp;
yvel = (9 * yp) / hp;
pelota.play();
this["p" + selected].play();
selected = 4;
}
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 1
gotoAndStop(_parent.shooter);
Symbol 39 MovieClip Frame 1
stop();
Instance of Symbol 23 MovieClip "aura" in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 39 MovieClip Frame 2
shooter = random(4) + 1;
Symbol 39 MovieClip Frame 10
_parent.power = 1;
_parent.shoot = false;
Symbol 48 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 1
gotoAndStop(_parent.shooter);
Symbol 54 MovieClip Frame 1
stop();
Instance of Symbol 41 MovieClip "aura" in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 54 MovieClip Frame 2
shooter = random(4) + 1;
Symbol 54 MovieClip Frame 11
_parent.cshoot = false;
Symbol 59 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 50
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 146
_parent.reset();
Symbol 72 Button
on (release) {
_parent._parent.jugadores._visible = true;
_parent._parent.tutor.gotoAndStop(1);
_parent.gotoAndStop(1);
}
Symbol 76 Button
on (release) {
_parent._parent.tutor.gotoAndStop(2);
_parent.gotoAndStop(1);
}
Symbol 79 Button
on (release) {
_parent._parent.volume();
}
Symbol 82 Button
on (release) {
getURL ("http://www.superhere.net", "_blank");
}
Symbol 85 Button
on (release) {
fscommand ("quit");
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
powerbar.gotoAndStop(1);
Symbol 106 MovieClip Frame 2
if (_parent.power < 6) {
_parent.power = _parent.power * 1.05;
}
powerbar.gotoAndStop(Math.ceil(_parent.power * 20));
Symbol 106 MovieClip Frame 3
gotoAndPlay (2);
Symbol 118 Button
on (release) {
_parent.pointer._x = _x;
Set(("_parent._parent." + _parent._name) + "layers", _name);
}
Symbol 122 Button
on (release) {
_parent.maxgol = maxgol;
_parent.players = players;
_parent.cplayers = cplayers;
_parent.reset(true);
_visible = false;
_parent.pcopa._visible = false;
_parent.ccopa._visible = false;
}
Symbol 124 Button
on (release) {
_visible = false;
}
Symbol 127 Button
on (release) {
_parent.pointer._x = _x;
_parent._parent.maxgol = _name;
}
Symbol 133 MovieClip Frame 1
players = 2;
cplayers = 2;
maxgol = 5;
Instance of Symbol 120 MovieClip "cp" in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
pointer._x = this[2]._x;
}
Instance of Symbol 120 MovieClip "p" in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
pointer._x = this[2]._x;
}
Instance of Symbol 129 MovieClip "cp" in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
pointer._x = this[0]._x;
}
Symbol 138 Button
on (rollOver) {
Mouse.show();
}
on (rollOut) {
Mouse.hide();
}
on (release) {
nextFrame();
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
_parent.players = 1;
_parent.cplayers = 0;
_parent.reset(true);
Symbol 148 MovieClip Frame 4
_parent.players = 1;
_parent.cplayers = 1;
_parent.reset(true);
Symbol 148 MovieClip Frame 5
_parent.players = 4;
_parent.cplayers = 0;
_parent.reset(true);
Symbol 148 MovieClip Frame 6
_parent.players = 4;
_parent.cplayers = 1;
_parent.reset(true);
Symbol 148 MovieClip Frame 7
_parent.jugadores._visible = true;
Instance of Symbol 87 MovieClip "menu" in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
Mouse.show();
gotoAndStop (2);
pause = true;
n = 1;
while (4 >= n) {
_parent["p" + n].men.gotoAndStop(1);
_parent["c" + n].men.gotoAndStop(1);
n++;
}
} else {
gotoAndStop (1);
if (((!_parent.jugadores._visible) and (_parent.tutor._currentframe == 1)) and (!_parent.acerca._visible)) {
Mouse.hide();
}
}
}
Instance of Symbol 133 MovieClip "jugadores" in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_visible and this.hitTest(_root._xmouse, _root._ymouse, true)) {
Mouse.show();
}
}
Instance of Symbol 134 MovieClip "pcopa" in Symbol 149 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 134 MovieClip "ccopa" in Symbol 149 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}