Strong Typing
Data typing is nothing new to the ActionScript language, but the performance gained by supplying data types is. Strong typing facilitates proper use of objects in a system by associating, or binding, the reference to an object's intended interface. Associating a variable with a data type optimizes the bytecode and improves player performance significantly.
Although performance should be reason enough to use typing data, it also provides many benefits in terms of productivity by reducing errors.
Because ActionScript is a dynamically typed language, it provides runtime type checking. Although this makes the language incredibly versatile, it leads to slower debugging, because errors are revealed only when your code is running. Fortunately, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access