F > FScrollPane.getPaneWidth

 

FScrollPane.getPaneWidth

Availability

Flash Player 6.

Usage

myScrollPane.getPaneWidth()

Parameters

None.

Returns

An integer specifying the width of the scroll pane view.

Description

Method; returns the width of the scroll pane view. You can only use this method to get the width of a scroll pane that was sized with FScrollPane.setSize. This method works only if the scroll pane was sized with FScrollPane.setSize, not if you set the size using the _width and _height properties.

Example

The following code gets the height and width of the scroll pane display1 and uses the returned values to resize the scroll pane with FScrollPane.setSize.

var h = display1.getPaneHeight();
var w = disply1.getPaneWidth();
display1.setSize(w+10, h+10);

See also

FScrollPane.getPaneHeight, FScrollPane.setSize