Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Button component > Using the Button component > Button parameters | |||
You can set the following authoring parameters for each Button component instance in the Property inspector or Component inspector (Window > Component Inspector menu option):
icon adds a custom icon to the button. The value is the linkage identifier of a movie clip or graphic symbol in the library; there is no default value.
label sets the value of the text on the button; the default value is Button.
labelPlacement orients the label text on the button in relation to the icon. This parameter can be one of four values: left, right, top, or bottom; the default value is right. For more information, see Button.labelPlacement.
selected if the toggle parameter is true, this parameter specifies whether the button is pressed (true) or released (false). The default value is false.
toggle turns the button into a toggle switch. If true, the button remains in the down state when clicked and returns to the up state when clicked again. If false, the button behaves like a normal push button. The default value is false.
You can set the following additional parameters for each Button component instance in the Component inspector (Window > Component Inspector):
enabled is a Boolean value that indicates whether the component can receive focus and input. The default value is true.
visible is a Boolean value that indicates whether the object is visible (true) or not (false). The default value is true.
|
NOTE |
|
The minHeight and minWidth properties are used by internal sizing routines. They are defined in UIObject, and are overridden by different components as needed. These properties can be used if you make a custom layout manager for your application. Otherwise, setting these properties in the Component inspector will have no visible effect. |
You can write ActionScript to control these and additional options for the Button component using its properties, methods, and events. For more information, see Button class.
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00002580.html