Bonjour a tous,
J'ai un cd-rom à faire, en gros pour faire simple je fait evoluer un arbre ou sur chaque branche y aura un prenom qui seront dans des champs de texte dynamique. Seulement voila mon problémeil, je n'arrive pas à changer la profondeur du champs. De plus, une fois le champs créer je doit pouvoir modifier la taille de chacun. Est ce que vous avez une idée comment je pourrais faire?
Voici mon code:
var monTexte_str = "Lucas Lea Theo Manon Hugo Emma Thomas Chloe Enzo Camille Maxime Oceane Alexandre Ines Mathis Marie Nathan Clara Antoine Sarah";
var monTexte_array = monTexte_str.split(" ");
var index = Math.floor(Math.random() * monTexte_array.length);
trace(monTexte_array[index]);
_root.createTextField("my_txt", 1, 100, 100, 300, 100);
my_txt.multiline = true;
my_txt.wordWrap = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0x00FF00;
my_fmt.underline = true;
my_txt.text = monTexte_array[index];
my_txt.setTextFormat(my_fmt);
Merci d'avance
LuSioLe
Partager