![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
A Window component displays the contents of a movie clip inside a window with a title bar, a border, and an optional close button.
A Window component can be modal or non-modal. 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.
If you use the PopUpManager to add a Window component to a document, the Window instance will have its own FocusManager, distinct from the rest of the document. If you don't use the PopUpManager, the window's contents participate in focus ordering. For more information about controlling focus, see Creating custom focus navigation or FocusManager class.
A live preview of each Window instance reflects changes made to all parameters except contentPath in the Property inspector or Component Inspector panel while 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 only enable accessibility for a component once no matter how many instances you have of the component. For more information, see Creating Accessible Content.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |