有处理元数据在ActionScript Flex中两个基本方向:
There is two general directions to deal with metadata in ActionScript in Flex:
- 在使用反射(或反省在Adobe而言)在运行时处理。你可以在这里找到文档。有几个第三方库,提供更方便的反射API,如 AS3-公地反映或香菜反射API。
- 在使用Flex编译器扩展,由于Flex 4 SDK版本8165被介绍(见详细信息)。另请参见相应的讨论和的官方文档。
- Dealing in runtime using reflection (or introspection in terms of Adobe). You can find documentation here. There are several third-party libraries which provides more convenient reflection API such as as3-commons-reflect or reflection API in Parsley.
- Using Flex Compiler Extensions which was introduced since Flex 4 SDK revision 8165 (see details). See also the corresponding discussion and official documentation.