vebersol/flash-fallback-player — pull request #1 by loteixeira (2013-02-26 01:25:32+00:00)
Title: Refactoring JS/Flash communication layer

To make the communication layer more extensible, I've created a class called JSEventDispatcher.
Mainly, this class was created to avoid hard-coded JS function calls inside flash domain - for example, the events which were thrown to JS: `ExternalInterface.call("onPlay"); ExternalInterface.call("onEnd");` etc.
Also, you may listen when flash is fully loaded (scritps running, added to stage, etc), through the new callback (FlashVar 'loaded').