views:

21

answers:

1

Let's say we have following class

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);
    }
}

}

In Flash Player runtime, is there a way I can get a list of all the static members of lass PlayerEvent.

Something like:

trace(PlayerEvent.staticMethods) // ["PLAYER_INIT", "PLAYER_MOVE", "PLAYER_USE_SKILL"]...
+3  A: 

please see flash.utils::describeType.

greetz
back2dos

back2dos
thanks, that's exactly the answer I'm looking for
ty