Bonjour, voici mon probléme. Je récupére une liste de varibales qui correspondent à des lignes (nom+id+...)
J'arrive à créer cette liste, mais lorsque je fais des actions bouton, c toujours la derniere ligne de variable qui est prise en compte. c-a-d que le lien que je met sur chjaque ligne correspond uniquement unlien de la dernier ligne affiché. voici le code.
for (i=1; i<=_root.lv_nbBat; i++) {
_root.textLigne = new Object();
_root.textLigne.id = _root["lv_id"+i];
_root.textLigne.nom = _root["lv_nom"+i];
_root.textLigne.constructeur = _root["lv_constructeur"+i];
_root.textLigne.typeBat = _root["lv_type"+i];
_root.textLigne.annee_fab = _root["lv_annee_fab"+i];
_root.textLigne.prix = _root["lv_prix"+i];
_root.textLigne.newBateau = "ligneBateau"+i+"_mc";
vide_mc.attachMovie("ligneBateau_mc", _root.textLigne.newBateau, 1*i, textLigne);
this.vide_mc[_root.textLigne.newBateau].onRollOver = function() {
vide_mc[_root.textLigne.newBateau].gotoAndPlay("start");
};
this.vide_mc[_root.textLigne.newBateau].onRollOut = function() {
vide_mc[_root.textLigne.newBateau].gotoAndPlay("end");
};
this.vide_mc[_root.textLigne.newBateau].onRelease = function() {
_root.idFiche=_root.textLigne.id;
_root.gotoAndPlay("detailFiche");
};
vide_mc[_root.textLigne.newBateau]._y = vide_mc[_root.textLigne.newBateau]._y+20*i;
}
Si qq'un peut m'aider pour faire en sorte que chaque lien soit unique, et corresponde à la ligne surlequel on clic.