Hi Graham,

Have you tried this:

AnswerButtonPanel.setStyle('headingFontColor', '#FF0000');

Or use a CSS file:

CSS:

myStyle {
    headingFontColor:#FF0000;
}

MXML:

<uiComponents: AnswerButtonPanel styleName="myStyle"/>

-TH

--- In flexcoders@yahoogroups.com, "grahampengelly" <[EMAIL PROTECTED]> 
wrote:
>
> Hi
> 
> I have created a custom component that derives from Box. I have 
added a
> couple of style decarations within the code for the component. The
> following is an example:
> 
> [Style(name="headingFontColor", type="uint", format="Color",
> inherit="no")]
> 
> ...and then I access this using getStyle("headingFontColor"), 
well, I
> wrap that with a default value function but that is the cut of it.
> 
> So it works if I set the style within the component tag in the 
MXML like
> this:
> 
> <uiComponents: AnswerButtonPanel headingFontColor="0xFF0000" />
> 
> but if I try to set it as such:
> 
> <mx:Style>
>      AnswerButtonPanel
>      {
>          headingFontColor:#FF0000;
>          <!-- I have also tried "#FF0000", 0xFF0000 and "0xFF0000" 
here,
> as per some examples that I have found, but none work -->
>      }
> </mx:Style>
> 
> it doesn't get set. Do I have to do something to get this 
functionality?
> 
> Thanks for your help in advance.
> 
> Graham
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to