0 Replies Latest reply on Sep 20, 2007 2:09 AM by Dave_Towers

    TextArea component AS3

    Dave_Towers
      I'm having trouble both working out or finding out how to apply an imported css file to the CS3 TextArea component. I've frequently done this in AS2 using Flash 8, but that code no longer works. If anyone knows could you please let me know. Here's the AS2 code I've used previously:

      private function loadCss(){
      var myStyle = new TextField.StyleSheet();
      myStyle.load(this.CssPath+".css"); // the CssPath variable here was supplied within an object passed through to the constructor
      textArea.styleSheet = myStyle;
      loadXml();
      }