a:hover works in a css style sheet:

var ss:StyleSheet = new StyleSheet();
ss.parseCSS("a:link{color: #0000FF;}a:hover{text-decoration: underline;color: #FF0000;}");
var tf:TextField = new TextField();
tf.autoSize = TextFieldAutoSize.LEFT;
tf.styleSheet = ss;
tf.htmlText = '<p>A link: <a href="http://www.unfocus.com";>unFocus Projects</a></p>';
addChild(tf);


Kevin N.



On 6/15/10 8:24 AM, Karim Beyrouti wrote:
Hi All -

Wondering if there are any hacks to trigger a 'RollOver' script when hovering 
over a 'a href' link in an html textfield.
Currently using TextEvent.LINK,to trigger links - but would like to show a 
tooltip on rollover (of that part of text).

So far the only solution i can think of is using : 
TextField.getCharIndexAtPoint(x:Number, y:Number)
create this  - but it seems like this could be quite long winded solution.

Any other ways of achieving this?


Thanks



Karim _______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to