IMHO, the use of the term 'CSS' in Flex is a total marketeering setup.  It
really is not 'CSS' as we know it in HTML, which is where the term is most
oft associated.  Rather, its something patterned after 'CSS' as we know it
in HTML.  That said, certainly look at
StyleManager.loadStyleDeclarationsand its friend to unload styles.
Works a treat.  Note, you may have to
unload a current style prior to loading another as loading a style does not
replace the current one, rather its a sort of inclusive union.



DK

On Nov 14, 2007 10:17 PM, flexawesome <[EMAIL PROTECTED]> wrote:

>   Thanks Richard,
>
> It looks I can handle the external CSS file hardly. I would like to
> allow Administrator to change the style in CSS by using notepad, and
> run the application to get updates directly. Otherwise, there is no
> benfits to use CSS in Flex. Just like HTML.... -_-
>
> I extremely hople this can be done in Flex 3.
>
> Cheers
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Richard
> Rodseth" <[EMAIL PROTECTED]>
>
> wrote:
> >
> > But see this:
> > http://www.onflex.org/ted/2007/01/flex-201-understand-runtime-
> css.php
> >
> > I haven't done this yet myself.
> >
> > On 11/14/07, flexawesome <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > really? that is crap! hummm....
> > >
> > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
> "Samuel R. Neff"
> > > <srneff.lists@> wrote:
> > > >
> > > >
> > > > CSS is loaded at compile time, not runtime.
> > > >
> > > >
> > > > -------------------------------------------
> > > > We're Hiring! Seeking a passionate developer to join our team
> > > building Flex
> > > > based products. Position is in the Washington D.C. metro area.
> If
> > > interested
> > > > contact careers@
> > >
> > > >
> > > > -----Original Message-----
> > > > From: flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>
> > > [mailto:flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>] On
> > > > Behalf Of flexawesome
> > > > Sent: Wednesday, November 14, 2007 9:28 PM
> > > > To: flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>
> > > > Subject: [flexcoders] External StyleSheet In Application
> > > >
> > > > hey there,
> > > >
> > > > I added stylesheet into my application as below, but it does
> change
> > > > the color or size in my application.
> > > >
> > > > I have to recompile the application to take effect. Is there
> > > anything
> > > > wrong?
> > > >
> > > > Thanks
> > > >
> > > >
> > > > <mx:Style source="main.css"/>
> > > >
> > > > =============== in CCS file ==============
> > > >
> > > > Application {
> > > > backgroundColor: #ffffff;
> > > > backgroundGradientColors: #ffffff, #ffffff;
> > > > backgroundGradientAlphas: 1, 1;
> > > > themeColor: #009dff;
> > > > color: #0b333c;
> > > > }
> > > >
> > >
> > >
> > >
> > >
> > >
> >
>
>  
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?

Reply via email to