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

Part IIA: Basic Workshops > Adapting Built-In Components

Workshop Chapter 7. Adapting Built-In Components

By now you should have enough skill to create your own components. First of all, they don’t need to be complex. Even if you do need to invest a lot of work to create a component, as we did in Workshop Chapter 2, “Creating Custom Cursors,” you can often reuse the code so many times that you’ll quickly see a return on your investment. Just because you can make a component, however, doesn’t mean that you have to reinvent the wheel.

Flash MX comes with several components, and countless others are available from the Flash community at the Macromedia Exchange for Flash (www.macromedia.com/exchange/flash). Most of these preexisting components can be used as-is. However, you’ll often find that you need to adapt them for your own purposes. If nothing else, you’ll always need to populate the component with your own data. For example, the preinstalled ComboBox component (in the Components panel under “Flash UI Components”) appears blank until you populate it with items. It’s similarly easy to specify a function you want triggered every time the user makes a selection from this component. In this workshop chapter, we’ll quickly walk through how to populate this component.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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