View Full Version : Closing the browser from a flash button?
skidpanda
September 6th, 2002, 07:29 PM
Can anyone tell me how to close the browser window when a button in a flash movie is pressed ?
Cheers :nerd:
kirupa
September 6th, 2002, 08:12 PM
Hey skidpanda,
Simply add the following line to your button:
on (release) {
getURL("javascript:window.close()");
}
Cheers!
Kirupa :rambo:
skidpanda
September 6th, 2002, 09:18 PM
Cheers Kirupa :nerd:
eyezberg
September 7th, 2002, 02:46 AM
And if it's your main browser window and you don't want the alert, try this:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2844&lngWId=2
skidpanda
September 7th, 2002, 11:57 AM
oo thats nice too, thanks guys :)
skidpanda
September 7th, 2002, 10:38 PM
Hey Eyezberg?
How would i get that instant closer to work ? i opened the source HTML and copied the java part (dunno if it was the right bit) into the geturl of my flash button, I couldnt get it to work tho - i just get an error...
Cheers for any help :nerd:
flex
September 8th, 2002, 03:09 AM
Here is a browser window component. Drop it onto your stage, fill in the info like:
URL
Width and Height
Centered or not
Fullscreen
Close after x seconds
Scrollbar/Status/Toolbar/Resize yes no
They close with code that was posted prev.
Pretty useful.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.