flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kessler CTR Mark J" <mark.kessler....@usmc.mil>
Subject RE: how to switch b/w spark skins at runtime+via XML
Date Tue, 20 Nov 2012 19:42:59 GMT
I remember trying this out once, ended up using the StyleManager with the loadStyleDeclarations.
 But your right it is a bit cumbersome, you pretty much need to have a default style set built
into the application, then load the compile SWF styles.

Think I have an old example here...
StyleManager.loadStyleDeclarations("/css/styleBlue.swf", true, false, ApplicationDomain.currentDomain);



-----Original Message-----
From: Alex Harui [mailto:aharui@adobe.com] 
Sent: Tuesday, November 20, 2012 12:11
To: flex-users@incubator.apache.org
Subject: Re: how to switch b/w spark skins at runtime+via XML

Look into using runtime CSS module loading.

To use XML, you would have to load all of the skin classes first, which can
be a drag on performance.

On 11/20/12 8:26 AM, "Arvind I K Chari" <arvind@anyaservices.com> wrote:

> Hello again,
> once I create multiple Spark Skins, how do I switch from one skin to
> another, in a running app? -- something like a template switcher, where the
> user viewing the flex app chooses a color, and the spark skin is
> immediately changed to the skin of that color (I would have already created
> the skin...). And can I store this skin template value in an XML? So that
> the end user can simply change this param in XML to change the design of
> the flex app?
> Yours Sincerely,
> Arvind.

Alex Harui
Flex SDK Team
Adobe Systems, Inc.

View raw message