thehappyappy
08-16-2006, 07:41 PM
I'm having a few problems being able to open a customisable popup window from an .swf file. I've followed a tutorial I found on FlashKit's web site and it works perfectly for one button. The problem I'm having is that I want to have two buttons opening two seperate web pages. I guess I need two seperate JavaScript functions, but I don't know enough JavaScript to do this.
If it helps the buttons inside the swf file have:
on(release) {
getURL(JavaScript:popup();");
}
while I've also added:
<SCRIPT LANGUAGE = "JavaScript">
function popup() {
window.open('http://www.whatever.com','','toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=no,r esizable=no,width=831,height=613,left=0,top=0');
}
</SCRIPT>
to the HTML file
Thanks
If it helps the buttons inside the swf file have:
on(release) {
getURL(JavaScript:popup();");
}
while I've also added:
<SCRIPT LANGUAGE = "JavaScript">
function popup() {
window.open('http://www.whatever.com','','toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=no,r esizable=no,width=831,height=613,left=0,top=0');
}
</SCRIPT>
to the HTML file
Thanks