Changed order of event type switch cases.
Started adding ability to receive event type messages.
Removed dependency on AS3CoreLib, by switching to the default JSON class added in FlashPlayer 11.0. This does mean that there is now a dependency on FP11 or greater.