all groups > flash actionscript > july 2006 >
You're in the

flash actionscript

group:

Problems with the componnet Window


Problems with the componnet Window Dj... God Lov....
7/3/2006 7:13:39 PM
flash actionscript:
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 http://iglesiadiospentecostal.org.ve/joyas/

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
Re: Problems with the componnet Window Dj... God Lov....
7/7/2006 12:50:32 PM
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...

Re: Problems with the componnet Window ckpepper02
7/7/2006 1:07:04 PM
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);
}
Re: Problems with the componnet Window Dj... God Lov....
7/17/2006 8:31:28 PM
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
Re: Problems with the componnet Window forumnotifier
7/17/2006 8:32:45 PM
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
Re: Problems with the componnet Window forumnotifier
7/17/2006 8:32:45 PM
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
AddThis Social Bookmark Button