Documenting functions and named parameters
Sometime ago someone asked me how I’d pass custom paramaters to event listeners. I don’t remember the exact use case neither who asked me but basically he was asking for something like:
mc.addEventListener(MouseEvent.CLICK, myListener, "myCustomParam", 2);
functoin myListener(event: MouseEvent, custom :String, custom2 : int) : void;
While the exact syntax above would not be possible, closures are in [...]
