0 Replies Latest reply on Aug 7, 2006 10:47 AM by Captain Pill

    css apply to dynamic textfield

    Captain Pill
      i try to apply a .css stylesheet to my textField and it work but i dont see the change. there the code

      // load css and load variable
      var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
      cssStyles.load("styles.css");

      cssStyles.onLoad = function(success:Boolean){
      if (success) {
      this.loadedInfo.StyleSheet = cssStyles;
      _level0.myLV.load("mytext.txt");
      }else {
      loadedInfo.text = "There has been an error loading the requested information. Please Contact the Webmaster and report the error.";
      }
      }