If I do this
stuff.addEventListener(FooEvent.NAME, function(e:FooEvent) {
dispatchEvent(e);
}
I get a runtime error saying that Event cannot be converted to FooEvent. However, it works fine if I do:
stuff.addEventListener(FooEvent.NAME, function(e:FooEvent) {
dispatchEvent(new FooEvent(e.things));
}
Why?