17 Replies Latest reply on Apr 19, 2013 12:58 PM by kglad

    change font size textfield drawn on stage

    jiggy1965 Level 1

      I've place a dynamic textfield on stage with some fake text in it and gave it the instance my_textArea. Now I want to change the font size so I've used this code:


      var myTextFormat:TextFormat = new TextFormat();

      myTextFormat.size = 10;


      my_textArea.html = true;

      my_textArea.htmlText="This is a test";


      But it doesn't resize the text. It changes it to 'This is a test', but the font size is exactly the same as it was originally (30).

      It does work when I create the textfield through actionscript, but I also want to apply it to a dynamic textfield which I've already placed on stage.



      What am I doing wrong?