Implement as3 part of EventDispatcher and fix bug in EventDispatcher.js
Merge pull request #1105 from tschneidereit/globals

Implement as3 part of EventDispatcher and fix bug in EventDispatcher.js