ActionScript 2.0 Components Language Reference |
|
|
|
| Window component > Window.title | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
windowInstance.title
Property; a string indicating the text of the title bar. The default value is "" (an empty string).
The following example creates a pop-up window and uses the title property to set the title to "Hello World". 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 // Create window. var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true); // Set window attributes. my_win.title = "Hello World!"; my_win.setSize(200, 100); my_win.move(20, 20);
|
|
|
|