Loader.contentPath

Availability

Flash Player 6.0.79.

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 that loads the content. The URL must be in the same subdomain as the URL as the loading SWF.

If you are using the stand-alone 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";