- Action Code:
0x0c
- Stack:
2 → 1
- SWF version:
4
Abstract AS2
@t0 = @pop();
@push(@pop() / @t0);
Adobe documentation
ActionDivide
ActionDivide divides two numbers and pushes the result back to the stack.
Field | Type | Comment |
ActionDivide | ACTIONRECORDHEADER | ActionCode = 0x0D |
ActionDivide 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.
- Divides B by A.
- Pushes the result, B/A, to the stack.
- If A is zero, the result NaN, Infinity, or -Infinity is pushed to the stack in SWF 5 and later. In SWF 4, the
result is the string #ERROR#.