Define events

Let's see if ECMAScript Harmony can do this :joy:

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

That isn't JavaScript, and I'm not sure what the goal is of this thread.