MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 44

Actionscript language reference
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents