      */
     private function onClick(event:MouseEvent): void {
       var clipData:Object;  // NOPMD
+      var fileData:ByteArray; 
       var clipInjectSuccess:Object = {};  // NOPMD
 
       // Allow for any "UI preparation" work before the "copy" event begins

      return button;
    }
  }
}

        }
      );
    }
    
    private function saveFile(fileName:String, fileData:ByteArray) {
      var results:Object = {};  // NOPMD
			var fileRef:FileReference = new FileReference();
      results.file = true; 
      fileRef.save( fileData, fileName); 
      return results; 
    }

    /**
     * Emit events to JavaScript.
