I am building a custom component derived from Box. I have added a few style declarations as follows:
[Style(name="headingFontColor", type="uint", format="Color", inherit="no")]...and then in the component I use the style with getStyle("headingFontColor") wrapped with a bit of default value stuff.
If I set the style within the MXML tag it works fine:
<uiComp:AnswerButtonPanel headingFontColor="0xFF0000" etc etc/>
But if I try to set it from a style tag it doesn't work:
<mx:Style>Do I need to take some sort of extra steps to get this kind of stylesheet to work?
AnswerButtonPanel
{
headingFontColor: #FF0000;
<!-- I have tried some variations here from different examples I have found e.g. "#FF0000", "0xFF0000", 0xFF0000, they didn't work either -->
}
</mx:Style>
Thanks for you 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
SPONSORED LINKS
Software development tool | Software development | Software development services |
Home design software | Software development company |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___