Loadmovie (Movieclip.loadmovie Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

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 SWF or JPEG files into a movie clip in Flash Player while the original SWF file is
playing.
Tip: To monitor the progress of the download, use the
method instead of the
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 shown in the following code example. If you don't set
in the loader movie, any references to
true
the 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.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Lite 2.0
484
ActionScript classes
method.
loadMovie()
method, Flash Player displays a single SWF file and then closes.
method, set the
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
_root
object, Flash Remoting, or Runtime
XML
can be unpredictable. If you attach an
, and then you call
or
, and then call
on()
property to
true
_lockroot
_root
, the event
loadMovie()
loadMovie()
,
in
to
of
on that

Advertisement

Table of Contents
loading

Table of Contents