_level
Availability
Flash Player 4.
Usage
_levelN
Description
Identifier; a reference to the root Timeline of
SWF files into the Flash Player before you use the
use
to target a loaded SWF file at the level assigned by
_levelN
The initial SWF file loaded into an instance of the Flash Player is automatically loaded into
. The SWF file in
_level0
subsequently loaded SWF files. SWF files are then stacked in higher-numbered levels above the
SWF file in
_level0
You must assign a level to each SWF file that you load into the Flash Player using
loadMovieNum()
SWF file (including
SWF file.
Example
The following example stops the playhead in the main Timeline of the SWF file sub.swf that is
loaded into
_level9
document that contains the following ActionScript:
loadMovieNum("sub.swf", 9);
myBtn_btn.onRelease = function() {
_level9.stop();
};
You could replace
_level9.gotoAndStop(5);
This action sends the playhead in the main Timeline of the SWF file in
instead of stopping the playhead.
See also
loadMovie(),
sets the frame rate, background color, and frame size for all
_level0
.
. You can assign levels in any order. If you assign a level that already contains a
), the SWF file at that level is unloaded and replaced by the new
_level0
. The sub.swf file contains animation and is in the same directory as the
in the previous example with the following code:
_level9.stop()
MovieClip.swapDepths()
ActionScript Language Reference
. You must use
_levelN
property to target them. You can also
_level
CHAPTER 2
loadMovieNum()
.
N
to Frame 5
_level9
_level
to load
371
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?