User Guide

1482 Window component
Window.contentPath
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
windowInstance.contentPath
Description
Property; sets the name of the content to display in the window. This value can be the linkage
identifier of a movie clip in the library, or the absolute or relative URL of a SWF or JPEG file
to load. The default value is
"" (an empty string).
Example
The following example creates a window and uses the contentPath property to specify the
location of the image to display in the window. You drag a Window component from the
Components panel to the current documents library, and then add the following code to
Frame 1:
/**
Requires:
- Window component in library
*/
import mx.managers.PopUpManager;
import mx.containers.Window;
System.security.allowDomain("http://www.flash-mx.com");
// Create window.
var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true, {
contentPath:"http://www.flash-mx.com/images/image2.jpg"});