Chapter 4. Functions, Properties, and Keywords

WITH UNLIMITED, OPTIONAL parameters, ActionScript 3 functions provide flexibility for unexpected additions. You can also control the access to the functions you create with new attribute keywords. If you have ever used the static keyword to create a pseudoconstant in ActionScript 2, you are a resourceful developer, but you’ll be happy to know that you can now create true constants.

In this chapter you’ll learn the differences between function arguments and the new ...(rest) keyword, attribute keywords such as public and private, and the new protected keyword, as well as how to define constants.

Arguments

Often confused with function parameters, arguments are actually the values of function parameters. ...

Get The ActionScript™ 3.0 Migration Guide: Making the Move from ActionScript 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.