Loader.load()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

loaderInstance.load(path)

Parameters

path An optional parameter that specifies the value for the contentPath property before the load begins. If a value is not specified, the current value of contentPath is used as is.

Returns

Nothing.

Description

Method; tells the loader to begin loading its content.

Example

The following code creates a Loader instance and sets the autoload property to false so that the loader must wait for a call for the load() method to begin loading content. It then calls load() and indicates the content to load:

createClassObject(mx.controls.Loader, "loader", 0);
loader.autoload = false;
loader.load("logo.swf");