#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    15
    Rep Power
    0

    opening a new window from flash using javascript (Not Get URL)


    here's the scoop. I have a flash menu / thumbnail system that opens the final page as an html page. I have a text link in the final html page to close the window but it requires the user to click ok on the warning that the browser pops up. I've read that if you open the new window with javascript, it won't prompt this warning. How do I do this in my flash movie. My final swf resides in an html page.

    Thanks
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    San Francisco
    Posts
    3
    Rep Power
    0

    javascript calls ok


    You should be able to call any popup javascript functions you might have included in either your HTML or as an include file. This will open a popup window from flash which you can then use javascript code to close. Hope this helps...

    Will


    FLASH SAMPLE CODE:
    getURL ("javascriptopup(' URL','scroll')");

    JAVASCRIPT POPUP SAMPLE CODE:
    function popup(url, scroll){
    var scrollable;
    scroll? scrollable=",scrollbars": scrollable="";
    newwin = window.open(url, "winpopup1","WIDTH=320,HEIGHT=350" + scrollable);
    newwin.focus();
    }

IMN logo majestic logo threadwatch logo seochat tools logo