closing a SPECIFIC html page with actionscript
Hi I am making a cd rom with a flash interface.
The users will have the option of viewing 5 different html pages however I only ever want 1 web page to be open at a time. All of the tutorials have shown me how to close down the particular html page which is currently open however I cant find any ones to show me how to close a specific html page. I have been using this code - which closes a particular windowName but its not working...am I referencing the windowName incorrectly or should I name the page int the html code as well using javascript
To Open:
on (release) {
getURL("javascript:window.open('glimpse.html','joe 2','toolbar=no,statusbar=no,resizable=no,menubar=n o,width=950,height=750,left=40, top=20'); void(0);");
}
To close:
on (release) {
getURL("javascript:closeWindow('joe')");
}
all help much appreciated
|