且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在AS3 / Flex的自定义元数据?

更新时间:2023-01-29 22:40:37

有处理元数据在ActionScript Flex中两个基本方向:

There is two general directions to deal with metadata in ActionScript in Flex:

  1. 在使用反射(或反省在Adobe而言)在运行时处理。你可以在这里找到文档。有几个第三方库,提供更方便的反射API,如 AS3-公地反映或香菜反射API。
  2. 在使用Flex编译器扩展,由于Flex 4 SDK版本8165被介绍(见详细信息)。另请参见相应的讨论和的官方文档
  1. 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.
  2. Using Flex Compiler Extensions which was introduced since Flex 4 SDK revision 8165 (see details). See also the corresponding discussion and official documentation.