PDA

View Full Version : closing a window



dysenterycal182
March 29th, 2004, 11:38 AM
--------------------------------------------------------------------------------

this is probably a really simple code, (it might be javascript i dunno)... but i want a simple 'X' button that will close my window when the user clicks it.
what code will be applied to the button?


cheers peeps

cal

--------------------------------------------------------------------------------

sanman918
March 29th, 2004, 12:40 PM
well depending on how you did things. Im not a javascript wiz but you can do this entirely in flash. Just do a loadmovie and load the .swf you want. Then make the X with a button over it. When the user clicks have it be on release (unload movie) and it will "exit" or unload the movie. Just make sure you have the movie load on a level such as 1 and have it unload level 1 when the user clicks the X.

bigbalroo
March 29th, 2004, 03:20 PM
apply this to ure "x" button:

on (release) {
fscommand("quit");
}


BigBalroo :eye: