Flex best practices – Part 2: Development practices
Store image assets such as JPG, GIF, or PNG files in a directory named "images".
The image directory path will be: src/assets/images
Use a fonts directory
Flex applications can contain embedded typefaces. When using nonstandard fonts for your Flex application store the TTF files and other font files in a directory named "fonts". Also keep in mind that font availability varies across platforms. Including the fonts is a good idea especially if the development team works on different platforms.
The font directory path will be: src/assets/fonts
Use an audio directory
Audio is a commonly used media type in rich Internet applications. Store audio assets such as MP4 and WAV files in a directory named "audio".
The audio directory path will be: src/assets/audio
Use a video directory
Store videos in a directory named "video"
The video directory path will be: src/assets/video
Use an XML directory
If your application contains XML configuration files or XML files that will be loaded directly into the application without making a call to a server, keep them grouped together in a directory named "xml".
The xml directory path will be: src/assets/xml
The directory structure shown in Figure 1 illustrates these conventions.
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)