Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
0

Problems with the componnet Window

New Here ,
Jul 03, 2006 Jul 03, 2006
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
TOPICS
ActionScript
410
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 07, 2006 Jul 07, 2006
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!!!!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 07, 2006 Jul 07, 2006
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);
}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 17, 2006 Jul 17, 2006
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 17, 2006 Jul 17, 2006
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 17, 2006 Jul 17, 2006
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines