1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| for(var i:Number = 0; i < TopMenuNodes.length; i++)
{
// Attach the top_menu symbol from the library and set up it
// On nomme les MovieClip en utilisant les identifiants des enregistrements en base de données
var mcTopMenu:MovieClip = thisObj.mcMenu.attachMovie("top_menu", "top_menu_"+TopMenuNodes[i].attributes['id'], Number(TopMenuNodes[i].attributes['id']));
mcTopMenu.Libelle.iniWidth = mcTopMenu.Libelle._width;
mcTopMenu.Libelle.autoSize = "left";
mcTopMenu.Libelle.text = TopMenuNodes[i].attributes['name'];
mcTopMenu.href = TopMenuNodes[i].attributes['href'];
mcTopMenu.id = TopMenuNodes[i].attributes['id'];
// mcTopMenu.Couleur_menu.text = TopMenuNodes[i].attributes['couleur'].split("#").join("0x");
mcTopMenu.Couleur_m.setRGB = (TopMenuNodes[i].attributes['couleur'].split("#").join("0x")); |