Home > Articles > Web Development > Dreamweaver & Flash

Importing Graphics into Adobe Flash CS4

  • Print
  • + Share This
If you need to use photographic images or existing graphics created from another graphics program this chapter shows you how to import external graphics into Adobe Flash CS4.
This chapter is from the book

In the last two hours, you've seen how you can create sophisticated custom graphics quickly in Flash. Despite how powerful Flash's graphic creation tools are, eventually you might need to import graphics created elsewhere. You might need to use photographic images or existing graphics created from another graphics program. In this hour, you learn how to import external graphics into Flash.

Vector Graphics Versus Raster Graphics

Vector graphics have certain characteristics that are due to how they are stored by a computer. A vector graphics file contains the math to redraw the image onscreen. For example, a circle includes information such as the radius, the line thickness, and the color. All the graphics you create inside Flash are vector based. Vector graphics have two advantages: The file size tends to be small (therefore, it downloads fast), and the image can be scaled to any size without any degradation of the image quality (a circle is still a circle, even if it's a large circle).

Vector graphics are great, but it's important to realize their disadvantages. Vector graphics require the user's computer to work hard to display the image, so you may see slower performance if an animation contains complicated vector graphics. Also, vector graphics can look "computery" or antiseptic because they tend to involve geometric shapes. Both disadvantages can be overcome, but you should be aware of them. Vector graphics are predominately used in Flash movies because, as you see in later hours, you have more control over how they can be animated.

Bitmapped graphics (also called raster graphics) are fundamentally different from vector graphics. A raster graphics file contains the color information for each pixel. If the image is 100 pixels by 100 pixels, that's 10,000 pixels, each of which has a color value. As a result, raster graphics are almost always relatively large files. Raster graphics also can't be scaled effectively. They tend to get grainy, similar to a photograph that has been enlarged. An advantage of raster graphics is they appear onscreen very quickly.

It might seem that vector graphics are obviously the better choice. However, the decision of whether to use vector graphics or raster graphics should be based on the nature of the image. If the image is geometric, with clear delineations of color, a vector graphic is the best choice. If the image is a photograph of a person or a geographic location, nothing but a bitmap will do. Selecting which format to use is pretty easy when you know the considerations of each type.

  • + Share This
  • 🔖 Save To Your Account