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

Functions

Until now, we've placed all our code in short scripts attached to the first frame of the movie. This works well for short, simple programs, but these scripts can get very long if you try to make the program complex.

Functions allow you to organize and reuse your code. You place functions in the timeline just as we have been doing. Here is a simple function:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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