假设我们有下面的类
public class PlayerEvent extends Event
{
public static const PLAYER_INIT:String = "playerInit";
public static const PLAYER_MOVE:String = "playerMove";
public static const PLAYER_USE_SKILL:String = "playerUseSkill";
public function PlayerEvent(type:String)
{
super(type, false, true);
}
}
}在Flash Player运行时,有没有一种方法可以获得lass PlayerEvent所有静态成员的列表?
类似于:
trace(PlayerEvent.staticMethods) // ["PLAYER_INIT", "PLAYER_MOVE", "PLAYER_USE_SKILL"]...发布于 2010-05-07 17:32:37
请参阅flash.utils::describeType。
https://stackoverflow.com/questions/2786510
复制相似问题