I have some external dynamic html text and and external css style being imported and applied to a TextField. Does anyone know of a way for when you mouse over a url to retrieve the css tag name that is being applied to that text?
Below is some code that is 80% of the way there:
//The following can determine if your on a url link and tells you what Text Format is being used
if (e.target is TextField) {
var charpos:int=e.target.getCharIndexAtPoint(e.localX,e.localY);
var tf:TextFormat=e.target.getTextFormat(charpos);
//IF its a Link
if (tf.url!=""&&tf.url!=null) {
trace("YES YOU ARE ON A URL" +tf.url);
//The following will give you All the tag Names in a stylesheet
trace("your stylesheet tags are: " + myStyleSheet.styleNames);
what i need is the css tag name being applied to the url. Any Thoughts?