Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

Chapter 9. COMPONENTS > Working Hand-in-Hand with Code

9.5. Working Hand-in-Hand with Code

So far, the main point of this chapter has been to stress that components can be strong allies to nonprogrammers. That doesn't mean, however, that their usefulness is limited to this area. The following section will walk you through the creation of a pop-up menu, or ComboBox. You will use increasing quantities of ActionScript until the steps culminate in a code-only solution that adds the menu to an empty Stage.

9.5.1. Navigating with Menus

This exercise will power two menus with which the user can navigate through the timeline shown in Figure 9-7. Briefly, the four frames at 1, 10, 20, and 30 each have a stop() action, content, and corresponding label. The home frame (1) is empty, and the one (10), two (20), and three (30) frames have illustrations of the numbers 1, 2, and 3, respectively.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial