# Highlighting Dynamic Text Fields?

**URL:** <https://forum.kirupa.com/t/highlighting-dynamic-text-fields/103924>\
**Category:** Uncategorized\
**Created:** [March 10, 2004, 6:00pm UTC](https://forum.kirupa.com/t/highlighting-dynamic-text-fields/103924 "2004-03-10T18:00:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteadyScene](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@SteadyScene](https://forum.kirupa.com/u/SteadyScene)\
**Post date:** [March 10, 2004, 6:00pm UTC](https://forum.kirupa.com/t/highlighting-dynamic-text-fields/103924/1 "2004-03-10T18:00:47Z")

</div>

* * *

Ok the problem is very simple but the solution seems to be hard.

I want to be able to highlight specific areas of a a dynamic text field using ActionScript.

I must be able to highlight more than one area in the same text field and the highlight must “stick” after the focus has changed. I know you can do this with the TextSnapshot Object, but it only works with static text. Is there a way to do it with dynamic text?

I have tried CSS (text background tags are not supported). I have tried the Selection class object (the highlight is killed on blur or when you foucs on something else). Nothing seems to work. The only thing I can think of is building a custom movie clip in back of the text field as you select it. It wouldn’t be a real highlight but it would appear like one. Any better ideas??
