MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 90

Actionscript 2.0 language reference
Table of Contents

Advertisement

Parameters
- The instance name of a movie clip to print. By default, all of the frames in
target:Object
the target instance can be printed. If you want to print specific frames in the movie clip, assign
a
frame label to those frames.
#p
boundingBox:String
parameter in quotation marks (" or '), and specify one of the following values:
Designates the bounding box of a specific frame in a movie clip as the print area
bmovie
for all printable frames in the movie clip. Assign a
bounding box you want to use as the print area.
Designates a composite of all the bounding boxes of all the printable frames as the
bmax
print area. Specify
Indicates that the bounding box of each printable frame should be used as the
bframe
print area for that frame, which changes the print area for each frame and scales the
objects to fit the print area. Use
and want each object to fill the printed page.
Example
The following example prints all of the printable frames in
defined by the bounding box of each frame:
this.createEmptyMovieClip("holder_mc", 999);
holder_mc.loadMovie("http://www.helpexamples.com/flash/images/image1.jpg");
this.myBtn_btn.onRelease = function() {
print(this._parent.holder_mc, "bframe");
};
In the previous ActionScript, you could replace
defined by the bounding box of a frame with the
See also
printAsBitmap function
90
ActionScript language elements
- A modifier that sets the print area of the movie clip. Enclose this
if the printable frames in your movie clip vary in size.
bmax
bframe
,
printAsBitmapNum function
frame label to the frame whose
#b
if you have objects of different sizes in each frame
holder_mc
with
bframe
bmovie
frame label attached.
#b
,
PrintJob
with a print area
so that the print area is
,
printNum function

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF