dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Been up all night! 7am nearly there!!! BUT...

  1. #1
    Member
    Join Date
    Oct 2000
    Posts
    91
    I have two buttons on the main movie. Both are GET URL java pop-ups (javascript:newWindow).

    When you press one it's window size opens and the movie plays...BUT...

    When you press the main movie window again and press the second button (with the first still running behind the main movie browser window) it loads into the first pop-ups movie window and is therefore the wrong sized window for it.

    hope this kinda makes sense...7.44am here in london and been up all night...please help us out!

    cheers

  2. #2
    I'm a hero like Robert De Niro
    Join Date
    Mar 2000
    Location
    London
    Posts
    1,171
    Hey,

    I had the same problem.Replace your java script function with this one:

    <SCRIPT LANGUAGE="JavaScript"> var javascript_version = 1.0;</SCRIPT>
    <SCRIPT LANGUAGE="JavaScript1.1"> javascript_version = 1.1;</SCRIPT>


    <SCRIPT LANGUAGE="JavaScript">
    var newwin;
    var x=0;
    function launchwin(winurl, winname, winfeatures) {
    newwin = window.open(winurl,winname+x,winfeatures);
    x++;
    if (javascript_version > 1.0) {
    setTimeout('newwin.focus();',250);
    }
    }
    </SCRIPT>

    it will open as many windows you want at the same time and each one will have its fixed parameters.

    Good luck,

    McMurphy

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