The purpose of developing components is to encapsulate applications that can be reused.ProgramBlock to reduce meaningless repetitive coding and improve development efficiency.
Recently, I have studied the V2 component of flash8 and sorted out some basic knowledge about component production.
1. Some classes that must be clear
The object class is a base class, so all other classes are derived from it. for this class, we need to focus on the usage of reisterclass. This method can associate classes and components. Generally speaking, it is to assign some methods and attributes of classes to component objects, this method serves the same purpose as setting class binding in the library.
Listening and broadcasting mechanisms and delegation mechanisms must be familiar. This mechanism is the best choice for large-scale flash development projects.
2. architecture of the flash8 V2 component
This is the architecture of the flash8 V2 component. All custom components must be inherited from the movieclip class. The flash8 help document contains detailed steps for making components.