Widget.setSize()

Availability

Flash Player 7 + TheSpringBox V1

Usage

Widget.setSize(width:Number, height:Number) : Void;

Parameters

width - A Number specifying the width of the wrapper.

height - A Number specifying the height of the wrapper.

Returns

Nothing.

Description

Method; used to change the size of the wrapper. If you are calling this function in your code and if your widget is utilizing a liquid chrome (e.g. a display that scales with the size of the wrapper), it is recommended that you call this function in conjuction with the Widget.onResize event.

Example

The function in this example sets the size of the widget wrapper the 200x300.

Widget.setSize(200,300);

See also

Widget.onResize