F > FScrollPane.setSize

 

FScrollPane.setSize

Availability

Flash Player 6.

Usage

myScrollPane.setSize(width, height)

Parameters

width An integer specifying the width of the scroll pane, in pixels.

height An integer specifying the height of the scroll pane, in pixels.

Returns

Nothing.

Description

Method; sets the width and height, in pixels, of the scroll pane view at runtime. Calling this method overrides sizing applied during authoring.

For more information, see Customizing component skinsin the Using Components chapter of Using Flash.

Example

The following code sets the width and height of display1 to 500 x 300 pixels.

display1.setSize(500, 300);

See also

FScrollPane.getPaneHeight, FScrollPane.getPaneWidth