94
ActionScript language elements
Availability:
ActionScript 1.0; Flash Player 5 - If you are authoring for Flash Player 7 or later,
you can create a PrintJob object, which gives you (and the user) more control over the
printing process. For more information, see the PrintJob class entry.
Parameters
level
:Number
- The level in Flash Player to print. By default, all of the frames in the level are
printed. If you want to print specific frames in the level, assign a
#p
frame label to those
frames.
boundingBox
:String
- A modifier that sets the print area of the movie clip. Enclose this
parameter in quotation marks (" or '), and specify one of the following values:
■
bmovie
Designates the bounding box of a specific frame in a movie clip as the print area
for all printable frames in the movie clip. Assign a
#b
frame label to the frame whose
bounding box you want to use as the print area.
■
bmax
Designates a composite of all the bounding boxes of all the printable frames as the
print area. Specify the
bmax
parameter if the printable frames in your movie clip vary in
size.
■
bframe
Indicates that the bounding box of each printable frame should be used as the
print area for that frame. This changes the print area for each frame and scales the objects
to fit the print area. Use
bframe
if you have objects of different sizes in each frame and
want each object to fill the printed page.
See also
print function
,
printAsBitmap function
,
printAsBitmapNum function
,
PrintJob
random function
random(value:Number) : Number
Deprecated
since Flash Player 5. This function was deprecated in favor of
Math.random()
.
Returns a random integer between 0 and one less than the integer specified in the
value
parameter.
Availability:
ActionScript 1.0; Flash Player 4
Parameters
value
:Number
- An integer.
Returns
Number
- A random integer.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...