0 Replies Latest reply on Jul 23, 2007 9:15 PM by Newsgroup_User

    css in flash

    Level 7
      I would like to style my loaded html text with css. I get it to load and
      all else works, but the styling does not get applied.

      Here is the AS I have so far, what is missing/am I doing wrong?

      var thePath:MovieClip = this.scroller_all.scroller_slider;
      thePath.infoScroll.textbox.html = true;
      thePath.infoScroll.textbox.autoSize = true;

      var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
      cssStyles.setStyle("h1", {fontWeight: "bold", fontSize: "15px", color:
      cssStyles.setStyle("h2", {fontWeight: "bold", color: "#000000"});

      thePath.infoScroll.textbox.styleSheet = cssStyles;

      var lvInfo:LoadVars = new LoadVars();
      lvInfo.onData = function(sInfo:String):Void {
      thePath.infoScroll.textbox.htmlText = sInfo;

      Thanks a lot!