Frame 1
stop();
Instance of Symbol 13 MovieClip in Frame 1
onClipEvent (enterFrame) {
prc = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
prc = math.Round(prc);
pourcent = prc + "%";
barre._xscale = prc;
if (prc == 100) {
this.visible = false;
_parent.play();
}
}
Frame 2
bo1._visible = false;
bo2._visible = false;
bo3._visible = false;
bo4._visible = false;
stop();
Frame 3
bo1._visible = false;
bo2._visible = false;
bo3._visible = false;
bo4._visible = false;
stop();
Frame 4
level1boom.gotoAndPlay(2);
Mouse.show();
stop();
Frame 5
function CleanKaoGame() {
coup = 0;
touche = 0;
boomerang = 0;
CmptBoom = 0;
var i = 1;
while (i <= MaxBoom) {
_root["boom" + i]._visible = false;
i++;
}
Mouse.show();
}
function ActivateBoomerang(boomcurrent) {
boomcurrent.actif = 1;
boomcurrent.impact = 0;
boomcurrent.gravity = 1;
boomcurrent.Xarrivee = _xmouse;
boomcurrent.Yarrivee = _ymouse;
boomcurrent._x = kao._x;
boomcurrent._y = kao._y;
boomcurrent._visible = true;
boomcurrent.gotoAndPlay(2);
}
function ReleaseBoomerang(boomcurrent) {
boomcurrent._visible = false;
boomcurrent.stop();
boomcurrent.actif = 0;
boomcurrent.impact = 0;
boomcurrent._x = _root.Carquois._x;
boomcurrent._y = _root.Carquois._y;
}
Mouse.hide();
coups = 0;
compteur = 0;
mort = 0;
touche = 0;
boomerang = 0;
CmptBoom = 0;
MaxBoom = 5;
Wait1 = 0;
Wait2 = 0;
Wait3 = 0;
Wait4 = 0;
Wait5 = 0;
Wait6 = 0;
Wait7 = 0;
LastTime1 = Math.floor(getTimer());
LastTime2 = Math.floor(getTimer());
LastTime3 = Math.floor(getTimer());
LastTime4 = Math.floor(getTimer());
LastTime5 = Math.floor(getTimer());
LastTime6 = Math.floor(getTimer());
LastTime7 = Math.floor(getTimer());
stop();
Instance of Symbol 107 MovieClip "cible1" in Frame 5
onClipEvent (mouseDown) {
if (this.cible0.collision.hitTest(_root.viseur.viseur2)) {
if (_root.viseur.viseur2.hitTest(_root.arbre1)) {
} else {
duplicateMovieClip ("_root.cible1.cible0.cible.hit", "hitCopy" + _root.compteur, _root.compteur);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _x , this.cible0.cible._xmouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _y , this.cible0.cible._ymouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _visible , false);
}
}
}
Instance of Symbol 111 MovieClip "cible2" in Frame 5
onClipEvent (mouseDown) {
if (this.cible0.collision.hitTest(_root.viseur.viseur2)) {
if (_root.viseur.viseur2.hitTest(_root.arbre2)) {
} else {
duplicateMovieClip ("_root.cible2.cible0.cible.hit", "hitCopy" + _root.compteur, _root.compteur);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _x , this.cible0.cible._xmouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _y , this.cible0.cible._ymouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _visible , false);
}
}
}
Instance of Symbol 115 MovieClip "cible3" in Frame 5
onClipEvent (mouseDown) {
if (this.cible0.collision.hitTest(_root.viseur.viseur2)) {
if (_root.viseur.viseur2.hitTest(_root.arbre3)) {
} else {
duplicateMovieClip ("_root.cible3.cible0.cible.hit", "hitCopy" + _root.compteur, _root.compteur);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _x , this.cible0.cible._xmouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _y , this.cible0.cible._ymouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _visible , false);
}
}
}
Instance of Symbol 119 MovieClip "cible4" in Frame 5
onClipEvent (mouseDown) {
if (this.cible0.collision.hitTest(_root.viseur.viseur2)) {
if (_root.viseur.viseur2.hitTest(_root.arbre4)) {
} else {
duplicateMovieClip ("_root.cible4.cible0.cible.hit", "hitCopy" + _root.compteur, _root.compteur);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _x , this.cible0.cible._xmouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _y , this.cible0.cible._ymouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _visible , false);
}
}
}
Instance of Symbol 123 MovieClip "cible5" in Frame 5
onClipEvent (mouseDown) {
if (this.cible0.collision.hitTest(_root.viseur.viseur2)) {
if (_root.viseur.viseur2.hitTest(_root.arbre5)) {
} else {
duplicateMovieClip ("_root.cible5.cible0.cible.hit", "hitCopy" + _root.compteur, _root.compteur);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _x , this.cible0.cible._xmouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _y , this.cible0.cible._ymouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _visible , false);
}
}
}
Instance of Symbol 127 MovieClip "cible6" in Frame 5
onClipEvent (mouseDown) {
if (this.cible0.collision.hitTest(_root.viseur.viseur2)) {
if (_root.viseur.viseur2.hitTest(_root.arbre6)) {
} else {
duplicateMovieClip ("_root.cible6.cible0.cible.hit", "hitCopy" + _root.compteur, _root.compteur);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _x , this.cible0.cible._xmouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _y , this.cible0.cible._ymouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _visible , false);
}
}
}
Instance of Symbol 131 MovieClip "cible7" in Frame 5
onClipEvent (mouseDown) {
if (this.cible0.collision.hitTest(_root.viseur.viseur2)) {
if (_root.viseur.viseur2.hitTest(_root.arbre7)) {
} else {
duplicateMovieClip ("_root.cible7.cible0.cible.hit", "hitCopy" + _root.compteur, _root.compteur);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _x , this.cible0.cible._xmouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _y , this.cible0.cible._ymouse);
setProperty(this.cible0.cible["hitCopy" + _root.compteur], _visible , false);
}
}
}
Instance of Symbol 95 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.bullet.hitTest(_root.kao.mort)) {
_root.mort++;
this._visible = false;
this.gotoAndStop(1);
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
}
}
Instance of Symbol 134 MovieClip "viseur" in Frame 5
onClipEvent (load) {
startDrag (this, true);
}
onClipEvent (mouseDown) {
_root.coups++;
_root.kao.anim.play();
var i = 1;
while (i <= _root.MaxBoom) {
if (_root["boom" + i].actif == 0) {
_root.ActivateBoomerang(_root["boom" + i]);
_root.CmptBoom++;
break;
}
i++;
}
}
Instance of Symbol 151 MovieClip "boom1" in Frame 5
onClipEvent (load) {
var Xarrivee;
var Yarrivee;
var gravity;
var actif = 0;
var impact = 0;
_root.ReleaseBoomerang(this);
stop();
}
onClipEvent (unload) {
_root.ReleaseBoomerang(this);
}
onClipEvent (enterFrame) {
if (actif == 1) {
minus = Xarrivee - _x;
moveBy = minus * 0.8;
_x = (_x + moveBy);
minus = Yarrivee - _y;
moveBy = minus * 0.3;
_yscale = minus;
_xscale = minus;
_y = (_y + (moveBy + gravity));
if ((minus > -10) || (gravity > 2)) {
gravity = gravity * 1.2;
_y = (_y + (gravity * 2));
}
if (this.tape.hitTest(_root.interface) && (this.tape.hitTest(_root.kao.mort))) {
_root.mort++;
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
_root.ReleaseBoomerang(this);
}
if (this.hitTest(_root.limite)) {
_root.ReleaseBoomerang(this);
}
}
}
Instance of Symbol 151 MovieClip "boom2" in Frame 5
onClipEvent (load) {
var Xarrivee;
var Yarrivee;
var gravity;
var actif = 0;
var impact = 0;
_root.ReleaseBoomerang(this);
stop();
}
onClipEvent (unload) {
_root.ReleaseBoomerang(this);
}
onClipEvent (enterFrame) {
if (actif == 1) {
minus = Xarrivee - _x;
moveBy = minus * 0.8;
_x = (_x + moveBy);
minus = Yarrivee - _y;
moveBy = minus * 0.3;
_yscale = minus;
_xscale = minus;
_y = (_y + (moveBy + gravity));
if ((minus > -10) || (gravity > 2)) {
gravity = gravity * 1.2;
_y = (_y + (gravity * 2));
}
if (this.tape.hitTest(_root.interface) && (this.tape.hitTest(_root.kao.mort))) {
_root.mort++;
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
_root.ReleaseBoomerang(this);
}
if (this.hitTest(_root.limite)) {
_root.ReleaseBoomerang(this);
}
}
}
Instance of Symbol 151 MovieClip "boom3" in Frame 5
onClipEvent (load) {
var Xarrivee;
var Yarrivee;
var gravity;
var actif = 0;
var impact = 0;
_root.ReleaseBoomerang(this);
stop();
}
onClipEvent (unload) {
_root.ReleaseBoomerang(this);
}
onClipEvent (enterFrame) {
if (actif == 1) {
minus = Xarrivee - _x;
moveBy = minus * 0.8;
_x = (_x + moveBy);
minus = Yarrivee - _y;
moveBy = minus * 0.3;
_yscale = minus;
_xscale = minus;
_y = (_y + (moveBy + gravity));
if ((minus > -10) || (gravity > 2)) {
gravity = gravity * 1.2;
_y = (_y + (gravity * 2));
}
if (this.tape.hitTest(_root.interface) && (this.tape.hitTest(_root.kao.mort))) {
_root.mort++;
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
_root.ReleaseBoomerang(this);
}
if (this.hitTest(_root.limite)) {
_root.ReleaseBoomerang(this);
}
}
}
Instance of Symbol 151 MovieClip "boom4" in Frame 5
onClipEvent (load) {
var Xarrivee;
var Yarrivee;
var gravity;
var actif = 0;
var impact = 0;
_root.ReleaseBoomerang(this);
stop();
}
onClipEvent (unload) {
_root.ReleaseBoomerang(this);
}
onClipEvent (enterFrame) {
if (actif == 1) {
minus = Xarrivee - _x;
moveBy = minus * 0.8;
_x = (_x + moveBy);
minus = Yarrivee - _y;
moveBy = minus * 0.3;
_yscale = minus;
_xscale = minus;
_y = (_y + (moveBy + gravity));
if ((minus > -10) || (gravity > 2)) {
gravity = gravity * 1.2;
_y = (_y + (gravity * 2));
}
if (this.tape.hitTest(_root.interface) && (this.tape.hitTest(_root.kao.mort))) {
_root.mort++;
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
_root.ReleaseBoomerang(this);
}
if (this.hitTest(_root.limite)) {
_root.ReleaseBoomerang(this);
}
}
}
Instance of Symbol 151 MovieClip "boom5" in Frame 5
onClipEvent (load) {
var Xarrivee;
var Yarrivee;
var gravity;
var actif = 0;
var impact = 0;
_root.ReleaseBoomerang(this);
stop();
}
onClipEvent (unload) {
_root.ReleaseBoomerang(this);
}
onClipEvent (enterFrame) {
if (actif == 1) {
minus = Xarrivee - _x;
moveBy = minus * 0.8;
_x = (_x + moveBy);
minus = Yarrivee - _y;
moveBy = minus * 0.3;
_yscale = minus;
_xscale = minus;
_y = (_y + (moveBy + gravity));
if ((minus > -10) || (gravity > 2)) {
gravity = gravity * 1.2;
_y = (_y + (gravity * 2));
}
if (this.tape.hitTest(_root.interface) && (this.tape.hitTest(_root.kao.mort))) {
_root.mort++;
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
_root.ReleaseBoomerang(this);
}
if (this.hitTest(_root.limite)) {
_root.ReleaseBoomerang(this);
}
}
}
Instance of Symbol 168 MovieClip "interface" in Frame 5
onClipEvent (enterFrame) {
points = _root.compteur;
if (points == 30) {
_root.gotoAndStop("win1", 1);
}
nbboo = 50 - _root.CmptBoom;
_root.boomsleft = nbboo;
if (nbboo < 15) {
this.clignote.play();
}
if (nbboo == 0) {
_root.CleanKaoGame();
_root.gotoAndStop("loose", 1);
}
this["tete" + _root.mort]._visible = false;
if (_root.mort == 4) {
this.clignotevie.play();
}
if (_root.mort == 5) {
_root.CleanKaoGame();
unloadMovie (this);
_root.gotoAndStop("loose", 1);
}
}
Instance of Symbol 171 MovieClip in Frame 5
onClipEvent (enterFrame) {
var time = Math.floor(getTimer() / 1000);
if ((Math.floor(_root.lastTime2 / 1000) + _root.wait2) <= time) {
_parent.cible2.play();
_root.lastTime2 = time;
}
}
Instance of Symbol 173 MovieClip in Frame 5
onClipEvent (enterFrame) {
var time = Math.floor(getTimer() / 1000);
if ((Math.floor(_root.lastTime1 / 1000) + _root.wait1) <= time) {
_parent.cible1.play();
_root.lastTime1 = time;
}
}
Instance of Symbol 175 MovieClip in Frame 5
onClipEvent (enterFrame) {
var time = Math.floor(getTimer() / 1000);
if ((Math.floor(_root.lastTime3 / 1000) + _root.wait3) <= time) {
_parent.cible3.play();
_root.lastTime3 = time;
}
}
Instance of Symbol 177 MovieClip in Frame 5
onClipEvent (enterFrame) {
var time = Math.floor(getTimer() / 1000);
if ((Math.floor(_root.lastTime4 / 1000) + _root.wait4) <= time) {
_parent.cible4.play();
_root.lastTime4 = time;
}
}
Instance of Symbol 179 MovieClip in Frame 5
onClipEvent (enterFrame) {
var time = Math.floor(getTimer() / 1000);
if ((Math.floor(_root.lastTime5 / 1000) + _root.wait5) <= time) {
_parent.cible5.play();
_root.lastTime5 = time;
}
}
Instance of Symbol 181 MovieClip in Frame 5
onClipEvent (enterFrame) {
var time = Math.floor(getTimer() / 1000);
if ((Math.floor(_root.lastTime6 / 1000) + _root.wait6) <= time) {
_parent.cible6.play();
_root.lastTime6 = time;
}
}
Instance of Symbol 183 MovieClip in Frame 5
onClipEvent (enterFrame) {
var time = Math.floor(getTimer() / 1000);
if ((Math.floor(_root.lastTime7 / 1000) + _root.wait7) <= time) {
_parent.cible7.play();
_root.lastTime7 = time;
}
}
Frame 6
function CleanKaoGame() {
coup = 0;
compteur = 0;
mort = 0;
touche = 0;
boomerang = 0;
CmptBoom = 0;
var i = 1;
while (i <= MaxBoom) {
_root["boom" + i]._visible = false;
i++;
}
Mouse.show();
}
function ActivateBoomerang(boomcurrent) {
boomcurrent.actif = 1;
boomcurrent.impact = 0;
boomcurrent.gravity = 1;
boomcurrent.Xarrivee = _xmouse;
boomcurrent.Yarrivee = _ymouse;
boomcurrent._x = kao._x;
boomcurrent._y = kao._y;
boomcurrent._visible = true;
boomcurrent.gotoAndPlay(2);
}
function ReleaseBoomerang(boomcurrent) {
boomcurrent.gotoAndStop(1);
boomcurrent._visible = false;
boomcurrent.actif = 0;
boomcurrent.impact = 0;
boomcurrent._x = _root.Carquois._x;
boomcurrent._y = _root.Carquois._y;
}
Mouse.hide();
coups = 0;
compteur = 0;
mort = 0;
touche = 0;
boomerang = 0;
CmptBoom = 0;
MaxBoom = 5;
Wait1 = 0;
Wait2 = 0;
Wait3 = 0;
Wait4 = 0;
Wait5 = 0;
Wait6 = 0;
Wait7 = 0;
LastTime1 = Math.floor(getTimer());
LastTime2 = Math.floor(getTimer());
LastTime3 = Math.floor(getTimer());
LastTime4 = Math.floor(getTimer());
LastTime5 = Math.floor(getTimer());
LastTime6 = Math.floor(getTimer());
LastTime7 = Math.floor(getTimer());
stop();
Instance of Symbol 190 MovieClip "cible1" in Frame 6
onClipEvent (mouseDown) {
if (this.cible0.hitTest(_root.viseur.viseur2)) {
duplicateMovieClip ("_root.cible1.cible0.hit", "hitCopy" + _root.compteur, _root.compteur);
setProperty(this.cible0["hitCopy" + _root.compteur], _x , this.cible0._xmouse);
setProperty(this.cible0["hitCopy" + _root.compteur], _y , this.cible0._ymouse);
setProperty(this.cible0["hitCopy" + _root.compteur], _visible , false);
}
}
Instance of Symbol 190 MovieClip "cible3" in Frame 6
onClipEvent (mouseDown) {
if (this.cible0.hitTest(_root.viseur.viseur2)) {
duplicateMovieClip ("_root.cible3.cible0.hit", "hitCopy" + _root.compteur, _root.compteur);
setProperty(this.cible0["hitCopy" + _root.compteur], _x , this.cible0._xmouse);
setProperty(this.cible0["hitCopy" + _root.compteur], _y , this.cible0._ymouse);
setProperty(this.cible0["hitCopy" + _root.compteur], _visible , false);
}
}
Instance of Symbol 190 MovieClip "cible2" in Frame 6
onClipEvent (mouseDown) {
if (this.cible0.hitTest(_root.viseur.viseur2)) {
duplicateMovieClip ("_root.cible2.cible0.hit", "hitCopy" + _root.compteur, _root.compteur);
setProperty(this.cible0["hitCopy" + _root.compteur], _x , this.cible0._xmouse);
setProperty(this.cible0["hitCopy" + _root.compteur], _y , this.cible0._ymouse);
setProperty(this.cible0["hitCopy" + _root.compteur], _visible , false);
}
}
Instance of Symbol 134 MovieClip "viseur" in Frame 6
onClipEvent (load) {
startDrag (this, true);
}
onClipEvent (mouseDown) {
_root.coups++;
_root.kao.anim.play();
var i = 1;
while (i <= _root.MaxBoom) {
if (_root["boom" + i].actif == 0) {
_root.ActivateBoomerang(_root["boom" + i]);
_root.CmptBoom++;
break;
}
i++;
}
}
Instance of Symbol 151 MovieClip "boom1" in Frame 6
onClipEvent (load) {
var Xarrivee;
var Yarrivee;
var gravity;
var actif = 0;
var impact = 0;
_root.ReleaseBoomerang(this);
stop();
}
onClipEvent (unload) {
_root.ReleaseBoomerang(this);
}
onClipEvent (enterFrame) {
if (actif == 1) {
minus = Xarrivee - _x;
moveBy = minus * 0.8;
_x = (_x + moveBy);
minus = Yarrivee - _y;
moveBy = minus * 0.3;
_yscale = minus;
_xscale = minus;
_y = (_y + (moveBy + gravity));
if ((minus > -10) || (gravity > 2)) {
gravity = gravity * 1.2;
_y = (_y + (gravity * 2));
}
if (this.tape.hitTest(_root.interface) && (this.tape.hitTest(_root.kao.mort))) {
_root.mort++;
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
_root.ReleaseBoomerang(this);
}
if (this.hitTest(_root.limite)) {
_root.ReleaseBoomerang(this);
}
}
}
Instance of Symbol 151 MovieClip "boom2" in Frame 6
onClipEvent (load) {
var Xarrivee;
var Yarrivee;
var gravity;
var actif = 0;
var impact = 0;
_root.ReleaseBoomerang(this);
stop();
}
onClipEvent (unload) {
_root.ReleaseBoomerang(this);
}
onClipEvent (enterFrame) {
if (actif == 1) {
minus = Xarrivee - _x;
moveBy = minus * 0.8;
_x = (_x + moveBy);
minus = Yarrivee - _y;
moveBy = minus * 0.3;
_yscale = minus;
_xscale = minus;
_y = (_y + (moveBy + gravity));
if ((minus > -10) || (gravity > 2)) {
gravity = gravity * 1.2;
_y = (_y + (gravity * 2));
}
if (this.tape.hitTest(_root.interface) && (this.tape.hitTest(_root.kao.mort))) {
_root.mort++;
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
_root.ReleaseBoomerang(this);
}
if (this.hitTest(_root.limite)) {
_root.ReleaseBoomerang(this);
}
}
}
Instance of Symbol 151 MovieClip "boom3" in Frame 6
onClipEvent (load) {
var Xarrivee;
var Yarrivee;
var gravity;
var actif = 0;
var impact = 0;
_root.ReleaseBoomerang(this);
stop();
}
onClipEvent (unload) {
_root.ReleaseBoomerang(this);
}
onClipEvent (enterFrame) {
if (actif == 1) {
minus = Xarrivee - _x;
moveBy = minus * 0.8;
_x = (_x + moveBy);
minus = Yarrivee - _y;
moveBy = minus * 0.3;
_yscale = minus;
_xscale = minus;
_y = (_y + (moveBy + gravity));
if ((minus > -10) || (gravity > 2)) {
gravity = gravity * 1.2;
_y = (_y + (gravity * 2));
}
if (this.tape.hitTest(_root.interface) && (this.tape.hitTest(_root.kao.mort))) {
_root.mort++;
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
_root.ReleaseBoomerang(this);
}
if (this.hitTest(_root.limite)) {
_root.ReleaseBoomerang(this);
}
}
}
Instance of Symbol 151 MovieClip "boom4" in Frame 6
onClipEvent (load) {
var Xarrivee;
var Yarrivee;
var gravity;
var actif = 0;
var impact = 0;
_root.ReleaseBoomerang(this);
stop();
}
onClipEvent (unload) {
_root.ReleaseBoomerang(this);
}
onClipEvent (enterFrame) {
if (actif == 1) {
minus = Xarrivee - _x;
moveBy = minus * 0.8;
_x = (_x + moveBy);
minus = Yarrivee - _y;
moveBy = minus * 0.3;
_yscale = minus;
_xscale = minus;
_y = (_y + (moveBy + gravity));
if ((minus > -10) || (gravity > 2)) {
gravity = gravity * 1.2;
_y = (_y + (gravity * 2));
}
if (this.tape.hitTest(_root.interface) && (this.tape.hitTest(_root.kao.mort))) {
_root.mort++;
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
_root.ReleaseBoomerang(this);
}
if (this.hitTest(_root.limite)) {
_root.ReleaseBoomerang(this);
}
}
}
Instance of Symbol 151 MovieClip "boom5" in Frame 6
onClipEvent (load) {
var Xarrivee;
var Yarrivee;
var gravity;
var actif = 0;
var impact = 0;
_root.ReleaseBoomerang(this);
stop();
}
onClipEvent (unload) {
_root.ReleaseBoomerang(this);
}
onClipEvent (enterFrame) {
if (actif == 1) {
minus = Xarrivee - _x;
moveBy = minus * 0.8;
_x = (_x + moveBy);
minus = Yarrivee - _y;
moveBy = minus * 0.3;
_yscale = minus;
_xscale = minus;
_y = (_y + (moveBy + gravity));
if ((minus > -10) || (gravity > 2)) {
gravity = gravity * 1.2;
_y = (_y + (gravity * 2));
}
if (this.tape.hitTest(_root.interface) && (this.tape.hitTest(_root.kao.mort))) {
_root.mort++;
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
_root.ReleaseBoomerang(this);
}
if (this.hitTest(_root.limite)) {
_root.ReleaseBoomerang(this);
}
}
}
Instance of Symbol 168 MovieClip "interface" in Frame 6
onClipEvent (enterFrame) {
points = _root.compteur;
if (points == 30) {
_root.gotoAndStop("win2", 1);
}
nbboo = 50 - _root.CmptBoom;
_root.boomsleft = nbboo;
if (nbboo < 15) {
this.clignote.play();
}
if (nbboo <= 0) {
_root.CleanKaoGame();
_root.gotoAndStop("loose2", 1);
}
this["tete" + _root.mort]._visible = false;
if (_root.mort == 4) {
this.clignotevie.play();
}
if (_root.mort == 5) {
_root.CleanKaoGame();
unloadMovie (this);
_root.gotoAndStop("loose2", 1);
}
}
Frame 7
stop();
Frame 8
Mouse.show();
score = ((compteur + " ") + " ") + "points";
bboms = ((boomsleft + " ") + " ") + "left";
vies2 = 5 - mort;
stop();
Frame 9
Mouse.show();
score = ((compteur + " ") + " ") + "points";
bboms = ((boomsleft + " ") + " ") + "left";
vies2 = 5 - mort;
stop();
Frame 10
Mouse.show();
score = ((compteur + " ") + " ") + "points";
bboms = ((boomsleft + " ") + " ") + "left";
vies2 = 5 - mort;
stop();
Frame 11
Mouse.show();
score = ((compteur + " ") + " ") + "points";
bboms = ((boomsleft + " ") + " ") + "left";
vies2 = 5 - mort;
stop();
Symbol 20 Button
on (release) {
bo1._visible = true;
bo1.play();
bo1.bo11.gotoAndPlay(2);
}
Symbol 23 Button
on (release) {
bo3._visible = true;
bo3.play();
bo3.bo33.gotoAndPlay(2);
}
Symbol 28 Button
on (release) {
bo2._visible = true;
bo2.play();
bo2.bo22.gotoAndPlay(2);
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
play();
Symbol 44 MovieClip Frame 7
gotoAndPlay (2);
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 30
this._visible = false;
_root.gotoAndPlay("level1", 1);
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 30
this._visible = false;
_root.gotoAndPlay("instru", 1);
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 30
this._visible = false;
_root.gotoAndPlay("practice", 1);
Symbol 53 Button
on (release) {
gotoAndPlay (5);
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 25
stop();
Instance of Symbol 81 MovieClip "hit" in Symbol 83 MovieClip Frame 1
onClipEvent (enterFrame) {
var i = 1;
while (i <= _root.MaxBoom) {
if ((_root["boom" + i].actif == 1) && (_root["boom" + i].tape.hitTest(this))) {
_root["boom" + i].impact = 1;
this._visible = true;
}
i++;
}
var i = 1;
while (i <= _root.MaxBoom) {
if (_root["boom" + i].impact == 1) {
_root.ReleaseBoomerang(_root["boom" + i]);
_parent._parent._parent.gotoAndPlay("goaway");
_root.compteur++;
_parent._parent.contour.play();
nombre = _root.compteur;
_root.scible = new Sound();
_root.scible.attachSound("scible");
_root.scible.start(0, 1);
}
i++;
}
}
Symbol 85 MovieClip Frame 1
stop();
Instance of Symbol 81 MovieClip "hit" in Symbol 88 MovieClip Frame 1
onClipEvent (enterFrame) {
var i = 1;
while (i <= _root.MaxBoom) {
if ((_root["boom" + i].actif == 1) && (_root["boom" + i].tape.hitTest(this))) {
_root["boom" + i].impact = 1;
this._visible = true;
}
i++;
}
var i = 1;
while (i <= _root.MaxBoom) {
if (_root["boom" + i].impact == 1) {
_root.ReleaseBoomerang(_root["boom" + i]);
_parent._parent._parent.gotoAndPlay("goaway");
_root.compteur++;
_root.compteur++;
_parent._parent.contour.play();
nombre = _root.compteur;
_root.scible = new Sound();
_root.scible.attachSound("scible");
_root.scible.start(0, 1);
}
i++;
}
}
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
bullet._visible = true;
Symbol 97 MovieClip Frame 1
stop();
Instance of Symbol 81 MovieClip "hit" in Symbol 100 MovieClip Frame 1
onClipEvent (enterFrame) {
var i = 1;
while (i <= _root.MaxBoom) {
if ((_root["boom" + i].actif == 1) && (_root["boom" + i].tape.hitTest(this))) {
_root["boom" + i].impact = 1;
this._visible = true;
}
i++;
}
var i = 1;
while (i <= _root.MaxBoom) {
if (_root["boom" + i].impact == 1) {
_root.ReleaseBoomerang(_root["boom" + i]);
_parent._parent._parent.gotoAndPlay("goaway");
_root.compteur++;
_parent._parent.contour.play();
nombre = _root.compteur;
_root.scible = new Sound();
_root.scible.attachSound("scible");
_root.scible.start(0, 1);
}
i++;
}
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Instance of Symbol 95 MovieClip "bullet" in Symbol 106 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.bullet.hitTest(_root.kao.mort)) {
_root.mort++;
this._visible = false;
this.gotoAndStop(1);
_root.kao.anim.ange.play();
_root.stouche = new Sound();
_root.stouche.attachSound("stouche");
_root.stouche.start(0, 1);
}
}
Symbol 106 MovieClip Frame 3
stop();
Symbol 106 MovieClip Frame 4
stop();
Instance of Symbol 105 MovieClip "cible" in Symbol 106 MovieClip Frame 4
onClipEvent (enterFrame) {
var i = 1;
while (i <= _root.MaxBoom) {
if ((_root["boom" + i].actif == 1) && (_root["boom" + i].tape.hitTest(this))) {
_root["boom" + i].impact = 1;
this._visible = true;
}
i++;
}
var i = 1;
while (i <= _root.MaxBoom) {
if (_root["boom" + i].impact == 1) {
_root.ReleaseBoomerang(_root["boom" + i]);
_parent._parent.gotoAndPlay("goaway");
_root.compteur = _root.compteur - 3;
_parent.contour.play();
_root.erreur = new Sound();
_root.erreur.attachSound("erreur");
_root.erreur.start(0, 1);
}
i++;
}
}
Symbol 107 MovieClip Frame 5
this.cible0.bullet.play();
Symbol 107 MovieClip Frame 29
a = random(20);
_root.wait1 = 1 + a;
z = random(5);
this.cible0.gotoAndStop(z);
stop();
Symbol 111 MovieClip Frame 5
this.cible0.bullet.play();
Symbol 111 MovieClip Frame 34
b = random(8);
z = random(5);
this.cible0.gotoAndStop(z);
_root.wait2 = 1 + b;
stop();
Symbol 115 MovieClip Frame 5
this.cible0.bullet.play();
Symbol 115 MovieClip Frame 50
c = random(15);
z = random(5);
this.cible0.gotoAndStop(z);
_root.wait3 = 1 + c;
stop();
Symbol 119 MovieClip Frame 5
this.cible0.bullet.play();
Symbol 119 MovieClip Frame 31
d = random(15);
z = random(5);
this.cible0.gotoAndStop(z);
_root.wait4 = 1 + d;
stop();
Symbol 123 MovieClip Frame 5
this.cible0.bullet.play();
Symbol 123 MovieClip Frame 35
e = random(20);
z = random(5);
this.cible0.gotoAndStop(z);
_root.wait5 = 1 + e;
stop();
Symbol 127 MovieClip Frame 5
this.cible0.bullet.play();
Symbol 127 MovieClip Frame 46
f = random(15);
z = random(5);
this.cible0.gotoAndStop(z);
_root.wait6 = 1 + f;
stop();
Symbol 131 MovieClip Frame 5
Symbol 131 MovieClip Frame 60
g = random(25);
_root.wait7 = 1 + g;
z = random(5);
this.cible0.gotoAndStop(z);
stop();
Symbol 134 MovieClip Frame 1
MaVariable = 52;
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 1
xmov = 0;
xpos = 200;
Symbol 150 MovieClip Frame 2
xmov = (getProperty("/viseur", _x) - _x) / 2;
xpos = Number(xpos) + Number(xmov);
_x = xpos;
Symbol 150 MovieClip Frame 3
gotoAndPlay (2);
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
play();
Symbol 151 MovieClip Frame 7
if (actif == 1) {
gotoAndPlay (2);
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 14
gotoAndPlay (2);
Symbol 167 Button
on (release) {
_root.CleanKaoGame();
_root.gotoAndStop("menu1", 1);
}
Instance of Symbol 81 MovieClip "hit" in Symbol 189 MovieClip Frame 1
onClipEvent (enterFrame) {
var i = 1;
while (i <= _root.MaxBoom) {
if ((_root["boom" + i].actif == 1) && (_root["boom" + i].tape.hitTest(this))) {
_root["boom" + i].impact = 1;
this._visible = true;
}
i++;
}
var i = 1;
while (i <= _root.MaxBoom) {
if (_root["boom" + i].impact == 1) {
_root.ReleaseBoomerang(_root["boom" + i]);
_parent._parent._parent.gotoAndPlay("goaway");
_root.compteur++;
nombre = _root.compteur;
_root.scible = new Sound();
_root.scible.attachSound("scible");
_root.scible.start(0, 1);
}
i++;
}
}
Symbol 192 Button
on (release) {
_root.gotoAndStop("menu1", 1);
}
Symbol 201 Button
on (release) {
_root.gotoAndStop("game", 1);
}
Symbol 204 Button
on (release) {
_root.gotoAndStop("menu1", 1);
}
Symbol 213 Button
on (release) {
_root.gotoAndPlay("practice", 1);
}