Usage of statements, operators and keywords specific to ActionScript 2 does not allow to migrate to ActionScript 3.
This includes "intrinsic" keyword, set variable statement and following list of operators:
- <> (inequality) - use != instead
- add (concatenation (strings)) - use + instead
- eq (equality (strings)) - use == instead
- ne (not equal (strings)) - use != instead
- lt (less than (strings)) - use < instead
- le (less than or equal to (strings)) - use <= instead
- gt (greater than (strings)) - use > instead
- ge (greater than or equal to (strings)) - use >= instead
- and (logical and) - use && instead
- or (logical or) - use || instead
- not (logical not) - use ! instead
The following code snippet illustrates this rule:
if (true != false) { // Compliant
}
if (true <> false) { // Non-compliant
}
set("varName", value); // Non-cmpliant
varName = value; // Compliant