![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
To use an action to control a movie clip or loaded SWF file, you must specify its name and its address, called a target path.
In ActionScript, you identify a movie clip by its instance name. For example, in the following statement, the _alpha
property of the movie clip named star
is set to 50% visibility:
star._alpha = 50;
_level
X
, where X
is the level number specified in the loadMovie()
action that loaded the SWF file.
For example, a SWF file loaded into level 5 has the target path _level5
. In the following example, a SWF file is loaded into level 5 and its visibility is set to false
:
onClipEvent(load) { loadMovieNum("myMovie.swf", 5); } onClipEvent(enterFrame) { _level5._visible = false; }
For more information on target paths, see Using absolute and relative target paths.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |