• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Functions > Mapping to a Function

Mapping to a Function

There are two basic ways of mapping to a function:

  • Using relative or absolute identifiers. In this case, root refers to the root timeline of the current level the script is run on, and parent refers to the movie clip or object that contains the movie clip or object with the script. If a script using the _parent object is placed within a movie, the script looks to the movie containing itself. Also, _levelN refers to the nth level in the standalone Flash player or the Flash movie.

  • Using direct movie names. An example is myMovie.myFunction();. Notice that every movie object or movie name used in dot syntax is separated by a period.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint