ActionScript 2.0 Components Language Reference |
|
|
|
| Window component | |||
A Window component displays the contents of a movie clip inside a window with a title bar, a border, and an optional close button.
|
NOTE |
The Window component is supported only if you are working in a document that specifies ActionScript 2.0 in its Publish Settings. |
A Window component can be modal or nonmodal. A modal window prevents mouse and keyboard input from going to other components outside the window. The Window component also supports dragging; a user can click the title bar and drag the window and its contents to another location. Dragging the borders doesn't resize the window.
A live preview of each Window instance reflects changes made to all parameters except contentPath in the Property inspector or Component inspector during authoring.
When you add the Window component to an application, you can use the Accessibility panel to make it accessible to screen readers. First, you must add the following line of code to enable accessibility:
mx.accessibility.WindowAccImpl.enableAccessibility();
You enable accessibility for a component only once, regardless of how many instances you have of the component. For more information, see "Creating accessible content" in Using Flash.
|
|
|
|