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.