Global properties, like global functions, can be accessed from any script in a movie. They store information that is generally useful from any point in our code. Many of them affect the entire Flash Player, not just a particular movie clip or movie.
Table 18-2 lists the global properties available in Flash 6, including the new global property _global. All other global properties listed in the table are available in Flash 5 as well.
Property name |
Description |
---|---|
_focusrect |
The highlight state of buttons activated via the keyboard |
_global[3] |
A reference to the global object |
_highquality[4] |
The rendering quality of the Player |
Infinity |
A constant representing the Infinity value of the number type |
-Infinity |
A constant representing the -Infinity value of the number type |
_leveln |
A document level in the Player, such as _level0 |
NaN |
Not-A-Number; the value of the number type representing invalid numeric data |
_quality |
The rendering quality of the Player |
_root |
A reference to the main movie timeline of the current level |
_soundbuftime |
Number of seconds of a streaming sound to preload |
$version[4] |
The version of the Flash Player |
[3] Supported in Flash 6, but not in prior versions.
[4] Deprecated in Flash 5 and later versions.