# How to set background colour of a line?!

**URL:** <https://forum.kirupa.com/t/how-to-set-background-colour-of-a-line/305354>\
**Category:** flash\
**Created:** [February 23, 2010, 10:41pm UTC](https://forum.kirupa.com/t/how-to-set-background-colour-of-a-line/305354 "2010-02-23T22:41:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![returnButton](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@returnButton](https://forum.kirupa.com/u/returnButton)\
**Post date:** [February 23, 2010, 10:41pm UTC](https://forum.kirupa.com/t/how-to-set-background-colour-of-a-line/305354/1 "2010-02-23T22:41:58Z")

</div>

Hi folks.

I’m trying to set the background of a createTextField(), BUT only for the lines, not the whole box.

If I use background and backgroundColor, it sets the whole text box bg to be white, but I only want the lines filled in.

For example, if you ‘select’ the text on an HTML page, only the lines are highlighted. Can this be done in Flash? :h:

I’m using CS3 AS2.

thanks!
