# Textarea component problem

**URL:** https://forum.kirupa.com/t/textarea-component-problem/184326
**Category:** flash
**Created:** [April 4, 2006, 10:54am UTC](https://forum.kirupa.com/t/textarea-component-problem/184326 "2006-04-04T10:54:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hexadecimal](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@hexadecimal](https://forum.kirupa.com/u/hexadecimal)
#### Post date: [April 4, 2006, 10:54am UTC](https://forum.kirupa.com/t/textarea-component-problem/184326/1 "2006-04-04T10:54:58Z")

</div>

Hi im skinning the scrollbar in a textarea component, it works just fine, exept from two things…  
First off when i click in the textarea, an annoying green border is displayed… second… the text is dark green, i want it to be white… ive tried the following:  
[COLOR=black]  
[COLOR=blue]import mx.styles.CSSStyleDeclaration;  
\_global.styles.TextArea = new CSSStyleDeclaration();  
\_global.styles.TextArea.setStyle(“highlight”, “transparent”); [COLOR=red]//This should remove the green highlight?  
[/COLOR]\_global.styles.TextArea.setStyle(“backgroundColor”, “transparent”);  
\_global.styles.TextArea.setStyle(“borderStyle”, “none”);  
\_global.styles.TextArea.setStyle(“marginRight”, 34);  
\_global.styles.CheckBox.setStyle(“color”, 0xFFFFFF);[/COLOR]

And about the green text… in my own styled movieclips for the scrollbar, this actionscript is there:

[COLOR=blue]// in order to participate in cascading color styles  
// you must have this code in each movie  
// clip containing a graphic element. You can set the  
// color to a name like “border” or a value like 0xFF0000.  
// If you don’t have these lines, you will be drawn in  
// the color you authored, but if the user changes color  
// you wlll likely change color as well  
mx.skins.ColoredSkinElement.setColorStyle(this, 0xFFFFFF);  
[/COLOR]  
i cant really understand this… Anyone? =)  
[/COLOR]

---

<div class="post-metadata">

### Author: ![hexadecimal](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@hexadecimal](https://forum.kirupa.com/u/hexadecimal)
#### Post date: [April 4, 2006, 9:15pm UTC](https://forum.kirupa.com/t/textarea-component-problem/184326/2 "2006-04-04T21:15:27Z")

</div>

Anyone? :sure:
