[flexcoders] Re: CSS in custom components

2006-09-04 Thread Tim Hoff
Hi Graham, Have you tried this: AnswerButtonPanel.setStyle('headingFontColor', '#FF'); Or use a CSS file: CSS: myStyle { headingFontColor:#FF; } MXML: -TH --- In flexcoders@yahoogroups.com, "grahampengelly" <[EMAIL PROTECTED]> wrote: > > Hi > > I have created a custom compon

[flexcoders] Re: CSS in custom components

2006-09-04 Thread grahampengelly
Hi TimThanks for your quick reply... Both of those suggestions work. The problem I have is that it is actually some child components of the AnswerButtonPanel that I want to be able to style. In order to do this with the class name identifier in CSS I would have to hard code the styleName when I

[flexcoders] Re: CSS in custom components

2006-09-04 Thread grahampengelly
Hi Tim Thanks for taking the time to get back to me. The two suggestions that you gave both work. The problem that I have is that I also need to style child components of the AnswerButtonPanel that are dynamically created. If I use the styleName approach I would have to hard code a styleName and t

[flexcoders] Re: CSS in custom components

2006-09-04 Thread grahampengelly
Firstly, apologies if there was a more or less duplicate post prior to this one... I got a bit impatient waiting for the first one to show up and assumed it hadn't landed.I have now just realised that when I try to apply styles to the standard components e.g. Button with the syntax I am trying i

[flexcoders] Re: CSS in custom components

2006-09-04 Thread Tim Hoff
Looks like it should work.  This example is from the docs:xmlns:MyComp="myComponents.*"> Style> StyledRectangle {fillColors: #FF00FF, #00} Style> StyledRectangle/> If you're application is also using a CSS file, this wouldn't work.  Or if the style property is not s

[flexcoders] Re: CSS in custom components

2006-09-05 Thread grahampengelly
I have worked it out, finally...I was declaring my styles within a panel control that constituted one of the views of my app.Once I moved the styles into the Application tag they work fine with the type selector syntax.Thanks for you help all the same.GrahamBlog --- In flexcoders@yahoogroups.com