# CSS & Classes in Flash

**URL:** <https://forum.kirupa.com/t/css-classes-in-flash/231908>\
**Category:** flash\
**Created:** [July 9, 2007, 2:51pm UTC](https://forum.kirupa.com/t/css-classes-in-flash/231908 "2007-07-09T14:51:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![framesix](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@framesix](https://forum.kirupa.com/u/framesix)\
**Post date:** [July 9, 2007, 2:51pm UTC](https://forum.kirupa.com/t/css-classes-in-flash/231908/1 "2007-07-09T14:51:40Z")

</div>

Hi I’m trying to make 2 classes for my links in a dynamic textfield with a css file.  
Creating classes for a \<p\> tag is no problem, but when I want to use it in a \<a\> tag Flash simply converts the link in black color with no hover state.  
I’m using this line in the txt file(without the class the link works fine):  
\<a class=“orange” href=“[http://www.mysite.com](http://www.mysite.com)” target="\_blank"\>LINK\</a\>

I have defined 2 classes for links in the css file with 4 states for each link(below only the top states):

a:link {  
color: #FFFFFF;  
text-decoration: none;  
}  
and  
a.orange:link {  
color: #FFBC50;  
text-decoration: none;  
}

Is it at all possible to have 2 classes for links in Flash using CSS?  
I’m stuck with this for over a week now. Your help will be very much appreciated!
