bonjour
j'aimerai savoir comment ecrire un texte en majuscule
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var txt:TextField = new TextField();
    txt.autoSize = TextFieldAutoSize.LEFT
    txt.embedFonts=true
    var Goud = new Goudy();
 
    var miseEnForme:TextFormat = new TextFormat( );
    miseEnForme.font = Goud.fontName;
 
    txt.text ="costabone";
 
    miseEnForme.size=24
    miseEnForme.font = "Amerika Sans";
    //mTextForma.color=0*000000
    //mTextForma.underline=true
 
    txt.setTextFormat(miseEnForme)
addChild(txt)
tout marche bien sa s'affiche mais je voudrais qu'il soi ten majuscule j'ai essayé
txt.toUpperCase(); sa marche pas comment faire merci