There are two basic ways of mapping to a function:
Although it is possible to call functions created on other timelines, it is good practice to keep all functions on the main timeline, or in an external .as file so that you will always know where to find them.
Now that you have seen some generic ways for using dot syntax to map to functions, let's look at a few examples of using them:
_root.myFunction () //invokes the function in the _root timeline _parent.myFunction() //invokes the function in the _parent timeline _parent._parent.myFunction() //invokes the function in the _parent of the //_parent timeline _root.myMovie.myFunction() //invokes the function in myMovie which is //located on the _root timeline
As mentioned before, using dot syntax is no longer a necessity when trying to reach a function from a timeline that's different from the one it was created on because of the _global identifier.