Let's see if ECMAScript Harmony can do this
package
{
import jet.events.*;
public class HelloEvent extends Event
{
public static const HIT:String = "hit";
public function HelloEvent(type:String)
{
super(type);
}
}
}
package
{
import jet.events.*;
/**
* Dispatched in severe hit.
* @eventType HelloEvent.HIT
*/
[Event(name="hit", type="HelloEvent")]
public class HelloCenter extends EventDispatcher
{
// more
}
}