Nice Writeups: Flex Modules, Compile and Runtime CSS & Loading Pure CSS at Runtime

Vic on Flex wrote a pretty nice write up with Runtime CSS need to know before you go.

Essentially, there are 3 rules that prevail:

1. The most recent style to be loaded always wins.
2. Run time overrides compile time styles
3. StyleManager is a global Manager
4. Style inheritance is granular to the attribute level
5. Compile time css will only compile styles found in Application

Let me explain further

Now, go over there to read more.

Flex LiveDocs said

Adobe You cannot load an uncompiled CSS file into your Flex application at run time. You must compile it into a SWF file before loading it.

And we developers are never good at listening. Here is how one fellow developer rebelled. He wrote the AS3 class to load pure CSS and apply to the display objects & its children. I say, this is neat!

Comments 2

  1. jchow@beyond-tech.com wrote:

    Hi Myo,

    my name is Joyce a recruiter with BeyondTech Solutions. I came across an old version of your resume on Monster and thought you may be a good candidate for a Java Developer position with one of our clients. I’ll email the job description to you and would appreciate it if you can give me a call.

    Cheers!
    Joyce

    Posted 22 Jun 2007 at 11:49 pm
  2. Ronaldo wrote:

    I am trying to change theme at runtime.Any more sugessions how to do that .
    I found this article seems to be help full .It describes how to change dynamic stylesheet on runtime . It does not use swf or css at all http://askmeflash.com/article_m.php?p=article&id=6

    Posted 01 Apr 2009 at 2:20 am

Post a Comment

Your email is never published nor shared. Required fields are marked *