2 Replies Latest reply on Oct 17, 2011 2:34 AM by Francisc

    Convert embedded image to BitmapData

    Francisc Level 3

      Hello,

       

      I'm trying to convert this:

       

      [Embed(source="assets/images/logo.png")]

      public static const imgLogo:Class;

       

      into a DisplayObject.

       

      I tried creating an Image and adding imgLogo as source, but it didn't work.

       

      How can I do that please?