_level
419
Returns
The length of the specified string or variable name.
Description
String function; returns the length of the specified string or variable name.
Example
The following example returns the value of the string
"Hello"
.
length("Hello");
The result is 5.
See also
" " (string delimiter)
,
String class
,
String.length
_level
Availability
Flash Player 4.
Usage
_level
N
Description
Identifier; a reference to the root Timeline of
_level
N
. You must use
loadMovieNum()
to load
SWF files into the Flash Player before you use the
_level
property to target them. You can also
use
_level
N
to target a loaded SWF file at the level assigned by
N
.
The initial SWF file loaded into an instance of the Flash Player is automatically loaded into
_level0
. The SWF file in
_level0
sets the frame rate, background color, and frame size for all
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()
. You can assign levels in any order. If you assign a level that already contains a
SWF file (including
_level0
), the SWF file at that level is unloaded and replaced by the new
SWF file.
Example
The following example stops the playhead in the main Timeline of the SWF file in
_level9
.
_level9.stop();
The following example sends the playhead in the main Timeline of the SWF file in
_level4
to
Frame 5. The SWF file in
_level4
must have previously been loaded with a
loadMovieNum()
action.
_level4.gotoAndStop(5);
See also
loadMovie()
,
MovieClip.swapDepths()
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...