# CSS tag name from Mouseover

**URL:** <https://forum.kirupa.com/t/css-tag-name-from-mouseover/316752>\
**Category:** flash\
**Created:** [December 1, 2010, 4:17pm UTC](https://forum.kirupa.com/t/css-tag-name-from-mouseover/316752 "2010-12-01T16:17:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashUserNull](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@FlashUserNull](https://forum.kirupa.com/u/FlashUserNull)\
**Post date:** [December 1, 2010, 4:17pm UTC](https://forum.kirupa.com/t/css-tag-name-from-mouseover/316752/1 "2010-12-01T16:17:15Z")

</div>

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?
