Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Problem with popup windows......PLEASE HELP.

    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
    Last edited by thehappyappy; 08-16-2006 at 08:44 PM. Reason: tryed to remove smiley from the "getURL(JavaScript:popup();");" line of code

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You are missing a quote.
    Code:
    on(release) {
    getURL("javascript:popup();");
    }
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Aug 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •