Click to See Complete Forum and Search --> : closing window from flash


Ambrrose
05-08-2003, 07:08 AM
how can I close the window with the button in a Flash movie?
thanks

khalidali63
05-08-2003, 07:28 AM
something on these lines may work
1. use geturl function and call javascript from flash which will open new window. Like as:

geturl("javascript:CloseWindow(winName)")
2. Define function in the JavaScript code area which will open the window.

<script language="JavaScript">
function CloseWindow(winName){
if(winName==null){
self.close();
}else{
winName.close();
}
}
</script>

Ambrrose
05-08-2003, 08:04 AM
how can I assign close function to a button in a Flash movie?