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

V2 Components

The components that ship with Flash MX 2004 are called V2 for version 2. (In fact, they started life as “smart clips” in Flash 5—so one could argue they’re really V3.) Every time they get better. And, every time there’s a new set of usage rules. Before getting into advanced topics or details of any specific components, it’s important to consider the general advantages of V2 components.

The advantages range from practical usage benefits to under-the-hood optimizations. In use, they’re nicer because nearly every property is accessible using standard dot syntax. Whereas before you might have said myList.setSelectedIndex(1), now you can just say myList.selectedIndex=1. Not only is this more logical, it also means that you don’t need a separate method for getting as well as setting. Check out how long this old way of increasing the selected index value is:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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