Q&A
-
I have a photograph that must remain as a raster graphic. After I scan it into the computer and touch it up, what file format should I choose? There are so many.
-
Generally, you want to keep all your raster graphics in the highest-quality format possible before importing into Flash. One exception is when you use a tool such as Fireworks to produce an optimally compressed image (say, with varying degrees of compression). If you use an outside program to compress the image, you should just make sure you don't recompress in Flash (simply leave the default setting Use Imported JPEG Quality). Alternatively, if you import a high-quality .pct, .bmp, or .png, you can compress it in Flash until you're satisfied with the compression level. JPEGs are all right, but they always have some compression that could result in artifacts. GIFs are not a good alternative because they can't have more than 256 explicit colors. Simply changing the file format of an existing image will never make a graphic better, and it will potentially make it worse. You should start with the best quality possible and then bring it down as the very last step.
-
How do you determine how much one graphic is contributing to the final movie's file size?
-
If it's a raster graphic, you can explore the Bitmap Properties dialog box, which tells you exactly how big a graphic is. With vector graphics, determining the size is more difficult. Ultimately, you should copy the graphic into a new file and export a .swf of that file (by selecting File, Export). You can look at the file size. Sometimes it's not so important how much one graphic is contributing, especially if it's an important graphic. However, your concern should always be to not add to the file size unnecessarily.
-
I've imported a raster graphic and then used Trace Bitmap to turn it into a vector graphic. The result looks fine, but the file size has grown larger than when the image was a regular bitmap. How can that be? Vectors should be smaller than bitmaps, right?
-
Not necessarily. This is a very common misunderstanding. It's possible to trace every pixel of a bitmap so that there is a tiny vector shape for each pixel. This takes more file space than the original bitmap. You can convert bitmaps into vector graphics (by using Trace Bitmap) anytime, but it really makes sense only when the nature of the image is appropriate or when you want a special effect. When Flash takes a very long time to execute the Trace Bitmap feature, it's a good indication that the file size might actually grow. (The delay occurs because the process is so complex.)
-
I have a fairly simple graphic (as an Illustrator file) that I would like to import into Flash. It's impossible to redraw in Flash, so I have to import it, right?
-
This sounds like a contradiction to me: The file is simple, but it's impossible to draw in Flash. Make sure you're fully exploiting the potential of Flash. (Read Hours 2, "Drawing and Painting Original Art in Flash," and 4 again if necessary.) If you have to import the image, do so. Of course, you should export it from Illustrator as a .swf or at least try to simplify the image as much as possible.