0 Replies Latest reply on Jan 28, 2012 7:46 AM by Wingnow

    How to embed a png with a variable attribute?

    Wingnow Level 1

      I would like to embed a png with a variable attribute?

       

      Something similar to:

       

      var str:String = "'images2.png'";

      [Embed(source = {str})];

      var imgClass : Class;

       

      But it does not work, how can I do this?

      And I want to embed this in complied time rather than using runtime embedded or load function.

       

      Any suggestion would be nice!!