5 Replies Latest reply on Jul 17, 2006 1:32 PM by inactiveforumnotifier

    Problems with the componnet Window

    Dj... God Lov.... Level 1
      hey, Ev'rybody, I'm having a trouble with my componnet Window in my site... I made a pop-up window and I turn on the close button in the window, but when I press the window doesn't desappear, please help me because I don't know what I must do,

      You can see it here

      Just it has a trouble, the website is only in spanish... but make a click in Entrar al Site, and after that make click over the text next to the third star where you can read "De campamento", the window appear, but you can close it... what can I do?, please help

      Thanx have a great Day
        • 1. Re: Problems with the componnet Window
          Dj... God Lov.... Level 1
          Ok, the window isn't the first one... because I made it in Java, and that is not the trouble, the problem that I have is with the Window Flash componnet...

          Please help me!!!!
          • 2. Re: Problems with the componnet Window
            ckpepper02 Level 1
            What does your code look like? you'll probably need to create an eventListener to close the popup window.
            The following code should be within the code you used to create your popup window.

            var win = new Object();
            win.click = function(evt){
            yourPopUpInstanceName.deletePopUp();
            yourPopUpInstanceName.addEventListener("click",win);
            }
            • 3. Re: Problems with the componnet Window
              Dj... God Lov.... Level 1
              Thanks peeper...

              I resolve mny prblem with your advice.

              My code looks like this:
              // With this code I made the popUp Window
              mybutton.onRelease = function (){
              win = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true, { title:"Congreso de Niños :: 2006 ::", contentPath:"Joyas2.swf", _width:420, _height:440, closeButton:true, _x:100 })
              win.addEventListener("click",cerrar);
              }
              // I mix with your cade... And it works perfectly
              ---------------------

              cerrar = new Object();
              cerrar.click = function(){
              win.deletePopUp();
              }


              Thank you very much
              • 4. Re: Problems with the componnet Window
                Dj... God Lov.... Level 1
                Thanks peeper...

                I resolve mny prblem with your advice.

                My code looks like this:
                // With this code I made the popUp Window
                mybutton.onRelease = function (){
                win = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true, { title:"Congreso de Niños :: 2006 ::", contentPath:"Joyas2.swf", _width:420, _height:440, closeButton:true, _x:100 })
                win.addEventListener("click",cerrar);
                }
                // I mix with your cade... And it works perfectly
                ---------------------

                cerrar = new Object();
                cerrar.click = function(){
                win.deletePopUp();
                }


                Thank you very much
                • 5. Re: Problems with the componnet Window
                  inactiveforumnotifier Level 1
                  Thanks peeper...

                  I resolve mny prblem with your advice.

                  My code looks like this:
                  // With this code I made the popUp Window
                  mybutton.onRelease = function (){
                  win = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true, { title:"Congreso de Niños :: 2006 ::", contentPath:"Joyas2.swf", _width:420, _height:440, closeButton:true, _x:100 })
                  win.addEventListener("click",cerrar);
                  }
                  // I mix with your cade... And it works perfectly
                  ---------------------

                  cerrar = new Object();
                  cerrar.click = function(){
                  win.deletePopUp();
                  }


                  Thank you very much