• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 55. Window Component > Close the Window

Close the Window

Now that we've created a window and put something in it, we'll probably want to close it at some point. One way to do this is the following:

buttonListener.click = function()
{
    var loginWindow = PopUpManager.createPopUp(_root, Window, true);
    loginWindow.setSize(240,210);
    loginWindow.title = "Change Password";
    loginWindow.contentPath = "password";

    // close button
						loginWindow.closeButton = true;
}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint