0 Replies Latest reply on Sep 14, 2007 1:37 AM by gringito

    global CSS

    gringito Level 1
      hello,
      i have something like "3-level" depth project of .swf movies loading into the main .swf.
      i have one CSS style in root of the main .swf

      ----------------------------------------
      var flashCSS:TextField.StyleSheet = new TextField.StyleSheet();
      _global.flashCSS.setStyle("p",
      {color:'#000000',
      fontFamily:'Verdana, Geneva, Arial, Helvetica, sans-serif',
      fontWeight:'normal',
      fontSize:'10'}
      );
      _global.flashCSS.setStyle(".hdl",
      {color:'#959595',
      fontFamily:'Verdana, Geneva, Arial, Helvetica, sans-serif',
      fontWeight:'normal',
      fontSize:'10'}
      );
      ...
      ----------------------------------------

      i would like to apply this CSS to ANY textfield in ALL levels of the project ...
      but if i apply the CSS in some loaded (external) .swf like this:

      ----------------------------------------
      textWindow.styleSheet = flashCSS;
      textWindow.htmlText = "<span class='hdl'>Example Example Example</span>";
      ----------------------------------------

      it does not work at all and CSS is not applied

      does anyone know how to use one CSS globally in all levels of the project (including loaded external .swf)?