View Full Version : Problem with popup windows......PLEASE HELP.

08-16-2006, 08: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) {

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');

to the HTML file


08-16-2006, 09:52 PM
You are missing a quote.

on(release) {

08-17-2006, 01:42 PM
I must have missed that bit of code out when I typed the post, but I've just double checked and it is definately there on the buttons in the .swf file.