
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
434
|
ActionScript Language Reference
Global Functions
Global functions are built-in functions that are available throughout an entire
movie—they can be invoked from any frame, button, or event handler in a movie
(unlike methods, which must be invoked using a reference to a specific object).
Table R-1 lists the global functions available in Flash 6, including two new global
functions: clearInterval() and setInterval(). All other global functions listed in the
table are available in Flash 5 as well. Table R-1 also lists the directives and pragmas,
which begin with the # character—namely,
#include, #initclip, and #endinitclip.
Global Properties
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 R-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 R-1. ActionScript global functions
Boolean() gotoAndStop() parseInt() stopAllSounds()
call()
#include play() stopDrag()
clearInterval()
*
*
Supported in Flash 6, but not in prior versions.
#initclip
*
prevFrame() String()
Date( ...