|
The loadMovie() function is used to replace a movie clip object in Flash with a SWF video file. The SWF file will inherit the position, rotation, and scale properties of the targeted movie clip it replaces. The upper left corner of the loaded image or SWF file aligns with the registration point of the targeted movie clip.
Three parameters can be passed to the loadMovie() function:
loadMovie(url, target, method);
- url: String - This should contain the URL (absolute or relative) to the SWF file to be loaded into the movie clip object. If WDIG will be passing the URL as a variable, please use _level0.moviePath
- target: Object - This is a reference to a movie clip object to be replaced by the SWF video file.
- method: String (optional) - This specifies an HTTP method for sending variables (either the string GET or POST). Omit this parameter if there are no variables to be sent.
Example of the loadMovie() function with a hard-coded SWF url:
loadMovie("http://www.server.com/video.swf", "movie_placeholder");
Example of the loadMovie() function with a variable url value (to be set by WDIG):
loadMovie(_level0.moviePath, "movie_placeholder");
|