Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Button | |||
Object
|
+-Button
public class Button
extends Object
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.
Availability: ActionScript 1.0; Flash Player 6
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
_alpha |
The alpha transparency value of the button specified by |
|
|
blendMode |
The blend mode for the button. |
|
|
cacheAsBitmap |
If set to |
|
|
enabled |
A Boolean value that specifies whether a button is enabled. |
|
|
filters |
An indexed array containing each filter object currently associated with the button. |
|
|
_focusrect |
A Boolean value that specifies whether a button has a yellow rectangle around it when it has keyboard focus. |
|
|
_height |
The height of the button, in pixels. |
|
|
_highquality |
Deprecated since Flash Player 7. This property was deprecated in favor of Specifies the level of anti-aliasing applied to the current SWF file. |
|
|
menu |
Associates the |
|
|
_name |
Instance name of the button specified by |
|
|
_parent |
A reference to the movie clip or object that contains the current movie clip or object. |
|
|
_quality |
Property (global); sets or retrieves the rendering quality used for a SWF file. |
|
|
_rotation |
The rotation of the button, in degrees, from its original orientation. |
|
|
scale9Grid |
The rectangular region that defines the nine scaling regions for the button. |
|
|
_soundbuftime |
The property that specifies the number of seconds a sound prebuffers before it starts to stream. |
|
|
tabEnabled |
Specifies whether |
|
|
tabIndex |
Lets you customize the tab ordering of objects in a SWF file. |
|
|
_target |
Returns the target path of the button instance specified by |
|
|
trackAsMenu |
A Boolean value that indicates whether other buttons or movie clips can receive mouse release events. |
|
|
_url |
Retrieves the URL of the SWF file that created the button. |
|
|
useHandCursor |
A Boolean value that, when set to |
|
|
_visible |
A Boolean value that indicates whether the button specified by |
|
|
_width |
The width of the button, in pixels. |
|
|
_x |
An integer that sets the x coordinate of a button relative to the local coordinates of the parent movie clip. |
|
|
_xmouse |
Returns the x coordinate of the mouse position relative to the button. |
|
|
_xscale |
The horizontal scale of the button as applied from the registration point of the button, expressed as a percentage. |
|
|
_y |
The y coordinate of the button relative to the local coordinates of the parent movie clip. |
|
|
_ymouse |
Indicates the y coordinate of the mouse position relative to the button. |
|
|
_yscale |
The vertical scale of the button as applied from the registration point of the button, expressed as a percentage. |
Properties inherited from class Object
|
Event |
Description |
|---|---|
|
onDragOut |
Invoked when the mouse button is clicked over the button and the pointer then dragged outside of the button. |
|
onDragOver |
Invoked when the user presses and drags the mouse button outside and then over the button. |
|
onKeyDown |
Invoked when a button has keyboard focus and a key is pressed. |
|
onKeyUp |
Invoked when a button has input focus and a key is released. |
|
onKillFocus |
Invoked when a button loses keyboard focus. |
|
onPress |
Invoked when a button is pressed. |
|
onRelease |
Invoked when a button is released. |
|
onReleaseOutside |
Invoked when the mouse is released while the pointer is outside the button after the button is pressed while the pointer is inside the button. |
|
onRollOut |
Invoked when the pointer moves outside a button area. |
|
onRollOver |
Invoked when the pointer moves over a button area. |
|
onSetFocus |
Invoked when a button receives keyboard focus. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
getDepth |
Returns the depth of the button instance. |
Methods inherited from class Object addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toString, unwatch, valueOf, watch
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00001984.html
Comments
2m said on Oct 24, 2005 at 12:12 AM : No screen name said on Nov 24, 2005 at 1:54 AM : zuumm said on Dec 20, 2005 at 3:52 PM : No screen name said on May 1, 2006 at 3:51 PM :