4 Replies Latest reply on Sep 29, 2008 6:26 AM by DazFaz

    Newbe help:- Applying Formatting to a Dynamic text Box

      Hi I have a dynamic text box (box_pname) that is populated with the name of the specific page that the user is currently on, however I can't seem to apply any formting to the text (see code below).

      Can anyone help??


      // Create a TextFormat object.
      var txt_fmt:TextFormat = new TextFormat();

      // Specify paragraph and character formatting.
      txt_fmt.bold = true; //apply bold
      txt_fmt.italic = true; //apply italic
      txt_fmt.size = 14; //apply size 14

      this.box_pname = "Enter User Details"; //set Page name
      this.box_pname.setTextFormat(txt_fmt); //apply formating to text box