I think it is:

var a:Object = new Object();
a.textDecoration = "underline";
a.color = "#0000FF";
var ss:StyleSheet = new StyleSheet();
ss.setStyle("a:hover", a);


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl
Sent: Friday, September 12, 2008 11:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TextArea StyleSheet Anchor Hover Question


I am trying to set the CSS a.hover style, but I don't know how to do
it with objects. I tried it as seen below, but it doesn't work. I
want the link to have an underline when I hover over the link in the
htmlText. If there is another way, I am open to ideas.

var a:Object = new Object();
a.hover = new Object();
a.hover.textDecoration = "underline";
a.color = "#0000FF";
var ss:StyleSheet = new StyleSheet();
ss.setStyle("a", a);
var hypertext:TextArea = new TextArea();
hypertext.styleSheet = ss;
htmlText = "<a href='event:http://www.adobe.com'>" + collection.title
+ "</a>";

Reply via email to