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

11. Extending Objects and UI Controls > 11.1. Principles Behind UI Components

Principles Behind UI Components

UI components are essentially movie clips that have three added features:

  • A Property inspector, in which you can set properties at authoring time.

  • A live preview that shows a display of what the component might look like.

  • The ability to be loaded in once, at the time the movie loads. If you have one instance of a component or a hundred instances, the overhead is the same.

A properly built component is created as a class, with all methods declared on the prototype. This insures that the component code exists in only one place—in the prototype—and not in each individual instance of a component. This is unlike Flash 5 SmartClips, in which each instance had its own copies of methods.

UI components also offer the ability to create rich interfaces and give Flash developers the ability to put together these interfaces with the same ease that Visual Basic (VB) developers can create interfaces.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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