온라인 MySQL 데이터베이스, Scaleform 4 (AS3) 및 PHP가 포함 된 웹 서버에 대한 HTTP 요청을 통해 UDKGame에 대한 최고 기록을 게시하고 가져오고 싶습니다. 불행히도이 문서를 고려할 때 가능하지 않을 수도 있습니다 : http://gameware.autodesk.com/documents/gfx_4.0_flash_support.pdf.UDK Scaleform 4 AS3 도메인 간 URL 요청이 가능합니까?
내 GFx Movie Player에서 URLRequest를 보내려고했지만 작동하지 않는 것 같습니다. Heres는 내 AS3 코드 나는 프레임 1에 내 GFX 동영상 플레이어를 위해 사용하고 있습니다 :
getScore();
function getScore():void {
//var url:String = "http://myserver.com/getScore.php";
var request:URLRequest = new URLRequest(url);
var requestVars:URLVariables = new URLVariables();
requestVars.foo = "bar";
request.data = requestVars;
//request.method = URLRequestMethod.POST;
//Security.allowDomain("myserver.com");
//var context:LoaderContext = new LoaderContext();
//context.securityDomain = SecurityDomain.currentDomain
var urlLoader:URLLoader = new URLLoader();
urlLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.TEXT;
urlLoader.addEventListener(Event.COMPLETE, loaderCompleteHandler, false, 0, true);
urlLoader.load(request);
}
function loaderCompleteHandler(e:Event):void {
trace(e.target.data);
Object(this).response.text= "response:"+e.target.data;
}
.dll 인 또는 내 웹 서버에 수동 TCP 연결을 사용을 작성하지 않고 내 목표를 달성하기 위해 어떤 방법이 있나요?