premier questions
voila j'ai des boutons (btn) dans un clip (menu_bar)
comment faire que se script marche sous le root:
for(j=0;j<7;j++)
{
this["btn"+j].indice = j;
this["btn"+j].onRelease = function()
{
i=(this.indice+3);
dialogue();
descriptif.gotoAndStop(this.indice);
contenu.gotoAndStop('img'+this.indice);
}
}
deuxieme question
si pas moyen comment faire pour que sur la timeframe des bouton on puisse lancé une fonction situer sur le root :
for(r=0;r<5;r++)
{
this["btn3d"+r].indice = r;
this["btn3d"+r].onRelease = function()
{
i=(this.indice+9);
_root.dialogue();
descriptif.gotoAndStop(this.indice);
_root.contenu.gotoAndStop(this.indice+2);
}
}
par avance merci