Importing Illustrator Graphics Files

Flash lets you import graphics files you've created with another image-editing program (like Adobe Illustrator or Photoshop) and then stored on your computer. After you import a graphics file, you can either edit the image it contains using Flash's tools and panels or just add it directly to your animation.

Note

Table 10-1 (Incorporating Sound) shows you a complete list of all the different graphics file formats you can import into Flash.

As you see in the steps below, after you've imported a graphics file, Flash stores a copy of the image in the Library panel (Properties subpanels) so you can add as many instances of the image to your animations as you like.

Of course, there's no such thing as a free lunch. Depending on the format of your graphics file (see Incorporating Sound), Flash either pulls the image in as a collection of editable shapes and layers—which you can work with just as you work with any image in Flash—or as a flattened bitmap, which limits your editing choices a bit. (Import Options for Graphics gives you tips for working with flattened bitmaps.) Flash does its best to give you all the bells and whistles of the original file format. Flash really excels when you import a file from one of Adobe's Creative Suite programs, like Illustrator. As the example below shows, you get to choose the way Flash imports layers, shapes, and text. As a result, if you're importing Illustrator files, Flash lets you go ahead and modify the shapes (vector graphics) and edit the text after import.

Tip

Adobe Illustrator files are frequently saved for printing on paper using a color space called CMYK (Cyan-Magenta-Yellow-Black). Before you import these files, use Illustrator to convert them to the RGB (Red-Green-Blue) color space used by Flash. To check and change the color space setting in Illustrator, choose File→Document Color Mode. Less frequently, you may find Adobe Photoshop files using the CMYK color space. In Photoshop, to check and change the color space, go to Image→Mode→RGB.

  1. Choose File→Import→Import to Stage.

    Your standard file dialog box appears. If you're using a PC, it looks like Figure 10-3, for example.

  2. In the "File name" field, type the name of the Adobe Illustrator (.ai) file you want to import (or, in the file window, click the file to have Flash fill in the name for you).

    Use the drop-down menu at the bottom to see all the different types of files you can import. Initially the drop-down menu is set to All Formats.

  3. Click Open.

    The Import dialog box disappears, and then Flash displays an extra Import Settings window that lets you tell it how much editability you want to preserve: whether you want it to convert the original frames into Flash frames or Flash layers, pull in all the frames or just a few, include invisible layers or not, and so on. Figure 10-4 shows the Import Settings windows you see when you import files created with Adobe Illustrator.

  4. When you see the Import to Stage dialog box (Figure 10-4), click to select one or more of the following options, and then click OK.

On the right site of the Import window, you see "Layer import options for "<Path>":" or Group, or Text, or whatever you selected on the left. Here's your opportunity to fine-tune the import process. Suppose you have a drawing of a car. You can import the wheels as movie clips with the registration points centered, so you can create rotating wheels in your Flash animation. Here are examples of the import options:

After you've made your choices and then clicked OK, the Import settings window disappears. Flash imports your file, placing it on the stage (or in multiple frames and layers, based on the options you selected above) and in the Library, as shown in Figure 10-1.

Tip

You can import files into your Library without placing them on the stage. Just choose File→Import→Import to Library.