flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Background color in custom renderer
Date Thu, 06 Nov 2014 17:20:37 GMT
Try skipping setStyle:

this.getTextField().backgroundColor = 0xFFA500;


If that doesn’t work, there might be other code that removes backgrounds
when a renderer so the highlights for rollover show through.   Check the
base class for logic that does that.

-Alex

On 11/6/14, 8:36 AM, "mark goldin" <markzolotoy@gmail.com> wrote:

>I did.
>
>On Thu, Nov 6, 2014 at 10:32 AM, OmPrakash Muppirala
><bigosmallm@gmail.com>
>wrote:
>
>> Try removing the quotes around the color value.
>> On Nov 6, 2014 7:48 AM, "mark goldin" <markzolotoy@gmail.com> wrote:
>>
>> > I am using a label for my custom renderer:
>> >
>> > override public function set data(value:Object):void
>> > {
>> > super.data = value;
>> > if (value != null)
>> > {
>> > this.getTextField().background = true;
>> > this.getTextField().setStyle("backgroundColor", "0xFFA500");
>> > }
>> > }
>> > private function getTextField():*
>> > {
>> > return textField;
>> > }
>> >
>> > But I see no color.
>> >
>> > Thanks
>> >
>>

Mime
View raw message