# CSS problem in flash

**URL:** <https://forum.kirupa.com/t/css-problem-in-flash/264037>\
**Category:** flash\
**Created:** [June 22, 2008, 12:36pm UTC](https://forum.kirupa.com/t/css-problem-in-flash/264037 "2008-06-22T12:36:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpspoons](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@tpspoons](https://forum.kirupa.com/u/tpspoons)\
**Post date:** [June 22, 2008, 12:36pm UTC](https://forum.kirupa.com/t/css-problem-in-flash/264037/1 "2008-06-22T12:36:12Z")

</div>

I’m not sure what I’m doing wrong here (my css skills are really poor) or if it isn’t supported in flash, either way could anyone tell me why this isn’t working:

```auto
var str:String = "a.whatever:link { color:#FF0000 }" +
					"a.whatever:hover { color:#0000FF }";
	
var ss:StyleSheet = new StyleSheet ();
ss.parseCSS (str);

var textField:TextField = new TextField ();
textField.styleSheet = ss;
textField.htmlText = '<a class="whatever" href="http://www.google.com">test</a>';

addChild (textField);

```

Thanks.

---

<div class="post-metadata">

**Author:** ![dthought](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dthought/32/3573_2.png) [@dthought](https://forum.kirupa.com/u/dthought)\
**Post date:** [June 22, 2008, 3:01pm UTC](https://forum.kirupa.com/t/css-problem-in-flash/264037/2 "2008-06-22T15:01:48Z")

</div>

I believe Flash only supports simple pseudo-class selectors (ie. a:link), not classed ones, as you are asking for there.

---

<div class="post-metadata">

**Author:** ![tpspoons](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@tpspoons](https://forum.kirupa.com/u/tpspoons)\
**Post date:** [June 22, 2008, 3:12pm UTC](https://forum.kirupa.com/t/css-problem-in-flash/264037/3 "2008-06-22T15:12:03Z")

</div>

☹ Thanks I’ll look into alternatives
