1 Reply Latest reply: Jan 6, 2014 7:48 AM by lingoguru RSS

    Cannot embed image in flash builder 4.7

    250891 Community Member

      I am building a game in flash 4.7, each time i try to embed an image an error occurs, it says that it cannot locate the source of the image, please what can i do to fix that problem?

        • 1. Re: Cannot embed image in flash builder 4.7
          lingoguru Community Member

          There is a disconnect between a pure actionscript project and a flex project.

           

          You need to supply an absolute path in pure actionscript.

           

          If you have an Assets class in say src/core and your assets folder is on the same level as src

           

          you need:

           

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

           

          Is real pain in the rectum, because in Flex [Embed(source="assets/sky.png")] will work