action script help
- Started
- Last post
- 6 Responses
- pufeta
hi all,
we are trying to figure out why this CLOSE BUTTON does not work on a demo we are creating. This is supposed to be a pop-up window and when we added this code to the flash fileon (release) {
getURL ("javascript:window.close();");
}it says that it will close the browser/window.. its not happening. Is the code above correct to close a pop-up? so that i can add it to my flash button?
thanks in advance..
here is the sample button with the code so you can see it..
- Bottlerocket0
you're probably trying to close the main browser window. Most browsers throw up errors about this. AFAIK window.close is used to close windows open by javascript....not that I am in anyway some sort of JS expert here.
- st33d0
Some browsers don't recognise the window object. Code the functionality into the header of your page and call it from the Flash.
If you cana't get it to work as a method from a link on your page then, it won't work from Flash.
- acescence0
you can't close a window with javascript that wasn't opened with javascript
- acescence0
cleanly, i should add
- pufeta0
thank you..I appreciate your help!!
- ian000
if you are publishing out for Flash 8 consoder using this to interface with your JS function: