[arg2, arg1] → [arg2 - arg1]
- Action Code:
0x0b
- Stack:
2 → 1
- SWF version:
4
Adobe documentation
ActionAdd
ActionSubtract subtracts two numbers and pushes the result back to the stack.
Field | Type | Comment |
ActionSubtract | ACTIONRECORDHEADER | ActionCode = 0x0B |
ActionSubtract does the following:
- Pops value A off the stack.
- Pops value B off the stack.
- Converts A and B to floating-point; non-numeric values evaluate to 0.
- Subtracts A from B.
- Pushes the result, B-A, to the stack.