Max-Mov > MovieClip.loadMovie
MovieClip.loadMovieSyntax
anyMovieClip
.loadMovie(url
[,variables
]);
Arguments
url
An absolute or relative URL for the SWF file to load. A relative path must be relative to the SWF. The URL must be in the same subdomain as the URL where the movie currently resides. For use in the Flash Player or for testing in test-movie mode in the Flash authoring environment, all SWF files must be stored in the same folder, and the file names cannot include folder or disk drive specifications.
variables
An optional argument specifying a method for sending variables associated with the movie to load. The argument must be the string "GET" or "POST." If there are no variables, omit this argument; otherwise, specify whether to load variables using a GET
or POST
method. GET
appends the variables to the end of the URL and is used for small numbers of variables. POST
sends the variables in a separate HTTP header and is used for long strings of variables.
Description
Method; plays additional movies without closing the Flash Player. Normally, the Flash Player displays a single Flash Player movie (SWF file) and then closes. The loadMovie
method allows you display several movies at once or switch between movies without loading another HTML document.
Use the unloadMovie
action to remove movies loaded with the loadMovie
action.
Use the loadVariables
method to keep the active movie, and update the variables with new values.
Player
Flash 5 or later.
See also
MovieClip.loadVariables
MovieClip.unloadMovie