Chapter 58: Window Component; Using The Window Component - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

58
CHAPTER 58
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.
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 Chapter 19, "Creating Accessible
Content," in Using Flash.

Using the Window component

You can use a window in an application whenever you need to present a user with information
or a choice that takes precedence over anything else in the application. For example, you
might need a user to fill out a login window, or a window that changes and confirms a new
password.
There are several ways to add a window to an application. You can drag a window from the
Components panel to the Stage. You can also call
(see
createClassObject()
) to add a window to an application. The third way of
UIObject.createClassObject()
adding a window to an application is to use the
PopUpManager
class. Use the Popup Manager
to create modal windows that overlap other objects on the Stage. For more information, see
"Window class" on page
1472.
1465

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents