
87
USING FLASH CS4 PROFESSIONAL
Using imported artwork
When you select a bitmap on the Stage, the Property inspector displays the bitmap’s symbol name and its pixel
dimensions and position on the Stage. Using the Property inspector, you can
swap
an instance of a bitmap—that is,
replace the instance with an instance of another bitmap in the current document.
Display the Property inspector with bitmap properties
1
Select an instance of a bitmap on the Stage.
2
Select Window
> Properties.
Replace an instance of a bitmap with an instance of another bitmap
1
Select a bitmap instance on the Stage.
2
Select Window
> Properties, and click Swap.
3
Select a bitmap to replace the one currently assigned to the instance.
Set bitmap properties
You can apply anti-aliasing to an imported bitmap to smooth the edges in the image. You can also select a compression
option to reduce the bitmap file size and format the file for display on the web.
1
Select a bitmap in the Library panel and click the Properties button at the bottom of the Library panel.
2
Select Allow Smoothing. Smoothing improves the quality of bitmap images when they are scaled.
3
For Compression, select one of the following options:
Photo (JPEG)
Compresses the image in JPEG format. To use the default compression quality specified for the imported
image, select Use Document Default Quality. To specify a new quality compression setting, deselect Use Document
Default Quality and enter a value between 1 and 100 in the Quality text field. (A higher setting preserves greater image
integrity but yields a larger file size.)
Lossless (PNG/GIF)
Compresses the image with lossless compression, in which no data is discarded from the image.
Note:
Use Photo compression for images with complex color or tonal variations, such as photographs or images with
gradient fills. Use lossless compression for images with simple shapes and relatively few colors.
4
To determine the results of the file compression, click Test. To determine if the selected compression setting is
acceptable, compare the original file size to the compressed file size.
5
Click OK.
Note:
JPEG Quality settings that you select in the Publish Settings dialog box do not specify a quality setting for imported
JPEG files. Specify a quality setting for each imported JPEG file in the Bitmap Properties dialog box.
Import a bitmap at runtime
To add bitmaps to a document at runtime, use the ActionScript® 2.0 or the ActionScript 3.0
BitmapData
command.
To do so, specify a linkage identifier for the bitmap. For more information, see Assigning linkage to assets in the library
in
Learning ActionScript 2.0 in Adobe Flash
or Exporting library symbols for ActionScript in
Programming
ActionScript 3.0
.
1
Select the bitmap in the Library panel.
2
Do one of the following:
•
Select Linkage from the Panel menu in the upper-right corner of the panel.
Updated 5 March 2009