Name
MovieClip.loadMovie( )
Method — load an external .
swf file into the Player
Availability
Method form introduced in Flash 5 (global form supported by Flash 4)
Synopsis
mc.loadMovie(URL) mc.loadMovie(URL, method)
Arguments
- URL
A string specifying the location of the external
.swf
file to load.
- method
An optional string literal indicating the method by which to send variables to an external script. Must be either the literal
"GET"
or"POST"
; no other expression is allowed.
Description
The MovieClip.loadMovie( )
method is an
alternative to the global loadMovie( )
function.
When invoked as a MovieClip( )
method,
loadMovie( )
takes no
target
parameter; it loads the
.swf
at URL
into
mc
. The method syntax is less prone to
user error than its global function counterpart.
For usage instructions, see the global loadMovie(
)
function.
See Also
loadMovie( )
; Section 13.8.3.1 in Chapter 13
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.