提问人:gumoraes999999 提问时间:10/9/2023 更新时间:10/9/2023 访问量:25
我怎样才能重振这个游戏?
How can I revive this game?
问:
我的 AS3 代码:
public class PHPConnect extends EventDispatcher
{
public static const DATA_LOADED:String = "phpLoaded";
public static const RETURN_XML:String = "returnXML";
public static const RETURN_VARS:String = "returnVars";
private var variables:URLVariables;
private var request:URLRequest;
private var loader:URLLoader;
private var phpContent:Object;
public function PHPConnect(param1:String, param2:String = "returnVars")
{
var isActive:int;
var vars:String = param1;
var type:String = param2;
super();
isActive = MyStar.userActive ? 1 : 0;
variables = new URLVariables(vars + "&usession=" + Globals.sessionId + "&useractive=" + isActive);
request = new URLRequest();
loader = new URLLoader();
request.url = "https://profligate-contrast.000webhostapp.com/mystar.php";
request.method = URLRequestMethod.POST;
request.data = variables;
if(type == PHPConnect.RETURN_VARS)
{
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
}
loader.addEventListener(Event.COMPLETE,completeHandler);
try
{
loader.load(request);
}
catch(error:Error)
{
trace("Unable to load URL");
}
}
private function completeHandler(param1:Event) : void
{
phpContent = param1.target.data;
dispatchEvent(new Event(PHPConnect.DATA_LOADED));
}
public function get loadContent() : Object
{
return phpContent;
}
}
}
我的PHP代码
<?php
echo "usession=1&done=true";
echo "useractive=1&done=true";
?>
我正在恢复 2011 年的一款旧游戏,通过使用称为 MyStar 的 JPEXS 免费 Flash Decompiler 修改游戏的源代码。游戏的服务器很久以前就已经关闭了。有谁知道如何解决?请求 url 为:https://alienearths.org/mystar/mystar.php
答: 暂无答案
评论