# loadMovieNum()

#### Availability

Flash Player 4. Flash 4 files opened in Flash 5 will be converted to use the correct syntax.

#### Usage

    loadMovieNum("url",level [, variables])

#### Parameters

`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. Normally, the Flash Player displays a single movie (SWF file) and then closes. The `loadMovieNum()` action lets you display several movies at once and switch between movies without loading another HTML document.

If you want to specify a target instead of a level, use loadMovie() instead of `loadMovieNum()`.

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, `_level` `N`, 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 overwritten.

Use `unloadMovieNum()` to remove movies or images loaded with the `loadMovieNum()` action.

#### Example

This example loads the JPEG image "image45.jpg" into level 2 of the Flash Player.

    loadMovieNum("http://www.blag.com/image45.jpg", 2);

#### See also

`loadMovie()`, `unloadMovieNum()`, `_level`