0x0a
2 → 1
4
Legacy numeric addition.
In SWF 4, it corresponded to the operator +
.
In SWF 5, this operator is no longer available, since the semantics of +
were changed to be the ECMA-262 addition operator. When importing an SWF 4 project in a recent Flash Pro version, the expression left + right
is rewritten to Number(left) + Number(right)
according to Adobe's documentation.
@t0 = +@pop();
@push(+@pop() + @t0);
Note: The unary +
operators are used to convert the arguments to numbers.
ActionAdd adds two numbers and pushes the result back to the stack.
Field | Type | Comment |
---|---|---|
ActionAdd | ACTIONRECORDHEADER | ActionCode = 0x0A |
ActionAdd does the following: