The button element creates a button with the attributes described below.
<button id="objectId" type="objectType"
up="objectUp" over="objectOver"
down="objectDown"
hit="objectHit"/>
<!-- button sounds -->
<!-- button actions -->
</button>
Name |
Description |
Value type |
Optional |
Default Value |
| id |
Object identifier, which must be unique among all the objects described in the XML file. |
no |
- |
|
| type |
Button type |
no |
- |
|
| up |
ID of the shape for normal button state. |
no |
- |
|
| over |
ID of the shape for button state, when user move mouse over the button. |
no |
- |
|
| down |
ID of the shape for this button state (button is pressed). |
no |
- |
|
| hit |
ID of the button area shape. This shape is not visible on screen, it defines boundaries within which the button will respond to mouse over. |
no |
- |
The button tag may contain actions and sounds that must be started when a certain event happens. For button sounds only following events are supportd: rollOver, rollOut, press, release.
actionFSCommand, actionGoToFrame, actionGoToLabel, actionGetURL, actionPlay, actionStop, actionStopSounds, startSound, stopSound