F > FPushButton.setSize |  |

FPushButton.setSize

FPushButton, FPushButton.setSize, setSize

Availability

Flash Player 6.

Usage

    myPushButton.setSize(width, height)

Parameters

`width` An integer specifying the width of the push button, in pixels.

`height` An integer specifying the height of the push button, in pixels.

Returns

Nothing.

Description

Method; sets the width and height of the push button at runtime. Calling this method overrides any sizing or scaling applied during authoring. For more information, see Sizing PushButton componentsof the Using Components chapter in Using Flash.

Example

The following code resizes `submitButton` to 100 x 50 pixels at runtime.

    submitButton.setSize(100, 50);