SWiSH Player Support SWF4 or later - Supported Internally
Syntax
loadMovieNum("url",level[, variables])
Arguments
url: The absolute or relative URL of the .swf or .jpeg file to be loaded. A relative path must be relative to the .swf file at level 0. The URL must be in the same subdomain as the URL where the Movie currently resides. For use in the stand-alone Flash Player or for testing in test-movie mode in the Flash authoring application, all .swf files must be stored in the same folder; and the filenames cannot include folder or disk drive specifications.
level: An integer specifying the level in the Flash Player into which the Movie will be loaded.
variables:An optional parameter specifying an HTTP method for sending variables. The parameter must be the string GET or POST. If there are no variables to be sent, omit this parameter. The GET method appends the variables to the end of the URL and is used for small numbers of variables. The POST method sends the variables in a separate HTTP header and is used for long strings of variables.
Returns
Nothing.
Description
Action: Loads a .swf or .jpeg file into a level in the Flash Player while the originally loaded Movie is playing. The loadMovieNum Action lets you display several Movies at once and switch between Movies without loading another HTML document.
The Flash Player has a stacking order of levels starting with level 0. These levels are like layers of acetate; they are transparent except for the Objects on each level. When you use the loadMovieNum Action, you must specify a level in the Flash Player into which the Movie will load. Once a Movie is loaded into a level, you can use the syntax, _levelN, where N is the level number, to target the Movie.
When you load a Movie, you can specify any level number and you can load Movies into a level that already has a .swf file loaded into it. If you do, the new Movie will replace the existing .swf file. If you load a Movie into level 0, every level in the Flash Player is unloaded, and level 0 is replaced with the new file. The Movie in level 0 sets the Frame rate, background color and Frame size for all other loaded Movies.
The loadMovieNum Action also allows you to load .jpeg files into a Movie while it plays. For both images and .swf files, the upper-left corner of the image aligns with the upper-left corner of the stage when the file loads. Also in both cases, the loaded file inherits rotation and scaling, and the original content is over written.
Use the unloadMovieNum Action to remove Movies or images loaded with the loadMovieNum Action.
Sample
This example loads the specified .swf into level 1 of the Player.
The URL "http://www.swishzone.com/script_samples/testswf.swf" is provided for testing purposes.
Note: The above script must be tested using the test in player or test in browser feature.
loadVariables / loadMovies functions cannot be debugged using standard debugging features