Table of Contents

5.7 The Flash 4 String Operators

You might encounter the deprecated Flash 4 string operators—concatenation (&), equality (eq), inequality (ne), and comparison (lt, gt, le, ge)—when examining legacy code. The = =, !=, <, >, <=, and >= operators should be used for all comparisons, including string comparisons, in Flash 5 and Flash MX. Likewise, use + for string concatenation in Flash 5 and Flash MX instead of the deprecated add operator or the & operator, which is the bitwise AND operator in Flash 5 and later.

For more details and a list of Flash 4 versus Flash 5 string-operation equivalencies, see Section C.3.6 in Appendix C.


Table of Contents