0 Replies Latest reply on Nov 11, 2009 6:09 PM by timo888

    Feature Request with styles

    timo888 Level 1

      I would like to be able to do this:

       



      <mx:Style id="css4MyTextArea">
              .foo {
                  fontSize: 15;
                  color: #9933FF;
              }

               .gizmo{  fontFamily: Lucida Sans Unicode, Tahoma, sans-serif" }

      </mx:Style>

       

       



       

      and then do either this in mxml:

       

      <mx: TextArea id= "myTextArea"  StyleSheet = "css4MyTextArea" />

       

       

      or this in ActionScript:

       

      var sheet:StyleSheet = new StyleSheet();
      sheet.parseLocalCSS(this.css4MyTextArea);
      myTextArea.styleSheet = sheet;