This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > September 2005 > Changing the highlight color in textinput





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Changing the highlight color in textinput
achakiri

2005-09-15, 7:30 pm

hi guys,

when you highlight a text in textInput it's by default balck, I am trying to
make the highlight blue.

This is my class:

import mx.controls.TextArea;
class First_Text extends TextArea {
static var symbolName:String = "First_Text";
static var symbolOwner = First_Text;
function First_Text () {
this.marginLeft = 4;
this.color = 0x000040;
this.setStyle("disabledColor", "0x7171AA");
this.setStyle("borderColor", "0xFFFFFF");
this.setStyle("borderCapColor", "0xFFFFFF");
this.setStyle("buttonColor", "0xFFFFFF");
this.setStyle("highlightColor", "0xFFFFFF");
this.setStyle("shadowCapColor", "0xFFFFFF");
this.setStyle("shadowColor", "0xFFFFFF");
}
}

I tried:
this.highlight=0x0000FF;
this.selection=0x0000FF;
this.textSelected=0x0000FF;

but it's not working

heeeeeeeeeeeeeeeeeeeeeeelp

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews