2 Replies Latest reply on Apr 20, 2010 10:51 PM by La Bestia

    Text Area Set Style issue

    La Bestia

      Hi All I want to change the size of a text inside of a textarea with an id of "t2" using the hSlider

       

          public function hSlider_changeHandler(event:Event):void
          {
              t2.setStyle("fontSize" , hSlider.value);
          }

       

      Now this changes the size of the text area but not the text inside of it.

       

      I have tried

       

      t2.text.setStyle("fontSize", hSlider.value);

       

      but that does not seem to work.

       

      Any help is appreciated.