Placing artwork into Flash



About importing artwork into Flash

Adobe® Flash® CS4 Professional can use artwork created in other applications. You can import vector graphics and bitmaps in a variety of file formats. If you have QuickTime® 4 or later installed on your system, you can import additional vector or bitmap file formats. You can import Adobe® FreeHand® files (version MX and earlier) and Adobe® Fireworks® PNG files directly into Flash, preserving attributes from those formats.

Graphic files that you import into Flash must be at least 2 pixels x 2 pixels in size.

To load JPEG files into a Flash SWF file during runtime, use the loadMovie action or method. For detailed information, see loadMovie (MovieClip.loadMovie method) in ActionScript 2.0 Language Reference or Working with movie clips in Programming ActionScript 3.0.

Flash imports vector graphics, bitmaps, and sequences of images as follows:

  • When you import Adobe® Illustrator® and Adobe® Photoshop® files into Flash, you can specify import options that let you preserve most of your artwork's visual data, and the ability to maintain the editability of certain visual attributes with the Flash authoring environment.

  • When you import vector images into Flash from FreeHand, select options for preserving FreeHand layers, pages, and text blocks.

  • When you import PNG images from Fireworks, import files as editable objects to modify in Flash, or as flattened files to edit and update in Fireworks.

  • Select options for preserving images, text, and guides.

    Note: If you import a PNG file from Fireworks by cutting and pasting, the file is converted to a bitmap.
  • Vector images from SWF and Windows® Metafile Format (WMF) files that you import directly into a Flash document (instead of into a library) are imported as a group in the current layer.

  • Bitmaps (scanned photographs, BMP files) that you import directly into a Flash document are imported as single objects in the current layer. Flash preserves the transparency settings of imported bitmaps. Because importing a bitmap can increase the file size of a SWF file, consider compressing imported bitmaps.

    Note: Bitmap transparency might not be preserved when bitmaps are imported by dragging and dropping from an application or desktop to Flash. To preserve transparency, use the File > Import To Stage or Import To Library command for importing.
  • Any sequence of images (for example, a PICT or BMP sequence) that you import directly into a Flash document is imported as successive keyframes of the current layer.

Import artwork in Flash

Flash lets you import artwork in various file formats either directly to the Stage, or to the library.

Import a file into Flash

  1. Do one of the following:
    • To import a file directly into the current Flash document, select File > Import > Import To Stage.

    • To import a file into the library for the current Flash document, select File > Import > Import To Library. (To use a library item in a document, drag it onto the Stage. )

  2. Select a file format from the Files Of Type (Windows) or Show (Macintosh) pop-up menu.
  3. Navigate to the desired file and select it. If an imported file has multiple layers, Flash might create new layers (depending on the import file type). Any new layers appear in the Timeline.
  4. Click Open.
  5. If the name of the file you are importing ends with a number and additional sequentially numbered files are in the same folder, do one of the following:
    • To import all the sequential files, click Yes.

    • To import only the specified file, click No.

      The following are examples of filenames that can be used as a sequence:

      Frame001.gif, Frame002.gif, Frame003.gif

      Bird 1, Bird 2, Bird 3

      Walk-001.ai, Walk-002.ai, Walk-003.ai

Paste a bitmap from another application directly into the current Flash document

  1. Copy the image in the other application.
  2. In Flash, select Edit > Paste In Center.

Supported file formats for vector or bitmap files

Flash can import different vector or bitmap file formats depending on whether QuickTime 4 or later is installed on your system. Using Flash with QuickTime 4 installed is especially useful for collaborative projects in which authors work on both Windows and Macintosh platforms. QuickTime 4 extends support for certain file formats (including PICT, QuickTime Movie, and others) to both platforms.

You can import the following vector or bitmap file formats into Flash 8 or later, regardless of whether QuickTime 4 is installed:

File type

Extension

Windows

Macintosh

Adobe Illustrator (version 10 or earlier)

.ai

Adobe Photoshop

.psd

AutoCAD® DXF

.dxf

Bitmap

.bmp

Enhanced Windows Metafile

.emf

 

FreeHand

.fh7, .fh8, .fh9, .fh10, .fh11

FutureSplash Player

.spl

GIF and animated GIF

.gif

JPEG

.jpg

PNG

.png

Flash Player 6/7

.swf

Windows Metafile

.wmf

You can import the following bitmap file formats into Flash only if QuickTime 4 or later is installed:

File type

Extension

Windows

Macintosh

MacPaint

.pntg

PICT

.pct, .pic

• (As bitmap)

QuickTime Image

.qtif

Silicon Graphics Image

.sgi

TGA

.tga

TIFF

.tif

Import FreeHand MX files

You can import FreeHand files in version 7 or later directly into Flash. FreeHand is a good choice for creating vector graphics for import into Flash, because you can preserve FreeHand layers, text blocks, library symbols, and pages, and choose a page range to import. If the imported FreeHand file is in CMYK color mode, Flash converts the file to RGB.

Keep the following guidelines in mind when importing FreeHand files:

  • When importing a file with overlapping objects to preserve as separate objects, place the objects on separate layers in FreeHand, and select Layers in the FreeHand Import dialog box in Flash. (If overlapping objects on a single layer are imported into Flash, the overlapping shapes are divided at intersection points, just as with overlapping objects that you create in Flash.)

  • Flash can support up to eight colors in a gradient fill. If a FreeHand file contains a gradient fill with more than eight colors, Flash creates clipping paths to simulate the appearance of a gradient fill. Clipping paths can increase file size. To minimize file size, use gradient fills with eight colors or fewer in FreeHand.

  • Flash imports each step in a blend as a separate path. Thus, the more steps a blend has in a FreeHand file, the larger the imported file size is in Flash.

  • When you import files with strokes that have square caps, Flash converts the caps to round caps.

  • Flash converts placed grayscale images to RGB images. This conversion can increase the imported file’s size.

  • When you import files with placed EPS images, select the Convert Editable EPS When Imported option in FreeHand Import Preferences before you place the EPS into FreeHand. If you do not select this option, the EPS image is not viewable when imported into Flash. In addition, Flash does not display information for an imported EPS image (regardless of the Preferences settings used in FreeHand).

  1. Select File > Import > Import To Stage or File > Import To Library.
  2. Select FreeHand from the Files Of Type (Windows) or Show (Macintosh) pop-up menu.
  3. Navigate to a FreeHand file and select it.
  4. Click Open.
  5. For Mapping Pages, select a setting:
    Scenes
    Converts each page in the FreeHand document to a scene in the Flash document.

    Keyframes
    Converts each page in the FreeHand document to a keyframe in the Flash document.

  6. For Mapping Layers, select one of the following:
    Layers
    Converts each layer in the FreeHand document to a layer in the Flash document.

    Keyframes
    Converts each layer in the FreeHand document to a keyframe in the Flash document.

    Flatten
    Converts all layers in the FreeHand document to a single flattened layer in the Flash document.

  7. For Pages, do one of the following:
    • To import all pages from the FreeHand document, select All.

    • To import a page range from the FreeHand document, enter page numbers for From and To.

  8. For Options, select any of the following options:
    Include Invisible Layers
    Imports all layers (visible and hidden) from the FreeHand document.

    Include Background Layer
    Imports the background layer with the FreeHand document.

    Maintain Text Blocks
    Preserves text in the FreeHand document as editable text in the Flash document.

  9. Click OK.

About AutoCAD DXF files

Flash supports the AutoCAD® DXF format in AutoCAD 10.

DXF files do not support the standard system fonts. Flash tries to map fonts appropriately, but the results can be unpredictable, particularly for text alignment.

Because the DXF format does not support solid fills, filled areas are exported as outlines only. For this reason, the DXF format is most appropriate for line drawings, such as floor plans and maps.

You can import two-dimensional DXF files into Flash. Flash does not support three-dimensional DXF files.

Although Flash doesn’t support scaling in a DXF file, all imported DXF files produce 12-inch x 12-inch files that you can scale using Modify > Transform > Scale. Also, Flash supports only ASCII DXF files. If your DXF files are binary, convert them to ASCII before importing them into Flash.

Loading artwork with ActionScript

With ActionScript, you can load external image files or assets from the Library at runtime.

For information about working with images and assets in ActionScript, see the following article: