-
Senior Member
How can I have a flash button close the browser window?
I created a flash cd rom with an exit button. Now the client is using this on their intranet site and the fscommand("quit") function no longer works. So I want to change the actionscript to close the browser window.
Couldn't they create an invisible button in html or javascript that lies over the flash file that closes their browser window?
Any suggestions?
Thanks
-
1. write a function in javascript which says
function closeWin(){
window.close();
}
2. call this function through flash on a click of a button using the getURL method.
-
Senior Member
Thanks Sid I'll give it a try.
-
Moderator
You actually don't need a function predefined, use this:
Code:
on (release) {
getURL("javascript:window.close()");
}
-
that something new to me, estudioworks.
em_city, when one close's a parent window using this command "window.close()" a confirmation message box is displayed. To avoid it you will have to call "window.close" command on a child window instead of the parent window.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|