Welcome, Guest
  • Author Topic: open windows from flash -> dynamic url's  (Read 1801 times)

    farid silva

    • Server what's that
    • *
    • Posts: 1
      • View Profile
      • Email
    open windows from flash -> dynamic url's
    « on: 04/20/04, 17:17 »
    Hi, I actually have a movie with a button to open a pop-up window using this AS:

    on (release) {
    getURL("javascript:window.open('foto.php?foto=maccha_team.jpg','Foto','fullscreen=yes,toolbar=no,scrollbars=yes,resizable=yes,menubar=no,status=no,directories=no,location=no'); void(0);", "", "GET");
    }


    it works fine, but now I need to make the URL depending on variables which are established through buttons clicks.

    I try to make it works with this code:

    button 1 //set the url for the pop-up

    on (release) {   biciURL="javascript:window.open('foto.php?foto=saga_1.jpg','Foto','fullscreen=yes,toolbar=no,scrollbars=yes,resizable=yes,menubar=no,status=no,directories=no,location=no'); void(0);";
    }


    button 2 //my old pop-up button

    on (release) {
       getURL(biciURL);
    }

    but it doesn't works, I get a syntax error in my browser window.

    If I use

    on (release) {
       getURL(biciURL,"","GET");
    }


    I get the same error.

    Any ideas?

    Thanks a lot.

    Farid

    Mohsin Sumar

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 1646
    • Mohsin Sumar, Extreme Web Technologies
      • MSN Messenger - mohsinsumar@hotmail.com
      • Yahoo Instant Messenger - mohsinsumar
      • View Profile
      • Extreme Web Technologies
      • Email
    Re:open windows from flash -> dynamic url's
    « Reply #1 on: 04/20/04, 23:29 »
    Hi Farid and welcome to the boards.
    I don't know why you want to use GET but I tried this way using POST and it works.

    [script]
    // Frame has this function
    function popup(biciURL) {
     getURL(biciURL, "", "POST");
     return;
    }

    // Button has this code
    on(release) {
     popup("javascript:window.open('foto.php?foto=maccha_team.jpg','Foto','fullscreen=yes,toolbar=no,scrollbars=yes,resizable=yes,menubar=no,status=no,directories=no,location=no'); void(0);");
    }
    [/script]

    This gives you the flexibility to change the size and the details of the window from the button.
    Hope this helps.
    - Best Regards, Mohsin Sumar
    - Mohsin Sumar dot com is hosted by Extreme Web Technologies