Calling a user-defined function
To call a function, enter the target path to the name of the function, if necessary, and pass any
required parameters inside parentheses. For example, the following statement invokes the
function
in the object
sqr()
variable
:
temp
var temp:Number = mathLib.sqr(3);
The following example uses an path to call the
parameters:
initialize();
44
Chapter 1: ActionScript Basics
, passes the parameter 3 to it, and stores the result in the
mathLib
initialize()
function that requires no
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?