Button class
293
Button class
Availability
Flash Player 6.
Description
All button symbols in a SWF file are instances of the Button object. You can give a button an
instance name in the Property inspector, and use the methods and properties of the Button class
to manipulate buttons with ActionScript. Button instance names are displayed in the Movie
Explorer and in the Insert Target Path dialog box in the Actions panel.
The Button class inherits from the
Object class
.
Method summary for the Button class
Property summary for the Button class
Method
Description
Button.getDepth()
Returns the depth of a button instance.
Property
Description
Button._alpha
The transparency value of a button instance.
Button.enabled
Indicates whether a button is active.
Button._focusrect
Indicates whether a button with focus has a yellow rectangle around it.
Button._height
The height of a button instance, in pixels.
Button._highquality
The level of anti-aliasing applied to the current SWF file.
Button.menu
Associates a ContextMenu object with the button object.
Button._name
The instance name of a button instance.
Button._parent
A reference to the movie clip or object that contains the current movie clip
or object.
Button._quality
Indicates the rendering quality of the SWF file.
Button._rotation
The degree of rotation of a button instance.
Button._soundbuftime
Number of seconds for a sound to preload.
Button.tabEnabled
Indicates whether a button is included in automatic tab ordering.
Button.tabIndex
Indicates the tab order of an object.
Button._target
The target path of a button instance.
Button.trackAsMenu
Indicates whether other buttons can receive mouse release events.
Button._url
The URL of the SWF file that created the button instance.
Button.useHandCursor
Indicates whether the pointing hand is displayed when the mouse passes
over a button.
Содержание FLASH MX 2004 - ACTIONSCRIPT
Страница 1: ...ActionScript Reference Guide...
Страница 8: ...8 Contents...
Страница 12: ......
Страница 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Страница 54: ...54 Chapter 2 ActionScript Basics...
Страница 80: ...80 Chapter 3 Writing and Debugging Scripts...
Страница 82: ......
Страница 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Страница 112: ......
Страница 120: ...120 Chapter 6 Using the Built In Classes...
Страница 176: ......
Страница 192: ...192 Chapter 10 Working with External Data...
Страница 202: ...202 Chapter 11 Working with External Media...
Страница 204: ......
Страница 782: ...782 Chapter 12 ActionScript Dictionary...
Страница 793: ...Other keys 793 221 222 Key Key code...
Страница 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Страница 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Страница 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Страница 816: ...816 Index...