MouseEvent Error Html5

Html5 target doesn’t like this code implementation:

_item.addEventListener(MouseEvent.CLICK, onClick);
dispatchEvent(new CustomEvent(CustomEvent.KLIK,e.currentTarget));

What’s wrong?

Is this a -final HTML5 build (or dead-code-elimination build)?

Do you know what the target is? The code assumes the target is an InteractiveObject, but perhaps not somehow?

OK, somehow I solve this. I think problem was type casting. In flash target it wasn’t problem. Since I first do flash test, I miss this. Thanks.