A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how to customize size of new window?

  1. #1
    Senior Member
    Join Date
    Apr 2003
    Location
    Seattle
    Posts
    177

    how to customize size of new window?

    Hello,

    I've looked over a slew of 'new window' scripts but am having troubles that are perplexing me so I thought I'd send a shout out to see if someone could help sort things for me.

    I have a button which when clicked opens a new window. The code is a frame action in the timeline. Short of putting some javaScript in the page that opens, I am unable to set the width and height of the new window. Here's my code

    Actionscript Code:
    import flash.external.*;
    var newWindow:String;
    street_btn.onPress = function () {
    newWindow = String (ExternalInterface.call
    ("openWindow", "http://www.unseenproductions.net/images/street/index.html", "win","height=1000,width=700,toolbar=no,scrollbars=no"));
    };

    I've tried defining width+height immediately following the link in the string, but no matter where I put it the window size is unaffected.

    Thanks in advance....

    Llyfre
    Last edited by llyfre; 12-09-2011 at 05:57 PM. Reason: addition to code

  2. #2

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