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
property to specify the
contentPath
location of the image to display in the window. You drag a Window component from the
Components panel to the current document's 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"});
1482
Window component
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers