O'Reilly logo

The ActionScript™ 3.0 Migration Guide: Making the Move from ActionScript 2.0 by Kris Hadlock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required