Functions: Passing arguments by value or by reference

by Ruben

By chance I just stumbled upon this article from the Livedocs about the way functions interpret the values of their parameters in Actionscript3.

Since I found I couldn't put it any better than the LiveDocs did, here's a quote:

In ActionScript 3.0, all arguments are passed by reference because all values are stored as objects. However, objects that belong to the primitive data types, which includes Boolean, Number, int, uint, and String, have special operators that make them behave as if they were passed by value.
Passing arguments by value or by reference (Adobe Flex LiveDocs)

Read the whole section on passing arguments for a better and more thorough description on the whole concept.