1 Reply Latest reply on Jun 7, 2006 3:35 PM by neil manuell

    How To Use a Custom Close Button In Window Component

    JuliaO
      Hello,

      I have a window component, with the default close button turned off, and a new custom close button added to the movie clip that is displayed inside the window component. How do I get a click on the close button to close the window?

      This is the code I currently have to create the window (and the listeners to close the window using the default close button):

        • 1. Re: How To Use a Custom Close Button In Window Component
          neil manuell
          basicalyyou have to use
          myWindow.deletePopUp();
          if my memory serves the content mc is loaded into a mc called contentHolder, inside the window component, so

          if you are referencing the window from the scope of your loaded mc it will be
          this._parent._parent.deletePopUp();
          or if from the button's scope
          this._parent._parent._parent.deletePopUp();
          .
          try traceing the parantage down til you hit the window.