Frame 1
_quality = "LOW";
var load_time = new Date();
var milliseconds_time = (load_time.getMinutes() * 60000);
milliseconds_time = milliseconds_time + (load_time.getSeconds() * 1000);
milliseconds_time = milliseconds_time + load_time.getMilliseconds();
var last_click_time = milliseconds_time;
_root.txtActions = "";
stop();
Frame 15
gotoAndPlay (16);
Frame 66
var load_time = new Date();
var milliseconds_time = (load_time.getMinutes() * 60000);
milliseconds_time = milliseconds_time + (load_time.getSeconds() * 1000);
milliseconds_time = milliseconds_time + load_time.getMilliseconds();
var last_click_time = milliseconds_time;
stop();
Frame 80
sx = 4;
sy = 4;
sxx = 4;
syy = 4;
score = 0;
vie = 5;
cx = 1;
nrstage = 1;
laserCounter = 1;
gotoAndStop (81);
Frame 81
function start() {
startDrag ("raquette", true, 28, 390, 372, 390);
wait = 0;
sensx = sx;
sensy = -sy;
sensxx = 0;
sensyy = 0;
hyp = math.sqrt((sx * sx) + (sy * sy));
brique = 30;
laserCounter = 1;
_root.laser._visible = false;
}
play();
Mouse.hide();
start();
Instance of Symbol 70 MovieClip "laser" in Frame 81
onClipEvent (enterFrame) {
this._y = this._y - 10;
if (this._y < 25) {
this.removeMovieClip();
}
}
Frame 82
function suite() {
balle._x = raquette._x;
balle._y = 380;
ballee._x = -30;
ballee._y = 380;
if (sx == 6) {
long = 60 / hyp;
}
if (sx == 4) {
long = 40 / hyp;
}
vitesse = 1;
sensx = sx;
sensy = -sy;
_root.tir._visible = false;
_root.raquette.gotoAndStop(1);
_root.balle.gotoAndStop(1);
_root.ballee.gotoAndStop(1);
_root.raquette.canon.gotoAndStop(1);
lebal = 1;
balvide = 0;
}
suite();
Frame 83
gotoAndPlay (82);
Frame 84
function zerovie() {
if (vie == 0) {
if (sx == 6) {
gotoAndPlay (381);
}
if (sx == 4) {
gotoAndPlay (416);
}
}
}
function reset() {
_root.pil.pilu.gotoandplay(60);
_root.pill.piluu.gotoandplay(60);
_root.pilll.piluuu.gotoandplay(60);
_root.pillll.piluuuu.gotoandplay(60);
_root.pilllll.piluuuuu.gotoandplay(60);
_root.pilllll.rebour3.gotoandstop(1);
_root.pillll.rebour4.gotoandstop(1);
_root.pilll.rebour5.gotoandstop(1);
_root.pill.rebour2.gotoandstop(1);
_root.pil.rebour1.gotoandstop(1);
}
function jeu() {
balle._x = balle._x + sensx;
balle._y = balle._y + sensy;
ballee._x = ballee._x + sensxx;
ballee._y = ballee._y + sensyy;
if (brique == 0) {
nrstage = nrstage + 10;
_root.balle.gotoAndPlay(5);
_root.ballee.gotoAndPlay(5);
gotoAndPlay (305);
}
if (balle._y < 36) {
balle._y = 36;
sensy = -sensy;
}
if ((balle._x < 10) && (sensx < 0)) {
balle._x = 10;
sensx = -sensx;
}
if ((balle._x > 390) && (sensx > 0)) {
balle._x = 390;
sensx = -sensx;
}
if ((balle.hittest(raquette) == true) && (balle._y > 380)) {
balle._y = 380;
if (vitesse == 1) {
sensx = (balle._x - raquette._x) / long;
sensy = -math.sqrt((hyp * hyp) - (sensx * sensx));
}
if (vitesse == 2) {
sensx = ((balle._x - raquette._x) / long) / 2;
sensy = (-math.sqrt((hyp * hyp) - (sensx * sensx))) / 2;
}
_root.leson.gotoandplay(2);
}
if (balle._y > 430) {
balle._x = -50;
balle._y = 100;
lebal = lebal - 1;
sensx = 0;
sensy = 0;
if (lebal == 0) {
reset();
vie = vie - 1;
gotoAndPlay(nrstage + 1 +80);
}
}
if (ballee._y < 36) {
ballee._y = 36;
sensyy = -sensyy;
}
if ((ballee._x < 10) && (sensxx < 0)) {
ballee._x = 10;
sensxx = -sensxx;
}
if ((ballee._x > 390) && (sensxx > 0)) {
ballee._x = 390;
sensxx = -sensxx;
}
if ((ballee.hittest(raquette) == true) && (ballee._y > 380)) {
ballee._y = 380;
if (vitesse == 1) {
sensxx = (ballee._x - raquette._x) / long;
sensyy = -math.sqrt((hyp * hyp) - (sensxx * sensxx));
}
if (vitesse == 2) {
sensxx = ((ballee._x - raquette._x) / long) / 2;
sensyy = (-math.sqrt((hyp * hyp) - (sensxx * sensxx))) / 2;
}
_root.leson.gotoandplay(2);
}
if (ballee._y > 430) {
ballee._x = -50;
ballee._y = 100;
lebal = lebal - 1;
sensxx = 0;
sensyy = 0;
if (lebal == 0) {
reset();
vie = vie - 1;
gotoAndPlay(nrstage + 1 +80);
}
}
zerovie();
if ((bomb.hittest(raquette) == true) && (bomb._y > 380)) {
bon = 0;
raquette.gotoAndPlay(20);
leson.gotoandplay(2);
}
}
jeu();
Frame 85
gotoAndPlay (84);
Frame 91
start();
Frame 92
suite();
Frame 93
gotoAndPlay(nrstage + 1 +80);
Frame 94
jeu();
Frame 95
gotoAndPlay(nrstage + 3 +80);
Frame 101
start();
Frame 102
suite();
Frame 103
gotoAndPlay(nrstage + 1 +80);
Frame 104
jeu();
Frame 105
gotoAndPlay(nrstage + 3 +80);
Frame 111
start();
Frame 112
suite();
Frame 113
gotoAndPlay(nrstage + 1 +80);
Frame 114
jeu();
Frame 115
gotoAndPlay(nrstage + 3 +80);
Frame 121
start();
Frame 122
suite();
Frame 123
gotoAndPlay(nrstage + 1 +80);
Frame 124
jeu();
Frame 125
gotoAndPlay(nrstage + 3 +80);
Frame 131
startDrag ("raquette", true, 25, 390, 375, 390);
sensx = sx;
sensy = -sy;
sensxx = 0;
sensyy = 0;
minuteur = 30;
hyp = 11.3137084989848;
brique = 50;
laserCounter = 1;
_root.laser._visible = false;
Frame 132
balle._x = raquette._x;
balle._y = 380;
ballee._x = -30;
long = 40 / hyp;
vitesse = 1;
sensx = 4;
sensy = -4;
_root.tir._visible = false;
_root.raquette.gotoAndStop(1);
_root.balle.gotoAndStop(1);
_root.ballee.gotoAndStop(1);
_root.raquette.canon.gotoAndStop(1);
Frame 133
gotoAndPlay(nrstage + 1 +80);
Frame 134
balle._x = balle._x + sensx;
balle._y = balle._y + sensy;
if ((brique == 0) || (minuteur == -1)) {
gotoAndPlay(nrstage + 5 +80);
}
if (balle._y < 36) {
balle._y = 36;
sensy = -sensy;
}
if ((balle._x < 10) && (sensx < 0)) {
balle._x = 10;
sensx = -sensx;
}
if ((balle._x > 390) && (sensx > 0)) {
balle._x = 390;
sensx = -sensx;
}
if ((balle.hittest(raquette) == true) && (balle._y > 380)) {
balle._y = 380;
sensx = ((balle._x - raquette._x) / long) / 2;
sensy = (-math.sqrt((hyp * hyp) - (sensx * sensx))) / 2;
}
if (balle._y > 400) {
gotoAndPlay(nrstage + 5 +80);
}
Frame 135
gotoAndPlay(nrstage + 3 +80);
Frame 136
balle._y = -50;
balle._x = -50;
if (brique == 0) {
poit = "all bonus collected ! + 50 points";
topoit = "total bonus points = 300 !";
score = score + 50;
brique = -5;
}
if (brique > 0) {
bribri = 50 - brique;
topoit = ("total bonus points = " + (bribri * 5)) + " !";
}
Frame 137
sensx = sx;
sensy = -sy;
gotoAndPlay(nrstage + 5 +80);
Frame 141
start();
Frame 142
suite();
Frame 143
gotoAndPlay(nrstage + 1 +80);
Frame 144
jeu();
Frame 145
gotoAndPlay(nrstage + 3 +80);
Frame 151
start();
Frame 152
suite();
Frame 153
gotoAndPlay(nrstage + 1 +80);
Frame 154
jeu();
Frame 155
gotoAndPlay(nrstage + 3 +80);
Frame 161
start();
Frame 162
suite();
Frame 163
gotoAndPlay(nrstage + 1 +80);
Frame 164
jeu();
Frame 165
gotoAndPlay(nrstage + 3 +80);
Frame 171
start();
Frame 172
suite();
Frame 173
gotoAndPlay(nrstage + 1 +80);
Frame 174
jeu();
Frame 175
gotoAndPlay(nrstage + 3 +80);
Frame 181
start();
Frame 182
suite();
Frame 183
gotoAndPlay(nrstage + 1 +80);
Frame 184
jeu();
Frame 185
gotoAndPlay(nrstage + 3 +80);
Frame 191
startDrag ("raquette", true, 25, 390, 375, 390);
sensx = sx;
sensy = -sy;
sensxx = 0;
sensyy = 0;
minuteur = 30;
hyp = 11.3137084989848;
brique = 42;
laserCounter = 1;
_root.laser._visible = false;
Frame 192
balle._x = raquette._x;
balle._y = 380;
ballee._x = -30;
long = 40 / hyp;
vitesse = 1;
sensx = 4;
sensy = -4;
_root.tir._visible = false;
_root.raquette.gotoAndStop(1);
_root.balle.gotoAndStop(1);
_root.ballee.gotoAndStop(1);
_root.raquette.canon.gotoAndStop(1);
Frame 193
gotoAndPlay(nrstage + 1 +80);
Frame 194
balle._x = balle._x + sensx;
balle._y = balle._y + sensy;
if ((brique == 0) || (minuteur == -1)) {
gotoAndPlay(nrstage + 5 +80);
}
if (balle._y < 36) {
balle._y = 36;
sensy = -sensy;
}
if ((balle._x < 10) && (sensx < 0)) {
balle._x = 10;
sensx = -sensx;
}
if ((balle._x > 390) && (sensx > 0)) {
balle._x = 390;
sensx = -sensx;
}
if ((balle.hittest(raquette) == true) && (balle._y > 380)) {
balle._y = 380;
sensx = ((balle._x - raquette._x) / long) / 2;
sensy = (-math.sqrt((hyp * hyp) - (sensx * sensx))) / 2;
}
if (balle._y > 400) {
gotoAndPlay(nrstage + 5 +80);
}
Frame 195
gotoAndPlay(nrstage + 3 +80);
Frame 196
balle._y = -50;
balle._x = -50;
if (brique == 0) {
poit = "all bonus collected ! + 90 points";
topoit = "total bonus points = 300 !";
score = score + 90;
brique = -5;
}
if (brique > 0) {
bribri = 42 - brique;
topoit = ("total bonus points = " + (bribri * 5)) + " !";
}
Frame 197
sensx = sx;
sensy = -sy;
gotoAndPlay(nrstage + 5 +80);
Frame 201
start();
Instance of Symbol 70 MovieClip "laser" in Frame 201
onClipEvent (enterFrame) {
this._y = this._y - 10;
if (this._y < 25) {
this.removeMovieClip();
}
}
Frame 202
suite();
Frame 203
gotoAndPlay(nrstage + 1 +80);
Frame 204
jeu();
Frame 205
gotoAndPlay(nrstage + 3 +80);
Frame 211
start();
Frame 212
suite();
Frame 213
gotoAndPlay(nrstage + 1 +80);
Frame 214
jeu();
Frame 215
gotoAndPlay(nrstage + 3 +80);
Frame 221
start();
Frame 222
suite();
Frame 223
gotoAndPlay(nrstage + 1 +80);
Frame 224
jeu();
Frame 225
gotoAndPlay(nrstage + 3 +80);
Frame 231
start();
Frame 232
suite();
Frame 233
gotoAndPlay(nrstage + 1 +80);
Frame 234
jeu();
Frame 235
gotoAndPlay(nrstage + 3 +80);
Frame 241
start();
Frame 242
suite();
Frame 243
gotoAndPlay(nrstage + 1 +80);
Frame 244
jeu();
Frame 245
gotoAndPlay(nrstage + 3 +80);
Frame 251
start();
Frame 252
suite();
Frame 253
gotoAndPlay(nrstage + 1 +80);
Frame 254
jeu();
Frame 255
gotoAndPlay(nrstage + 3 +80);
Frame 261
start();
Frame 262
suite();
Frame 263
gotoAndPlay(nrstage + 1 +80);
Frame 264
jeu();
Frame 265
gotoAndPlay(nrstage + 3 +80);
Frame 271
start();
Frame 272
suite();
Frame 273
gotoAndPlay(nrstage + 1 +80);
Frame 274
jeu();
Frame 275
gotoAndPlay(nrstage + 3 +80);
Frame 281
start();
Frame 282
suite();
Frame 283
gotoAndPlay(nrstage + 1 +80);
Frame 284
jeu();
Frame 285
gotoAndPlay(nrstage + 3 +80);
Frame 291
start();
Frame 292
suite();
Frame 293
gotoAndPlay(nrstage + 1 +80);
Frame 294
jeu();
Frame 295
gotoAndPlay(nrstage + 3 +80);
Frame 301
if (sx == 6) {
gotoAndPlay (381);
}
if (sx == 4) {
gotoAndPlay (416);
}
Frame 380
gotoAndPlay(nrstage +80);
Frame 381
Mouse.show();
stopDrag();
balle._y = -50;
balle._x = -50;
stop();
Frame 400
scoretable.filename = "scores/scoreca.sco";
scoretable.scoresize = 10;
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
scoretable.winname = _root.name;
scoretable.winscore = _root.score;
scoretable.loadVariables("http://samuelix.free.fr/scores.php", "GET");
stop();
Frame 415
_root.score = 0;
_root.name = none;
gotoAndPlay (435);
Frame 416
Mouse.show();
stopDrag();
balle._y = -50;
balle._x = -50;
stop();
Frame 435
scoretable.filename = "scores/scorecaf.sco";
scoretable.scoresize = 10;
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
scoretable.winname = _root.name;
scoretable.winscore = _root.score;
scoretable.loadVariables("http://samuelix.free.fr/scores.php", "GET");
stop();
Frame 450
_root.score = 0;
_root.name = none;
gotoAndPlay (400);
Symbol 3 Button
on (release) {
_root.txtActions = "clic";
var click_time = new Date();
milliseconds_time = click_time.getMinutes() * 60000;
milliseconds_time = milliseconds_time + (click_time.getSeconds() * 1000);
milliseconds_time = milliseconds_time + click_time.getMilliseconds();
play();
if ((last_click_time + 250) > milliseconds_time) {
_root.txtActions = "Double Click";
gotoAndStop (400);
}
last_click_time = milliseconds_time;
}
Symbol 7 MovieClip Frame 35
gotoAndPlay (1);
Symbol 12 Button
on (release) {
var click_time = new Date();
milliseconds_time = click_time.getMinutes() * 60000;
milliseconds_time = milliseconds_time + (click_time.getSeconds() * 1000);
milliseconds_time = milliseconds_time + click_time.getMilliseconds();
play();
if ((last_click_time + 250) > milliseconds_time) {
sx = 6;
sy = 6;
sxx = 6;
syy = 6;
score = 0;
vie = 5;
dife = 2;
cx = 1;
nrstage = 1;
laserCounter = 1;
gotoAndStop (81);
}
last_click_time = milliseconds_time;
}
Symbol 15 Button
on (press) {
_root.laserCounter++;
_root.laser.duplicateMovieClip("laser" + _root.laserCounter, _root.laserCounter);
_root["laser" + _root.laserCounter]._visible = true;
_root.leson.gotoandplay(4);
}
Symbol 21 Button
on (press) {
_root.pil.pilu.gotoandplay(1);
_root.pill.piluu.gotoandplay(1);
_root.pilll.piluuu.gotoandplay(1);
_root.pillll.piluuuu.gotoandplay(1);
_root.pilllll.piluuuuu.gotoandplay(1);
if (_root.bricbal._currentframe == 10) {
_root.pil.pilu.gotoandstop(73);
}
if (_root.brilen._currentframe == 10) {
_root.pill.piluu.gotoandstop(73);
}
if (_root.brilon._currentframe == 10) {
_root.pilll.piluuu.gotoandstop(73);
}
if (_root.bric._currentframe == 10) {
_root.pillll.piluuuu.gotoandstop(73);
}
if (_root.vidbal._currentframe == 10) {
_root.pilllll.piluuuuu.gotoandstop(73);
}
gotoAndPlay(nrstage + 3 +80);
}
Symbol 29 MovieClip Frame 1
if (_root.vie == 5) {
if (_root.sx == 6) {
gotoAndPlay (41);
}
if (_root.sx == 4) {
gotoAndPlay (2);
}
}
stop();
Symbol 29 MovieClip Frame 40
gotoAndPlay (2);
Symbol 29 MovieClip Frame 82
gotoAndPlay (41);
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 5
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 13
_root.long = (30 / _root.hyp) * 2;
stop();
Symbol 48 MovieClip Frame 30
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 57 MovieClip Frame 4
stop();
Symbol 57 MovieClip Frame 17
stop();
Symbol 61 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 4
stop();
Symbol 61 MovieClip Frame 17
stop();
Symbol 69 MovieClip Frame 1
this._x = -50;
this._y = -50;
if (_root.bon == 2) {
this._x = _root.balle._x;
this._y = _root.balle._y;
gotoAndPlay (3);
}
Symbol 69 MovieClip Frame 2
this._x = -50;
this._y = -50;
if (_root.bon == 2) {
this._x = _root.balle._x;
this._y = _root.balle._y;
gotoAndPlay (3);
}
gotoAndPlay (1);
Symbol 69 MovieClip Frame 3
this._y = this._y + 3;
if ((this.hitTest(_root.raquette) == true) && (this.hitTest(_root.balle) == false)) {
_root.score = _root.score + 20;
_root.bon = 0;
gotoAndPlay (5);
}
if (this._y > 400) {
_root.bonus._x = -20;
_root.bonus._y = -20;
_root.bon = 0;
gotoAndPlay (1);
}
Symbol 69 MovieClip Frame 4
gotoAndPlay (3);
Symbol 69 MovieClip Frame 14
_root.bonus._x = -20;
_root.bonus._y = -20;
gotoAndPlay (1);
Symbol 74 MovieClip Frame 1
_root.laser._x = _root.raquette._x;
_root.laser._y = _root.raquette._y;
i = 1;
while (i <= _root.laserCounter) {
myLaser = eval ("_root.laser" + i);
if (myLaser._name != undefined) {
if (myLaser.hittest(this)) {
_root.score = _root.score + 5;
_root.brique = _root.brique - 1;
gotoAndPlay (5);
myLaser.removeMovieClip();
}
}
i++;
}
_root.temps = getTimer();
temps2 = _root.temps - _root.tempsimpact;
if ((_root.balle.hittest(this) == true) && (temps2 > 50)) {
if (_root.balvide == 0) {
positionavant = _root.balle._x - _root.sensx;
minx = this._x - 25;
maxx = this._x + 25;
if ((positionavant >= minx) && (positionavant <= maxx)) {
_root.sensy = -_root.sensy;
} else {
_root.sensx = -_root.sensx;
}
_root.score = _root.score + 5;
_root.brique = _root.brique - 1;
_root.tempsimpact = getTimer();
gotoAndPlay (5);
}
if (_root.balvide == 1) {
positionavant = _root.balle._x - _root.sensx;
minx = this._x - 25;
maxx = this._x + 25;
_root.leson.gotoandplay(3);
if ((positionavant >= minx) && (positionavant <= maxx)) {
_root.sensy = -_root.sensy;
} else {
_root.sensx = -_root.sensx;
}
gotoAndPlay (3);
}
}
if ((_root.ballee.hittest(this) == true) && (temps2 > 50)) {
if (_root.balvide == 0) {
positionavant = _root.ballee._x - _root.sensxx;
minx = this._x - 25;
maxx = this._x + 25;
if ((positionavant >= minx) && (positionavant <= maxx)) {
_root.sensyy = -_root.sensyy;
} else {
_root.sensxx = -_root.sensxx;
}
_root.score = _root.score + 5;
_root.brique = _root.brique - 1;
_root.tempsimpact = getTimer();
gotoAndPlay (5);
}
if (_root.balvide == 1) {
positionavant = _root.ballee._x - _root.sensxx;
minx = this._x - 25;
maxx = this._x + 25;
_root.leson.gotoandplay(3);
if ((positionavant >= minx) && (positionavant <= maxx)) {
_root.sensyy = -_root.sensyy;
} else {
_root.sensxx = -_root.sensxx;
}
gotoAndPlay (3);
}
}
Symbol 74 MovieClip Frame 2
gotoAndPlay (1);
Symbol 74 MovieClip Frame 3
_root.laser._x = _root.raquette._x;
_root.laser._y = _root.raquette._y;
i = 1;
while (i <= _root.laserCounter) {
myLaser = eval ("_root.laser" + i);
if (myLaser._name != undefined) {
if (myLaser.hittest(this)) {
_root.score = _root.score + 5;
_root.brique = _root.brique - 1;
gotoAndPlay (5);
myLaser.removeMovieClip();
}
}
i++;
}
_root.temps = getTimer();
temps2 = _root.temps - _root.tempsimpact;
if ((_root.balle.hittest(this) == true) && (temps2 > 50)) {
positionavant = _root.balle._x - _root.sensx;
minx = this._x - 25;
maxx = this._x + 25;
if ((positionavant >= minx) && (positionavant <= maxx)) {
_root.sensy = -_root.sensy;
} else {
_root.sensx = -_root.sensx;
}
_root.score = _root.score + 5;
_root.brique = _root.brique - 1;
_root.tempsimpact = getTimer();
gotoAndPlay (5);
}
if ((_root.ballee.hittest(this) == true) && (temps2 > 50)) {
positionavant = _root.ballee._x - _root.sensxx;
minx = this._x - 25;
maxx = this._x + 25;
if ((positionavant >= minx) && (positionavant <= maxx)) {
_root.sensyy = -_root.sensyy;
} else {
_root.sensxx = -_root.sensxx;
}
_root.score = _root.score + 5;
_root.brique = _root.brique - 1;
_root.tempsimpact = getTimer();
gotoAndPlay (5);
}
Symbol 74 MovieClip Frame 4
gotoAndPlay (3);
Symbol 74 MovieClip Frame 10
_root.bon = Math.round(Math.random() * (100 / math.sqrt(_root.nrstage)));
stop();
Symbol 82 MovieClip Frame 55
gotoAndPlay (1);
Symbol 82 MovieClip Frame 73
stop();
Symbol 83 MovieClip Frame 1
if (_root.brilon._currentframe >= 8) {
this._y = this._y + 1;
}
if ((((this._y > 390) && (this._y < 400)) && ((_root.raquette._x - this._x) < 30)) && ((_root.raquette._x - this._x) > -30)) {
_root.raquette.gotoAndPlay(10);
_root.leson.gotoandplay(5);
gotoAndPlay (3);
}
Symbol 83 MovieClip Frame 2
if (_root.brilon._currentframe >= 8) {
this._y = this._y + 1;
}
if ((((this._y > 390) && (this._y < 400)) && ((_root.raquette._x - this._x) < 30)) && ((_root.raquette._x - this._x) > -30)) {
_root.raquette.gotoAndPlay(10);
_root.leson.gotoandplay(5);
gotoAndPlay (3);
}
gotoAndPlay (1);
Symbol 83 MovieClip Frame 3
stop();
Symbol 86 MovieClip Frame 55
gotoAndPlay (1);
Symbol 86 MovieClip Frame 73
stop();
Symbol 87 MovieClip Frame 1
_root.minuteur2 = 15;
stop();
Symbol 87 MovieClip Frame 51
_root.minuteur2 = _root.minuteur2 - 1;
gotoAndPlay (2);
Symbol 88 MovieClip Frame 1
if (_root.minuteur2 == 0) {
_root.pill.rebour2.gotoandplay(1);
_root.sensx = _root.sensx * 1.5;
_root.sensxx = _root.sensxx * 1.5;
_root.sensy = _root.sensy * 1.5;
_root.sensyy = _root.sensyy * 1.5;
_root.vitesse = 1;
_root.leson.gotoandplay(7);
gotoAndStop (5);
}
if (_root.brilen._currentframe >= 8) {
this._y = this._y + 3;
}
if ((((this._y > 390) && (this._y < 400)) && ((_root.raquette._x - this._x) < 30)) && ((_root.raquette._x - this._x) > -30)) {
_root.pill.rebour2.gotoandplay(2);
_root.sensx = _root.sensx / 1.5;
_root.sensy = _root.sensy / 1.5;
_root.sensxx = _root.sensxx / 1.5;
_root.sensyy = _root.sensyy / 1.5;
_root.vitesse = 2;
_root.leson.gotoandplay(6);
gotoAndPlay (3);
}
Symbol 88 MovieClip Frame 2
if (_root.brilen._currentframe >= 8) {
this._y = this._y + 3;
}
if ((((this._y > 390) && (this._y < 400)) && ((_root.raquette._x - this._x) < 30)) && ((_root.raquette._x - this._x) > -30)) {
_root.pill.rebour2.gotoandplay(2);
_root.sensx = _root.sensx / 1.5;
_root.sensy = _root.sensy / 1.5;
_root.sensxx = _root.sensxx / 1.5;
_root.sensyy = _root.sensyy / 1.5;
_root.vitesse = 2;
_root.leson.gotoandplay(6);
gotoAndPlay (3);
}
gotoAndPlay (1);
Symbol 88 MovieClip Frame 3
if (_root.minuteur2 == 0) {
_root.sensx = _root.sensx * 1.5;
_root.sensxx = _root.sensxx * 1.5;
_root.sensy = _root.sensy * 1.5;
_root.sensyy = _root.sensyy * 1.5;
_root.vitesse = 1;
_root.pill.rebour2.gotoandplay(1);
_root.leson.gotoandplay(7);
gotoAndStop (5);
}
Symbol 88 MovieClip Frame 4
gotoAndPlay (3);
Symbol 88 MovieClip Frame 5
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
gotoAndPlay (1);
Symbol 97 MovieClip Frame 3
gotoAndPlay (1);
Symbol 97 MovieClip Frame 4
gotoAndPlay (1);
Symbol 97 MovieClip Frame 5
gotoAndPlay (1);
Symbol 97 MovieClip Frame 6
gotoAndPlay (1);
Symbol 97 MovieClip Frame 7
gotoAndPlay (1);
Symbol 100 MovieClip Frame 55
gotoAndPlay (1);
Symbol 100 MovieClip Frame 73
stop();
Symbol 101 MovieClip Frame 1
if (_root.bric._currentframe >= 8) {
this._y = this._y + 2;
}
if ((((this._y > 390) && (this._y < 400)) && ((_root.raquette._x - this._x) < 30)) && ((_root.raquette._x - this._x) > -30)) {
_root.raquette.canon.gotoAndPlay(2);
_root.tir._visible = true;
_root.leson.gotoandplay(5);
gotoAndPlay (3);
}
Symbol 101 MovieClip Frame 2
if (_root.bric._currentframe >= 8) {
this._y = this._y + 2;
}
if ((((this._y > 390) && (this._y < 400)) && ((_root.raquette._x - this._x) < 30)) && ((_root.raquette._x - this._x) > -30)) {
_root.raquette.canon.gotoAndPlay(2);
_root.tir._visible = true;
_root.leson.gotoandplay(5);
gotoAndPlay (3);
}
gotoAndPlay (1);
Symbol 101 MovieClip Frame 3
stop();
Symbol 105 MovieClip Frame 1
this._x = this._x - _root.cx;
if (this._x == 21) {
_root.cx = -_root.cx;
}
if (this._x == 379) {
_root.cx = -_root.cx;
}
if (_root.balle.hittest(this) == true) {
positionavant = _root.balle._x - _root.sensx;
minx = this._x - 25;
maxx = this._x + 25;
if (_root.sensy > 0) {
_root.balle._y = this._y - 10;
}
if (_root.sensy < 0) {
_root.balle._y = this._y + 10;
}
if ((positionavant >= minx) && (positionavant <= maxx)) {
_root.sensy = -_root.sensy;
} else {
_root.sensx = -_root.sensx;
}
}
if (_root.ballee.hittest(this) == true) {
positionavant = _root.ballee._x - _root.sensxx;
minx = this._x - 25;
maxx = this._x + 25;
if (_root.sensyy > 0) {
_root.ballee._y = this._y - 10;
}
if (_root.sensyy < 0) {
_root.ballee._y = this._y + 10;
}
if ((positionavant >= minx) && (positionavant <= maxx)) {
_root.sensyy = -_root.sensyy;
} else {
_root.sensxx = -_root.sensxx;
}
}
i = 1;
while (i <= _root.laserCounter) {
myLaser = eval ("_root.laser" + i);
if (myLaser._name != undefined) {
if (myLaser.hittest(this)) {
myLaser.removeMovieClip();
}
}
i++;
}
Symbol 105 MovieClip Frame 2
this._x = this._x - _root.cx;
if (this._x == 21) {
_root.cx = -_root.cx;
}
if (this._x == 379) {
_root.cx = -_root.cx;
}
gotoAndPlay (1);
Symbol 105 MovieClip Frame 3
this._x = this._x - _root.cx;
if ((this._x = 10)) {
_root.cx = -_root.cx;
}
if ((this._x = 390)) {
_root.cx = -_root.cx;
}
gotoAndPlay (1);
Symbol 107 Button
on (press) {
gotoAndPlay(nrstage + 3 +80);
}
Symbol 115 MovieClip Frame 1
this._x = this._x + 3;
if (this._x > 470) {
this._x = -30;
}
_root.temps = getTimer();
temps2 = _root.temps - _root.tempsimpact;
if ((_root.balle.hittest(this) == true) && (temps2 > 50)) {
minx = this._x - 25;
maxx = this._x + 25;
_root.score = _root.score + 5;
_root.brique = _root.brique - 1;
_root.tempsimpact = getTimer();
gotoAndPlay (3);
}
Symbol 115 MovieClip Frame 2
gotoAndPlay (1);
Symbol 115 MovieClip Frame 8
_root.bon = 2;
stop();
Symbol 117 MovieClip Frame 1
_root.minuteur = 40;
Symbol 117 MovieClip Frame 51
_root.minuteur = _root.minuteur - 1;
gotoAndPlay (2);
Symbol 118 Button
on (press) {
nrstage = nrstage + 10;
gotoAndPlay(nrstage +80);
}
Symbol 124 MovieClip Frame 1
this._x = -50;
this._y = -50;
if (_root.bon == 1) {
this._x = _root.balle._x;
this._y = _root.balle._y;
this._rotation = -90;
gotoAndPlay (3);
}
Symbol 124 MovieClip Frame 2
this._x = -50;
this._y = -50;
if (_root.bon == 1) {
this._x = _root.balle._x;
this._y = _root.balle._y;
this._rotation = -90;
gotoAndPlay (3);
}
gotoAndPlay (1);
Symbol 124 MovieClip Frame 3
this._y = this._y + 7;
if (this._y > 400) {
_root.bomb._x = -20;
_root.bomb._y = -20;
_root.bon = 0;
gotoAndPlay (1);
}
Symbol 124 MovieClip Frame 4
gotoAndPlay (3);
Symbol 126 MovieClip Frame 55
gotoAndPlay (1);
Symbol 126 MovieClip Frame 73
stop();
Symbol 127 MovieClip Frame 1
if (_root.bricbal._currentframe >= 8) {
this._y = this._y + 1;
}
if ((((this._y > 390) && (this._y < 400)) && ((_root.raquette._x - this._x) < 30)) && ((_root.raquette._x - this._x) > -30)) {
_root.ballee._x = _root.balle._x;
_root.ballee._y = _root.balle._y;
_root.sensxx = _root.sxx;
_root.sensyy = -_root.syy;
_root.lebal = 2;
_root.leson.gotoandplay(5);
gotoAndPlay (3);
}
Symbol 127 MovieClip Frame 2
if (_root.bricbal._currentframe >= 8) {
this._y = this._y + 1;
}
if ((((this._y > 390) && (this._y < 400)) && ((_root.raquette._x - this._x) < 30)) && ((_root.raquette._x - this._x) > -30)) {
_root.ballee._x = _root.balle._x;
_root.ballee._y = _root.balle._y;
_root.sensxx = _root.sxx;
_root.sensyy = -_root.syy;
_root.lebal = 2;
_root.leson.gotoandplay(5);
gotoAndPlay (3);
}
gotoAndPlay (1);
Symbol 127 MovieClip Frame 3
stop();
Symbol 129 MovieClip Frame 1
this._x = this._x - _root.cx;
if (this._x == 65) {
_root.cx = -_root.cx;
}
if (this._x == 335) {
_root.cx = -_root.cx;
}
if (_root.balle.hittest(this) == true) {
positionavant = _root.balle._x - _root.sensx;
minx = this._x - 100;
maxx = this._x + 100;
if (_root.sensy > 0) {
_root.balle._y = this._y - 10;
}
if (_root.sensy < 0) {
_root.balle._y = this._y + 10;
}
if ((positionavant >= minx) && (positionavant <= maxx)) {
_root.sensy = -_root.sensy;
} else {
_root.sensx = -_root.sensx;
}
}
if (_root.ballee.hittest(this) == true) {
positionavant = _root.ballee._x - _root.sensxx;
minx = this._x - 100;
maxx = this._x + 100;
if (_root.sensyy > 0) {
_root.ballee._y = this._y - 10;
}
if (_root.sensyy < 0) {
_root.ballee._y = this._y + 10;
}
if ((positionavant >= minx) && (positionavant <= maxx)) {
_root.sensyy = -_root.sensyy;
} else {
_root.sensxx = -_root.sensxx;
}
}
i = 1;
while (i <= _root.laserCounter) {
myLaser = eval ("_root.laser" + i);
if (myLaser._name != undefined) {
if (myLaser.hittest(this)) {
myLaser.removeMovieClip();
}
}
i++;
}
Symbol 129 MovieClip Frame 2
this._x = this._x - _root.cx;
if (this._x == 65) {
_root.cx = -_root.cx;
}
if (this._x == 335) {
_root.cx = -_root.cx;
}
gotoAndPlay (1);
Symbol 129 MovieClip Frame 3
this._x = this._x - _root.cx;
if ((this._x = 10)) {
_root.cx = -_root.cx;
}
if ((this._x = 390)) {
_root.cx = -_root.cx;
}
gotoAndPlay (1);
Symbol 135 MovieClip Frame 1
_root.temps = getTimer();
temps2 = _root.temps - _root.tempsimpact;
if ((_root.balle.hittest(this) == true) && (temps2 > 50)) {
minx = this._x - 25;
maxx = this._x + 25;
_root.score = _root.score + 5;
_root.brique = _root.brique - 1;
_root.tempsimpact = getTimer();
gotoAndPlay (3);
}
Symbol 135 MovieClip Frame 2
gotoAndPlay (1);
Symbol 135 MovieClip Frame 8
_root.bon = Math.round(Math.random() * 3);
stop();
Symbol 136 MovieClip Frame 1
this._x = this._x + 3;
if (this._x > 570) {
this._x = -145;
}
Symbol 136 MovieClip Frame 2
gotoAndPlay (1);
Symbol 143 MovieClip Frame 26
gotoAndPlay (1);
Symbol 143 MovieClip Frame 73
stop();
Symbol 144 MovieClip Frame 1
_root.minuteur3 = 15;
stop();
Symbol 144 MovieClip Frame 51
_root.minuteur3 = _root.minuteur3 - 1;
gotoAndPlay (2);
Symbol 145 MovieClip Frame 1
if (_root.minuteur3 == 0) {
_root.pilllll.rebour3.gotoandplay(1);
_root.balvide = 0;
_root.balle.gotoandplay(1);
_root.ballee.gotoandplay(1);
_root.vitesse = 1;
_root.leson.gotoandplay(7);
gotoAndStop (5);
}
if (_root.vidbal._currentframe >= 8) {
this._y = this._y + 4;
}
if ((((this._y > 390) && (this._y < 410)) && ((_root.raquette._x - this._x) < 30)) && ((_root.raquette._x - this._x) > -30)) {
_root.pilllll.rebour3.gotoandplay(2);
_root.balvide = 1;
_root.balle.gotoandplay(3);
_root.ballee.gotoandplay(3);
_root.leson.gotoandplay(6);
gotoAndPlay (3);
}
Symbol 145 MovieClip Frame 2
if (_root.vidbal._currentframe >= 8) {
this._y = this._y + 4;
}
if ((((this._y > 390) && (this._y < 410)) && ((_root.raquette._x - this._x) < 30)) && ((_root.raquette._x - this._x) > -30)) {
_root.pilllll.rebour3.gotoandplay(2);
_root.balvide = 1;
_root.balle.gotoandplay(3);
_root.ballee.gotoandplay(3);
_root.leson.gotoandplay(6);
gotoAndPlay (3);
}
gotoAndPlay (1);
Symbol 145 MovieClip Frame 3
if (_root.minuteur3 == 0) {
_root.pilllll.rebour3.gotoandplay(1);
_root.balvide = 0;
_root.balle.gotoandplay(1);
_root.ballee.gotoandplay(1);
_root.vitesse = 1;
_root.leson.gotoandplay(7);
gotoAndStop (5);
}
Symbol 145 MovieClip Frame 4
gotoAndPlay (3);
Symbol 145 MovieClip Frame 5
stop();
Symbol 163 MovieClip Frame 51
stop();
Symbol 168 Button
on (release, keyPress "<Enter>") {
gotoAndStop (400);
}
Symbol 195 Button
on (release) {
_root.txtActions = "clic";
var click_time = new Date();
milliseconds_time = click_time.getMinutes() * 60000;
milliseconds_time = milliseconds_time + (click_time.getSeconds() * 1000);
milliseconds_time = milliseconds_time + click_time.getMilliseconds();
play();
if ((last_click_time + 250) > milliseconds_time) {
_root.txtActions = "Double Click";
gotoAndStop (1);
}
last_click_time = milliseconds_time;
}
Symbol 199 Button
on (release, keyPress "<Enter>") {
gotoAndStop (435);
}