Yes has a lot of options
Manish said one, I said another
in the Flex Builder Compiler pass this argument -theme C:\yourTheme.css and
then your Application will have the right theme you defined in your CSS
external.
Other ways is Extend the StyleManager to load int he init App.
<mx:Script>
<![CDATA[
private function CSSInitializeMe():void
{
StyleManager.loadStyleDeclarations("yourCSS.css",true,true);
}
]]>
</mx:Script>
Best
- Igor Costa
On 5/2/07, tjcox1969 <[EMAIL PROTECTED]> wrote:
Is it possible to include a style sheet in the main application mxml
file and then have all other components and custom components use
those styles? Or do I have to include the mx:Style statement in each
custom component. I have several CSS files that many of my custom
components will use, but I dont want to have to include the mx:style
statement in every single custom component. I was hoping to include a
reference to the CSS files once in the main application mxml file and
have the custom components be able to reference style within those CSS
files. It does not seem to work. I have to include the CSS
references in ALL of my custom components which seems odd since what
happens if I change the name of one of those CSS files....I would then
have to find all custom components that reference it.
Thanks!
--
----------------------------
Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta