0 Replies Latest reply on Aug 14, 2006 1:24 PM by westdh

    Having Problem formating text in createTextFielf with css

    westdh
      Prolem with createTextField & CSS

      --------------------------------------------------------------------------------

      problem (1) text is displaying the HTML format.. see
      <p class='headline'>Tutorial Takes Forever To Write</p><p><span class='byline'>Bath, UK</span>--Flash developer NWebb seemed to take forever to finish his CSS-Flash tutorial, but it is finished now and you can find it <a href=' http://www.nwebb.co.uk'>here</a> along with a few others.</p>

      Problem (2) Not loading CSS or Tieing into ExampleText

      Thanks for any help. I am ne at Flash and I am using the Trial 8 version

      my AS
      -------------------------------------------------------------------
      //Create a new style sheet object
      var myCSS = new TextField.StyleSheet();
      //Specify the location of the CSS file that you created earlier
      var cssURL = "example.css";
      //Hard code some HTML text to display (for example purposes)
      var exampleText = "<p class='headline'>Tutorial Takes Forever To Write</p>";
      exampleText += "<p><span class='byline'>Bath, UK</span>";
      exampleText += "--Flash developer NWebb seemed to take ";
      exampleText += "forever to finish his CSS-Flash tutorial, ";
      exampleText += "but it is finished now and you can find it ";
      exampleText += "<a href=' http://www.nwebb.co.uk'>here</a> ";
      exampleText += "along with a few others.</p>";

      //Load CSS file
      myCSS.load(cssURL);
      //define onLoad handler

      this.createTextField("my_txt", 1, 100, 100, 300, 100);
      my_txt.styleSheet = myCSS;
      my_txt.multiline = true;
      my_txt.wordWrap = true;
      my_txt.htmlText= true;
      my_txt.text = exampleText;