The scope of a function is like the scope of a variable; it is directly available (called by name, instead of dot syntax mapping to the function) only in the following ways:
In previous versions of Flash, if none of these criteria were met, you had to use dot syntax to map to the function you created. Since Flash MX, you can use the _global identifier to create a function that is available throughout the entire Flash movie and all its timelines. (We will discuss the _global identifier later in this chapter.) First, let's go over how to map to functions using dot syntax. |