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

Initializing the Movie

In simple terms, initializing the movie means providing the initial values for the objects and variables in the movie. Initializing is not some great and mysterious process. Every time you create a movie, you place objects on the stage and enter default text in dynamic text fields, and this is initializing the movie. However, the ad hoc method of setting initial values just described has a couple disadvantages, although it often works just fine. First, initialization values are disseminated all over the movie; they are not in one place where you can look at them and make modifications. For example, a movie clip instance's position is determined by its placement on the stage, while a variable is set inside a different movie clip. Second, because the values are all over the movie, they aren't easy to change.

In this task, you will add to the script at the beginning of the movie. This script is already performing some initialization tasks: It sets the text of both the info box and the dragtext field. However, you will also specify the starting positions of each of the monsters in the script.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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