 
     private function onSaveComplete(event:Event):void {
       var loader:URLLoader = URLLoader(event.target);
-      ExternalInterface.call(RecorderJSInterface.EVENT_HANDLER, RecorderJSInterface.SAVED, _recorder.currentSoundName, loader.data);
+      ExternalInterface.call(EVENT_HANDLER, SAVED, _recorder.currentSoundName, loader.data);
     }
 
     private function onIOError(event:Event):void {
-      ExternalInterface.call(RecorderJSInterface.EVENT_HANDLER, RecorderJSInterface.SAVE_FAILED, _recorder.currentSoundName, IOErrorEvent(event).text);
+      ExternalInterface.call(EVENT_HANDLER, SAVE_FAILED, _recorder.currentSoundName, IOErrorEvent(event).text);
     }
 
     private function onSecurityError(event:Event):void {
-      ExternalInterface.call(RecorderJSInterface.EVENT_HANDLER, RecorderJSInterface.SAVE_FAILED, _recorder.currentSoundName, SecurityErrorEvent(event).text);
+      ExternalInterface.call(EVENT_HANDLER, SAVE_FAILED, _recorder.currentSoundName, SecurityErrorEvent(event).text);
     }
 
     private function onProgress(event:Event):void {
-      ExternalInterface.call(RecorderJSInterface.EVENT_HANDLER, RecorderJSInterface.SAVE_PROGRESS, _recorder.currentSoundName, ProgressEvent(event).bytesLoaded, ProgressEvent(event).bytesTotal);
+      ExternalInterface.call(EVENT_HANDLER, SAVE_PROGRESS, _recorder.currentSoundName, ProgressEvent(event).bytesLoaded, ProgressEvent(event).bytesTotal);
     }
   }
 }

//  Saving recording ---------------------------------------------------------------------------------------------------

    public function updateUploadForm(formData:Array=null):void {
      uploadFormData = [];
      if(formData) {
        for(var i:int=0; i<formData.length; i++) {
          var data:Object = formData[i];
          uploadFormData.push(MultiPartFormUtil.nameValuePair(data.name, data.value));
        }
      }
    }

    public function save():Boolean {
      ExternalInterface.call(RecorderJSInterface.EVENT_HANDLER, RecorderJSInterface.SAVE_PRESSED, _recorder.currentSoundName);
      try {
        _save(_recorder.currentSoundName, _recorder.currentSoundFilename);
        ExternalInterface.call(RecorderJSInterface.EVENT_HANDLER, RecorderJSInterface.SAVING, _recorder.currentSoundName);
      } catch(e:Error) {
        ExternalInterface.call(RecorderJSInterface.EVENT_HANDLER, RecorderJSInterface.SAVE_FAILED, _recorder.currentSoundName, e.message);
        return false;
      }
      return true;


      MultiPartFormUtil.boundary();

      _uploadFormData.push(MultiPartFormUtil.fileField(_uploadFieldName, _recorder.convertToWav(name), filename, "audio/wav"));
      var request:URLRequest = MultiPartFormUtil.request(_uploadFormData);
      _uploadFormData.pop();

      request.url = _uploadUrl;

      var loader:URLLoader = new URLLoader();
      loader.addEventListener(Event.COMPLETE, onSaveComplete);
