![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 509](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553509.webp)
MovieClip
509
removeMovieClip (MovieClip.removeMovieClip
method)
public removeMovieClip() : Void
Removes a movie clip instance created with
duplicateMovieClip()
,
MovieClip.duplicateMovieClip()
,
MovieClip.createEmptyMovieClip()
, or
MovieClip.attachMovie()
.
This method does not remove a movie clip assigned to a negative depth value. Movie clips
created in the authoring tool are assigned negative depth values by default. To remove a movie
clip that is assigned to a negative depth value, first use
MovieClip.swapDepths()
to move
the movie clip to a positive depth value.
Note:
If you are using V2 components, and use
MovieClip.getNextHighestDepth()
instead of the DepthManager class to assign depth values, you may find that
removeMovieClip()
fails silently. When any V2 component is used, the DepthManager class
automatically reserves the highest (1048575) and lowest (-16383) available depths for cursors
and tooltips. A subsequent call to
getNextHighestDepth()
returns 1048576, which is
outside the valid range. The
removeMovieClip()
method fails silently if it encounters a
depth value outside the valid range. If you must use
getNextHighestDepth()
with V2
components, then you can use
swapDepths()
to assign a valid depth value or use
MovieClip.unloadMovie()
to remove the contents of the movie clip. Alternatively, you can
use the DepthManager class to assign depth values within the valid range.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability:
ActionScript 1.0; Flash Lite 2.0
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...