A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: need help sorting out pop-up windows

  1. #1
    Member
    Join Date
    Mar 2009
    Posts
    34

    need help sorting out pop-up windows

    hi
    I have been deveolping my new site, which is in it's early stages and have most things working ok but i need to open new windows from buttons in the main swf file. please check out my link to see for yourself! new windows load in the same window ad the main swf.

    http://www.stevedawson.org.uk/metaphyzicalindex.html

    I have been using this code on the thumbs on my design and illustration sections

    on (release) {
    getURL("javascript:NewWindow=window.open('url.html ','newWin','width=1133,height=425,left=425,top=113 3,screenX=1133,screenY=425');NewWindow.focus();voi d(0);");
    }

    each of the thumb windows being a different specified size. Help please!!!!

  2. #2
    Junior Member
    Join Date
    Mar 2009
    Posts
    3
    Try this :

    paste the following code for your flash button:
    on (release) {
    getURL("javascript:NewWindow('url.html','newWin',' width=1133,height=425')");
    }


    paste the following code between the head tags:
    <script language="JavaScript">
    function NewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
    </script>
    Last edited by bluex; 03-18-2009 at 07:06 AM.

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