I get the xml throught httpservice and I parse it from there.
and assign color1 from my xml as well as color2.
I use for example:
StyleManager.getStyleDeclaration("Application").setStyle('color',color2);
StyleManager.getStyleDeclaration("Application").setStyle('backgroundColor',color1);
StyleManager.getStyleDeclaration("Application").setStyle('themeColor',color1);
and in some cases
Id_MyPanel.setStyle('backgroundColor',color1);
Manish Jethani wrote:
>
> On 5/1/07, Guillermo Villasana <[EMAIL PROTECTED]
> <mailto:terius%40villasana.com.mx>> wrote:
>
> > 1) I genereted an xml with all the parameters (colors, font types, font
> > sizes...etc)
> > 2) In the mxml aplication i call initialize="initApp()"
> > 3) in the initApp I read the xml and assign all the styles to the
> > different componentes
>
> How are you getting the XML? Is it embedded into the application or
> downloaded dynamically?
>
> What components are these? The framework components should handle
> style changes properly. You can try calling getStyle() immediately to
> verify that the value has been set, and, also, to be sure, just call
> invalidateSize() and invalidateDisplayList() to see if that fixes the
> problem (but this should not be required).
>
>