18.2 Global Properties

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference

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.

Table 18-2. ActionScript global properties

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.

     



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net