A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flash popup external .htm file

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    12
    I need help on popup of an external .htm file...
    i tried using this code,

    code:
    --------------------------------------------------------------------------------
    getURL("javascript:void(window.open('URL','WinName ','width=540 ,height=220'));");
    --------------------------------------------------------------------------------

    although it does bring out a popup window, but everytime, it also popup a full screen empty html page...
    can anyone help me solve this problem?

    and if i would to call up a external .htm file, for example: rich.htm...
    what am i suposed to put into the code of the javascript?
    Do i replace the 'URL' with 'rich.htm'???
    please advise me......

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    India,chennai
    Posts
    223
    hi.

    In ur main html(the one which is having ur swf file)

    add this script before ur body tag.

    <SCRIPT LANGUAGE="JavaScript">

    var newwin;

    function launchwin(winurl,winname,winfeatures)
    {
    //This launches a new window and then
    //focuses it if window.focus() is supported.
    newwin = window.open(winurl,winname,winfeatures);
    if(javascript_version > 1.0)
    {
    //delay a bit here because IE4 encounters errors
    //when trying to focus a recently opened window
    setTimeout('newwin.focus();',250);
    }
    }
    </SCRIPT>


    then on the flash file ., you might have some button to click for opening the external html file.

    give this script.

    on (press) {
    getURL ("javascript:launchwin('rich.htm' , 'sc1' , 'height=573,width=576,top=50,left=150') \r\n");
    }

    i hope this willhelp.
    thx
    victor.A


  3. #3
    Junior Member
    Join Date
    Jul 2002
    Posts
    12
    Hey thx man for your help...
    it works...
    thx a hell lot for helping

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center