ferrycorsten
Messages postés1Date d'inscriptiondimanche 19 octobre 2008StatutMembreDernière intervention 1 mars 2011
-
1 mars 2011 à 13:32
Orange73
Messages postés1375Date d'inscriptiondimanche 28 novembre 2004StatutMembreDernière intervention 2 août 2011
-
1 mars 2011 à 15:11
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);
}
}