[Red5] how to set TextArea colour,font ?

oke _ loqi901 at yahoo.com
Mon Jan 29 22:51:25 EST 2007


I've been trying to change text colour and fontsize for a TextArea object via actionscripting.
Anyone had any success in getting the Macromedia examples to work? :

      mytextArea.setStyle("color","red");

and

  // Create the new StyleSheet object.
  var my_styles:TextField.StyleSheet = new TextField.StyleSheet();
  my_styles.setStyle("html", {fontFamily:"Arial,Helvetica,sans-serif", 
     fontSize:"12px", color:"#0000FF"});
  my_styles.setStyle("body", {color:"#00CCFF", textDecoration:"underline"});

  // Set the TextAreaInstance.styleSheet property to the newly defined
  // styleSheet object named styles.
  mytextArea.styleSheet = my_styles;
  mytextArea.html = true;

are not working at all. perhaps I'm missing a step somewhere?
I also tried prepending and appending HTML and BODY tags
to the text but that didn't work either.
Any help appreciated.
Thanks.



 
---------------------------------
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20070129/454b2fb1/attachment-0001.htm


More information about the Red5 mailing list