
random() Global Function
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
743
Description
The _quality property stores a string that dictates the rendering quality of the Flash Player,
as follows:
“LOW” Low quality. Neither bitmaps nor vectors are antialiased (smoothed).
“AUTOLOW”
Start in low quality, but switch to high quality if the Player detects enough
processing power.
“MEDIUM”
Medium quality. Vectors are moderately antialiased using a 2 × 2 pixel grid.
“AUTOHIGH”
Start in high quality, but drop to low quality if the Player detects poor perfor-
mance (based on frame rate).
“HIGH” High quality (default). Vectors are highly antialiased using a 4 × 4 pixel grid.
Bitmaps are antialiased when no animation is occurring.
“BEST” Best quality. Vectors are highly antialiased using a 4 × 4 pixel grid. Bitmaps
are always antialiased.
Lower rendering quality means that fewer calculations are required to draw a frame of the
movie, resulting in faster performance. The typical setting of
_quality for most movies is
“
HIGH”.
Example
Here we set the rendering quality of a movie to the best it can be (which also causes the
slowest playback):
_quality = "BEST";
See Also
_highQuality, toggleHighQuality()
random() Global Function
generate a random number
Flash 4; deprecated in Flash 5 in favor of Math.random()
random(number)
Arguments ...