Home > Articles > Graphics & Web Design > Dreamweaver & Flash

Importing Graphics into Flash

  • PrintPrint
  • Share ThisShare This
  • DiscussDiscuss
Ideally, you should create all of the graphics you use in a Flash animation in Flash. Sometimes, though, that just isn't practical. This chapter will help you prepare for that eventuality by teaching you how to import graphics into Flash from some other program.

What You'll Learn in This Hour:

  • How to import vector graphics into Flash

  • How to import bitmap (raster) graphics

  • Ways to avoid imported graphics

  • How to optimize and maintain the best quality possible when importing

In the last two hours, you've seen how you can create sophisticated custom graphics very quickly in Flash. Despite how powerful Flash's graphic creation tools are, eventually you might want to import graphics created elsewhere. Two good reasons for this are to use photographic images or to use existing graphics (instead of re-creating them from scratch). You can certainly use these other graphics inside Flash—and that's what you're going to learn how to do in this hour.

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 remain 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 (it has to do a lot of math), and vector graphics often look "computery" or antiseptic because they tend to involve geometric shapes. Both disadvantages can be overcome, but you should be aware of them.

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 very effectively. They tend to get grainy, similar to a photograph that has been enlarged. An advantage of raster graphics is that 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 a good 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 ThisShare This
  • Your Account

Discussions

Make a New Comment

You must log in in order to post a comment.

Related Resources

It's Here; Put Away Your Pre-Conceptions on What an OS Must Be: Part IV
By John Traenkenschuh on May 27, 20095 Comments

Graphical User Interfaces were important.  So was cost control.  Just what must an OS be?

Drupal Theming Toolkit
By Emma Hogbin on March 9, 2009 1 Comment
Programmers and designers have a huge range of tools available from Vim and Emacs to Illustrator and Inkscape. But there are also those in-between folks who are responsible for taking graphic files and converting them into the template files that are applied to Web CMSes. In the Drupal world these people are known as "themers." During my DrupalCon presentation this past week in Washington, DC, I asked themers to blog their toolkit so that we can learn from one another and work towards a "best practices" toolkit. This post shows you my top six favorite tools in my Drupal theming toolkit.
Shon HarrisWeb Application Security Testing Webcast hosted by Shon Harris
By Shon Harris on February 13, 2009 1 Comment

Part I of “Caught in the Web: Best Practices for Effective Web App Security Assessments” – featuring Shon Harris, globally recognized leader in CISSP training and best-selling author

See All Related Blogs

Informit Network