1 Reply Latest reply on Dec 2, 2010 10:54 AM by Kumidan

    How to change the font size into TextInput?

    Kumidan

      I'm using Flash CS5 and AS3.

      I've made a form using the library's "User Interface" object and I want to change the font size for the TextInput and TextArea fields but I can't find any option in their properties to change it.

       

      I've tried this code

      var myTextFormat: TextFormat = new TextFormat();
      myTextFormat.size = 14;
      email_txt.setStyle("textFormat", myTextFormat);

       

      even though I don't get any error while publishing, my page doesn't appear, if I remove this code the page comes back to work.

       

      How can I do to change the font size?