CSS problem in flash

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:

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.

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

:frowning: Thanks I’ll look into alternatives