| Introduction | Basic Types | Display List | Control Tags |
| Shapes | (Examples Shapes) | Gradients | Buttons |
| Sprites | Fonts and Text | Shape Morphing | Bitmap |
| Sounds | Actions | ActionScripts | Reference |
| State Transition | Flash Event | Description | Visual Effect |
| IdleToOverUp | Roll Over | Mouse enters the hit area while the mouse button is up. | Button changes from up to over state. |
| OverUpToIdle | Roll Out | Mouse leaves the hit area while the mouse button is up. | Button changes from over to up state. |
| OverUpToOverDown | Press | Mouse button is pressed while the mouse is inside the hit area. | Button changes from over to down state. |
| OverDownToOverUp | Release | Mouse button is released while the mouse is inside the hit area. | Button changes from down to over state. |
| State Transition | Flash Event | Description | Visual Effect |
| OutDownToOverDown | Drag Over | Mouse is dragged inside the hit area while the mouse button is down. | Button changes from over to down state. |
| OverDownToOutDown | Drag Out | Mouse is dragged outside the hit area while the mouse button is down. | Button changes from down to over state. |
| OutDownToIdle | Release Outside | Mouse button is released outside the hit area while the mouse is captured. | Button changes from over to up state. |
| State Transition | Flash Event | Description | Visual Effect |
| IdleToOverDown | Drag Over | Mouse is dragged inside the hit area while the mouse button is down. | Button changes from up to down state. |
| OverDownToIdle | Drag Out | Mouse is dragged outside the hit area while the mouse button is down. | Button changes from down to up state. |
BUTTONRECORD Field Type Comment ButtonReserved UB[4] Reserved bits always 0 ButtonStateHitTest UB[1] Button state hit test flag ButtonStateDown UB[1] Button state down flag ButtonStateOver UB[1] Button state over flag ButtonStateUp UB[1] Button state up flag ButtonCharacter UI16 Button character ID ButtonLayer UI16 Button character layer ButtonMatrix MATRIX Button character matrix ColorTransform CXFORM Character color transform
|
|
DefineButton Field Type Comment Header RECORDHEADER Tag ID = 7 ButtonId UI16 ID for this character Buttons BUTTONRECORD[one or more] Button character records ButtonEndFlag UI8 = 0 Always set to 0 Actions ACTIONRECORD [zero or more] Actions to perform see the DoAction tag ActionEndFlag UI8 = 0 Always set to 0
|
|
DefineButton2 Field Type Comment Header RECORDHEADER Tag ID = 34 ButtonId UI16 ID for this character Flags UI8 = 0 or 1 Track as menu flag Offset UI16 Offset to the first Button2ActionCondition (immediately following the BUTTONRECORDs) Buttons BUTTONRECORD[one or more] Button character records with color transform with alpha ButtonEndFlag UI8 = 0 Always set to 0 Button2ActionCondition Specifies a series of actions to perform based on a condition. Each Button2ActionCondition consists of ActionOffset, Condition, Actions, and ActionEndFlag ActionOffset UI16 Points to next Button2Action condition Condition UI16 Button state transitions triggering an action.
UB[7] Reserved
UB[1] OverDownToIdle
UB[1] IdleToOverDown
UB[1] OutDownToIdle
UB[1] OutDownToOverDown
UB[1] OverDownToOutDown
UB[1] OverDownToOverUp
UB[1] OverUpToOverDown
UB[1] OverUptoIdle
UB[1] IdleToOverUpActions ACTIONRECORD [zero or more] Actions to perform see the DoAction tag ActionEndFlag UI8 = 0 Always set to 0
|
|
|
DefineButtonCxForm Field Type Comment Header RECORDHEADER Tag ID = 23 ButtonId UI16 Button ID for this information ButtonColorTransform CXFORM Character color transform
|
DefineButtonSound Field Type Comment Header RECORDHEADER Tag ID = 17 ButtonId UI16 The ID of the button these sounds apply to. ButtonSoundChar0 UI16 Sound ID for OverUpToIdle ButtonSoundInfo0 SOUNDINFO Sound style for OverUpToIdle ButtonSoundChar1 UI16 Sound ID for IdleToOverUp ButtonSoundInfo1 SOUNDINFO Sound style for IdleToOverUp ButtonSoundChar2 UI16 Sound ID for OverUpToOverDown ButtonSoundInfo2 SOUNDINFO Sound style for OverUpToOverDown ButtonSoundChar3 UI16 Sound ID for OverDownToOverUp ButtonSoundInfo3 SOUNDINFO Sound style for OverDownToOverUp
|
| Introduction | Basic Types | Display List | Control Tags |
| Shapes | (Examples Shapes) | Gradients | Buttons |
| Sprites | Fonts and Text | Shape Morphing | Bitmap |
| Sounds | Actions | ActionScripts | Reference |