title: Is it possible to embed a Flex Assets Class in a CSS declaration?
body: <p>I have an SWC which includes a number of Assets for my project.  Within this SWC is also a static AS file which contains Class declarations for each image in the library.</p>
  
  <p>For example, the SWF contains these images:</p>
  
  <pre><code>/assets/foo/bar/img1.jpg
  /assets/foo/bar/img2.jpg
  </code></pre>
  
  <p>And it includes an AS file which is like this:</p>
  
  <pre><code>[Embed(source="/assets/foo/bar/img1.jpg")]
  public static const IMG_1:Class;
  
  [Embed(source="/assets/foo/bar/img2.jpg")]
  public static const IMG_2:Class;
  </code></pre>
  
  <p>I would like to create a CSS declaration which uses these two images, but I don't want to embed the full path.  Is it possible to do something <em>like</em> this?</p>
  
  <pre><code>&lt;mx:Style&gt;
      .mySampleStyle {
          upIcon:   Assets.IMG_1;
          downIcon: Assets.IMG_2;
      }
  &lt;/mx:Style&gt;
  </code></pre>
  
  <p>At the moment, this particular syntax is invalid -- I'm getting compile errors for the "." character in the style declaration.</p>
  
  <p>Is there another way of doing this <em>without</em> embedding the path (e.g. <code>upIcon: Embed(source="/assets/foo/bar/img1.jpg")</code>) in the CSS?</p>