Hi there,

Does anybody knows if there is a way to have custom Event autocomplete in
the addEventListener method like native Events ?

Example :

A custom class named "Dispatcher" with a metadata tag
[Event(name="test", type="test.MyEvent")]
and a custom event class :

package test
{
    import flash.events.Event;

    public class MyEvent extends Event
    {
        public static const TEST_EVENT : String = "test";

        public function MyEvent(type:String, bubbles:Boolean=false,
cancelable:Boolean=false)
        {
            super(type, bubbles, cancelable);
        }

    }
}

Si when I make a addEventListener on an instance of my Dispatcher I would
like to have the test Event showed or better the public constant
MyEvent.TEST_EVENT (like standard events)

Thanks for any help

-- 
BenoƮt Milgram / Flapflap
http://www.kilooctet.net

I'm also a music mashup / bootlegs producer :
http://www.djgaston.net

Reply via email to