Beginner Flex, curious about creating SWC files in Flex, studied the following steps:
1. Build Flex Library Project
2, the implementation method of adding class file writing
3, the project's SWC file is automatically generated in the default bin directory.
4, other project references directly select the Project property build path, add SWC.
Description
1. If the SWC file cannot be generated after manually deleting the file, please modify the contents of a file or create a new meaningful class, etc., the SWC file will be regenerated automatically.
2, if you need to limit the generation of the content of SWC, then the project right-click, select the property, in the Flex Library build path attribute under the classes tag to select the type of SWC to include, under assets Select the resources to be included, Click OK to automatically generate the required SWC library files.
The Flex Library project is as follows:
The following are quoted: