title: Embed external CSS in Flex's swf file
body: <p>I want a few Flex (SDK 4.6) applications to share the same stylesheet (stored in CSS file). However I do not want to distribute standalone file along those applications' SWFs, but rather want to embed the CSS file into Flex application file (just as you embed images etc.). CSS declarations include font-embeddings so it is (I think) impossible to load CSS at runtime.</p>
  
  <p>What I already found out:</p>
  
  <ol>
  <li><p>I cannot simply use <code>&lt;fx:Script source="@Embed(stylesheet.css)" /&gt;</code>. Wrong syntax.</p></li>
  <li><p>I cannot use inline stylesheet in some MXML component that is shared among applications because CSS contains type declarations which are not allowed in components.</p></li>
  <li><p>I can choose to compile CSS to SWF but this creates standalone SWF file (so I can embed Flex framework into SWF but not a standalone CSS ;]).</p></li>
  </ol>
  
  <p>I hope I am missing something obvious and this is fairly easy to achieve.</p>