The SkinnablePopUpContainer class is a SkinnableContainer that functions as a pop-up. One typical use for a SkinnablePopUpContainer container is to open a simple window in an application, such as an alert window, to indicate that the user must perform some action.
You do not create a SkinnablePopUpContainer container as part of the normal layout of its parent container. Instead, it appears as a pop-up window on top of its parent. Therefore, you do not create it directly in the MXML code of your application.
Instead, you create is as an MXML component, often in a separate MXML file. To show the component create an instance of the MXML component, and then call the
To close the component, call the
The SkinnablePopUpContainer is initially in its
You do not create a SkinnablePopUpContainer container as part of the normal layout of its parent container. Instead, it appears as a pop-up window on top of its parent. Therefore, you do not create it directly in the MXML code of your application.
Instead, you create is as an MXML component, often in a separate MXML file. To show the component create an instance of the MXML component, and then call the
open()
method. You can also set the size and position of the component when you open it.To close the component, call the
close()
method. If the pop-up needs to return data to a handler, you can add an event listener for the PopUp.CLOSE
event, and specify the returned data in the close()
method.The SkinnablePopUpContainer is initially in its
closed
skin state. When it opens, it adds itself as a pop-up to the PopUpManager, and transition to the normal
skin state. To define open and close animations, use a custom skin with transitions between the closed
and normal
skin states.
No comments:
Post a Comment