1 Reply Latest reply on Feb 9, 2009 6:18 AM by robdillon

    Pseudo StyleSheet

    Level 1
      Can I use stylesheets with pseudo classes? Basically I want to use multiple anchor tags each having unique 'hower' style.

      a.blog:link, a.blog:visited {
      font-style:italic;
      color:#6969A5;
      }

      a.blog:hover, a.blog:active{
      font-style:italic;
      color:#8a8abd;
      text-decoration: underline;
      }

      a.movie:link, a.movie:visited {
      font-style:bold;
      color:#6c0f0f;
      }

      a.movie:hover, a.movie:active {
      font-style:bold;
      color:#6c0f0f;
      text-decoration: underline;
      }

      I know this works fine in html page, but I am not sure about flash?


        • 1. Re: Pseudo StyleSheet
          robdillon Most Valuable Participant
          You can write that as an external .css file and then create a TextField.StyleSheet and load the .css file into it. Once loaded, then assign that new stylesheet to each textField.

          I'm not certain that a:hover will work in actionscript though.