Random Function - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

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
- The level in Flash Player to print. By default, all of the frames in the level are
level:Number
printed. If you want to print specific frames in the level, assign a
frames.
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 the
size.
Indicates that the bounding box of each printable frame should be used as the
bframe
print area for that frame. This changes the print area for each frame and scales the objects
to fit the print area. Use
want each object to fill the printed page.
See also
,
print function
printAsBitmap function

random function

random(value:Number) : Number
Deprecated since Flash Player 5. This function was deprecated in favor of
Returns a random integer between 0 and one less than the integer specified in the
parameter.
Availability: ActionScript 1.0; Flash Player 4
Parameters
- An integer.
value:Number
Returns
- A random integer.
Number
94
ActionScript language elements
- A modifier that sets the print area of the movie clip. Enclose this
parameter if the printable frames in your movie clip vary in
bmax
if you have objects of different sizes in each frame and
bframe
#p
frame label to the frame whose
#b
,
printAsBitmapNum function
frame label to those
,
PrintJob
Math.random()
value
.

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?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents