Previous Element | Next Element |
Button
This defines a button symbol that can be placed on a movie
stage. A button has a number of button layers which specify
the bounds and symbols used in the button. Each layer is
associated with one or more button states (over, down,
release, hit). Actions can be associated with a button using
the optional ButtonActions element. Sounds can be associated
with button events using the optional ButtonSound element.
Attributes
id | A unique name for the symbol within the movie. | |
Type | String | |
dragTarget | Determines the behavior of the button in relation to mouse press events. | |
Values |
| |
Default Value | no | |
bounds | Optional attribute specifying the bounding rectangle of the Button specified as 'bounds( minX, minY, maxX, maxY)'. This attribute can be produced on decompilation as a guide to the actual runtime bounds of the symbol but it is not referenced by the RVML compiler. This is useful for the timeline elements (Place, Alter, Replace) to specify new scaling attributes for the Button symbol. | |
Value Template | bounds(Coord, Coord, Coord, Coord) | |
Type | Float |
Child Elements
DescMetadata
Layers
ButtonSound
ButtonActions
Parent Elements
DefinitionsExamples
Button ExampleButton DragTarget Example
Button Sound Example
Previous Element | Next Element |