Groups | Blog | Home
all groups > flash (macromedia) > march 2004 >

flash (macromedia) : textarea background


mapunk.com
3/22/2004 11:34:23 PM
Dinghus
3/23/2004 12:06:22 AM
This one baffled me for about an hour until I read the "fine print". You have
to have the border enabled to show ANY background in a text box.

Now, do you want to do it with the interface or with ActionScript?
GS
3/23/2004 1:25:09 AM
Where TextField is the name of your textfield:

TextField.background = true;
TextField.backgroundColor = 0xFF7700;

will make it nice and orange :)
regards,
Gedeon


"mapunk.com" <webforumsuser@macromedia.com> schrieb im Newsbeitrag
news:c3nt5v$lm1$1@forums.macromedia.com...
[quoted text, click to view]
2004?

tormodg
3/23/2004 12:17:23 PM
If you are using the TextArea component, try this:

yourTextAreaInstName.backgroundColor = "0xffcc33";

works fine for me in MX 2004 Pro (7.0.1).

mapunk.com
3/23/2004 10:21:59 PM
when i put that i get this:

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 16: Statement must appear
within on/onClipEvent handler
text.backgroundColor = "0xffcc33";

Total ActionScript Errors: 1 Reported Errors: 1
AddThis Social Bookmark Button