Frame 1
stop();
_quality = medium;
Instance of Symbol 3 MovieClip in Frame 1
onClipEvent (enterFrame) {
_xscale = (100 * (_parent.getBytesLoaded() / _parent.getBytesTotal()));
}
Instance of Symbol 20 MovieClip in Frame 1
onClipEvent (enterFrame) {
_level0.lod.barre01._yscale = (100 * _level0.getBytesLoaded()) / _level0.getBytesTotal();
if ((_level0.getBytesLoaded() >= _level0.getBytesTotal()) && (0 < _level0.getBytesTotal())) {
_level0.play();
}
}
Frame 2
function MyWorld(i_max, j_max) {
this.i_max = i_max;
this.j_max = j_max;
this.tabCellVisible = [];
this.tabCell = [];
var k = 1;
var i = 0;
while (i < i_max) {
this.tabCell[i] = [];
var j = 0;
while (j < j_max) {
this.tabCell[i][j] = new cellule(i, j, k, random(100) + 1);
k++;
j++;
}
i++;
}
_level0.nb_cell = k;
_level0.i_max = i_max;
_level0.j_max = j_max;
}
function cellule(iCell, jCell, idCell, idCellView) {
this.iCell = iCell;
this.jCell = jCell;
this.iview = iCell;
this.jview = jCell;
this.idCellView = idCellView;
this.idCell = idCell;
this.viewName = "case" + idCell;
this.pnj = [];
this.nb_tree = 0;
this.tree = [];
this.nb_pnj = 0;
}
fscommand ("FULLSCREENRESIZE", "OFF");
fscommand ("SET;500;700", "WINRES");
fscommand ("FULLSCREEN", "YES");
MyWorld.prototype.refresh = function () {
var k = 0;
while (k < _level0.world.tabCellVisible.length) {
if (this.tabCellVisible[k] != null) {
this.tabCellVisible[k].show();
}
k++;
}
};
cellule.prototype.show = function () {
this.view = {};
duplicateMovieClip (_level0.case, this.viewName, 10 + this.idCell);
this.view = eval ("_level0." + this.viewName);
this.view.cell.gotoAndStop(this.idCellView);
this.view.icell = this.icell;
this.view.jcell = this.jcell;
this.view.iview = this.iview;
this.view.jview = this.jview;
this.view.idCell = this.idCell;
this.view._x = (_level0.xunit * this.iview) + _level0.xorigine;
this.view._y = (_level0.yunit * this.jview) + _level0.yorigine;
};
cellule.prototype.addtree = function (id, x, y) {
this.tree[this.nb_tree] = {};
this.tree[this.nb_tree].id = id;
this.tree[this.nb_tree].x = x;
this.tree[this.nb_tree].y = y;
this.nb_tree++;
};
cellule.prototype.addPNJ = function (id, post, x, y) {
this.pnj[this.nb_pnj] = {};
this.pnj[this.nb_pnj].id = id;
this.pnj[this.nb_pnj].posture = post;
this.pnj[this.nb_pnj].x = x;
this.pnj[this.nb_pnj].y = y;
_level666.console.text = _level666.console.text + ((("\ron ajoute un pnj" + x) + " ") + y);
this.nb_pnj++;
};
cellule.prototype.centrer = function () {
eval ("_level60000.map.map.case" + _level0.banja.idcell).visit = true;
eval ("_level60000.map.map.case" + _level0.banja.idcell).play();
var h = 0;
while (h < _level0.world.tabCellVisible.length) {
if (_level0.world.tabCellVisible[h] != null) {
removeMovieClip(_level0.world.tabCellVisible[h].view);
}
h++;
}
_level0.icurrent_cell = this.icell;
_level0.jcurrent_cell = this.jcell;
_level0.world.tabCellVisible[0] = _level0.world.tabCell[this.iCell][this.jCell];
_level0.world.tabCellVisible[0].iview = this.iview;
_level0.world.tabCellVisible[0].jview = this.jview;
if ((this.iCell - 1) < 0) {
totoi = (_level0.i_max - 2) - ((this.iCell - 1) % _level0.i_max);
} else if ((this.iCell - 1) >= 0) {
totoi = (this.iCell - 1) % _level0.i_max;
}
if (this.jCell < 0) {
totoj = (_level0.j_max - 2) - (this.jCell % _level0.j_max);
} else if (this.jCell >= 0) {
totoj = this.jCell % _level0.j_max;
}
_level0.world.tabCellVisible[1] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[1].iview = this.iview - 1;
_level0.world.tabCellVisible[1].jview = this.jview;
if ((this.iCell - 1) < 0) {
totoi = (_level0.i_max - 2) - ((this.iCell - 1) % _level0.i_max);
} else if ((this.iCell - 1) >= 0) {
totoi = (this.iCell - 1) % _level0.i_max;
}
if ((this.jCell - 1) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell - 1) % _level0.j_max);
} else if ((this.jCell - 1) >= 0) {
totoj = (this.jCell - 1) % _level0.j_max;
}
_level0.world.tabCellVisible[2] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[2].iview = this.iview - 1;
_level0.world.tabCellVisible[2].jview = this.jview - 1;
if ((this.iCell - 1) < 0) {
totoi = (_level0.i_max - 2) - ((this.iCell - 1) % _level0.i_max);
} else if ((this.iCell - 1) >= 0) {
totoi = (this.iCell - 1) % _level0.i_max;
}
if ((this.jCell - 2) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell - 2) % _level0.j_max);
} else if ((this.jCell - 2) >= 0) {
totoj = (this.jCell - 2) % _level0.j_max;
}
_level0.world.tabCellVisible[3] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[3].iview = this.iview - 1;
_level0.world.tabCellVisible[3].jview = this.jview - 2;
if (this.iCell < 0) {
totoi = (_level0.i_max - 2) - (this.iCell % _level0.i_max);
} else if (this.iCell >= 0) {
totoi = this.iCell % _level0.i_max;
}
if ((this.jCell - 1) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell - 1) % _level0.j_max);
} else if ((this.jCell - 1) >= 0) {
totoj = (this.jCell - 1) % _level0.j_max;
}
_level0.world.tabCellVisible[4] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[4].iview = this.iview;
_level0.world.tabCellVisible[4].jview = this.jview - 1;
if (this.iCell < 0) {
totoi = (_level0.i_max - 2) - (this.iCell % _level0.i_max);
} else if (this.iCell >= 0) {
totoi = this.iCell % _level0.i_max;
}
if ((this.jCell - 2) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell - 2) % _level0.j_max);
} else if ((this.jCell - 2) >= 0) {
totoj = (this.jCell - 2) % _level0.j_max;
}
_level0.world.tabCellVisible[5] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[5].iview = this.iview;
_level0.world.tabCellVisible[5].jview = this.jview - 2;
if ((this.iCell + 1) < 0) {
totoi = (_level0.i_max - 2) - ((this.iCell + 1) % _level0.i_max);
} else if ((this.iCell + 1) >= 0) {
totoi = (this.iCell + 1) % _level0.i_max;
}
if ((this.jCell - 1) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell - 1) % _level0.j_max);
} else if ((this.jCell - 1) >= 0) {
totoj = (this.jCell - 1) % _level0.j_max;
}
_level0.world.tabCellVisible[6] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[6].iview = this.iview + 1;
_level0.world.tabCellVisible[6].jview = this.jview - 1;
if ((this.iCell + 1) < 0) {
totoi = (_level0.i_max - 2) - ((this.iCell + 1) % _level0.i_max);
} else if ((this.iCell + 1) >= 0) {
totoi = (this.iCell + 1) % _level0.i_max;
}
if ((this.jCell - 2) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell - 2) % _level0.j_max);
} else if ((this.jCell - 2) >= 0) {
totoj = (this.jCell - 2) % _level0.j_max;
}
_level0.world.tabCellVisible[7] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[7].iview = this.iview + 1;
_level0.world.tabCellVisible[7].jview = this.jview - 2;
if ((this.iCell + 1) < 0) {
totoi = (_level0.i_max - 2) - ((this.iCell + 1) % _level0.i_max);
} else if ((this.iCell + 1) >= 0) {
totoi = (this.iCell + 1) % _level0.i_max;
}
if (this.jCell < 0) {
totoj = (_level0.j_max - 2) - (this.jCell % _level0.j_max);
} else if (this.jCell >= 0) {
totoj = this.jCell % _level0.j_max;
}
_level0.world.tabCellVisible[8] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[8].iview = this.iview + 1;
_level0.world.tabCellVisible[8].jview = this.jview;
if ((this.iCell + 1) < 0) {
totoi = (_level0.i_max - 2) - ((this.iCell + 1) % _level0.i_max);
} else if ((this.iCell + 1) >= 0) {
totoi = (this.iCell + 1) % _level0.i_max;
}
if ((this.jCell + 1) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell + 1) % _level0.j_max);
} else if ((this.jCell + 1) >= 0) {
totoj = (this.jCell + 1) % _level0.j_max;
}
_level0.world.tabCellVisible[9] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[9].iview = this.iview + 1;
_level0.world.tabCellVisible[9].jview = this.jview + 1;
if ((this.iCell + 1) < 0) {
totoi = (_level0.i_max - 2) - ((this.iCell + 1) % _level0.i_max);
} else if ((this.iCell + 1) >= 0) {
totoi = (this.iCell + 1) % _level0.i_max;
}
if ((this.jCell + 2) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell + 2) % _level0.j_max);
} else if ((this.jCell + 2) >= 0) {
totoj = (this.jCell + 2) % _level0.j_max;
}
_level0.world.tabCellVisible[10] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[10].iview = this.iview + 1;
_level0.world.tabCellVisible[10].jview = this.jview + 2;
if (this.iCell < 0) {
totoi = (_level0.i_max - 2) - (this.iCell % _level0.i_max);
} else if (this.iCell >= 0) {
totoi = this.iCell % _level0.i_max;
}
if ((this.jCell + 1) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell + 1) % _level0.j_max);
} else if ((this.jCell + 1) >= 0) {
totoj = (this.jCell + 1) % _level0.j_max;
}
_level0.world.tabCellVisible[11] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[11].iview = this.iview;
_level0.world.tabCellVisible[11].jview = this.jview + 1;
if (this.iCell < 0) {
totoi = (_level0.i_max - 2) - (this.iCell % _level0.i_max);
} else if (this.iCell >= 0) {
totoi = this.iCell % _level0.i_max;
}
if ((this.jCell + 2) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell + 2) % _level0.j_max);
} else if ((this.jCell + 2) >= 0) {
totoj = (this.jCell + 2) % _level0.j_max;
}
_level0.world.tabCellVisible[12] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[12].iview = this.iview;
_level0.world.tabCellVisible[12].jview = this.jview + 2;
if ((this.iCell - 1) < 0) {
totoi = (_level0.i_max - 2) - ((this.iCell - 1) % _level0.i_max);
} else if ((this.iCell - 1) >= 0) {
totoi = (this.iCell - 1) % _level0.i_max;
}
if ((this.jCell + 1) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell + 1) % _level0.j_max);
} else if ((this.jCell + 1) >= 0) {
totoj = (this.jCell + 1) % _level0.j_max;
}
_level0.world.tabCellVisible[13] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[13].iview = this.iview - 1;
_level0.world.tabCellVisible[13].jview = this.jview + 1;
if ((this.iCell - 1) < 0) {
totoi = (_level0.i_max - 2) - ((this.iCell - 1) % _level0.i_max);
} else if ((this.iCell - 1) >= 0) {
totoi = (this.iCell - 1) % _level0.i_max;
}
if ((this.jCell + 2) < 0) {
totoj = (_level0.j_max - 2) - ((this.jCell + 2) % _level0.j_max);
} else if ((this.jCell + 2) >= 0) {
totoj = (this.jCell + 2) % _level0.j_max;
}
_level0.world.tabCellVisible[14] = _level0.world.tabCell[totoi][totoj];
_level0.world.tabCellVisible[14].iview = this.iview - 1;
_level0.world.tabCellVisible[14].jview = this.jview + 2;
_level0.world.refresh();
};
_level0.movie_largeur = 350;
_level0.movie_hauteur = 490;
_level0.xunit = 350;
_level0.yunit = 245;
_level0.xOrigine = 0;
_level0.yOrigine = 0;
_level0.world = new MyWorld(20, 20);
_level0.run = false;
_level0.compteur_pomme = 0;
_level0.compteur_fleur = 0;
var k = 0;
var i = 0;
while (i < 3) {
var j = 0;
while (j < 5) {
_level0.world.tabcellvisible[k] = _level0.world.tabcell[i][j];
k++;
j++;
}
i++;
}
Frame 3
stop();
Instance of Symbol 25 MovieClip in Frame 3
onClipEvent (load) {
soustotal = 0;
k = 0;
}
Frame 4
obj = {};
for (obj in _level0) {
removeMovieClip(eval (obj));
}
Frame 11
stop();
_level0.run = false;
_level0.freeze = false;
_level0.oizo.swapDepths(50001);
_level0.banja.swapDepths(5);
_level0.graine.swapDepths(49990);
_level0.pointe.swapDepths(49998);
_level0.corde.swapDepths(6);
_level0.acceuil.swapDepths(4);
Instance of Symbol 38 MovieClip "test" in Frame 11
onClipEvent (load) {
_level0.temp_start = getTimer();
}
onClipEvent (enterFrame) {
m_garotx = _parent.pointe._x;
m_garoty = _parent.pointe._y;
angle = _parent.prog.angle_alpha;
vari_angle = _parent.prog.angle;
chrono_temp = getTimer() - _parent.temp_start;
chrono_temp = Math.floor(chrono_temp / 100);
chrono = chrono_temp / 10;
v_x = _parent.caillasse._x;
v_y = _parent.prog.vecteur_y;
pithon = _parent.prog.pithon;
if (_level0.run) {
}
}
Instance of Symbol 44 MovieClip "prog" in Frame 11
onClipEvent (enterFrame) {
moteurscroll();
if (_level0.run && (!_level0.freeze)) {
if (arme) {
if (accroche == 0) {
rotate();
_level0.banja.swapDepths(50000);
_level0.corde.swapDepths(50001);
_parent.banja.perso.pos.gotoAndStop("rotation");
} else if (accroche == 1) {
_level0.banja.swapDepths(50000);
_level0.corde.swapDepths(50001);
garotte();
} else if (accroche == 2) {
_level0.banja.swapDepths(50000);
_level0.corde.swapDepths(50001);
balance();
_parent.banja.perso.pos.gotoAndStop("balance");
se_retourne();
} else if ((accroche == 3) || (accroche == 4)) {
decroche();
_level0.banja.swapDepths(5);
_level0.corde.swapDepths(6);
}
} else {
_level0.banja.swapDepths(5);
_level0.corde.swapDepths(6);
marche(4.5);
}
}
if (stop_graine == 0) {
} else if (stop_graine == 1) {
graine_vole();
}
oizo();
encordage();
}
onClipEvent (keyDown) {
if (!_level0.freeze) {
if (_level0.run) {
_level0.init_timer = true;
if (Key.getCode() == Key.UP) {
if (accroche == 2) {
if (110 < distance) {
distance = distance - 4;
}
}
} else if (Key.getCode() == Key.DOWN) {
if (accroche == 2) {
if (distance < 500) {
distance = distance + 4;
}
}
} else if (Key.getCode() == _level111.action) {
if (!arme) {
if ((stop_graine == 0) && (0 < _level0.banja.nb_graine)) {
jette_graine();
}
}
} else if ((Key.getCode() == _level111.position) && (accroche != 3)) {
if (arme) {
if (accroche == 2) {
accroche = 3;
_level0.banja.perso.gotoAndStop("marche");
arme = false;
}
} else {
_level0.banja.perso.gotoAndStop("tire");
accroche = 1;
arme = true;
}
}
} else if (_level0.screensaver) {
_level9998.gotoAndStop(1);
_level0.temp_start = getTimer();
_level0.screenSaver = false;
} else {
_level0.temp_start = getTimer();
if (Key.getCode() == _level111.action) {
_level0.acceuil.btstart.gotoAndPlay(_level0.banja.couleur);
} else if (Key.getCode() == KEY.RIGHT) {
_level0.acceuil.f_droite.play();
f = _level0.banja._currentFrame;
if (f == _level0.banja._totalFrames) {
_level0.banja.GotoAndStop(1);
} else {
_level0.banja.GotoAndStop(f + 1);
}
} else if (Key.getCode() == KEY.LEFT) {
_level0.acceuil.f_gauche.play();
f = _level0.banja._currentFrame;
if (f == 1) {
_level0.banja.GotoAndStop(_level0.banja._totalFrames);
} else {
_level0.banja.GotoAndStop(f - 1);
}
} else if (Key.getCode() == _level111.map) {
_level0.temp_start = getTimer();
_level9998.play();
_level0.screensaver = true;
}
}
}
}
onClipEvent (load) {
function deg2rad(degree) {
radian = (Math.PI/180) * degree;
return(radian);
}
function oizo() {
if ((_parent.oizo._y < 0) || (_level0.movie_hauteur < _parent.oizo._y)) {
_parent.oizo._y = _level0.movie_hauteur / 2;
}
_parent.oizo._x = _parent.oizo._x + vol;
if (_parent.oizo._x < -740) {
_parent.oizo._xscale = -70;
vol = -vol;
} else if (1250 < _parent.oizo._x) {
_parent.oizo._xscale = 70;
vol = -vol;
}
}
function init() {
accroche = 0;
_level0.banja.perso.gotoAndStop("marche");
distance = 0;
value = 30;
tombe = 1;
inertie = 0;
scroll_v = 0.6;
deja_pose = false;
percent = 100;
fausse_corniche = 0;
}
function encordage() {
if (arme) {
if (accroche == 2) {
if (0 < vecteur_x) {
_level0.corde._x = _level0.banja._x - 19;
_level0.corde._y = _level0.banja._y - 70;
} else {
_level0.corde._x = _level0.banja._x + 19;
_level0.corde._y = _level0.banja._y - 70;
}
} else {
_level0.corde._y = _level0.banja._y - 63;
}
} else {
_level0.corde._visible = false;
_level0.corde._x = _level0.banja._x;
_level0.corde._y = _level0.banja._y - 35;
}
_level0.corde._xscale = _level0.pointe._x - _level0.corde._x;
_level0.corde._yscale = _level0.pointe._y - _level0.corde._y;
}
function rotate() {
_level0.pointe.gotoAndStop("pause");
if (Key.isDown(Key.RIGHT)) {
if (_level0.pointe._rotation < 50) {
_level0.pointe._rotation = _level0.pointe._rotation + 5;
if (_level0.pointe._rotation == 0) {
_level0.pointe._rotation = 5;
}
_level0.banja.perso.pos.part3._rotation = _level0.pointe._rotation;
}
} else if (Key.isDown(Key.LEFT)) {
if (-50 < _level0.pointe._rotation) {
_level0.pointe._rotation = _level0.pointe._rotation - 5;
if (_level0.pointe._rotation == 0) {
_level0.pointe._rotation = -5;
}
_level0.banja.perso.pos.part3._rotation = _level0.pointe._rotation;
}
}
angle_base = _level0.pointe._rotation;
}
function garotte() {
if (droite) {
_level0.pointe._rotation = 35;
_level0.corde._x = _level0.banja._x + 14;
} else {
_level0.pointe._rotation = -35;
_level0.corde._x = _level0.banja._x - 11;
}
_level0.banja.perso.pos.part3._rotation = _level0.pointe._rotation;
radian_value = deg2rad(_level0.pointe._rotation);
_level0.corde._visible = true;
_level0.pointe._visible = true;
_level0.pointe.gotoAndStop("lance");
_level0.banja.perso.pos.part3.gotoAndPlay("garotte");
_level0.pointe._x = _level0.pointe._x + (value * Math.sin(radian_value));
_level0.pointe._y = _level0.pointe._y - (value * Math.cos(radian_value));
distance = distance + value;
if (300 < distance) {
angle_alpha = _level0.pointe._rotation;
accroche = 2;
} else if (distance < 20) {
_level0.pointe._x = _level0.banja._x;
_level0.pointe._y = _level0.banja._y - 40;
accroche = 0;
value = 30;
_level0.banja.perso.pos.part3.gotoAndPlay("charge");
}
}
function balance() {
_level0.pointe.gotoAndStop("accroche");
vari_angle = angle_alpha * Math.cos(deg2rad(inertie));
vecteur_x = _level0.banja._x - (_level0.pointe._x + (distance * Math.sin(-deg2rad(vari_angle))));
vecteur_y = _level0.banja._y - (_level0.pointe._y + (distance * Math.cos(-deg2rad(vari_angle))));
_level0.banja._x = _level0.banja._x - vecteur_x;
_level0.banja._y = _level0.banja._y - vecteur_y;
inertie = inertie + 10;
if ((angle_alpha < 0.5) && (0 < angle_alpha)) {
angle_alpha = 0.5;
} else if ((-0.5 < angle_alpha) && (angle_alpha < 0)) {
angle_alpha = -0.5;
} else if (0.5 < angle_alpha) {
angle_alpha = angle_alpha - 0.2;
} else if (angle_alpha < -0.5) {
angle_alpha = angle_alpha + 0.2;
}
if (Key.isDown(Key.LEFT)) {
if (0 < vecteur_x) {
if (Math.abs(angle_alpha) < 80) {
if (0 < angle_alpha) {
angle_alpha = angle_alpha + 0.5;
} else if (angle_alpha < 0) {
angle_alpha = angle_alpha - 0.5;
}
}
}
} else if (Key.isDown(Key.RIGHT)) {
if (vecteur_x < 0) {
if (Math.abs(angle_alpha) < 80) {
if (0 < angle_alpha) {
angle_alpha = angle_alpha + 0.5;
} else if (angle_alpha < 0) {
angle_alpha = angle_alpha - 0.5;
}
}
}
}
}
function decroche() {
_level0.pointe._visible = false;
_level0.corde._visible = false;
_level0.banja.perso.gotoAndStop("tire");
_level0.banja.perso.pos.gotoAndStop("tombe");
_level0.banja._x = _level0.banja._x - vecteur_x;
_level0.banja._y = _level0.banja._y - vecteur_y;
if (-15 < vecteur_y) {
vecteur_y = vecteur_y - 0.25;
} else {
vecteur_y = -15;
}
}
function jette_graine() {
if (0 < vecteur_x) {
Gvect_x = 1.5;
} else {
Gvect_x = -1.5;
}
Gvect_y = 5;
if (droite) {
_level0.graine._x = _level0.banja._x + 16;
} else {
_level0.graine._x = _level0.banja._x - 16;
}
_level0.graine._y = _level0.banja._y - 40;
_level0.banja.nb_graine = _level0.banja.nb_graine - 1;
stop_graine = 1;
}
function graine_vole() {
_level0.graine._visible = true;
_level0.graine._x = _level0.graine._x - Gvect_x;
_level0.graine._y = _level0.graine._y - Gvect_y;
if (-20 < Gvect_y) {
Gvect_y = Gvect_y - 0.35;
} else {
Gvect_y = -20;
}
}
function graine_stop() {
stop_graine = 2;
}
function banja_stop() {
init();
if (droite) {
_level0.banja.perso.gotoAndStop("marche");
_level0.banja.perso.pos.gotoAndStop("droite");
} else {
_level0.banja.perso.gotoAndStop("marche");
_level0.banja.perso.pos.gotoAndStop("gauche");
}
_level0.pointe._x = _level0.banja._x;
_level0.pointe._y = _level0.banja._y - 20;
_level0.corde._visible = false;
_level0.pointe._rotation = 5;
_level0.banja.perso.pos.part1._rotation = _level0.pointe._rotation / 3;
_level0.banja.perso.pos.part3._rotation = _level0.pointe._rotation;
}
function se_retourne() {
if (0 < vecteur_x) {
_level0.banja.perso.pos.banja_accroche.gotoAndStop("positif");
} else {
_level0.banja.perso.pos.banja_accroche.gotoAndStop("negatif");
}
}
function marche(pas) {
_level0.pointe.gotoAndStop("pause");
if (Key.isDown(Key.RIGHT)) {
if (100 < _level0.banja._x) {
vecteur_x = -pas;
} else {
vecteur_x = pas;
}
droite = true;
gauche = false;
_level0.banja.perso.pos.gotoAndStop("droite");
_level0.pointe._x = _level0.pointe._x + pas;
_level0.banja._x = _level0.banja._x + pas;
_level0.banja.perso.pos.gauche.play();
} else if (Key.isDown(Key.LEFT)) {
if (_level0.banja._x < (_level0.movie_largeur - 100)) {
vecteur_x = pas;
} else {
vecteur_x = -pas;
}
droite = false;
gauche = true;
_level0.banja.perso.pos.gotoAndStop("gauche");
_level0.pointe._x = _level0.pointe._x - pas;
_level0.banja._x = _level0.banja._x - pas;
_level0.banja.perso.pos.gauche.play();
} else {
_level0.banja.perso.pos.gauche.gotoAndStop(1);
_level0.banja.perso.pos.gauche.gotoAndStop(1);
}
}
function moteurscroll() {
if (_level0.banja._y < 140) {
scroll_v = 5;
scroll_y();
} else if (350 < _level0.banja._y) {
scroll_v = vecteur_y;
scroll_y();
}
if ((_level0.banja._x < 100) || ((_level0.movie_largeur - 100) < _level0.banja._x)) {
scroll_h = vecteur_x;
if ((_level0.banja._x < 0) || (_level0.movie_largeur < _level0.banja._x)) {
scroll_h = vecteur_x * 2;
}
scroll_x();
}
}
function scroll_y() {
var k = 0;
while (k < _level0.world.tabCellVisible.length) {
_level0.world.tabCellVisible[k].view._y = _level0.world.tabCellVisible[k].view._y + scroll_v;
k++;
}
_level0.pointe._y = _level0.pointe._y + scroll_v;
_level0.banja._y = _level0.banja._y + scroll_v;
_level0.yorigine = _level0.yorigine + scroll_v;
_level0.oizo._y = _level0.oizo._y + scroll_v;
_level0.graine._y = _level0.graine._y + scroll_v;
}
function scroll_x() {
var k = 0;
while (k < _level0.world.tabCellVisible.length) {
_level0.world.tabCellVisible[k].view._x = _level0.world.tabCellVisible[k].view._x + scroll_h;
k++;
}
_level0.pointe._x = _level0.pointe._x + scroll_h;
_level0.banja._x = _level0.banja._x + scroll_h;
_level0.xorigine = _level0.xorigine + scroll_h;
_level0.oizo._x = _level0.oizo._x + scroll_h;
_level0.graine._x = _level0.graine._x + scroll_h;
}
vol = -5;
init();
stop_graine = 0;
_level0.graine._visible = false;
}
Instance of Symbol 47 MovieClip "graine" in Frame 11
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 109 MovieClip "banja" in Frame 11
onClipEvent (load) {
gotoAndStop (2);
idcell = null;
nb_graine = 0;
}
Frame 16
stop();
_level0.run = true;
_level0.world.refresh();
Instance of Symbol 528 MovieClip "case" in Frame 16
onClipEvent (load) {
pos = {};
pos.x = _x;
pos.y = _y;
largeur = _level0.xunit;
hauteur = _level0.yunit;
}
onClipEvent (enterFrame) {
pos.x = _x;
pos.y = _y;
}
Instance of Symbol 6 MovieClip "barre02" in Symbol 18 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
}
Symbol 25 MovieClip Frame 1
tab_load = ["key", "ScreenSaver", "cache", "clock", "interface", "console"];
tab_level = [111, 9998, 60010, 9999, 60000, 666];
Symbol 25 MovieClip Frame 2
stop();
Instance of Symbol 22 MovieClip in Symbol 25 MovieClip Frame 2
onClipEvent (load) {
loadMovieNum (_parent.tab_load[_parent.k] + ".swf", _parent.tab_level[_parent.k]);
}
onClipEvent (enterFrame) {
_level0.lod.barre02._yscale = (100 * (_parent.soustotal + eval ("_level" + _parent.tab_level[_parent.k]).getBytesLoaded())) / 508370;
_xscale = ((100 * (_parent.soustotal + eval ("_level" + _parent.tab_level[_parent.k]).getBytesLoaded())) / 508370);
if ((eval ("_level" + _parent.tab_level[_parent.k]).getBytesLoaded() >= eval ("_level" + _parent.tab_level[_parent.k]).getBytesTotal()) && (0 < eval ("_level" + _parent.tab_level[_parent.k]).getBytesTotal())) {
_parent.soustotal = _parent.soustotal + eval ("_level" + _parent.tab_level[_parent.k]).getBytesTotal();
if (_parent.k != 5) {
_parent.k++;
_parent.gotoAndPlay(1);
} else {
_level0.lod.barre02._yscale = 100;
_level0.gotoAndPlay(4);
}
}
}
Symbol 29 Button
on (release) {
if (_currentframe == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
stop();
Symbol 53 MovieClip Frame 4
gotoAndPlay (1);
Symbol 58 MovieClip Frame 1
stop();
_level0.banja.posture = "gauche";
Instance of Symbol 48 MovieClip "graine" in Symbol 58 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((_level0.banja.nb_graine != 0) && (_level0.prog.accroche == 0)) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 58 MovieClip Frame 8
stop();
_level0.banja.posture = "droite";
Symbol 58 MovieClip Frame 15
stop();
Symbol 58 MovieClip Frame 22
stop();
graine._visible = false;
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 7
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 8
stop();
Symbol 73 MovieClip Frame 9
stop();
Symbol 73 MovieClip Frame 16
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 4
stop();
Symbol 75 MovieClip Frame 7
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 10
stop();
Symbol 81 MovieClip Frame 1
stop();
Instance of Symbol 48 MovieClip "graine" in Symbol 81 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((_level0.banja.nb_graine != 0) && (_level0.prog.accroche == 0)) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 81 MovieClip Frame 8
stop();
Symbol 81 MovieClip Frame 15
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 8
stop();
Symbol 89 MovieClip Frame 9
stop();
Symbol 89 MovieClip Frame 16
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 4
stop();
Symbol 91 MovieClip Frame 7
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 10
stop();
Symbol 97 MovieClip Frame 1
stop();
Instance of Symbol 48 MovieClip "graine" in Symbol 97 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((_level0.banja.nb_graine != 0) && (_level0.prog.accroche == 0)) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 97 MovieClip Frame 8
stop();
Symbol 97 MovieClip Frame 15
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 8
stop();
Symbol 105 MovieClip Frame 9
stop();
Symbol 105 MovieClip Frame 16
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 4
stop();
Symbol 107 MovieClip Frame 7
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 10
stop();
Symbol 109 MovieClip Frame 1
stop();
couleur = "bleu";
Symbol 109 MovieClip Frame 2
stop();
couleur = "orange";
Symbol 109 MovieClip Frame 3
stop();
couleur = "vert";
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 117 MovieClip Frame 3
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
stop();
Symbol 121 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
Instance of Symbol 117 MovieClip in Symbol 122 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_level0.banja.couleur);
}
Symbol 122 MovieClip Frame 3
stop();
Instance of Symbol 121 MovieClip in Symbol 122 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_level0.banja.couleur);
}
Symbol 141 MovieClip Frame 1
stop();
Instance of Symbol 128 MovieClip in Symbol 141 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._x < -740) {
_parent.play();
}
}
Symbol 141 MovieClip Frame 2
stop();
Symbol 141 MovieClip Frame 3
stop();
Symbol 141 MovieClip Frame 4
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 150 Button
on (release) {
_level0.acceuil.f_gauche.play();
f = _level0.banja._currentFrame;
if (f == 1) {
_level0.banja.GotoAndStop(_level0.banja._totalFrames);
} else {
_level0.banja.GotoAndStop(f - 1);
}
}
Symbol 151 Button
on (release) {
_level0.acceuil.f_droite.play();
f = _level0.banja._currentFrame;
if (f == _level0.banja._totalFrames) {
_level0.banja.GotoAndStop(1);
} else {
_level0.banja.GotoAndStop(f + 1);
}
}
Symbol 152 Button
on (release) {
_level0.acceuil.btstart.gotoAndPlay(_level0.banja.couleur);
}
Symbol 164 MovieClip Frame 27
stop();
Symbol 168 MovieClip Frame 26
stop();
Symbol 171 MovieClip Frame 26
stop();
Symbol 175 MovieClip Frame 26
stop();
Symbol 179 MovieClip Frame 26
stop();
Symbol 182 MovieClip Frame 26
stop();
Symbol 185 MovieClip Frame 26
stop();
Symbol 189 MovieClip Frame 26
stop();
Symbol 190 MovieClip Frame 26
stop();
Symbol 191 MovieClip Frame 26
stop();
Symbol 192 MovieClip Frame 26
stop();
Symbol 193 MovieClip Frame 26
stop();
Symbol 194 MovieClip Frame 26
stop();
Symbol 195 MovieClip Frame 26
stop();
Symbol 196 MovieClip Frame 26
stop();
Instance of Symbol 168 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 171 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 175 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 179 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 182 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 185 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 189 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 197 MovieClip Frame 71
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 17
_level0.temp_start = getTimer();
_level0.play();
_parent.gotoAndStop("vide");
Symbol 203 MovieClip Frame 29
_level0.temp_start = getTimer();
_level0.play();
_parent.gotoAndStop("vide");
Symbol 203 MovieClip Frame 41
_level0.temp_start = getTimer();
_level0.play();
_parent.gotoAndStop("vide");
Symbol 204 MovieClip Frame 15
stop();
Symbol 204 MovieClip Frame 18
stop();
Instance of Symbol 206 MovieClip "colli_1" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 208 MovieClip "colli_3" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 210 MovieClip "colli_2" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 220 MovieClip "colli_3" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 220 MovieClip "colli_2" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 220 MovieClip "colli_1" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 206 MovieClip "colli_1" in Symbol 248 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 210 MovieClip "colli_3" in Symbol 248 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 220 MovieClip "colli_2" in Symbol 248 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 220 MovieClip "colli_4" in Symbol 248 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 208 MovieClip "colli_1" in Symbol 249 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 208 MovieClip "colli_2" in Symbol 249 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 208 MovieClip "colli_3" in Symbol 249 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 26
_level0.banja.nb_graine++;
_level0.freeze = false;
Instance of Symbol 210 MovieClip "colli_1" in Symbol 260 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 210 MovieClip "colli_2" in Symbol 260 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 210 MovieClip "colli_4" in Symbol 260 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 210 MovieClip "colli_3" in Symbol 260 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 26
_level0.banja.nb_graine++;
_level0.freeze = false;
Instance of Symbol 210 MovieClip "colli_1" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 208 MovieClip "colli_3" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 270 MovieClip "colli_2" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 283 MovieClip "colli_1" in Symbol 284 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 283 MovieClip "colli_2" in Symbol 284 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 298 MovieClip "colli_2" in Symbol 299 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 298 MovieClip "colli_1" in Symbol 299 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 298 MovieClip "colli_3" in Symbol 299 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 306 MovieClip "colli_1" in Symbol 310 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 307 MovieClip "colli_3" in Symbol 310 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 309 MovieClip "colli_2" in Symbol 310 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 309 MovieClip "colli_4" in Symbol 310 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 318 MovieClip "colli_4" in Symbol 323 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 320 MovieClip "colli_2" in Symbol 323 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 322 MovieClip "colli_1" in Symbol 323 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 327 MovieClip in Symbol 328 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 309 MovieClip "colli_1" in Symbol 329 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 328 MovieClip "colli_2" in Symbol 329 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 309 MovieClip "colli_3" in Symbol 329 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 331 MovieClip "colli_1" in Symbol 332 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 331 MovieClip "colli_2" in Symbol 332 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 331 MovieClip "colli_3" in Symbol 332 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 334 MovieClip "colli_1" in Symbol 335 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 334 MovieClip "colli_5" in Symbol 335 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 334 MovieClip "colli_3" in Symbol 335 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 334 MovieClip "colli_2" in Symbol 335 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 334 MovieClip "colli_4" in Symbol 335 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 337 MovieClip "colli_2" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 339 MovieClip "colli_1" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 339 MovieClip "colli_3" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 342 MovieClip "colli_5" in Symbol 343 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 342 MovieClip "colli_4" in Symbol 343 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 342 MovieClip "colli_3" in Symbol 343 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 342 MovieClip "colli_2" in Symbol 343 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 342 MovieClip "colli_1" in Symbol 343 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 345 MovieClip "colli_1" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 348 MovieClip "colli_2" in Symbol 350 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 307 MovieClip "colli_3" in Symbol 350 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 349 MovieClip "colli_1" in Symbol 350 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 39
_level0.banja.nb_graine++;
_level0.freeze = false;
Symbol 367 MovieClip Frame 1
stop();
Instance of Symbol 322 MovieClip "colli_1" in Symbol 368 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 306 MovieClip "colli_2" in Symbol 368 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 345 MovieClip "colli_3" in Symbol 368 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 328 MovieClip "colli_4" in Symbol 369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 309 MovieClip "colli_1" in Symbol 369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 309 MovieClip "colli_3" in Symbol 369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 328 MovieClip "colli_2" in Symbol 369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 342 MovieClip "colli_2" in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 342 MovieClip "colli_3" in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 342 MovieClip "colli_1" in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 318 MovieClip "colli_4" in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 318 MovieClip "colli_5" in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 349 MovieClip "colli_1" in Symbol 371 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 337 MovieClip "colli_2" in Symbol 371 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 339 MovieClip "colli_3" in Symbol 371 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 337 MovieClip "colli_4" in Symbol 371 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 306 MovieClip "colli_5" in Symbol 371 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 349 MovieClip "colli_2" in Symbol 372 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Instance of Symbol 349 MovieClip "colli_1" in Symbol 372 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.moteur.test_case || (_parent._parent._parent.moteur.test_case_graine)) {
pos = {};
pos.x = 0;
pos.y = 0;
localToGlobal(pos);
}
}
Symbol 383 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 1
stop();
Instance of Symbol 218 MovieClip "bebete1" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Symbol 384 MovieClip Frame 6
stop();
Instance of Symbol 234 MovieClip in Symbol 384 MovieClip Frame 6
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Instance of Symbol 241 MovieClip in Symbol 384 MovieClip Frame 6
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Instance of Symbol 247 MovieClip in Symbol 384 MovieClip Frame 6
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Symbol 384 MovieClip Frame 11
stop();
Symbol 384 MovieClip Frame 15
stop();
Instance of Symbol 259 MovieClip in Symbol 384 MovieClip Frame 15
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this, 1);
}
Symbol 384 MovieClip Frame 23
stop();
Instance of Symbol 269 MovieClip in Symbol 384 MovieClip Frame 23
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this, 1);
}
Symbol 384 MovieClip Frame 31
stop();
Instance of Symbol 280 MovieClip in Symbol 384 MovieClip Frame 31
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Instance of Symbol 281 MovieClip in Symbol 384 MovieClip Frame 31
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Symbol 384 MovieClip Frame 35
stop();
Instance of Symbol 296 MovieClip in Symbol 384 MovieClip Frame 35
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Instance of Symbol 296 MovieClip in Symbol 384 MovieClip Frame 35
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Symbol 384 MovieClip Frame 39
stop();
Instance of Symbol 305 MovieClip in Symbol 384 MovieClip Frame 39
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Instance of Symbol 305 MovieClip in Symbol 384 MovieClip Frame 39
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Symbol 384 MovieClip Frame 43
stop();
Instance of Symbol 317 MovieClip in Symbol 384 MovieClip Frame 43
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Instance of Symbol 317 MovieClip in Symbol 384 MovieClip Frame 43
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Symbol 384 MovieClip Frame 47
stop();
Instance of Symbol 324 MovieClip in Symbol 384 MovieClip Frame 47
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Instance of Symbol 281 MovieClip in Symbol 384 MovieClip Frame 47
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Symbol 384 MovieClip Frame 50
stop();
Symbol 384 MovieClip Frame 54
stop();
Symbol 384 MovieClip Frame 55
stop();
Symbol 384 MovieClip Frame 59
stop();
Symbol 384 MovieClip Frame 62
stop();
Instance of Symbol 259 MovieClip in Symbol 384 MovieClip Frame 62
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this, 1);
}
Symbol 384 MovieClip Frame 66
stop();
Symbol 384 MovieClip Frame 69
stop();
Symbol 384 MovieClip Frame 72
stop();
Instance of Symbol 360 MovieClip in Symbol 384 MovieClip Frame 72
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this, 1);
}
Instance of Symbol 367 MovieClip in Symbol 384 MovieClip Frame 72
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Instance of Symbol 367 MovieClip in Symbol 384 MovieClip Frame 72
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Symbol 384 MovieClip Frame 80
stop();
Symbol 384 MovieClip Frame 84
stop();
Symbol 384 MovieClip Frame 88
stop();
Instance of Symbol 360 MovieClip in Symbol 384 MovieClip Frame 88
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this, 1);
}
Symbol 384 MovieClip Frame 93
stop();
Symbol 384 MovieClip Frame 98
stop();
Instance of Symbol 383 MovieClip in Symbol 384 MovieClip Frame 98
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_parent._parent.moteur.test_prox_banja(this);
}
Symbol 385 MovieClip Frame 1
stop();
couleur = "bleu";
Symbol 385 MovieClip Frame 2
stop();
couleur = "orange";
Symbol 385 MovieClip Frame 3
stop();
couleur = "vert";
Symbol 397 MovieClip Frame 1
Symbol 397 MovieClip Frame 10
stop();
Symbol 409 MovieClip Frame 13
stop();
Symbol 420 MovieClip Frame 15
stop();
Symbol 430 MovieClip Frame 12
stop();
Symbol 442 MovieClip Frame 17
stop();
Symbol 454 MovieClip Frame 24
stop();
Symbol 466 MovieClip Frame 16
stop();
Symbol 490 MovieClip Frame 21
stop();
Symbol 514 MovieClip Frame 125
stop();
Symbol 524 MovieClip Frame 16
stop();
Instance of Symbol 522 MovieClip in Symbol 524 MovieClip Frame 16
onClipEvent (enterFrame) {
_rotation = (_rotation + 4);
}
Symbol 525 MovieClip Frame 1
stop();
Symbol 525 MovieClip Frame 2
stop();
Symbol 525 MovieClip Frame 12
stop();
Symbol 525 MovieClip Frame 24
stop();
Symbol 525 MovieClip Frame 36
stop();
Symbol 525 MovieClip Frame 49
stop();
Symbol 525 MovieClip Frame 61
stop();
Symbol 525 MovieClip Frame 73
stop();
Symbol 525 MovieClip Frame 87
stop();
Symbol 525 MovieClip Frame 102
stop();
Symbol 525 MovieClip Frame 103
stop();
Symbol 528 MovieClip Frame 1
stop();
Instance of Symbol 527 MovieClip "moteur" in Symbol 528 MovieClip Frame 1
onClipEvent (load) {
function test_prox_banja(obj, inc_graine) {
if (test_case) {
obj.pos = {};
obj.pos.x = 0;
obj.pos.y = 0;
obj.localToGlobal(obj.pos);
xb = _level0.banja._x;
yb = _level0.banja._y;
xz = obj.pos.x;
yz = obj.pos.y;
dist = Math.sqrt(((yz - yb) * (yz - yb)) + ((xz - xb) * (xz - xb)));
if (dist < 100) {
if (_level0.prog.accroche == 0) {
if (inc_graine != null) {
if (_level0.banja.idgraine != _parent.idCell) {
_level0.banja.idgraine = _parent.idCell;
if (_level0.banja.nb_graine < 6) {
obj.play();
}
}
} else {
obj.play();
}
}
} else if (inc_graine == null) {
obj.stop();
}
}
}
function test_collision() {
if (((_level0.banja.hitTest(_parent.cell.corn.colli_1) && (_level0.banja._x < (_parent.cell.corn.colli_1.pos.x + _parent.cell.corn.colli_1._width))) && (_parent.cell.corn.colli_1.pos.x < _level0.banja._x)) && (_level0.banja._y < (_parent.cell.corn.colli_1.pos.y + 30))) {
colli = _parent.cell.corn.colli_1;
return(true);
}
if (((_level0.banja.hitTest(_parent.cell.corn.colli_2) && (_level0.banja._x < (_parent.cell.corn.colli_2.pos.x + _parent.cell.corn.colli_2._width))) && ((_parent.cell.corn.colli_2.pos.x + 10) < _level0.banja._x)) && (_level0.banja._y < (_parent.cell.corn.colli_2.pos.y + 30))) {
colli = _parent.cell.corn.colli_2;
return(true);
}
if (((_level0.banja.hitTest(_parent.cell.corn.colli_3) && (_level0.banja._x < (_parent.cell.corn.colli_3.pos.x + _parent.cell.corn.colli_3._width))) && ((_parent.cell.corn.colli_3.pos.x + 10) < _level0.banja._x)) && (_level0.banja._y < (_parent.cell.corn.colli_3.pos.y + 30))) {
colli = _parent.cell.corn.colli_3;
return(true);
}
if (((_level0.banja.hitTest(_parent.cell.corn.colli_4) && (_level0.banja._x < (_parent.cell.corn.colli_4.pos.x + _parent.cell.corn.colli_4._width))) && ((_parent.cell.corn.colli_4.pos.x + 10) < _level0.banja._x)) && (_level0.banja._y < (_parent.cell.corn.colli_4.pos.y + 30))) {
colli = _parent.cell.corn.colli_4;
return(true);
}
if (((_level0.banja.hitTest(_parent.cell.corn.colli_5) && (_level0.banja._x < (_parent.cell.corn.colli_5.pos.x + _parent.cell.corn.colli_5._width))) && ((_parent.cell.corn.colli_5.pos.x + 10) < _level0.banja._x)) && (_level0.banja._y < (_parent.cell.corn.colli_5.pos.y + 30))) {
colli = _parent.cell.corn.colli_5;
return(true);
}
return(false);
}
function test_collision_graine() {
if (((_level0.graine.hitTest(_parent.cell.corn.colli_1) && (_level0.graine._x < (_parent.cell.corn.colli_1.pos.x + _parent.cell.corn.colli_1._width))) && (_parent.cell.corn.colli_1.pos.x < _level0.graine._x)) && (_level0.graine._y < (_parent.cell.corn.colli_1.pos.y + 30))) {
colli_graine = _parent.cell.corn.colli_1;
return(true);
}
if (((_level0.graine.hitTest(_parent.cell.corn.colli_2) && (_level0.graine._x < (_parent.cell.corn.colli_2.pos.x + _parent.cell.corn.colli_2._width))) && ((_parent.cell.corn.colli_2.pos.x + 10) < _level0.graine._x)) && (_level0.graine._y < (_parent.cell.corn.colli_2.pos.y + 30))) {
colli_graine = _parent.cell.corn.colli_2;
return(true);
}
if (((_level0.graine.hitTest(_parent.cell.corn.colli_3) && (_level0.graine._x < (_parent.cell.corn.colli_3.pos.x + _parent.cell.corn.colli_3._width))) && ((_parent.cell.corn.colli_3.pos.x + 10) < _level0.graine._x)) && (_level0.graine._y < (_parent.cell.corn.colli_3.pos.y + 30))) {
colli_graine = _parent.cell.corn.colli_3;
return(true);
}
if (((_level0.graine.hitTest(_parent.cell.corn.colli_4) && (_level0.graine._x < (_parent.cell.corn.colli_4.pos.x + _parent.cell.corn.colli_4._width))) && ((_parent.cell.corn.colli_4.pos.x + 10) < _level0.graine._x)) && (_level0.graine._y < (_parent.cell.corn.colli_4.pos.y + 30))) {
colli_graine = _parent.cell.corn.colli_4;
return(true);
}
if (((_level0.graine.hitTest(_parent.cell.corn.colli_5) && (_level0.graine._x < (_parent.cell.corn.colli_5.pos.x + _parent.cell.corn.colli_5._width))) && ((_parent.cell.corn.colli_5.pos.x + 10) < _level0.graine._x)) && (_level0.graine._y < (_parent.cell.corn.colli_5.pos.y + 30))) {
colli_graine = _parent.cell.corn.colli_5;
return(true);
}
return(false);
}
function test_banja_case() {
if ((((_parent.pos.x < _level0.banja._x) && (_level0.banja._x < (_parent.pos.x + _parent.largeur))) && (_parent.pos.y < _level0.banja._y)) && (_level0.banja._y < (_parent.pos.y + _parent.hauteur))) {
if (_level0.banja.idCell != _parent.idCell) {
_level0.banja.idcell = _parent.idcell;
_level0.banja.idgraine = null;
_level0.world.tabCell[_parent.iCell][_parent.jCell].centrer();
}
return(true);
}
return(false);
}
function test_graine_case() {
if ((((_parent.pos.x < _level0.graine._x) && (_level0.graine._x < (_parent.pos.x + _parent.largeur))) && (_parent.pos.y < _level0.graine._y)) && (_level0.graine._y < (_parent.pos.y + _parent.hauteur))) {
return(true);
}
return(false);
}
_parent.pnj._visible = false;
_parent.moteur._visible = false;
_parent.meta_arbre._visible = false;
if (_level0.world.tabCell[_parent.iCell][_parent.jCell].nb_tree != 0) {
var h = 0;
while (h < _level0.world.tabCell[_parent.iCell][_parent.jCell].nb_tree) {
duplicateMovieClip (_parent.meta_arbre, "arbre" + h, (10 + h) + _level0.world.tabCell[_parent.iCell][_parent.jCell].tree[h].y);
eval ("_parent.arbre" + h)._x = _level0.world.tabCell[_parent.iCell][_parent.jCell].tree[h].x;
eval ("_parent.arbre" + h)._y = _level0.world.tabCell[_parent.iCell][_parent.jCell].tree[h].y;
eval ("_parent.arbre" + h).gotoAndStop(_level0.world.tabCell[_parent.iCell][_parent.jCell].tree[h].id);
eval ("_parent.arbre" + h).tree.gotoAndStop("fin");
h++;
}
}
if (_level0.world.tabCell[_parent.iCell][_parent.jCell].nb_PNJ != 0) {
var h = 0;
while (h < _level0.world.tabCell[_parent.iCell][_parent.jCell].nb_PNJ) {
duplicateMovieClip (_parent.PNJ, "PNJ" + h, (100 + h) + _level0.world.tabCell[_parent.iCell][_parent.jCell].PNJ[h].y);
eval ("_parent.PNJ" + h)._x = _level0.world.tabCell[_parent.iCell][_parent.jCell].pnj[h].x;
eval ("_parent.PNJ" + h)._y = _level0.world.tabCell[_parent.iCell][_parent.jCell].pnj[h].y;
eval ("_parent.PNJ" + h).gotoAndStop(_level0.world.tabCell[_parent.iCell][_parent.jCell].PNJ[h].id);
eval ("_parent.PNJ" + h).perso.pos.gotoAndStop(_level0.world.tabCell[_parent.iCell][_parent.jCell].PNJ[h].posture);
h++;
}
}
}
onClipEvent (enterFrame) {
test_case = test_banja_case();
if (test_case) {
bool_test = test_collision();
if (_level0.prog.arme) {
if (_level0.prog.accroche == 3) {
if (bool_test) {
_level0.prog.banja_stop();
_level0.banja._y = colli.pos.y;
}
}
} else if (!bool_test) {
_level0.prog.accroche = 3;
_level0.prog.decroche();
} else {
_level0.prog.banja_stop();
_level0.banja._y = colli.pos.y;
}
}
test_case_graine = test_graine_case();
if (test_case_graine && (_level0.prog.stop_graine != 0)) {
bool_test_graine = test_collision_graine();
if (bool_test_graine) {
_level0.graine._y = colligraine.pos.y;
_level0.prog.graine_stop();
_level0.prog.stop_graine = 0;
_parent.nb_tree = _level0.world.tabCell[_parent.iCell][_parent.jCell].nb_tree;
_parent.nb_tree++;
_parent.point_arbre = {};
_parent.point_arbre.x = _level0.graine._x;
_parent.point_arbre.y = colli_graine.pos.y;
_parent.globalToLocal(_parent.point_arbre);
duplicateMovieClip (_parent.meta_arbre, "arbre" + _parent.nb_tree, (50 + _parent.nb_tree) + _parent.point_arbre.y);
eval ("_parent.arbre" + _parent.nb_tree)._x = _parent.point_arbre.x;
eval ("_parent.arbre" + _parent.nb_tree)._y = _parent.point_arbre.y;
_level0.compteur_fleur++;
_level0.compteur_pomme++;
if (_level0.compteur_pomme >= 60) {
rnd_tree = 102;
_level0.compteur_pomme = 0;
} else if (_level0.compteur_fleur >= 15) {
rnd_tree = 103;
_level0.compteur_fleur = 0;
} else {
rnd_tree = random(100) + 2;
}
_level0.world.tabCell[_parent.iCell][_parent.jCell].AddTree(rnd_tree, _parent.point_arbre.x, _parent.point_arbre.y);
eval ("_parent.arbre" + _parent.nb_tree).gotoAndPlay(rnd_tree);
eval ("_parent.arbre" + _parent.nb_tree).tree.gotoAndPlay(2);
_level0.graine._visible = false;
}
}
}
Symbol 528 MovieClip Frame 2
stop();