
Flash Player 7 + TheSpringBox V1
Widget.setMaximumSize(width:String, height:String) : Object;
width - A number stating the maximum width the widget may take in pixels.
height - A number stating the maximum height the widget may take in pixels.
Nothing.
Method; sets the maximum size the widget window may take, if scaled to a size greater than the maximum, the maximum size will be assumed. Calling this method will also trigger Widget.onResize, therefore if your widget is larger than the size you are setting with Widget.setMaximumSize, your widget will collapse to the new maximum. The the maximum size is set to 480x1024 by default.
The function in this example will set the maximum size of the widget to 400x1200 pixels:
Widget.setMaximumSize(400,1200);
Widget.setMinimumSize()