Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"a class" hover doesn't work on CSS in Flash> 1

Status
Not open for further replies.

ColonelBlue

Technical User
Jun 24, 2004
110
US
I have managed to get a stylesheet into a flashfile. However when I call an a class style as opposed to a regular .style , it doesn't seem to like it.

Is there any other way to make dynamically loaded text which are links that can have a change of color or underline when the mouse rolls over it like "a class"?

Thanks in advance.
 
try the following not exactly what are looking for but maybe give you the missing link flash has only limited support for css make sure textfield is good for html

Code:
var style = new TextField.StyleSheet();

style.setStyle(".headline", {fontWeight:"bold", color:"#FF0000", fontSize:"17px"});
style.setStyle("a:hover", {textDecoration:"underline"});

style.setStyle("a:link", {color:"#00FF00"});
style.setStyle("custom", {color:"#006666"});
body_txt.styleSheet = style;

body_txt.text = "<p class='headline'>This is the <a href='[URL unfurl="true"]http://www.yahoo.com'>link</a></p><p>This[/URL] is just normal text</p>";
 
billwatson, you are KING!

Thank yo once again!
That did the trick!

OMG < BIG SMILE >

Cheers!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top