About version 2 component architecture

You can use the Property inspector or the Component inspector to change component parameters to make use of the basic functionality of components. However, if you want greater control over components, you need to use their APIs and understand a little bit about the way they were built.

Flash components are built with version 2 of the Adobe Component Architecture. Version 2 components are supported by Flash Player 6 (6.0.79.0) and later, and ActionScript 2.0. These components are not always compatible with components built using version 1 architecture (all components released before Flash MX 2004). Also, the original version 1 components are not supported by Flash Player 7. For more information, see Upgrading version 1 components to version 2 architecture.

NOTE

 

Flash MX UI components have been updated to work with Flash Player 7 or later. These updated components are still based on version 1 architecture. You can download them from the Adobe Flash Exchange at www.adobe.com/go/v1_components.

Version 2 components are included in the Components panel as compiled clip (SWC) symbols. A compiled clip is a component movie clip whose code has been compiled. Compiled clips cannot be edited, but you can change their parameters in the Property inspector and Component inspector, just as you would with any component. For more information, see About compiled clips and SWC files.

Version 2 components are written in ActionScript 2.0. Each component is a class and each class is in an ActionScript package. For example, a radio button component is an instance of the RadioButton class whose package name is mx.controls. For more information about packages, see About packages in Learning ActionScript 2.0 in Adobe Flash.

Most UI components built with version 2 of the Adobe Component Architecture are subclasses of the UIObject and UIComponent classes and inherit all properties, methods, and events from those classes. Many components are also subclasses of other components. The inheritance path of each component is indicated in its entry in the ActionScript 2.0 Components Language Reference.

NOTE

 

For a FlashPaper file on the class hierarchy, see the Flash Samples page at www.adobe.com/go/learn_fl_samples

All components also use the same event model, CSS-based styles, and built-in themes and skinning mechanisms. For more information on styles and skinning, see Customizing Components. For more information on event handling, see Working with Components.

For a detailed explanation of the version 2 component architecture, see Creating Components.


Flash CS3