Function ( Function closure )

My study of “Essential Actionscript 3.0 ” continues…

Types of functions depending upon its visibility :

1. Method level ( nested functions ) [ defined inside a method ]
2. Source File level [ defined outside the package definition in a “.as” file ]
3. Package level [ defined outside the class definition but inside the package definition in a “.as” file ]
4. Global level [ defined inside an unnamed package definition ]

Mostly, private static methods are used instead of “Source File level” functions.

Recursive function calls are less efficient than loop iterations.

Default recursion limit is 1000.

Advertisements

Author: saumya

designer / developer / maker / educator @saumya

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s