Skip to main content
Participating Frequently
September 16, 2014
Question

I'm trying to make the window size smaller in flash actionscript 3.0

  • September 16, 2014
  • 1 reply
  • 500 views

}


car1.addEventListener(MouseEvent.CLICK, some122);

function some122(event:MouseEvent):void{
   var some122:URLRequest = new URLRequest("http://www.cnn.com/"
     navigateToURL(some122Link, "_blank");
}

Everything works perfectly when I takeout the "width=800, height=596". But I only want the screen to be a certain size. Any help is greatly needed.

Thanks

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 16, 2014

use the javascript window.open method to control window size, positioning etc:

function some122(e:MouseEvent):void {

var jscommand:String = "window.open('http://www.cnn.com', 'win', 'height=800, width=596');";

var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);");

navigateToURL(url, "_blank");

}