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
Method summary for the Button class
Method
Button.getDepth()
Property summary for the Button class
Property
Button._alpha
Button.enabled
Button._focusrect
Button._height
Button._quality
Button.menu
Button._name
Button._parent
Button._quality
Button._rotation
Button._soundbuftime
Button.tabEnabled
Button.tabIndex
Button._target
Button.trackAsMenu
Button._url
ActionScript Language Reference
Object
class.
Description
Returns the depth of a button instance.
Description
The transparency value of a button instance.
A Boolean value that indicates whether a button is active.
A Boolean value that indicates whether a button with focus has a yellow
rectangle around it.
The height of a button instance, in pixels.
The level of anti-aliasing applied to the current SWF file.
A reference to an associated ContextMenu object
The instance name of a button instance.
A reference to the movie clip or object that contains the current movie
clip or object.
A string that indicates the rendering quality of the SWF file.
The degree of rotation of a button instance.
Number of seconds for a sound to preload.
A Boolean value that indicates whether a button is included in automatic
tab ordering.
A number that indicates the tab order of an object.
Read-only; the target path of a button instance.
A Boolean value that indicates whether other buttons can receive mouse
release events.
Read-only; the URL of the SWF file that created the button instance.
CHAPTER 2
Button class
133
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers