AS3/Flex 中的自定义元数据? [英] Custom metadata in AS3/Flex?

查看:26
本文介绍了AS3/Flex 中的自定义元数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 ActionScript3/Flex 中创建和使用自定义元数据?

How to create and to work with custom metadata in ActionScript3/Flex?

推荐答案

在 Flex 中处理 ActionScript 中的元数据有两个一般方向:

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

  1. 使用反射(或 Adob​​e 的自省)处理运行时.您可以在此处找到文档.有几个第三方库提供了更方便的反射 API,例如 as3-commons-reflectParsley 中的反射 API.
  2. 使用自 Flex 4 SDK 修订版 8165 起引入的 Flex 编译器扩展(请参阅详细信息).另请参阅相应的讨论官方文档.
  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.

这篇关于AS3/Flex 中的自定义元数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆