PDA

View Full Version : close popup window


toke
09-10-2001, 05:02 PM
Hi,

I am trying to close a flash pop up window. I inserted actionscripts on the button in Flash like this...

on (release){
javascript:closeWindow();
}

but it doesn't work. Is there any way I can do it? Probably I did something wrong.

Thanks

buggedcom
09-10-2001, 05:14 PM
you have to create the popup function in the html coding then refer to it from flash by calling the function.

There might be an fscommand to do that, but i don't know it sorry

mpol777
09-10-2001, 11:45 PM
you're close.

on (release){
getURL ("javascript:window.close()");
}

[Edited by mpol777 on 09-10-2001 at 06:28 PM]

toke
09-11-2001, 08:14 PM
Thank you. It works now. :)