Table of Contents

MovieClip.loadMovie( ) Method Flash 5; Flash 6 adds .jpg loading and security restrictions

load an external .swf file into the Player
mc.loadMovie(url)
mc.loadMovie(url, method)

Arguments

url

A string specifying the location of the external .swf or .jpg 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( ) does not take a target parameter; it loads the .swf or .jpg from url into mc. The MovieClip method syntax is less prone to user error than its global function counterpart because no target parameter is required.

For usage instructions, see the global loadMovie( ) function.

See Also

loadMovie( ), loadMovieNum( ), MovieClip.getURL( ); Section 13.7


Table of Contents