Groups | Blog | Home
all groups > flash actionscript > july 2005 >

flash actionscript : Closing a pop-up


-ToTi-
7/14/2005 8:28:35 PM
Hi, im trying to make a popup close at the push of a button with the following
code but it is not working:

on (release) {
getURL ("javascript:NewWindow.close(); void(0);");
}

Is the code wrong, or am I doing something else wrong??
Thanks,
toti
Krishna Raj
7/15/2005 12:00:00 AM
Try this pls

Make a popup a mc and assign it a instance(Newwindow) and go to the stage of
the button. paste the following script in actionscript window

on (release) {
setProperty("/Newwindow",_visible,"0");

}

I have been doing this for some time.its working

Regards,

Krishnaraj
Randy1969
7/15/2005 12:00:00 AM
on (release)
{
getURL("javascript:window.close();","_self");
-ToTi-
7/15/2005 12:00:00 AM
Thank you very much, just what i needed
-ToTi-
7/15/2005 1:36:29 PM
AddThis Social Bookmark Button