 				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);

		public var Steamworks:FRESteamWorks = new FRESteamWorks();
		public var tf:TextField;

		private var _buttonPos:int = 5;
		private var _appId:uint;

		public function FRESteamWorksTest()


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