Hi dhileepen,

You can load style sheets at run time by using the StyleManager.
Loading style sheets at run time is a three-step process:

   1. Write a CSS file for your application.
   2. Compile the CSS file into a SWF file.
   3. Call the StyleManager.loadStyleDeclarations() method in your
Flex application. This method loads the CSS-based SWF file into your
application. When this method executes, Flex loads the new
CSSStyleDeclarations into the StyleManager.

Go through this link:
http://blog.flexexamples.com/2007/12/12/loading-cascading-style-sheets-on-the-fly-using-the-flex-stylemanager-class/

Thanks,
-Sindhu

On Apr 24, 10:05 am, dhileepen chakravarthy <[email protected]>
wrote:
> > Thank you sunil.
>
> How do i load my theme at runtime. I have 2 themes i put this in lib folder,
> how do i control this at runtime
>
> Regards,
> Dhileepen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to