Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Scroll Question about BG 2

Status
Not open for further replies.

Firehawk734

Technical User
Jan 22, 2002
155
US
Hi,

I made a very basic text scroller on my own FINALLY!.
I am using Flash MX.

I made a text field with 2 buttons to control it. My question is that the background of the text field is always white. how do i change the color to blend in with the rest of my movie??

I am new to MX and actionscript and stuff so bare with me. THX.
 
Your textfield does have an instance name then?

Try the following:

my_textfield.backgroundColor = "0x00ccff";

Replace my_textfield with the instance name of your textfield, and the color code to whatever is your background set to! Regards,

new.gif
 
Either that or just turn the BG option on the textfield off ...
 
First of all...

Where is the textfield BG option so that I can turn it on/off? If its on the properties menu, WHERE?

Second,

My instance name is newsText So if I put newsText.backgroundcolor="hexcode"
Where does it go??? Just as a separate actionscript on the textfield?

Thx for the help
 
Nevermind, I just figured it out. Theres a "show border" option.

I turned it off and the white bg of the text field disappear. Thx for the help gang.

I shall be back with more.. muahahaha
 
Background tab is the icon left of the variable box in the properties.

As for the AS newsText.backgroundcolor="hexcode"
, just put it on the first frame of your movie. Regards,

new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top