[condition] → []
0x9d1 → 04ActionIf creates a conditional test and branch.
| Field | Type | Comment |
|---|---|---|
| ActionIf | ACTIONRECORDHEADER | ActionCode = 0x9D |
| BranchOffset | SI16 | Offset |
ActionIf does the following:
Note: When playing a SWF 4 file, Condition is not converted to a Boolean value and is instead compared to 0, not true.
The offset is a signed quantity, enabling branches from –32768 bytes to 32767 bytes. An offset of 0 points to the action directly after the ActionIf action.