A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: best way to size a window?

  1. #1
    Member
    Join Date
    Jun 2000
    Posts
    43
    what is the best way to size a HTML window that you are opening from a flash movie? thanks, john

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    in the page that LAUNCHES the popup put:

    <script language="javascript">
    function newWindow(url,name,parameters){
    var newWin = window.open(url,name,parameters);
    }
    </script>

    (don't edit the code above)

    in the movie:
    on Release
    GetUrl("javascript: newWindow('your_page.html','newWin1','height=xxx,w idth=xxx,toolbar=0,menubar=0,directories=0,locatio n=0,scrollbars=0,resizable=0,top=0,left=0')", vars=Post)

    (select send using Post)

    If you want to get rid of the margins in the popup page put:

    marginwidth="0" marginheight="0" topmargin="0" leftmargin="0"
    in the body tag:

    <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0"

    and just enter the size in the relevant place.

    ~mgb

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