Frame 1
setProperty("_root.Bar", _xscale , 0);
_root.load = "Chargement des données...";
_root.terrain = 1;
Instance of Symbol 56 MovieClip "Size" in Frame 1
onClipEvent (load) {
total = int(_root.getBytesTotal());
}
onClipEvent (enterFrame) {
StatusColor = new Color(_root.Bar);
Loaded = int(_root.getBytesLoaded());
Percent = int((loaded / total) * 100);
if (20 < percent) {
_root.load = "chargement du terrain";
StatusColor.setRGB(16777113);
}
if (34 < percent) {
_root.load = "chargement des sons";
StatusColor.setRGB(16763904);
}
if (57 < percent) {
_root.load = "chargement des personnages";
StatusColor.setRGB(16750848);
}
if (72 < percent) {
_root.load = "chargement des animations";
StatusColor.setRGB(16737792);
}
if (percent == 95) {
_root.load = "connection au serveur";
StatusColor.setRGB(16724736);
}
_root.Percent = Percent + " %";
setProperty("_root.Bar", _xscale , Percent * 2.46);
if (Percent >= 100) {
tellTarget ("_root") {
play();
};
}
}
Frame 2
stop();
Frame 3
stop();
mene = 1;
fin = 1;
shoot = 0;
_root.revanche = 0;
_root.meneGagner = 5;
_root.rate = 0;
_root.question3.gotoAndPlay("play");
_root.shoot = 0;
_root.scoreJ1 = 0;
_root.scoreJ2 = 0;
pers1 = 0;
pers2 = 0;
partie = 13;
Instance of Symbol 100 MovieClip "result" in Frame 3
/* no clip actions */
Instance of Symbol 112 MovieClip "choix" in Frame 3
onClipEvent (load) {
this.gotoAndStop("go");
}
Frame 6
stop();
Frame 13
stop();
Frame 21
tirage = 0;
son = 1;
b1j1 = 0;
b2j1 = 0;
b3j1 = 0;
b1j2 = 0;
b2j2 = 0;
b3j2 = 0;
bout = 0;
gagner = 0;
relance = 0;
mene = 1;
persoj1 = "pers1";
persoj2 = "pers2";
pile = 0;
face = 0;
Instance of Symbol 100 MovieClip "result" in Frame 21
/* no clip actions */
Instance of Symbol 330 MovieClip "rightpaddle" in Frame 21
onClipEvent (enterFrame) {
this.swapDepths(20);
}
onClipEvent (enterFrame) {
if (_root.bls2 == 1) {
_root.boulle2._visible = false;
_root.bTab2._visible = false;
} else if (_root.bls2 == 2) {
_root.boulle4._visible = false;
_root.bTab4._visible = false;
} else if (_root.bls2 == 3) {
_root.boulle6._visible = false;
_root.bTab6._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.joueur == 2) {
_root.puissance._visible = true;
_root.power._visible = true;
_root.angle._visible = true;
}
}
onClipEvent (enterFrame) {
this.msgf2._rotation = -_rotation;
this.lisa.ombre._rotation = -_rotation;
this.lucien.ombre._rotation = -_rotation;
this.bob.ombre._rotation = -_rotation;
if (_root.joueur == 2) {
this._x = 220;
this._y = 500;
_rotation = (((angle * 180) / Math.PI) + 180);
if (_root.pers2 == 0) {
} else if ((_root.pers2 == 1) && (_root.pers1 != 1)) {
this.ombre._width = 90;
this.ombre._height = 70;
this.lucien.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
if (_root.shoot == 0) {
this.lisa.gotoAndStop("pretbut");
if (_root.tire == 1) {
this.lisa.gotoAndStop("lancerbut");
_root.count++;
}
} else if (_root.tire == 1) {
this.lisa.gotoAndStop("lancer");
_root.count++;
} else if (_root.tire == 0) {
this.lisa.gotoAndStop("pret");
_root.count = 0;
}
} else if ((_root.pers2 == 1) && (_root.pers1 == 1)) {
this.ombre._width = 90;
this.ombre._height = 70;
this.lucien.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
if (_root.shoot == 0) {
this.lisa.gotoAndStop("pretbut2");
if (_root.tire == 1) {
this.lisa.gotoAndStop("lancerbut2");
_root.count++;
}
} else if (_root.tire == 1) {
this.lisa.gotoAndStop("lancer2");
_root.count++;
} else if (_root.tire == 0) {
this.lisa.gotoAndStop("pret2");
_root.count = 0;
}
} else if ((_root.pers2 == 2) && (_root.pers1 != 2)) {
this.lisa.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
if (_root.shoot == 0) {
this.lucien.gotoAndStop("pretbut");
if (_root.tire == 1) {
this.lucien.gotoAndStop("lancerbut");
_root.count++;
}
} else if (_root.tire == 1) {
this.lucien.gotoAndStop("lancer");
_root.count++;
} else if (_root.tire == 0) {
this.lucien.bras.bl.gotoAndStop("bl2");
this.lucien.gotoAndStop("pret");
_root.count = 0;
}
} else if ((_root.pers2 == 2) && (_root.pers1 == 2)) {
this.lisa.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
if (_root.shoot == 0) {
this.lucien.gotoAndStop("pretbut2");
if (_root.tire == 1) {
this.lucien.gotoAndStop("lancerbut2");
_root.count++;
}
} else if (_root.tire == 1) {
this.lucien.gotoAndStop("lancer2");
_root.count++;
} else if (_root.tire == 0) {
this.lucien.gotoAndStop("pret2");
_root.count = 0;
}
} else if ((_root.pers2 == 3) && (_root.pers1 != 3)) {
this.lisa.gotoAndStop("invisible");
this.lucien.gotoAndStop("invisible");
if (_root.shoot == 0) {
this.bob.gotoAndStop("pretbut");
if (_root.tire == 1) {
this.bob.gotoAndStop("lancerbut");
_root.count++;
}
} else if (_root.tire == 1) {
this.bob.gotoAndStop("lancer");
_root.count++;
} else if (_root.tire == 0) {
this.bob.gotoAndStop("pret");
_root.count = 0;
}
} else if ((_root.pers2 == 3) && (_root.pers1 == 3)) {
this.lisa.gotoAndStop("invisible");
this.lucien.gotoAndStop("invisible");
if (_root.shoot == 0) {
this.bob.gotoAndStop("pretbut2");
if (_root.tire == 1) {
this.bob.gotoAndStop("lancerbut2");
_root.count++;
}
} else if (_root.tire == 1) {
this.bob.gotoAndStop("lancer2");
_root.count++;
} else if (_root.tire == 0) {
this.bob.gotoAndStop("pret2");
_root.count = 0;
}
} else if (_root.pers1 == 4) {
}
} else {
if ((_root.pers2 == 1) && (_root.pers1 != 1)) {
_root.teteP2.gotoAndStop("teteLisa");
this.lisa.gotoAndStop("assisP2");
this.lucien.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
this.ombre._width = 90;
this.ombre._height = 70;
} else if ((_root.pers2 == 1) && (_root.pers1 == 1)) {
_root.teteP2.gotoAndStop("teteLisa2");
this.lisa.gotoAndStop("assis2");
this.lucien.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
this.ombre._width = 90;
this.ombre._height = 70;
} else if ((_root.pers2 == 2) && (_root.pers1 != 2)) {
_root.teteP2.gotoAndStop("teteLucien");
this.lucien.gotoAndStop("assisP2");
this.lisa.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
} else if ((_root.pers2 == 2) && (_root.pers1 == 2)) {
_root.teteP2.gotoAndStop("teteLucien2");
this.lucien.gotoAndStop("assis2");
this.lisa.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
} else if ((_root.pers2 == 3) && (_root.pers1 != 3)) {
_root.teteP2.gotoAndStop("teteBob");
this.bob.gotoAndStop("assisP2");
this.lisa.gotoAndStop("invisible");
this.lucien.gotoAndStop("invisible");
} else if ((_root.pers2 == 3) && (_root.pers1 == 3)) {
_root.teteP2.gotoAndStop("teteBob2");
this.bob.gotoAndStop("assis2");
this.lisa.gotoAndStop("invisible");
this.lucien.gotoAndStop("invisible");
}
this._x = 495;
this._y = 265;
_rotation = (((angle * 180) / Math.PI) + 180);
angle = -1.6;
}
}
onClipEvent (mouseMove) {
if (dragging) {
if (_root.joueur == 2) {
angle2 = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
angle = _root.stick.cutDigits(angle2, 2);
_rotation = (((angle * 180) / Math.PI) + 180);
}
}
}
Instance of Symbol 331 MovieClip "leftpaddle" in Frame 21
onClipEvent (enterFrame) {
this.swapDepths(21);
}
onClipEvent (enterFrame) {
if (_root.bls1 == 1) {
_root.boulle1._visible = false;
_root.bTab1._visible = false;
} else if (_root.bls1 == 2) {
_root.boulle3._visible = false;
_root.bTab3._visible = false;
} else if (_root.bls1 == 3) {
_root.boulle5._visible = false;
_root.bTab5._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.joueur == 1) {
_root.puissance._visible = true;
_root.power._visible = true;
_root.angle._visible = true;
}
}
onClipEvent (enterFrame) {
this.msgf1._rotation = -_rotation;
this.lisa.ombre._rotation = -_rotation;
this.lucien.ombre._rotation = -_rotation;
this.bob.ombre._rotation = -_rotation;
if (_root.joueur == 1) {
this._x = 220;
this._y = 500;
_rotation = (((angle * 180) / Math.PI) + 180);
if (_root.pers1 == 0) {
} else if (_root.pers1 == 1) {
_root.teteP1.gotoAndStop("teteLisa");
this.ombre._width = 90;
this.ombre._height = 70;
this.lucien.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
if (_root.shoot == 0) {
this.lisa.gotoAndStop("pretbut");
if (_root.tire == 1) {
this.lisa.gotoAndStop("lancerbut");
_root.count++;
}
} else if (_root.tire == 1) {
this.lisa.animlisa.animlisa2.bl.gotoAndStop("bl1");
this.lisa.gotoAndStop("lancer");
_root.count++;
} else if (_root.tire == 0) {
this.lisa.gotoAndStop("pret");
_root.count = 0;
}
} else if (_root.pers1 == 2) {
_root.teteP1.gotoAndStop("teteLucien");
this.lisa.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
if (_root.shoot == 0) {
this.lucien.gotoAndStop("pretbut");
if (_root.tire == 1) {
this.lucien.gotoAndStop("lancerbut");
_root.count++;
}
} else if (_root.tire == 1) {
this.lucien.gotoAndStop("lancer");
_root.count++;
} else if (_root.tire == 0) {
this.lucien.gotoAndStop("pret");
_root.count = 0;
}
} else if (_root.pers1 == 3) {
_root.teteP1.gotoAndStop("teteBob");
this.lisa.gotoAndStop("invisible");
this.lucien.gotoAndStop("invisible");
if (_root.shoot == 0) {
this.bob.gotoAndStop("pretbut");
if (_root.tire == 1) {
this.bob.gotoAndStop("lancerbut");
_root.count++;
}
} else if (_root.tire == 1) {
this.bob.gotoAndStop("lancer");
_root.count++;
} else if (_root.tire == 0) {
this.bob.gotoAndStop("pret");
_root.count = 0;
}
} else if (_root.pers1 == 4) {
}
} else {
if (_root.pers1 == 2) {
_root.teteP1.gotoAndStop("teteLucien");
this.lucien.gotoAndStop("assis");
this.lisa.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
} else if (_root.pers1 == 1) {
_root.teteP1.gotoAndStop("teteLisa");
this.lisa.gotoAndStop("assis");
this.lucien.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
this.ombre._width = 90;
this.ombre._height = 70;
} else if (_root.pers1 == 3) {
_root.teteP1.gotoAndStop("teteBob");
this.bob.gotoAndStop("assis");
this.lucien.gotoAndStop("invisible");
this.lisa.gotoAndStop("invisible");
this.ombre._width = 90;
this.ombre._height = 70;
}
this._x = 683;
this._y = 329;
_rotation = (((angle * 180) / Math.PI) + 180);
angle = -0.25;
}
}
onClipEvent (mouseMove) {
if (dragging) {
if (_root.joueur == 1) {
angle2 = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
angle = _root.stick.cutDigits(angle2, 2);
_rotation = (((angle * 180) / Math.PI) + 180);
}
}
}
Instance of Symbol 362 MovieClip "b6" in Frame 21
onClipEvent (enterFrame) {
distanceX = this._x - _root.b0._x;
distanceY = this._y - _root.b0._y;
if (distanceX < 0) {
distanceX = -distanceX;
}
if (distanceY < 0) {
distanceY = -distanceY;
}
distance = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
if (((distance < _root.b1.distance) && (distance < _root.b3.distance)) && (distance < _root.b5.distance)) {
this.gotoAndStop(2);
_root.b3j2 = 1;
_root.meneur2 = 3;
_root.meneur1 = 0;
} else {
this.gotoAndStop(1);
_root.b3j2 = 0;
}
}
Instance of Symbol 363 MovieClip "b5" in Frame 21
onClipEvent (enterFrame) {
distanceX = this._x - _root.b0._x;
distanceY = this._y - _root.b0._y;
if (distanceX < 0) {
distanceX = -distanceX;
}
if (distanceY < 0) {
distanceY = -distanceY;
}
distance = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
if (((distance < _root.b2.distance) && (distance < _root.b4.distance)) && (distance < _root.b6.distance)) {
this.gotoAndStop(2);
_root.b3j1 = 1;
_root.meneur1 = 3;
_root.meneur2 = 0;
} else {
this.gotoAndStop(1);
_root.b3j1 = 0;
}
}
Instance of Symbol 364 MovieClip "b4" in Frame 21
onClipEvent (enterFrame) {
distanceX = this._x - _root.b0._x;
distanceY = this._y - _root.b0._y;
if (distanceX < 0) {
distanceX = -distanceX;
}
if (distanceY < 0) {
distanceY = -distanceY;
}
distance = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
if (((distance < _root.b1.distance) && (distance < _root.b3.distance)) && (distance < _root.b5.distance)) {
this.gotoAndStop(2);
_root.b2j2 = 1;
_root.meneur2 = 2;
_root.meneur1 = 0;
} else {
this.gotoAndStop(1);
_root.b2j2 = 0;
}
}
Instance of Symbol 365 MovieClip "b3" in Frame 21
onClipEvent (enterFrame) {
distanceX = this._x - _root.b0._x;
distanceY = this._y - _root.b0._y;
if (distanceX < 0) {
distanceX = -distanceX;
}
if (distanceY < 0) {
distanceY = -distanceY;
}
distance = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
if (((distance < _root.b2.distance) && (distance < _root.b4.distance)) && (distance < _root.b6.distance)) {
this.gotoAndStop(2);
_root.b2j1 = 1;
_root.meneur1 = 2;
_root.meneur2 = 0;
} else {
this.gotoAndStop(1);
_root.b2j1 = 0;
}
}
Instance of Symbol 366 MovieClip "b7" in Frame 21
onClipEvent (enterFrame) {
distanceX = this._x - _root.b0._x;
distanceY = this._y - _root.b0._y;
if (distanceX < 0) {
distanceX = -distanceX;
}
if (distanceY < 0) {
distanceY = -distanceY;
}
distance = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
if ((((((distance < _root.b2.distance) && (distance < _root.b4.distance)) && (distance < _root.b6.distance)) && (distance < _root.b1.distance)) && (distance < _root.b3.distance)) && (distance < _root.b5.distance)) {
_root.meneur1 = 0;
_root.meneur2 = 0;
}
}
Instance of Symbol 367 MovieClip "b1" in Frame 21
onClipEvent (enterFrame) {
distanceX = this._x - _root.b0._x;
distanceY = this._y - _root.b0._y;
if (distanceX < 0) {
distanceX = -distanceX;
}
if (distanceY < 0) {
distanceY = -distanceY;
}
distance = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
if (((distance < _root.b2.distance) && (distance < _root.b4.distance)) && (distance < _root.b6.distance)) {
this.gotoAndStop(2);
_root.b1j1 = 1;
_root.meneur1 = 1;
_root.meneur2 = 0;
} else {
this.gotoAndStop(1);
_root.b1j1 = 0;
}
}
Instance of Symbol 368 MovieClip "b2" in Frame 21
onClipEvent (enterFrame) {
distanceX = this._x - _root.b0._x;
distanceY = this._y - _root.b0._y;
if (distanceX < 0) {
distanceX = -distanceX;
}
if (distanceY < 0) {
distanceY = -distanceY;
}
distance = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
if (((distance < _root.b1.distance) && (distance < _root.b3.distance)) && (distance < _root.b5.distance)) {
this.gotoAndStop(2);
_root.b1j2 = 1;
_root.meneur2 = 1;
_root.meneur1 = 0;
} else {
this.gotoAndStop(1);
_root.b1j2 = 0;
}
}
Instance of Symbol 369 MovieClip "b0" in Frame 21
onClipEvent (enterFrame) {
if (_root.shoot == 0) {
if (((_root.gagner == 1) || (_root.meneGagner == 1)) || (_root.revanche == 1)) {
_root.joueur = 1;
} else if (((_root.gagner == 2) || (_root.meneGagner == 2)) || (_root.revanche == 2)) {
_root.joueur = 2;
}
}
if (_root.shoot == 1) {
if (((this._y >= 390) && (_root.b0.dy == 0)) && (_root.b0.dx == 0)) {
_root.rate = 1;
}
}
}
Frame 23
tirage = 1;
stop();
Frame 28
stop();
j1 = 0;
j2 = 0;
fin = 0;
shoot = 0;
tire = 0;
vol = 0;
vol1 = 0;
vol2 = 0;
vol3 = 0;
vol4 = 0;
vol5 = 0;
vol6 = 0;
_root.bout = 0;
_root.b0._x = -500;
_root.b0._y = 200;
_root.b0._visible = true;
_root.b2._x = -1000;
_root.b2._y = 420;
_root.b2._visible = true;
_root.boulle2._visible = true;
_root.bTab2._visible = true;
_root.b4._x = -1000;
_root.b4._y = 440;
_root.b4._visible = true;
_root.boulle4._visible = true;
_root.bTab4._visible = true;
_root.b6._x = -1000;
_root.b6._y = 460;
_root.b6._visible = true;
_root.boulle6._visible = true;
_root.bTab6._visible = true;
_root.b1._x = -1030;
_root.b1._y = 420;
_root.b1._visible = true;
_root.boulle1._visible = true;
_root.bTab1._visible = true;
_root.b3._x = -1030;
_root.b3._y = 440;
_root.b3._visible = true;
_root.boulle3._visible = true;
_root.bTab3._visible = true;
_root.b5._x = -1030;
_root.b5._y = 460;
_root.b5._visible = true;
_root.boulle5._visible = true;
_root.bTab5._visible = true;
_root.b7._x = -900;
_root.b7._y = 500;
_root.b7._visible = false;
Instance of Symbol 392 MovieClip "actifBouttonJoueur" in Frame 28
onClipEvent (enterFrame) {
if (((((((_root.shoot == 0) || (_root.shoot == 2)) || (_root.shoot == 4)) || (_root.shoot == 6)) || (_root.shoot == 8)) || (_root.shoot == 10)) || (_root.shoot == 12)) {
_root.actifBouttonJoueur._x = 228;
_root.actifBouttonJoueur._y = 450;
} else if (((((((_root.shoot == 1) || (_root.shoot == 3)) || (_root.shoot == 5)) || (_root.shoot == 7)) || (_root.shoot == 9)) || (_root.shoot == 11)) || (_root.shoot == 13)) {
_root.actifBouttonJoueur._x = -1000;
_root.actifBouttonJoueur._y = -1000;
}
}
Instance of Symbol 395 MovieClip "stick" in Frame 28
onClipEvent (load) {
function cutDigits(num, noOfDigits) {
this.me = String(num);
this.myArray = me.split(".");
num = myArray[1].toString();
num = num.substr(0, noOfDigits);
result = (myArray[0] + ".") + num;
result = String(result);
return(result);
}
function conclude() {
animate = false;
count = 0;
_y = -1000;
}
function mouvementhaut() {
if ((_root.joueur == 1) && (_root.j1 == 0)) {
_root.b1.kick(random(1) + 1, _root.stick.countangle);
} else if ((_root.joueur == 1) && (_root.j1 == 1)) {
_root.b3.kick(random(1) + 1, _root.stick.countangle);
} else if ((_root.joueur == 1) && (_root.j1 == 2)) {
_root.b5.kick(random(1) + 1, _root.stick.countangle);
} else if ((_root.joueur == 1) && (_root.j1 == 3)) {
if (_root.shoot == 10) {
_root.b4.kick(random(1) + 1, _root.stick.countangle);
} else if (_root.shoot == 12) {
_root.b6.kick(random(1) + 1, _root.stick.countangle);
}
} else if ((_root.joueur == 2) && (_root.j2 == 0)) {
_root.b2.kick(random(1) + 1, _root.stick.countangle);
} else if ((_root.joueur == 2) && (_root.j2 == 1)) {
_root.b4.kick(random(1) + 1, _root.stick.countangle);
} else if ((_root.joueur == 2) && (_root.j2 == 2)) {
_root.b6.kick(random(1) + 1, _root.stick.countangle);
} else if ((_root.joueur == 2) && (_root.j2 == 3)) {
if (_root.shoot == 10) {
_root.b3.kick(random(1) + 1, _root.stick.countangle);
} else if (_root.shoot == 12) {
_root.b5.kick(random(1) + 1, _root.stick.countangle);
}
}
}
function force() {
if ((_root.joueur == 1) && (_root.j1 == 0)) {
_root.b1._x = 230;
_root.b1._y = 450;
_root.b1.swapDepths(_root.shoot);
_root.j1 = 1;
_root.b1.dx = (_root.stick.distance * Math.cos(angle - Math.PI)) / _root.b1.height;
_root.b1.dy = (_root.stick.distance * Math.sin(angle - Math.PI)) / _root.b1.height;
_root.b1.moving = true;
} else if ((_root.joueur == 1) && (_root.j1 == 1)) {
_root.b3._x = 230;
_root.b3._y = 450;
_root.b3.swapDepths(_root.shoot);
_root.j1 = 2;
_root.b3.dx = (_root.stick.distance * Math.cos(angle - Math.PI)) / _root.b3.height;
_root.b3.dy = (_root.stick.distance * Math.sin(angle - Math.PI)) / _root.b3.height;
_root.b3.moving = true;
} else if ((_root.joueur == 1) && (_root.j1 == 2)) {
_root.b5._x = 230;
_root.b5._y = 450;
_root.b5.swapDepths(_root.shoot);
_root.j1 = 3;
_root.b5.dx = (_root.stick.distance * Math.cos(angle - Math.PI)) / _root.b5.height;
_root.b5.dy = (_root.stick.distance * Math.sin(angle - Math.PI)) / _root.b5.height;
_root.b5.moving = true;
} else if ((_root.joueur == 2) && (_root.j2 == 3)) {
if (_root.shoot == 10) {
_root.b3._x = 230;
_root.b3._y = 450;
_root.b3.swapDepths(_root.shoot);
_root.j1 = 2;
_root.b3.dx = (_root.stick.distance * Math.cos(angle - Math.PI)) / _root.b3.height;
_root.b3.dy = (_root.stick.distance * Math.sin(angle - Math.PI)) / _root.b3.height;
_root.b3.moving = true;
} else if (_root.shoot == 12) {
_root.b5._x = 230;
_root.b5._y = 450;
_root.b5.swapDepths(_root.shoot);
_root.j1 = 3;
_root.b5.dx = (_root.stick.distance * Math.cos(angle - Math.PI)) / _root.b5.height;
_root.b5.dy = (_root.stick.distance * Math.sin(angle - Math.PI)) / _root.b5.height;
_root.b5.moving = true;
}
} else if ((_root.joueur == 2) && (_root.j2 == 0)) {
_root.b2._x = 230;
_root.b2._y = 450;
_root.b2.swapDepths(_root.shoot);
_root.j2 = 1;
_root.b2.dx = (_root.stick.distance * Math.cos(angle - Math.PI)) / _root.b2.height;
_root.b2.dy = (_root.stick.distance * Math.sin(angle - Math.PI)) / _root.b2.height;
_root.b2.moving = true;
} else if ((_root.joueur == 2) && (_root.j2 == 1)) {
_root.b4._x = 230;
_root.b4._y = 450;
_root.b4.swapDepths(_root.shoot);
_root.j2 = 2;
_root.b4.dx = (_root.stick.distance * Math.cos(angle - Math.PI)) / _root.b4.height;
_root.b4.dy = (_root.stick.distance * Math.sin(angle - Math.PI)) / _root.b4.height;
_root.b4.moving = true;
} else if ((_root.joueur == 2) && (_root.j2 == 2)) {
_root.b6._x = 230;
_root.b6._y = 450;
_root.b6.swapDepths(_root.shoot);
_root.j2 = 3;
_root.b6.dx = (_root.stick.distance * Math.cos(angle - Math.PI)) / _root.b6.height;
_root.b6.dy = (_root.stick.distance * Math.sin(angle - Math.PI)) / _root.b6.height;
_root.b6.moving = true;
} else if ((_root.joueur == 1) && (_root.j1 == 3)) {
if (_root.shoot == 10) {
_root.b4._x = 230;
_root.b4._y = 450;
_root.b4.swapDepths(_root.shoot);
_root.j2 = 2;
_root.b4.dx = (_root.stick.distance * Math.cos(angle - Math.PI)) / _root.b4.height;
_root.b4.dy = (_root.stick.distance * Math.sin(angle - Math.PI)) / _root.b4.height;
_root.b4.moving = true;
} else if (_root.shoot == 12) {
_root.b6._x = 230;
_root.b6._y = 450;
_root.b6.swapDepths(_root.shoot);
_root.j2 = 3;
_root.b6.dx = (_root.stick.distance * Math.cos(angle - Math.PI)) / _root.b6.height;
_root.b6.dy = (_root.stick.distance * Math.sin(angle - Math.PI)) / _root.b6.height;
_root.b6.moving = true;
}
}
}
friction = 10;
friction2 = 15;
conclude();
}
onClipEvent (mouseMove) {
if (dragging) {
angle2 = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
angle = cutDigits(angle2, 2);
_rotation = (((angle * 180) / Math.PI) + 180);
distanceX = this._x - _root._xmouse;
distanceY = this._y - _root._ymouse;
distanceLong = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY)) * 3.14;
distance = cutDigits(distanceLong, 2);
}
}
onClipEvent (enterFrame) {
if (countangle) {
countangle++;
if (35 < countangle) {
countangle = 0;
_root.bout = 0;
}
}
}
onClipEvent (enterFrame) {
if (!animate) {
return(undefined);
}
count++;
if (12 < count) {
conclude();
}
if (_root.shoot == 0) {
_root.b0._x = 230;
_root.b0._y = 450;
_root.b0.dx = ((_root.stick.distance * 1.5) * Math.cos(angle - Math.PI)) / _root.b0.height;
_root.b0.dy = ((_root.stick.distance * 1.5) * Math.sin(angle - Math.PI)) / _root.b0.height;
_root.b0.moving = true;
_root.rate = 0;
_root.revanche = 0;
} else if (_root.shoot == 2) {
force();
} else if (_root.shoot == 4) {
force();
} else if (_root.shoot == 6) {
force();
} else if (_root.shoot == 8) {
force();
} else if (_root.shoot == 10) {
force();
} else if (_root.shoot == 12) {
force();
}
_root.shoot++;
_root.tire = 1;
conclude();
}
onClipEvent (enterFrame) {
_root.b0.render();
if ((_root.b0.heightDir == 1) && (_root.b0.currentheight >= 0)) {
_root.vol = 1;
}
if ((_root.b0.heightDir == -1) && (_root.b0.currentheight == 0)) {
if (_root.vol == 1) {
if ((((_root.b0._x < _root.controller.bgLeft2) || (_root.controller.bgRight2 < _root.b0._x)) || (_root.b0._y < _root.controller.bgTop2)) || (_root.controller.bgBottom2 < _root.b0._y)) {
_root.glace.gotoAndPlay("play");
_root.rate = 1;
} else {
_root.pong2.gotoAndPlay("play");
}
}
_root.vol = 0;
_root.b0.frictionX = _root.b0.dx / ((friction / _root.b0.height) * 25);
_root.b0.frictionY = _root.b0.dy / ((friction / _root.b0.height) * 25);
}
}
onClipEvent (enterFrame) {
_root.b1.render();
if ((_root.b1.heightDir == 1) && (_root.b1.currentheight >= 0)) {
_root.vol1 = 1;
}
if ((_root.b1.heightDir == -1) && (_root.b1.currentheight == 0)) {
if (_root.vol1 == 1) {
if ((((_root.b1._x < _root.controller.bgLeft2) || (_root.controller.bgRight2 < _root.b1._x)) || (_root.b1._y < _root.controller.bgTop2)) || (_root.controller.bgBottom2 < _root.b1._y)) {
_root.glace.gotoAndPlay("play");
} else {
_root.pok.gotoAndPlay("play");
}
if (4 < _root.b1.height) {
duplicateMovieClip ("_root.impact", "_root.impact" + i, 1);
eval ("_root.impact" + i)._x = _root.b1._x;
eval ("_root.impact" + i)._y = _root.b1._y;
_root.impact.gotoAndPlay(2);
}
}
_root.vol1 = 0;
_root.b1.frictionX = _root.b1.dx / ((friction / _root.b1.height) * friction2);
_root.b1.frictionY = _root.b1.dy / ((friction / _root.b1.height) * friction2);
}
}
onClipEvent (enterFrame) {
_root.b2.render();
if ((_root.b2.heightDir == 1) && (_root.b2.currentheight >= 0)) {
_root.vol2 = 1;
}
if ((_root.b2.heightDir == -1) && (_root.b2.currentheight == 0)) {
if (_root.vol2 == 1) {
if ((((_root.b2._x < _root.controller.bgLeft2) || (_root.controller.bgRight2 < _root.b2._x)) || (_root.b2._y < _root.controller.bgTop2)) || (_root.controller.bgBottom2 < _root.b2._y)) {
_root.glace.gotoAndPlay("play");
} else {
_root.pok.gotoAndPlay("play");
}
if (4 < _root.b2.height) {
duplicateMovieClip ("_root.impact", "_root.impact" + i, 1);
eval ("_root.impact" + i)._x = _root.b2._x;
eval ("_root.impact" + i)._y = _root.b2._y;
_root.impact.gotoAndPlay(2);
}
}
_root.vol2 = 0;
_root.b2.frictionX = _root.b2.dx / ((friction / _root.b2.height) * friction2);
_root.b2.frictionY = _root.b2.dy / ((friction / _root.b2.height) * friction2);
}
}
onClipEvent (enterFrame) {
_root.b3.render();
if ((_root.b3.heightDir == 1) && (_root.b3.currentheight >= 0)) {
_root.vol3 = 1;
}
if ((_root.b3.heightDir == -1) && (_root.b3.currentheight == 0)) {
if (_root.vol3 == 1) {
if ((((_root.b3._x < _root.controller.bgLeft2) || (_root.controller.bgRight2 < _root.b3._x)) || (_root.b3._y < _root.controller.bgTop2)) || (_root.controller.bgBottom2 < _root.b3._y)) {
_root.glace.gotoAndPlay("play");
} else {
_root.pok.gotoAndPlay("play");
}
if (4 < _root.b3.height) {
duplicateMovieClip ("_root.impact", "_root.impact" + i, 1);
eval ("_root.impact" + i)._x = _root.b3._x;
eval ("_root.impact" + i)._y = _root.b3._y;
_root.impact.gotoAndPlay(2);
}
}
_root.vol3 = 0;
_root.b3.frictionX = _root.b3.dx / ((friction / _root.b3.height) * friction2);
_root.b3.frictionY = _root.b3.dy / ((friction / _root.b3.height) * friction2);
}
}
onClipEvent (enterFrame) {
_root.b4.render();
if ((_root.b4.heightDir == 1) && (_root.b4.currentheight >= 0)) {
_root.vol4 = 1;
}
if ((_root.b4.heightDir == -1) && (_root.b4.currentheight == 0)) {
if (_root.vol4 == 1) {
if ((((_root.b4._x < _root.controller.bgLeft2) || (_root.controller.bgRight2 < _root.b4._x)) || (_root.b4._y < _root.controller.bgTop2)) || (_root.controller.bgBottom2 < _root.b4._y)) {
_root.glace.gotoAndPlay("play");
} else {
_root.pok.gotoAndPlay("play");
}
if (4 < _root.b4.height) {
duplicateMovieClip ("_root.impact", "_root.impact" + i, 1);
eval ("_root.impact" + i)._x = _root.b4._x;
eval ("_root.impact" + i)._y = _root.b4._y;
_root.impact.gotoAndPlay(2);
}
}
_root.vol4 = 0;
_root.b4.frictionX = _root.b4.dx / ((friction / _root.b4.height) * friction2);
_root.b4.frictionY = _root.b4.dy / ((friction / _root.b4.height) * friction2);
}
}
onClipEvent (enterFrame) {
_root.b5.render();
if ((_root.b5.heightDir == 1) && (_root.b5.currentheight >= 0)) {
_root.vol5 = 1;
}
if ((_root.b5.heightDir == -1) && (_root.b5.currentheight == 0)) {
if (_root.vol5 == 1) {
if ((((_root.b5._x < _root.controller.bgLeft2) || (_root.controller.bgRight2 < _root.b5._x)) || (_root.b5._y < _root.controller.bgTop2)) || (_root.controller.bgBottom2 < _root.b5._y)) {
_root.glace.gotoAndPlay("play");
} else {
_root.pok.gotoAndPlay("play");
}
if (4 < _root.b5.height) {
duplicateMovieClip ("_root.impact", "_root.impact" + i, 1);
eval ("_root.impact" + i)._x = _root.b5._x;
eval ("_root.impact" + i)._y = _root.b5._y;
_root.impact.gotoAndPlay(2);
}
}
_root.vol5 = 0;
_root.b5.frictionX = _root.b5.dx / ((friction / _root.b5.height) * friction2);
_root.b5.frictionY = _root.b5.dy / ((friction / _root.b5.height) * friction2);
}
}
onClipEvent (enterFrame) {
_root.b6.render();
if ((_root.b6.heightDir == 1) && (_root.b6.currentheight >= 0)) {
_root.vol6 = 1;
}
if ((_root.b6.heightDir == -1) && (_root.b6.currentheight == 0)) {
if (_root.vol6 == 1) {
if ((((_root.b6._x < _root.controller.bgLeft2) || (_root.controller.bgRight2 < _root.b6._x)) || (_root.b6._y < _root.controller.bgTop2)) || (_root.controller.bgBottom2 < _root.b6._y)) {
_root.glace.gotoAndPlay("play");
} else {
_root.pok.gotoAndPlay("play");
}
if (4 < _root.b6.height) {
duplicateMovieClip ("_root.impact", "_root.impact" + i, 1);
eval ("_root.impact" + i)._x = _root.b6._x;
eval ("_root.impact" + i)._y = _root.b6._y;
_root.impact.gotoAndPlay(2);
}
}
_root.vol6 = 0;
_root.b6.frictionX = _root.b6.dx / ((friction / _root.b6.height) * friction2);
_root.b6.frictionY = _root.b6.dy / ((friction / _root.b6.height) * friction2);
}
}
Instance of Symbol 404 MovieClip "puissance" in Frame 28
onClipEvent (load) {
_root.power._visible = false;
}
Instance of Symbol 408 MovieClip "power" in Frame 28
onClipEvent (load) {
_root.power._visible = false;
}
onClipEvent (enterFrame) {
if (_root.joueur == 1) {
_root.power.power2._xscale = _root.stick.distance / 1.8;
} else if (_root.joueur == 2) {
_root.power.power2._xscale = _root.stick.distance / 1.8;
} else if (_root.joueur == 3) {
_root.power.power2._xscale = _root.stick.distance / 1.8;
} else if (_root.joueur == 4) {
_root.power.power2._xscale = _root.stick.distance / 1.8;
}
}
Instance of Symbol 412 MovieClip "angle" in Frame 28
onClipEvent (load) {
_root.power._visible = false;
}
onClipEvent (enterFrame) {
if (_root.joueur == 1) {
_root.angle.angle2._rotation = _root.stick.countangle * 1.2;
} else if (_root.joueur == 2) {
_root.angle.angle2._rotation = _root.stick.countangle * 1.2;
} else if (_root.joueur == 3) {
_root.angle.angle2._rotation = _root.stick.countangle * 1.2;
} else if (_root.joueur == 4) {
_root.angle.angle2._rotation = _root.stick.countangle * 1.2;
}
}
Instance of Symbol 427 MovieClip "choixJoueur" in Frame 28
onClipEvent (enterFrame) {
if (_root.boutRelance == 1) {
_root.result.gotoAndStop("debut");
_root.meneGagner = 0;
}
if (_root.count >= 150) {
if (_root.rate == 1) {
_root.shoot = 0;
_root.count = 0;
_root.bls1 = 0;
_root.bls2 = 0;
_root.bout = 0;
_root.gotoAndStop("relance");
} else if (_root.rate == 0) {
_root.shoot++;
}
if (2 < _root.shoot) {
if (13 >= _root.shoot) {
if ((2 >= _root.j1) && (2 >= _root.j2)) {
if (_root.meneur1 != 0) {
_root.joueur = 2;
} else if (_root.meneur2 != 0) {
_root.joueur = 1;
}
} else if (_root.j1 == 3) {
if (_root.meneur1 != 0) {
_root.joueur = 2;
} else if (_root.meneur2 != 0) {
_root.joueur = 2;
} else if (_root.j2 == 0) {
_root.joueur = 2;
}
} else if (_root.j2 == 3) {
if (_root.meneur1 != 0) {
_root.joueur = 1;
} else if (_root.meneur2 != 0) {
_root.joueur = 1;
} else if (_root.j1 == 0) {
_root.joueur = 1;
}
}
} else if (_root.shoot == 14) {
_root.gotoAndStop("rejouer");
}
}
_root.tire = 0;
_root.count = 0;
}
}
Instance of Symbol 428 MovieClip "bouncer" in Frame 28
onClipEvent (load) {
function bounce(clip, clip2) {
var angle = Math.atan2(clip._y - clip2._y, clip._x - clip2._x);
this._rotation = (angle * 180) / Math.PI;
var pt2 = {x:clip2.dx * 18, y:clip2.dy * 18};
this.globalToLocal(pt2);
var subVector2 = {x:pt2.x, y:0};
this.localToGlobal(subVector2);
var pt = {x:clip.dx * 18, y:clip.dy * 18};
this.globalToLocal(pt);
var subVector = {x:pt.x, y:0};
this.localToGlobal(subVector);
var xSub = ((subVector2.x - subVector.x) / 22);
var ySub = ((subVector2.y - subVector.y) / 22);
var xSub2 = ((subVector2.x - subVector.x) / 10);
var ySub2 = ((subVector2.y - subVector.y) / 10);
clip.dx = clip.dx + xSub;
clip.dy = clip.dy + ySub;
clip2.dx = clip2.dx - xSub2;
clip2.dy = clip2.dy - ySub2;
var ang = Math.atan2(clip.dy, clip.dx);
var ang2 = Math.atan2(clip2.dy, clip2.dx);
}
function bounce2(clip, clip2) {
var angle = Math.atan2(clip._y - clip2._y, clip._x - clip2._x);
this._rotation = (angle * 180) / Math.PI;
var pt2 = {x:clip2.dx * 18, y:clip2.dy * 18};
this.globalToLocal(pt2);
var subVector2 = {x:pt2.x, y:0};
this.localToGlobal(subVector2);
var pt = {x:clip.dx * 18, y:clip.dy * 18};
this.globalToLocal(pt);
var subVector = {x:pt.x, y:0};
this.localToGlobal(subVector);
var xSub = ((subVector2.x - subVector.x) / 10);
var ySub = ((subVector2.y - subVector.y) / 10);
var xSub2 = ((subVector2.x - subVector.x) / 150);
var ySub2 = ((subVector2.y - subVector.y) / 150);
clip.dx = clip.dx + xSub;
clip.dy = clip.dy + ySub;
clip2.dx = clip2.dx - xSub2;
clip2.dy = clip2.dy - ySub2;
var ang = Math.atan2(clip.dy, clip.dx);
var ang2 = Math.atan2(clip2.dy, clip2.dx);
}
function bounce3(clip, clip2) {
var angle = Math.atan2(clip._y - clip2._y, clip._x - clip2._x);
this._rotation = (angle * 180) / Math.PI;
var pt2 = {x:clip2.dx * 18, y:0};
this.globalToLocal(pt2);
var subVector2 = {x:pt2.x, y:0};
this.localToGlobal(subVector2);
var pt = {x:clip.dx * 18, y:clip.dy * 18};
this.globalToLocal(pt);
var subVector = {x:pt.x, y:0};
this.localToGlobal(subVector);
var xSub2 = ((subVector2.x - subVector.x) / 9);
var ySub2 = ((subVector2.y - subVector.y) / 9);
clip2.dx = clip2.dx - xSub2;
clip2.dy = clip2.dy - ySub2;
var ang2 = Math.atan2(clip2.dy, clip2.dx);
}
}
Instance of Symbol 430 MovieClip "controller" in Frame 28
onClipEvent (load) {
function getDistanceSquare(clip, clip2) {
var xp = (clip._x - clip2._x);
var yp = (clip._y - clip2._y);
return((xp * xp) + (yp * yp));
}
function tapebois() {
if (clip3.moving == true) {
_root.tapebois.gotoAndPlay("play");
} else {
_root.tapebois.gotoAndStop("stop");
}
}
function interrain() {
if (clip3._x < bgLeft) {
tapebois();
clip3.dx = Math.abs(dx);
clip3.dx = clip3.dx / friction;
clip3.dy = clip3.dy / friction;
} else if (bgRight < clip3._x) {
tapebois();
clip3.dx = -Math.abs(dx);
clip3.dx = clip3.dx / friction;
clip3.dy = clip3.dy / friction;
} else if (clip3._y < bgTop) {
tapebois();
clip3.dy = Math.abs(dy);
clip3.dx = clip3.dx / friction;
clip3.dy = clip3.dy / friction;
} else if (bgBottom < clip3._y) {
tapebois();
clip3.dy = -Math.abs(dy);
clip3.dx = clip3.dx / friction;
clip3.dy = clip3.dy / friction;
}
}
function outterrain() {
if (clip3._x < bgLeft2) {
clip3.dx = 0;
clip3.dy = 0;
clip3._x = -1000;
clip3._y = 1000;
clip3._visible = false;
} else if (bgRight2 < clip3._x) {
clip3.dx = 0;
clip3.dy = 0;
clip3._x = -1000;
clip3._y = 1000;
clip3._visible = false;
}
if (clip3._y < bgTop2) {
clip3.dx = 0;
clip3.dy = 0;
clip3._x = -1000;
clip3._y = 1000;
clip3._visible = false;
} else if (bgBottom2 < clip3._y) {
clip3.dx = 0;
clip3.dy = 0;
clip3._x = -1000;
clip3._y = 1000;
clip3._visible = false;
}
}
ballsArray = [];
var n = 0;
while (n < 8) {
ballsArray[n] = _root["b" + n];
n++;
}
friction = 1.68;
var k = 0;
while (k < ballsArray.length) {
ballsArray[k].dx = 0;
ballsArray[k].dy = 0;
ballsArray[k].moving = false;
ballsArray[k].disabled = false;
k++;
}
diameter = _root.b7._width;
diameterSquare = diameter * diameter;
bgLeft = 44 + (diameter / 2);
bgRight = 398 - (diameter / 2);
bgTop = 10 + (diameter / 2);
bgBottom = 587 - (diameter / 2);
bgLeft2 = 40 + (diameter / 2);
bgRight2 = 410 - (diameter / 2);
bgTop2 = 1 + (diameter / 2);
bgBottom2 = 595 - (diameter / 2);
}
onClipEvent (enterFrame) {
if (((((((_root.vol == 0) && (_root.vol1 == 0)) && (_root.vol2 == 0)) && (_root.vol3 == 0)) && (_root.vol4 == 0)) && (_root.vol5 == 0)) && (_root.vol6 == 0)) {
var k = 0;
while (k < ballsArray.length) {
clip = ballsArray[k];
if (clip.moving == false) {
} else if (clip.disabled) {
} else if (clip.bounced) {
} else {
var m = 0;
while (m < ballsArray.length) {
clip2 = ballsArray[m];
if ((k >= m) && (clip2.moving)) {
} else if (clip2.disabled) {
} else {
xoff = clip2._x - clip._x;
if ((xoff < (-diameter)) || (diameter < xoff)) {
} else {
yoff = clip2._y - clip._y;
if ((yoff < (-diameter)) || (diameter < yoff)) {
} else if (diameterSquare < ((xoff * xoff) + (yoff * yoff))) {
} else {
clip.moving = true;
clip2.moving = true;
if (clip == _root.b0) {
_root.bouncer.bounce2(clip, clip2);
} else if (clip2 == _root.b0) {
_root.bouncer.bounce3(clip, clip2);
} else {
_root.bouncer.bounce(clip, clip2);
}
if (clip2.moving == true) {
_root.hasard = random(2);
if (_root.hasard == 0) {
_root.clak.gotoAndPlay("play");
} else if (_root.hasard == 1) {
_root.clak2.gotoAndPlay("play");
}
} else {
_root.clak.gotoAndStop("stop");
}
}
}
}
m++;
}
}
k++;
}
}
}
onClipEvent (enterFrame) {
var p = 0;
while (p < ballsArray.length) {
clip3 = ballsArray[p];
if (clip3.disabled) {
} else if (clip3.moving == false) {
} else {
clip3.dx = clip3.dx - clip3.frictionX;
clip3.dy = clip3.dy - clip3.frictionY;
clip3._x = clip3._x + clip3.dx;
clip3._y = clip3._y + clip3.dy;
dx = clip3.dx;
dy = clip3.dy;
if (((((((_root.vol == 0) && (_root.vol1 == 0)) && (_root.vol2 == 0)) && (_root.vol3 == 0)) && (_root.vol4 == 0)) && (_root.vol5 == 0)) && (_root.vol6 == 0)) {
interrain();
} else if (((((((_root.vol == 1) || (_root.vol1 == 1)) || (_root.vol2 == 1)) || (_root.vol3 == 1)) || (_root.vol4 == 1)) || (_root.vol5 == 1)) || (_root.vol6 == 1)) {
outterrain();
}
if (((dx * dx) + (dy * dy)) < 0.003) {
clip3.dx = 0;
clip3.dy = 0;
clip3.frictionX = 0;
clip3.frictionY = 0;
clip3.moving = false;
}
}
p++;
}
}
Instance of Symbol 432 MovieClip "impact" in Frame 28
/* no clip actions */
Frame 35
stop();
removeMovieClip(_root.leftpaddle);
removeMovieClip(_root.rightpaddle);
if ((_root.iAmPlayer == 1) && (_root.joueur == 1)) {
_level30.result.count = 0;
} else if ((_root.iAmPlayer == 2) && (_root.joueur == 1)) {
_level30.result.gotoAndStop("j1Rejouer");
_root.gotoAndStop("game");
_root.relance = 1;
} else if ((_root.iAmPlayer == 2) && (_root.joueur == 2)) {
_level30.result.count = 0;
} else if ((_root.iAmPlayer == 1) && (_root.joueur == 2)) {
_level30.result.gotoAndStop("j2Rejouer");
_root.gotoAndStop("game");
_root.relance = 2;
}
Frame 40
stop();
removeMovieClip(_root.b0);
removeMovieClip(_root.b1);
removeMovieClip(_root.b2);
removeMovieClip(_root.b3);
removeMovieClip(_root.b4);
removeMovieClip(_root.b5);
removeMovieClip(_root.b6);
removeMovieClip(_root.leftpaddle);
removeMovieClip(_root.rightpaddle);
bls2 = 0;
bls1 = 0;
_root.scoreJ1 = _root.scoreJ1 + ((_root.b1j1 + _root.b2j1) + _root.b3j1);
_root.scoreJ2 = _root.scoreJ2 + ((_root.b1j2 + _root.b2j2) + _root.b3j2);
if (((_root.b1j1 == 1) || (_root.b2j1 == 1)) || (_root.b3j1 == 1)) {
_root.meneGagner = 1;
} else if (((_root.b1j2 == 1) || (_root.b2j2 == 1)) || (_root.b3j2 == 1)) {
_root.meneGagner = 2;
}
_root.mene = _root.mene + 1;
_root.result.gotoAndStop("menegagner");
if (_root.partie == 13) {
if (_root.scoreJ1 >= 13) {
_root.scoreJ1 = 13;
_root.result.gotoAndStop("debut");
gotoAndStop (45);
}
if (_root.scoreJ2 >= 13) {
_root.scoreJ2 = 13;
_root.result.gotoAndStop("debut");
gotoAndStop (45);
}
} else if (_root.partie == 7) {
if (_root.scoreJ1 >= 7) {
_root.scoreJ1 = 7;
_root.result.gotoAndStop("debut");
gotoAndStop (45);
}
if (_root.scoreJ2 >= 7) {
_root.scoreJ2 = 7;
_root.result.gotoAndStop("debut");
gotoAndStop (45);
}
}
Frame 45
stop();
if (_root.scoreJ2 < _root.scoreJ1) {
_root.fenetreScore.winMsg = ("C'est " + leftId) + " qui gagne cette partie";
_root.meneGagner = 2;
} else {
_root.fenetreScore.winMsg = ("C'est " + rightId) + " qui gagne cette partie";
_root.meneGagner = 1;
}
Instance of Symbol 450 MovieClip "rightpaddle" in Frame 45
onClipEvent (enterFrame) {
this.msgf2._rotation = -_rotation;
this.lisa.ombre._rotation = -_rotation;
this.lucien.ombre._rotation = -_rotation;
this.bob.ombre._rotation = -_rotation;
if ((_root.pers2 == 1) && (_root.pers1 != 1)) {
_root.teteP2.gotoAndStop("teteLisa");
this.lisa.gotoAndStop("debout");
this.lucien.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
this.ombre._width = 90;
this.ombre._height = 70;
} else if ((_root.pers2 == 1) && (_root.pers1 == 1)) {
_root.teteP2.gotoAndStop("teteLisa2");
this.lisa.gotoAndStop("debout2");
this.lucien.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
this.ombre._width = 90;
this.ombre._height = 70;
} else if ((_root.pers2 == 2) && (_root.pers1 != 2)) {
_root.teteP2.gotoAndStop("teteLucien");
this.lucien.gotoAndStop("debout");
this.lisa.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
} else if ((_root.pers2 == 2) && (_root.pers1 == 2)) {
_root.teteP2.gotoAndStop("teteLucien2");
this.lucien.gotoAndStop("debout2");
this.lisa.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
} else if ((_root.pers2 == 3) && (_root.pers1 != 3)) {
_root.teteP2.gotoAndStop("teteBob");
this.bob.gotoAndStop("debout");
this.lisa.gotoAndStop("invisible");
this.lucien.gotoAndStop("invisible");
} else if ((_root.pers2 == 3) && (_root.pers1 == 3)) {
_root.teteP2.gotoAndStop("teteBob2");
this.bob.gotoAndStop("debout2");
this.lisa.gotoAndStop("invisible");
this.lucien.gotoAndStop("invisible");
}
this._x = 630;
this._y = 470;
_rotation = (((angle * 180) / Math.PI) + 180);
angle = 1.65;
}
Instance of Symbol 451 MovieClip "leftpaddle" in Frame 45
onClipEvent (enterFrame) {
this.msgf1._rotation = -_rotation;
this.lisa.ombre._rotation = -_rotation;
this.lucien.ombre._rotation = -_rotation;
this.bob.ombre._rotation = -_rotation;
if (_root.pers1 == 2) {
_root.teteP1.gotoAndStop("teteLucien");
this.lucien.gotoAndStop("assis");
this.lisa.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
} else if (_root.pers1 == 1) {
_root.teteP1.gotoAndStop("teteLisa");
this.lisa.gotoAndStop("assis");
this.lucien.gotoAndStop("invisible");
this.bob.gotoAndStop("invisible");
this.ombre._width = 90;
this.ombre._height = 70;
} else if (_root.pers1 == 3) {
_root.teteP1.gotoAndStop("teteBob");
this.bob.gotoAndStop("assis");
this.lucien.gotoAndStop("invisible");
this.lisa.gotoAndStop("invisible");
this.ombre._width = 90;
this.ombre._height = 70;
}
this._x = 683;
this._y = 329;
_rotation = (((angle * 180) / Math.PI) + 180);
angle = -0.25;
}
Symbol 3 Button
on (release) {
trace(this.id);
this.select(this.id);
}
on (press) {
this.bg.ioSetHex("3FBCBC");
}
on (rollOver) {
this.bg.ioSetHex("339999");
}
on (rollOut, dragOut) {
this.bg.ioSetHex("277676");
}
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 8
_root.onLigne = 1;
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 16 MovieClip [scrollingSelectItem] Frame 1
Object.io.implements(this.bg, Object.io.MovieClip);
stop();
Symbol 16 MovieClip [scrollingSelectItem] Frame 6
stop();
Symbol 16 MovieClip [scrollingSelectItem] Frame 7
stop();
Symbol 16 MovieClip [scrollingSelectItem] Frame 8
stop();
Symbol 28 Button
on (press) {
_parent.scroll(1);
}
on (release) {
_parent.scroll(0);
}
on (rollOver) {
scrollUpButton.gotoAndStop("over");
}
on (rollOut, dragOut) {
scrollUpButton.gotoAndStop("off");
}
Symbol 36 Button
on (press) {
_parent.scroll(-1);
}
on (release) {
_parent.scroll(0);
}
on (rollOver) {
scrollDnButton.gotoAndStop("over");
}
on (rollOut, dragOut) {
scrollDnButton.gotoAndStop("off");
}
Symbol 40 Button
on (press) {
this.startDrag(false, _parent.scrubTrack._x, 0, _parent.scrubTrack._width - 1, 0);
_parent.scroller.engage();
}
on (release, releaseOutside) {
this.stopDrag();
_parent.scroller.disengage();
}
Symbol 49 MovieClip [scrollingSelect] Frame 1
scrollDelta = 8;
maskHeight = maskMc._height;
scroll = function (dir) {
if (dir == 0) {
scrollLoop.end();
}
if (dir == 1) {
scrollLoop.reset();
scrollLoop = new Object.io.frameLoop();
scrollLoop.addFrame(this, "scrollUp");
scrollUp();
}
if (dir == -1) {
scrollLoop.reset();
scrollLoop = new Object.io.frameLoop();
scrollLoop.addFrame(this, "scrollDn");
scrollDn();
}
};
scrollUp = function () {
if (maskHeight < maskMc.ioListMc._height) {
if ((maskMc.ioListMc._y + scrollDelta) < maskY) {
maskMc.ioListMc._y = maskMc.ioListMc._y + scrollDelta;
} else {
maskMc.ioListMc._y = maskY;
scrollLoop.end();
}
scrollAdjust();
}
};
scrollDn = function () {
if (maskHeight < maskMc.ioListMc._height) {
if (maskHeight < (((maskMc.ioListMc._y - maskY) + maskMc.ioListMc._height) - scrollDelta)) {
maskMc.ioListMc._y = maskMc.ioListMc._y - scrollDelta;
} else {
maskMc.ioListMc._y = (maskHeight - maskMc.ioListMc._height) + maskY;
scrollLoop.end();
}
scrollAdjust();
}
};
scrollAdjust = function () {
var ratio = ((maskMc.ioListMc._y - maskY) / (maskHeight - maskMc.ioListMc._height));
var total = scrollBar.scrubTrack._width;
scrollBar.handle._x = int(ratio * total);
};
scrollCorrect = function () {
var returnVal = null;
if ((maskHeight >= ((maskMc.ioListMc._y + maskY) + maskMc.ioListMc._height)) && (maskMc.ioListMc._height >= maskHeight)) {
var returnVal = ((maskHeight - maskMc.ioListMc._height) + maskY);
}
if (maskHeight >= maskMc.ioListMc._height) {
var returnVal = maskY;
}
return(returnVal);
};
scrollHandleCorrect = function () {
if ((maskHeight >= ((maskMc.ioListMc._y + maskY) + maskMc.ioListMc._height)) && (maskMc.ioListMc._height >= maskHeight)) {
scrollBar.handle._x = scrollBar.scrubTrack._width;
}
if (maskHeight >= maskMc.ioListMc._height) {
scrollBar.handle._x = 0;
}
};
setScrollVis = function () {
if (maskHeight < maskMc.ioListMc._height) {
scrollUpContainer._visible = true;
scrollDnContainer._visible = true;
scrollBar._visible = true;
scrollBarBg._visible = true;
} else {
scrollUpContainer._visible = false;
scrollDnContainer._visible = false;
scrollBar._visible = false;
scrollBarBg._visible = false;
}
};
stop();
Instance of Symbol 44 MovieClip "scrollBar" in Symbol 49 MovieClip [scrollingSelect] Frame 1
onClipEvent (load) {
this._visible = false;
this._parent.scrollUpContainer._visible = false;
this._parent.scrollDnContainer._visible = false;
this._parent.scrollBarBg._visible = false;
scrubTrack._width = _parent.maskHeight - 30;
this._parent.paneBg._height = _parent.maskHeight;
this._parent.scrollBarBg._height = _parent.maskHeight;
this._parent.paneStroke._height = _parent.maskHeight + 3;
xform = function (inObj, outObj, inValue) {
var inLow = 0;
var inHi = (inObj._parent.scrubTrack._width - 1);
var outLow = 0;
var outHi = (outObj._parent._parent.maskHeight - outObj._height);
var outValue = int((((inValue - inLow) / (inHi - inLow)) * (outHi - outLow)) + outLow);
var correctValue = outObj._parent.scrollCorrect();
if (correctValue != null) {
return(correctValue);
}
return(outValue);
};
this.scroller = new Object.io.clutch(handle, "_x", _parent.maskMc.ioListMc, "_y");
this.scroller.setTransform(xform);
this.scroller.setLinger(2);
}
Instance of Symbol 48 MovieClip "maskMc" in Symbol 49 MovieClip [scrollingSelect] Frame 1
onClipEvent (load) {
_parent.maskY = this.ioListMc._y;
}
Symbol 65 Button
on (release) {
getURL ("http://www.medialocco.com");
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 73 Button
on (release) {
_root.gotoAndStop("game");
_root.gagner = 2;
this.gotoAndStop("debut");
}
Symbol 79 Button
on (release) {
_root.gotoAndStop("game");
_root.gagner = 1;
this.gotoAndStop("debut");
}
Symbol 84 Button
on (release) {
_root.gotoAndStop("game");
gotoAndStop (1);
}
Symbol 89 Button
on (release) {
getURL ("mailto:mmilocco@hotmail.com");
}
Symbol 90 Button
on (release) {
getURL ("http://www.medialocco.com", "medialocco");
}
Symbol 91 Button
on (release) {
getURL ("http://www.petanque52.com", "petanque52");
}
Symbol 95 Button
on (release) {
this.gotoAndStop("debut");
}
Symbol 100 MovieClip Frame 1
_root.relance = 0;
_root.count = 0;
_visible = true;
stop();
Symbol 100 MovieClip Frame 7
stop();
Symbol 100 MovieClip Frame 13
stop();
Symbol 100 MovieClip Frame 19
if (_root.meneGagner == 1) {
_root.result.nom = _root.leftId;
} else if (_root.meneGagner == 2) {
_root.result.nom = _root.rightId;
}
_root.shoot = 0;
_root.bravo.gotoAndPlay("play");
stop();
Symbol 101 Button
on (release) {
radio1.gotoAndStop("inactif");
radio2.gotoAndStop("actif");
radio = 1;
}
Symbol 102 Button
on (release) {
radio1.gotoAndStop("actif");
radio2.gotoAndStop("inactif");
radio = 0;
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 5
stop();
Symbol 108 Button
on (release) {
if (radio == 1) {
_root.partie = 13;
gotoAndStop (1);
_root.gotoAndStop("player1");
} else if (radio == 0) {
_root.partie = 7;
gotoAndStop (1);
_root.gotoAndStop("player1");
}
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 2
stop();
radio = 1;
radio1.gotoAndStop("inactif");
radio2.gotoAndStop("actif");
Symbol 122 Button
on (release) {
_root.result.swapDepths(100);
_root.result.gotoAndStop("petanque52");
}
Symbol 126 Button
on (release) {
_root.pers1 = 3;
gotoAndStop (13);
}
Symbol 127 Button
on (release) {
_root.pers1 = 1;
gotoAndStop (13);
}
Symbol 128 Button
on (release) {
_root.pers1 = 2;
gotoAndStop (13);
}
Symbol 132 Button
on (release) {
_root.pers2 = 3;
gotoAndPlay (21);
}
Symbol 133 Button
on (release) {
_root.pers2 = 1;
gotoAndPlay (21);
}
Symbol 134 Button
on (release) {
_root.pers2 = 2;
gotoAndPlay (21);
}
Symbol 146 Button
on (release) {
toggleHighQuality();
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 8
stop();
Symbol 179 MovieClip Frame 15
stop();
Symbol 179 MovieClip Frame 23
stop();
Symbol 179 MovieClip Frame 32
stop();
Symbol 179 MovieClip Frame 40
stop();
Symbol 179 MovieClip Frame 49
stop();
Symbol 199 MovieClip Frame 10
stop();
Symbol 200 MovieClip Frame 1
Sound.prototype.mute = function () {
if (!this.muted) {
this.oldVol = this.getVolume();
this.setVolume(0);
_root.cigale.gotoAndStop("morte");
} else {
this.setVolume(this.oldVol);
_root.cigale.gotoAndStop("chante");
}
this.muted = !this.muted;
};
_root.son_ambiance = new Sound(this);
_root.son_ambiance.attachSound("cigale2");
_root.son_ambiance.start(0, 10000);
_root.son_ambiance.setVolume(50);
stop();
Symbol 200 MovieClip Frame 10
stop();
Symbol 201 Button
on (release) {
_root.son_ambiance.mute();
}
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 6
stop();
Symbol 220 MovieClip Frame 1
if (_root.playeur == 1) {
bl.gotoAndStop("bl1");
} else if (_root.playeur == 2) {
bl.gotoAndStop("bl2");
}
Symbol 229 MovieClip Frame 3
_root.lance1.gotoAndPlay("play");
Symbol 229 MovieClip Frame 46
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 237 MovieClip Frame 3
_root.lance1.gotoAndPlay("play");
Symbol 237 MovieClip Frame 50
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 251 MovieClip Frame 3
_root.lance1.gotoAndPlay("play");
Symbol 251 MovieClip Frame 46
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 252 MovieClip Frame 3
_root.lance1.gotoAndPlay("play");
Symbol 252 MovieClip Frame 50
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 8
if (_root.joueur == 1) {
_root.leftpaddle.angle = 1.55;
_root.stick.angle = 1.55;
_root.bls1 = _root.bls1 + 1;
} else if (_root.joueur == 2) {
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
_root.bls2 = _root.bls2 + 1;
}
_root.meneGagner = 0;
stop();
Symbol 263 MovieClip Frame 14
_root.j1ok = 0;
_root.j2ok = 0;
stop();
Symbol 263 MovieClip Frame 24
if (_root.joueur == 1) {
_root.leftpaddle.angle = 1.55;
_root.stick.angle = 1.55;
} else if (_root.joueur == 2) {
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
}
stop();
Symbol 263 MovieClip Frame 31
_root.result.gotoAndStop("debut");
_root.j1ok = 0;
_root.j2ok = 0;
stop();
Symbol 263 MovieClip Frame 39
stop();
Symbol 263 MovieClip Frame 52
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
_root.bls2 = _root.bls2 + 1;
_root.meneGagner = 0;
stop();
Symbol 263 MovieClip Frame 59
_root.j1ok = 0;
_root.j2ok = 0;
stop();
Symbol 263 MovieClip Frame 69
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
stop();
Symbol 263 MovieClip Frame 76
_root.result.gotoAndStop("debut");
_root.j1ok = 0;
_root.j2ok = 0;
stop();
Symbol 263 MovieClip Frame 84
stop();
Symbol 263 MovieClip Frame 90
stop();
Symbol 263 MovieClip Frame 96
stop();
Symbol 271 MovieClip Frame 3
_root.lance2.gotoAndPlay("play");
Symbol 271 MovieClip Frame 50
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 273 MovieClip Frame 3
_root.lance2.gotoAndPlay("play");
Symbol 273 MovieClip Frame 50
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 283 MovieClip Frame 3
_root.lance2.gotoAndPlay("play");
Symbol 283 MovieClip Frame 50
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 285 MovieClip Frame 3
_root.lance2.gotoAndPlay("play");
Symbol 285 MovieClip Frame 50
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 8
if (_root.joueur == 1) {
_root.leftpaddle.angle = 1.55;
_root.stick.angle = 1.55;
_root.bls1 = _root.bls1 + 1;
} else if (_root.joueur == 2) {
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
_root.bls2 = _root.bls2 + 1;
}
_root.meneGagner = 0;
stop();
Symbol 288 MovieClip Frame 14
_root.j1ok = 0;
_root.j2ok = 0;
stop();
Symbol 288 MovieClip Frame 24
if (_root.joueur == 1) {
_root.leftpaddle.angle = 1.55;
_root.stick.angle = 1.55;
} else if (_root.joueur == 2) {
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
}
stop();
Symbol 288 MovieClip Frame 31
_root.result.gotoAndStop("debut");
_root.j1ok = 0;
_root.j2ok = 0;
stop();
Symbol 288 MovieClip Frame 39
stop();
Symbol 288 MovieClip Frame 46
stop();
Symbol 288 MovieClip Frame 52
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
_root.bls2 = _root.bls2 + 1;
_root.meneGagner = 0;
stop();
Symbol 288 MovieClip Frame 59
_root.j1ok = 0;
_root.j2ok = 0;
stop();
Symbol 288 MovieClip Frame 69
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
stop();
Symbol 288 MovieClip Frame 76
_root.j1ok = 0;
_root.j2ok = 0;
stop();
Symbol 288 MovieClip Frame 84
stop();
Symbol 288 MovieClip Frame 90
stop();
Symbol 288 MovieClip Frame 96
stop();
Symbol 298 MovieClip Frame 3
_root.lance2.gotoAndPlay("play");
Symbol 298 MovieClip Frame 50
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 304 MovieClip Frame 3
_root.lance2.gotoAndPlay("play");
Symbol 304 MovieClip Frame 50
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 320 MovieClip Frame 3
_root.lance2.gotoAndPlay("play");
Symbol 320 MovieClip Frame 50
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 325 MovieClip Frame 3
_root.lance2.gotoAndPlay("play");
Symbol 325 MovieClip Frame 50
_root.power.power2._xscale = 0;
_root.stick.distance = 0;
_root.bout = 0;
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 8
if (_root.joueur == 1) {
_root.leftpaddle.angle = 1.55;
_root.stick.angle = 1.55;
_root.bls1 = _root.bls1 + 1;
} else if (_root.joueur == 2) {
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
_root.bls2 = _root.bls2 + 1;
}
_root.meneGagner = 0;
stop();
Symbol 329 MovieClip Frame 14
_root.j1ok = 0;
_root.j2ok = 0;
stop();
Symbol 329 MovieClip Frame 24
if (_root.joueur == 1) {
_root.leftpaddle.angle = 1.55;
_root.stick.angle = 1.55;
} else if (_root.joueur == 2) {
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
}
stop();
Symbol 329 MovieClip Frame 31
_root.j1ok = 0;
_root.j2ok = 0;
_root.result.gotoAndStop("debut");
stop();
Symbol 329 MovieClip Frame 39
stop();
Symbol 329 MovieClip Frame 46
stop();
Symbol 329 MovieClip Frame 52
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
_root.bls2 = _root.bls2 + 1;
_root.meneGagner = 0;
stop();
Symbol 329 MovieClip Frame 59
_root.j1ok = 0;
_root.j2ok = 0;
stop();
Symbol 329 MovieClip Frame 69
_root.rightpaddle.angle = 1.55;
_root.stick.angle = 1.55;
stop();
Symbol 329 MovieClip Frame 76
_root.j1ok = 0;
_root.j2ok = 0;
stop();
Symbol 329 MovieClip Frame 84
stop();
Symbol 329 MovieClip Frame 90
stop();
Symbol 329 MovieClip Frame 96
stop();
Symbol 362 MovieClip Frame 1
stop();
function kick(s, h) {
speed = s;
height = h;
heightDir = 1;
currentHeight = 1;
}
function render() {
if ((speed != 0) || (currentHeight != 0)) {
point = {x:0, y:speed * -1};
localToGlobal(point);
_x = point.x;
_y = point.y;
spoint = {x:_x + 1, y:_y + 1};
globalToLocal(spoint);
shadow._x = spoint.x + 1;
shadow._y = spoint.y + 1;
currentheight = currentheight + heightDir;
if ((height < currentheight) || (currentheight < 0)) {
heightDir = heightDir * -1;
if (currentheight < 0) {
height = height * gravity;
}
}
point.y = point.y - currentheight;
globalToLocal(point);
shape._x = point.x;
shape._y = point.y;
shape._xscale = (shape._yscale = 100 + (currentHeight * 5));
speed = speed * friction;
if (speed < 1) {
speed = 0;
}
}
}
friction = 0.99;
gravity = 0.1;
Symbol 362 MovieClip Frame 2
stop();
Symbol 363 MovieClip Frame 1
stop();
function kick(s, h) {
speed = s;
height = h;
heightDir = 1;
currentHeight = 1;
}
function render() {
if ((speed != 0) || (currentHeight != 0)) {
point = {x:0, y:speed * -1};
localToGlobal(point);
_x = point.x;
_y = point.y;
spoint = {x:_x + 1, y:_y + 1};
globalToLocal(spoint);
shadow._x = spoint.x + 1;
shadow._y = spoint.y + 1;
currentheight = currentheight + heightDir;
if ((height < currentheight) || (currentheight < 0)) {
heightDir = heightDir * -1;
if (currentheight < 0) {
height = height * gravity;
}
}
point.y = point.y - currentheight;
globalToLocal(point);
shape._x = point.x;
shape._y = point.y;
shape._xscale = (shape._yscale = 100 + (currentHeight * 5));
speed = speed * friction;
if (speed < 1) {
speed = 0;
}
}
}
friction = 0.99;
gravity = 0.1;
Symbol 363 MovieClip Frame 2
stop();
Symbol 364 MovieClip Frame 1
stop();
function kick(s, h) {
speed = s;
height = h;
heightDir = 1;
currentHeight = 1;
}
function render() {
if ((speed != 0) || (currentHeight != 0)) {
point = {x:0, y:speed * -1};
localToGlobal(point);
_x = point.x;
_y = point.y;
spoint = {x:_x + 1, y:_y + 1};
globalToLocal(spoint);
shadow._x = spoint.x + 1;
shadow._y = spoint.y + 1;
currentheight = currentheight + heightDir;
if ((height < currentheight) || (currentheight < 0)) {
heightDir = heightDir * -1;
if (currentheight < 0) {
height = height * gravity;
}
}
point.y = point.y - currentheight;
globalToLocal(point);
shape._x = point.x;
shape._y = point.y;
shape._xscale = (shape._yscale = 100 + (currentHeight * 5));
speed = speed * friction;
if (speed < 1) {
speed = 0;
}
}
}
friction = 0.99;
gravity = 0.1;
Symbol 364 MovieClip Frame 2
stop();
Symbol 365 MovieClip Frame 1
stop();
function kick(s, h) {
speed = s;
height = h;
heightDir = 1;
currentHeight = 1;
}
function render() {
if ((speed != 0) || (currentHeight != 0)) {
point = {x:0, y:speed * -1};
localToGlobal(point);
_x = point.x;
_y = point.y;
spoint = {x:_x + 1, y:_y + 1};
globalToLocal(spoint);
shadow._x = spoint.x + 1;
shadow._y = spoint.y + 1;
currentheight = currentheight + heightDir;
if ((height < currentheight) || (currentheight < 0)) {
heightDir = heightDir * -1;
if (currentheight < 0) {
height = height * gravity;
}
}
point.y = point.y - currentheight;
globalToLocal(point);
shape._x = point.x;
shape._y = point.y;
shape._xscale = (shape._yscale = 100 + (currentHeight * 5));
speed = speed * friction;
if (speed < 1) {
speed = 0;
}
}
}
friction = 0.99;
gravity = 0.1;
Symbol 365 MovieClip Frame 2
stop();
Symbol 367 MovieClip Frame 1
stop();
function kick(s, h) {
speed = s;
height = h;
heightDir = 1;
currentHeight = 1;
}
function render() {
if ((speed != 0) || (currentHeight != 0)) {
point = {x:0, y:speed * -1};
localToGlobal(point);
_x = point.x;
_y = point.y;
spoint = {x:_x + 1, y:_y + 1};
globalToLocal(spoint);
shadow._x = spoint.x + 1;
shadow._y = spoint.y + 1;
currentheight = currentheight + heightDir;
if ((height < currentheight) || (currentheight < 0)) {
heightDir = heightDir * -1;
if (currentheight < 0) {
height = height * gravity;
}
}
point.y = point.y - currentheight;
globalToLocal(point);
shape._x = point.x;
shape._y = point.y;
shape._xscale = (shape._yscale = 100 + (currentHeight * 5));
speed = speed * friction;
if (speed < 1) {
speed = 0;
}
}
}
friction = 0.99;
gravity = 0.1;
Symbol 367 MovieClip Frame 2
stop();
Symbol 368 MovieClip Frame 1
stop();
function kick(s, h) {
speed = s;
height = h;
heightDir = 1;
currentHeight = 1;
}
function render() {
if ((speed != 0) || (currentHeight != 0)) {
point = {x:0, y:speed * -1};
localToGlobal(point);
_x = point.x;
_y = point.y;
spoint = {x:_x + 1, y:_y + 1};
globalToLocal(spoint);
shadow._x = spoint.x + 1;
shadow._y = spoint.y + 1;
currentheight = currentheight + heightDir;
if ((height < currentheight) || (currentheight < 0)) {
heightDir = heightDir * -1;
if (currentheight < 0) {
height = height * gravity;
}
}
point.y = point.y - currentheight;
globalToLocal(point);
shape._x = point.x;
shape._y = point.y;
shape._xscale = (shape._yscale = 100 + (currentHeight * 5));
speed = speed * friction;
if (speed < 1) {
speed = 0;
}
}
}
friction = 0.99;
gravity = 0.1;
Symbol 368 MovieClip Frame 2
stop();
Symbol 369 MovieClip Frame 1
stop();
function kick(s, h) {
speed = s;
height = h;
heightDir = 1;
currentHeight = 1;
}
function render() {
if ((speed != 0) || (currentHeight != 0)) {
point = {x:0, y:speed * -1};
localToGlobal(point);
_x = point.x;
_y = point.y;
spoint = {x:_x + 1, y:_y + 1};
globalToLocal(spoint);
shadow._x = spoint.x + 1;
shadow._y = spoint.y + 1;
currentheight = currentheight + heightDir;
if ((height < currentheight) || (currentheight < 0)) {
heightDir = heightDir * -1;
if (currentheight < 0) {
height = height * gravity;
}
}
point.y = point.y - currentheight;
globalToLocal(point);
shape._x = point.x;
shape._y = point.y;
shape._xscale = (shape._yscale = 100 + (currentHeight * 5));
speed = speed * friction;
if (speed < 1) {
speed = 0;
}
}
}
friction = 0.99;
gravity = 0.1;
Symbol 369 MovieClip Frame 2
stop();
Symbol 375 Button
on (release) {
_root.pile = 1;
_root.face = 0;
_root.textface._y = -1000;
_root.ou._y = -1000;
_root.piece.gotoAndPlay("start");
}
Symbol 380 Button
on (release) {
_root.pile = 0;
_root.face = 1;
_root.textpile._y = -1000;
_root.ou._y = -1000;
_root.piece.gotoAndPlay("start");
}
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 27
az = random(2);
if (az == 0) {
gotoAndStop (28);
} else if (az == 1) {
gotoAndStop (29);
}
stop();
Symbol 387 MovieClip Frame 28
_root.tirage = 1;
if (((_root.tirage == 1) && (_root.pile == 1)) && (_root.face == 0)) {
_root.result.gotoAndStop("gagner");
}
if (((_root.tirage == 1) && (_root.face == 1)) && (_root.pile == 0)) {
_root.result.gotoAndStop("perdu");
}
stop();
Symbol 387 MovieClip Frame 29
_root.tirage = 2;
if (((_root.tirage == 2) && (_root.face == 1)) && (_root.pile == 0)) {
_root.result.gotoAndStop("gagner");
}
if (((_root.tirage == 2) && (_root.pile == 1)) && (_root.face == 0)) {
_root.result.gotoAndStop("perdu");
}
stop();
Instance of Symbol 50 MovieClip [empty] in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
Object.io.stepLoops();
}
Symbol 391 Button
on (press) {
if (_root.tire == 0) {
_root.stick._x = 215;
_root.stick._y = 500;
_root.result.count = 0;
_root.gagner = 0;
_root.stick.dragging = true;
}
if (_root.joueur == 1) {
_root.leftpaddle.dragging = true;
} else if (_root.joueur == 2) {
_root.rightpaddle.dragging = true;
}
_root.boutRelance = 0;
}
on (release) {
if (_root.bout == 0) {
_root.bout = 1;
_root.stick.countangle = 1;
} else if (_root.bout == 1) {
if (_root.shoot == 0) {
_root.b0.kick(random(1) + 1, _root.stick.countangle);
_root.stick.animate = true;
}
if (_root.shoot == 2) {
_root.stick.mouvementhaut();
_root.stick.animate = true;
}
if (_root.shoot == 4) {
_root.stick.mouvementhaut();
_root.stick.animate = true;
}
if (_root.shoot == 6) {
_root.stick.mouvementhaut();
_root.stick.animate = true;
}
if (_root.shoot == 8) {
_root.stick.mouvementhaut();
_root.stick.animate = true;
}
if (_root.shoot == 10) {
_root.stick.mouvementhaut();
_root.stick.animate = true;
}
if (_root.shoot == 12) {
_root.stick.mouvementhaut();
_root.stick.animate = true;
}
_root.bout = 0;
if (_root.stick.dragging) {
_root.stick.dragging = false;
_root.stick.animate = true;
_root.stick.count = 0;
}
}
}
Instance of Symbol 394 MovieClip "fleche" in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.joueur == 1) {
_yscale = (_root.stick.distance / 8);
} else if (_root.joueur == 2) {
_yscale = (_root.stick.distance / 8);
} else if (_root.joueur == 3) {
_yscale = (_root.stick.distance / 8);
} else if (_root.joueur == 4) {
_yscale = (_root.stick.distance / 8);
}
}
Symbol 414 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 418 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 1
stop();
Symbol 435 Button
on (release) {
relancebout = "<message type=\"relance\" bout=\"1\" />";
_root.jeuxsock.send(relancebout);
if (joueur == 1) {
_root.gagner = 1;
} else if (joueur == 2) {
_root.gagner = 2;
}
gotoAndStop (28);
}
Symbol 438 Button
on (release) {
_root.scoreJ1 = 0;
_root.scoreJ2 = 0;
_root.mene = 1;
_root.gotoAndStop("game");
}
Symbol 449 MovieClip Frame 1
_root.bravo.gotoAndPlay("play");
stop();