Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Button component > Using the Button component | |||
A button is a fundamental part of any form or web application. You can use buttons wherever you want a user to initiate an event. For example, most forms have a Submit button. You could also add Previous and Next buttons to a presentation.
To add an icon to a button, you need to select or create a movie clip or graphic symbol to use as the icon. The symbol should be registered at 0,0 for appropriate layout on the button. Select the icon symbol in the Library panel, open the Linkage dialog box from the Library pop-up menu, and enter a linkage identifier. This is the value to enter for the icon parameter in the Property inspector or Component inspector. You can also enter this value for the Button.icon ActionScript property.
|
NOTE |
|
If an icon is larger than the button, it extends beyond the button's borders. |
To designate a button as the default push button in an application (the button that receives the click event when a user presses Enter), use FocusManager.defaultPushButton.
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/00002579.html