 				case SteamConstants.RESPONSE_OnPublishWorkshopFile:
 					log("RESPONSE_OnPublishWorkshopFile: " + e.response);
 					if(e.response != SteamResults.OK) return;
-					file = Steamworks.publishWorkshopFileResult();
-					log("File published as " + file);
-					log("subscribePublishedFile(...) == " + Steamworks.subscribePublishedFile(file));
+					publishedFile = Steamworks.publishWorkshopFileResult();
+					log("File published as " + publishedFile);
+					log("subscribePublishedFile(...) == " + Steamworks.subscribePublishedFile(publishedFile));
 					break;
 				case SteamConstants.RESPONSE_OnEnumerateUserSubscribedFiles:
 					log("RESPONSE_OnEnumerateUserSubscribedFiles: " + e.response);


		private var id:String;
		private var ugcHandle:String;
		private var file:String;
		private function onSteamResponse(e:SteamEvent):void{
			var apiCall:Boolean;
			var i:int;

			log("fileShare('test.txt') == " + Steamworks.fileShare("test.txt"));
		}

		private function deletePublishedFile(e:Event = null):void {
			if(!Steamworks.isReady) return;

			if(!publishedFile) {
				log("No file handle set, publish or enumerate first");
				return;
			}

			var res:Boolean = Steamworks.unsubscribePublishedFile(publishedFile);
			log("unsubscribePublishedFile(" + publishedFile + ") == " + res);
			res = Steamworks.deletePublishedFile(publishedFile);
			log("deletePublishedFile(" + publishedFile + ") == " + res);
		}

		private function toggleFullscreen(e:Event = null):void {
			if(stage.displayState == StageDisplayState.NORMAL)
				stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
