5.7 The Flash 4 String Operators

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 5.  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.

     



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net