0 Replies Latest reply on Dec 4, 2007 4:04 AM by douggler

    CSS not loading

    douggler
      Hi

      I have the following code which loads an external text file and then should apply the CSS file that is then loaded, however the CSS file is not working.

      If i comment out my CSS loader, the text displays. If i un-comment it, the text does not display.

      Any suggestions?


      stop();
      function textLoader() {
      myData = new LoadVars();
      myData.onLoad = function() {
      scrollpane_mc.txt.myText_txt.html = true;
      scrollpane_mc.txt.myText_txt.htmlText = this.people;
      };
      myData.load("people.txt");
      }

      var myCSS = new TextField.StyleSheet();
      myCSS.load("myStyle.css");
      myCSS.onLoad = function() {
      scrollpane_mc.txt.myText_txt.styleSheet = myCSS;
      textLoader();
      };