 
   [SWF(backgroundColor="0x000000")]
   public class Player extends Sprite {
+
+    private var callbackId: String;
 
     private var posterUrl: String;
     private var videoUrl: String;


      loadVideo();

      if (allow(loaderInfo.parameters.onReady)) {
        ExternalInterface.call(loaderInfo.parameters.onReady);
      }
    }

    private function allow(fnName: String): Boolean {
      return /^[a-z0-9_]+$/i.test(fnName);
    }

    private function play(): void {

    }

    private function throwError(code: int, description: String): void {
      if (callbackId) {
        ExternalInterface.call(callback("onError"), code, description);
      }
    }

