| フィールド | 型 | コメント |
| ButtonReserved | UB[2] | Reserved bits; always 0 |
| ButtonHasBlendMode | UB[1] |
0 = No blend mode 1 = Has blend mode (SWF 8 and later only) |
| ButtonHasFilterList | UB[1] |
0 = No filter list 1 = Has filter list (SWF 8 and later only) |
| ButtonStateHitTest | UB[1] | Present in hit test state |
| ButtonStateDown | UB[1] | Present in down state |
| ButtonStateOver | UB[1] | Present in over state |
| ButtonStateUp | UB[1] | Present in up state |
| CharacterID | UI16 | ID of character to place |
| PlaceDepth | UI16 |
Depth at which to place character |
| PlaceMatrix | MATRIX |
Transformation matrix for character placement |
| ColorTransform |
If within DefineButton2, CXFORMWITHALPHA |
Character color transform |
| FilterList |
If within DefineButton2 and ButtonHasFilterList = 1, FILTERLIST |
List of filters on this button |
| BlendMode |
If within DefineButton2 and ButtonHasBlendMode = 1, UI8 |
0 or 1 = normal 2 = layer 3 = multiply 4 = screen 5 = lighten 6 = darken 7 = difference 8 = add 9 = subtract 10 = invert 11 = alpha 12 = erase 13 = overlay 14 = hardlight Values 15 to 255 are reserved. |
| フィールド | 型 | コメント |
| Header | RECORDHEADER | タグタイプ = 7 |
| ButtonId | UI16 | ID for this character |
| Characters |
BUTTONRECORD[one or more] |
Characters that make up the button |
| CharacterEndFlag | UI8 | Must be 0 |
| Actions |
ACTIONRECORD[zero or more] |
Actions to perform |
| ActionEndFlag | UI8 | Must be 0 |
| フィールド | 型 | コメント |
| Header | RECORDHEADER | タグタイプ = 34 |
| ButtonId | UI16 | ID for this character |
| ReservedFlags | UB[7] | Always 0 |
| TrackAsMenu | UB[1] |
0 = track as normal button 1 = track as menu button |
| ActionOffset | UI16 |
Offset in bytes from start of this field to the first BUTTONCONDACTION, or 0 if no actions occur |
| Characters |
BUTTONRECORD [one or more] |
Characters that make up the button |
| CharacterEndFlag | UI8 | Must be 0 |
| Actions |
BUTTONCONDACTION [zero or more] |
Actions to execute at particular button events |
| フィールド | 型 | コメント |
| CondActionSize | UI16 |
Offset in bytes from start of this field to next BUTTONCONDACTION, or 0 if last action |
| CondIdleToOverDown | UB[1] | Idle to OverDown |
| CondOutDownToIdle | UB[1] | OutDown to Idle |
| CondOutDownToOverDown | UB[1] | OutDown to OverDown |
| CondOverDownToOutDown | UB[1] | OverDown to OutDown |
| CondOverDownToOverUp | UB[1] | OverDown to OverUp |
| CondOverUpToOverDown | UB[1] | OverUp to OverDown |
| CondOverUpToIdle | UB[1] | OverUp to Idle |
| CondIdleToOverUp | UB[1] | Idle to OverUp |
| CondKeyPress | UB[7] |
SWF 4 or later: key code Otherwise: always 0 Valid key codes: 1 = left arrow 2 = right arrow 3 = home 4 = end 5 = insert 6 = delete 8 = backspace 13 = enter 14 = up arrow 15 = down arrow 16 = page up 17 = page down 18 = tab 19 = escape 32 to 126: follows ASCII |
| CondOverDownToIdle | UB[1] | OverDown to Idle |
| Actions |
ACTIONRECORD [zero or more] |
Actions to perform. See DoAction. |
| ActionEndFlag | UI8 | Must be 0 |
| フィールド | 型 | コメント |
| Header | RECORDHEADER | タグタイプ = 23 |
| ButtonId | UI16 | Button ID for this information |
| ButtonColorTransform | CXFORM | Character color transform |
| フィールド | 型 | コメント |
| Header | RECORDHEADER | タグタイプ = 17 |
| ButtonId | UI16 |
The ID of the button these sounds apply to. |
| ButtonSoundChar0 | UI16 | Sound ID for OverUpToIdle |
| ButtonSoundInfo0 |
SOUNDINFO (if ButtonSoundChar0 is nonzero) |
Sound style for OverUpToIdle |
| ButtonSoundChar1 | UI16 | Sound ID for IdleToOverUp |
| ButtonSoundInfo1 |
SOUNDINFO (if ButtonSoundChar1 is nonzero) |
Sound style for IdleToOverUp |
| ButtonSoundChar2 | UI16 |
Sound ID for OverUpToOverDown |
| ButtonSoundInfo2 |
SOUNDINFO (if ButtonSoundChar2 is nonzero) |
Sound style for OverUpToOverDown |
| ButtonSoundChar3 | UI16 |
Sound ID for OverDownToOverUp |
| ButtonSoundInfo3 |
SOUNDINFO (if ButtonSoundChar3 is nonzero) |
Sound style for OverDownToOverUp |