Importing bitmaps at runtime
You can use the ActionScript 2.0 command
runtime. To do so, you must specify a linkage identifier for the bitmap. For more
information, see
"Assigning linkage to assets in the library" on page 604
ActionScript 2.0 in Flash.
To assign an identifier string to a bitmap:
1.
Select the bitmap in the Library panel.
2.
Do one of the following:
Select Linkage from the options menu in the upper right corner of the panel.
Right-click (Windows) or Control-click (Macintosh) the bitmap name in the Library
panel, and select Properties from the context menu.
If the Linkage properties aren't visible in the Properties dialog box, click the Advanced
button to display the advanced properties settings.
3.
Under Linkage in the Linkage Properties dialog box, select Export for ActionScript.
4.
Enter an identifier string in the text box, and click OK.
Applying a bitmap fill
You can apply a bitmap as a fill to a graphic object using the Color Mixer. Applying a bitmap
as a fill tiles the bitmap to fill the object. The Fill Transform tool allows you to scale, rotate, or
skew an image and its bitmap fill. See
To apply a bitmap as a fill using the Color Mixer:
1.
To apply the fill to existing artwork, select a graphic object or objects on the Stage.
2.
Select Window > Color Mixer.
3.
In the Color Mixer, select Bitmap from the pop-up menu in the center of the panel.
4.
If you need a larger preview window to display more bitmaps in the current document,
click the arrow in the lower right corner to expand the Color Mixer.
5.
Click a bitmap to select it.
The bitmap becomes the current fill color. If you selected artwork in step 1, the bitmap is
applied as a fill to the artwork.
to add bitmaps to a document at
BitmapData
"Transforming gradient and bitmap fills" on page
in Learning
Working with imported bitmaps
121.
203
Need help?
Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?
Questions and answers