User Guide
Loader component 493
Loader.contentPath
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
loaderInstance.contentPath
Description
Property; a string that indicates an absolute or relative URL of the file to load into the loader. A
relative path must be relative to the SWF file that loads the content. The URL must be in the
same subdomain as the loading SWF file.
If you are using Flash Player or test-movie mode in Flash, all SWF files must be stored in the same
folder, and the filenames cannot include folder or disk drive information.
Example
The following example tells the loader instance to display the contents of the logo.swf file:
loader.contentPath = "logo.swf";
Loader.load()
Availability
Flash Player 6 (6.0 79.0).
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.