See also
beginFill (MovieClip.beginFill method)
(MovieClip.createEmptyMovieClip method)
lineStyle (MovieClip.lineStyle method)
loadMovie (MovieClip.loadMovie method)
public loadMovie(url:String, [method:String]) : Void
Loads a SWF, JPEG, GIF, or PNG file into a movie clip in Flash Player while the original
SWF file is playing. Support for unanimated GIF files, PNG files, and progressive JPEG files
is added in Flash Player 8. If you load an animated GIF, only the first frame is displayed.
To monitor the progress of the download, use the
instead of the
loadMovie()
Without the
loadMovie()
The
method lets you display several SWF files at once and switch between SWF
loadMovie()
files without loading another HTML document.
A SWF file or image loaded into a movie clip inherits the position, rotation, and scale
properties of the movie clip. You can use the target path of the movie clip to target the loaded
SWF file.
When you call the
loadMovie()
the loader movie, as the following code example shows. If you don't set
the loader movie, any references to
loader instead of the
myMovieClip._lockroot = true;
Use the
MovieClip.unloadMovie()
method.
loadMovie()
Use the
MovieClip.loadVariables()
Shared Objects to keep the active SWF file and load new data into it.
Using event handlers with
event handler to a button by using
handler method such as
handler does not remain after the new content is loaded. However, if you attach an event
handler to a movie clip by using
movie clip, the event handler remains after the new content is loaded.
When using this method, consider the Flash Player security model.
method.
method, Flash Player displays a single SWF file and then closes.
method, set the
_root
of the loaded movie:
_root
method to remove SWF files or images loaded with the
method, the
MovieClip.loadMovie()
, or if you create a dynamic handler by using an event
on()
MovieClip.onPress()
onClipEvent()
,
createEmptyMovieClip
,
endFill (MovieClip.endFill method)
,
moveTo (MovieClip.moveTo method)
MovieClipLoader.loadClip()
MovieClip._lockroot
in the loaded movie point to the
object, Flash Remoting, or Runtime
XML
can be unpredictable. If you attach an
, and then you call
or
, and then call
on()
method
property to
true
to
_lockroot
true
of the
_root
, the event
loadMovie()
on that
loadMovie()
MovieClip
,
in
in
889
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?