
_leveln Global Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
568
|
ActionScript Language Reference
disable keyboard input outside the dialog box by removing the default key listener for the
application, as shown here:
// Method definition for launching a dialog box from theApp
theApp.displayModalDialog = function () {
// Disable the regular key listener
Key.removeListener(this.defaultKeyListener);
// Enable the temporary modal dialog key listener
Key.addListener(this.modalKeyListener);
// Continue with launching the dialog...
}
See Also
Key.addListener( ), Key.onKeyDown( ), Key.onKeyUp( ); Chapter 10
_leveln Global Property
a document level in the Player
Flash 3
read-only
_level0
_level1
_level2
...
_level
n
Description
Multiple .swf files can be loaded into the Flash Player for simultaneous display. Each
loaded .swf can be placed in a movie clip or on its own “level” in the document level stack.
The
_leveln property stores a reference to the main timeline of a .swf loaded into a docu-
ment level in the Player. Each document level is represented by a numbered property, such
as
_level0, _level1, _level2, and so on. A .swf file on a higher level will obscure lower
levels if they occupy the same portion of the Stage. The original document loaded into any
Flash Player is considered
_level0.
Note that
_leveln is not always synonymous with