views:

458

answers:

1

I'm very new to Flash Builder and am trying to create an AIR app with a custom background. How can I put a background image in my project? I've tried just placing the image in the design view but it never shows up when I run the project.

+2  A: 

Fixed it myself, by adding @Embed(source='/path/to/file.jpg') instead of what the browse function put: /path/to/file.jpg I got the idea from seeing how the icon on a button (which showed up) was written.

Edit: After some more tinkering, it seems that /path/to/file works just as well, as long as the file is under the src directory, and that "Copy non-embedded files to output folder" is checked in the Project properties under Flex Compiler.

Lizzan

related questions