var style:StyleSheet = new StyleSheet(); var hover:Object = new Object(); hover.color = "#1EBBDE"; var link:Object = new Object(); link.color = "#0000FF";
style.setStyle("a:hover", hover); //set the link hover style style.setStyle("a:link", link); //set the link normal style var linkField:TextField = new TextField (); linkField.type = TextFieldType.DYNAMIC; linkField.styleSheet = style; linkField.htmlText = '<u><a href="/url">Link</a></u>'; -Aaron Stein --- In flexcoders@yahoogroups.com, "Harris Reynolds" <[EMAIL PROTECTED]> wrote: > > What up? The Flex API docs [1] mentions that anchor tags used within > a TextField object can be styled: > > "You can also define a:link, a:hover, and a:active styles for anchor > tags by using style sheets." > > Does anyone actually know how to do this? All the CSS incantations I > have tried thus far don't work. > > It has to be possible since it is in the docs... right? :-) > > ~harris > > [1] > http://livedocs.macromedia.com/flex/2/langref/flash/text/TextField.html > #htmlText >