2 Replies Latest reply on Aug 9, 2010 4:47 AM by ccay

    How do I access an embeded image in a custom component?

    ccay

      Hi,

       

      I am using Flex 3 and I want to access an embeded image from a custom component.

       

      Let's say I have embedded an image in the root of the application with the following code:

       

                  [Embed("myImage.jpg")]
                  public var myImg:Class;

       

      ... and I have made a custom component in ActionScript using VBox as the base

      ... and added an image controll to to the custom component.

       

      Is there a way that I can use the embeded image as a source for the image in the custom control?