PDA

View Full Version : Closing window from within swf?


Holly
10-01-2002, 11:39 AM
I created a game (with the help of this forum) but I have a little problem. In this game, there is a "close"- button. So, when it is pressed, the game fades out. But is there a way to close the window from within the swf-file also automatically? Maybe it is really basic, but I didn't find out yet! Thanks for your help!

Jesse
10-01-2002, 01:44 PM
on (release) {
getURL("javascript:window.close()");
}
Please remember to search before posting, this is a common one.