
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Onward!
|
77
the original variable. That is, if you pass an integer variable x to a function, changes
to the parameter within the function don’t affect its original value in the calling rou-
tine. But if you pass an array
y to a function, any changes to that array within the
function will alter the original value of
y outside the function (because changes to the
array affect the data to which
y points).
Onward!
We’ve introduced data in ActionScript, and we’re ready for deeper study. In
Chapter 4, we’ll study the number, string, boolean, undefined, and null datatypes. In
Chapter 5, we’ll explore how to manipulate data using operators. In later chapters,
we’ll study the complex datatypes, such as movieclips, arrays and objects.