this.createEmptyMovieClip("clipTest",this.getNextHighestDepth());
this.clipTest._x=20;
this.clipTest._y=10;
// Là je tire la suite de l'aide de Flash...
var format:TextFormat = new TextFormat();
format.align = "justify";
var txtField:TextField = this.clipTest.createTextField("txtField", this.getNextHighestDepth(), 100, 100, 300, 100);
txtField.multiline = true;
txtField.wordWrap = true;
txtField.border = true;
txtField.text = "When this text is justified, it will be "
+ "spread out to more cleanly fill the horizontal "
+ "space for each line. This can be considered an "
+ "improvement over regular left-aligned text that "
+ "will simply wrap and do no more.";
txtField.setTextFormat(format);
Synthèse: tu crées ton clip vide, tu y crées un champ texte, tu peux directement écrire dedans avec txtField.text, mais pour le mettre en forme (police, taille, couleur, ...) faut utiliser TextFormat.
@+! Samy