View Full Version : flash mx
eMEraLdwPn
12-25-2004, 05:52 AM
i'm trying to learn how to use flash mx, and i can't figure out how to change the color of a textfield. i've found some things regarding CSS, but i think that's for flash mx 2004. i also don't completely understand how to use flash yet, so i'm not really sure where i'm supposed to be putting the code i found...
moonshield
12-25-2004, 12:03 PM
i dont know but it has nothing to do with CSS.
thebillionaire
12-25-2004, 06:29 PM
when you type out a text, look at the bottom, in the property window, click the coloured box and change the colour.
eMEraLdwPn
12-25-2004, 06:52 PM
that color only changes the text color inside the textfield, not the background color of the textfield...
thebillionaire
12-25-2004, 10:00 PM
I don't think its possible to change the background with the text field, however, you can make a layer underneath the text and draw a box under the text.
eMEraLdwPn
12-26-2004, 02:54 AM
i was doing that at first but it got incredibly annoying... i figured it out now anyhow... and i've moved on to bigger and harder problems :P
James
12-26-2004, 05:01 AM
Could you please state how you can accomplish changing the background, for future reference for anyone who looks back upon this thread or finds it via Search Engines?
eMEraLdwPn
12-26-2004, 01:27 PM
give the textfield an instance name, i.e. textField
then the problem i was having is i didn't realize you have to select "show border around text" in the properties window.
then in the actionscript for that layer:
textField.backgroundColor = 0xFF0000;
where FF0000 is a hex value for the color preceeded by 0x.
if you don't have "show border around text" selected, you can use the following line of code to make the background color display:
textField.background = true;
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.