all groups > flash actionscript > october 2005 >
You're in the

flash actionscript

group:

Text field background color


Text field background color siamkat
10/22/2005 7:55:10 PM
flash actionscript:
hello. i have a movie clip instance that, upon mouseover, displays a text
field full of text. this text is essentially a description of a particular
project in my portfolio. i've created the text field as a dynamic text box
called "description_txt." i have set the background color as
description_txt.background = true;
description_txt.backgroundColor = 0x000000;

thats basically it.. ignore any syntax errors you see. but this makes the
entire background of my text field black. what i want to happen is to make
ONLY the parts of the background that have text on them black. in other words,
if i increase the kerning or linespacing on the text, i want the background to
show that as well.. it should look as if one took a highlighter to a paragraph
and highlighted several lines of text. is this possibly with actionscript
only? any ideas where i could find info on how to do this? or better yet,
anyone know how to do this? thanks alot
j
Re: Text field background color kglad
10/22/2005 10:07:44 PM
AddThis Social Bookmark Button