A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Pop up windows in the center!!!!

  1. #1
    New Wave Visionray's Avatar
    Join Date
    May 2001
    Location
    X
    Posts
    544
    Does anyone know how to make my flash movie popup in the center of the computer screen no matter what resolution?
    Thanks

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    591
    Put this in the Get URL field:

    javascript:window.open('link.html', 'WindowName',
    'width=200,height=300,top='+((screen.availHeight/2)-(height/2))+',left='+((screen.availWidth/2)-(width/2)); void(0);

    See and download my FAQ tutorial for more goodies:
    http://www.san-fran.com/tutorials/fl...lmenu_wframes/

  3. #3
    New Wave Visionray's Avatar
    Join Date
    May 2001
    Location
    X
    Posts
    544
    Hey thanks.
    Do I have to put in the specified window height and width or can I change that?

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