在AS3 /闪光灯/ Flex的枚举? [英] Enums in AS3 / Flash / Flex?

查看:110
本文介绍了在AS3 /闪光灯/ Flex的枚举?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一件事我真的很喜欢在AS3 AS2是多少编译时类型检查它增加了。然而,这似乎是有点在缺少,没有任何类型检查枚举结构可用。什么是好的(最好/接受)的方式在AS3进行自定义枚举类型?

One thing I really like about AS3 over AS2 is how much more compile-time type-checking it adds. However, it seems to be somewhat lacking in that there is no type-checked enumeration structure available. What's a good (best / accepted) way to do custom enumerated types in AS3?

推荐答案

后跳你的答案: - )

your answer after the jump :-)

<一个href="http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f2f.html">Enumerations带班

这篇关于在AS3 /闪光灯/ Flex的枚举?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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