9.9. Recursive Functions

A recursivefunction is a function that calls
itself (by using its own name within its function body).
Here's a simple example that shows the principle of
recursion. But because the code tells the trouble(
) function to execute repeatedly (like an image reflected
infinitely in two opposing mirrors), Flash will quickly exceed its
maximum recursion limits, causing an error: