10 Replies Latest reply on Mar 8, 2011 11:12 PM by Wrataxas

    flash.text.TextFormat.size not accepting decimal values

    @nur@dh@
      I am using mx.controls.TextArea where I need to alter the font-size of the selected text depending on the value user enters(decimal/int).
       

      public

       

      var tf:TextFormat = new TextFormat();

      tf.size = 15.5;

      textField.setTextFormat(tf , 0, 3);

       

      But it seems size property rounds of any decimal value to int. How do I ensure that TextArea-size accepts decimal value also.

       

      Can anyone help me on this?