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

On Your Own

From a very simple score, you have created a project that can be endlessly updated. You can add any number of additional pages (or casts) just by placing them in the same folder with your projector and editing the pageList variables in the cast member scripts of the Next and Previous buttons (which are also stored in an external cast: Main). For more practice, here are some improvements you can make:

  • Hard-coding the pageList variable in two places (the Next and Previous buttons) makes your project harder to update. In the startMovie handler, initialize a global gPageList variable that both the Next and Previous button scripts can use.

  • Use another global variable, gCurrentPage, to track the current page number.

  • Add transitions for visual appeal.

  • Implement the Quit button using the halt command, as you did in Lesson 18.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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