A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Pop up window

  1. #1
    Join Date
    Jun 2002
    Hi! Ive have a proble opening a pop window, i insert an action to a button, is like this
    on (release) {
    getURL("javascript:window.open('http://www.wherever.com.com/audio.swf','Audio','width=224.2,height=349.6')", "_blank");
    when i tested in flash everything is allright but when i upload it and test in over the internet in wont work, is like nothing happen.. what it could be?
    im using flash MX and publish it in flash 5, using internet explorer, by the way another question:
    Macos X + Netscape 6 + load movie= NOTHING HAPPENS!! do you know what it could be? Thanks very much!

  2. #2
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    British Columbia

    when you post it online, is the .swf embedded in an html page or linked directly? I think the style of script your using requires the swf to be embedded. If that doesn't help, try this:

    on (release) {
    varHeight = "355";
    varWidth = "600";
    getURL ("javascript:window.open('YourPage.html','someName ','width=600,height=355,top='+((screen.availHeight/2)-(" add varHeight/2 add "))+',left='+((screen.availWidth/2)-(" add varWidth/2 add "))); void(0);");

    just make sure to change both places that show the dimensions. hope that helps a bit

  3. #3
    this is what works for me...it seems to be almost just like EvolveDesigns' one but here's the one i use...
    getURL("javascript:thiswindow=window.open(your url.com','nameofwindow','width=500,height=450,left =0,top=0,toolbar=No,location=No,scrollbars=No,stat us=No,resizable=No,fullscreen=No'); thiswindow.focus(); void(0);");

    that's the code that works for me, but of course you'll have to edit it to your preferences..hope that helps.

  4. #4
    Senior Member
    Join Date
    Jun 2000
    You can also try this as well:

    Basically the same thing:


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