0
我一直試圖讓下面的代碼工作:發佈與Flash
var scriptRequest:URLRequest = new URLRequest("http://mywebsite.com/script.php");
var scriptLoader:URLLoader = new URLLoader();
var scriptVars:URLVariables = new URLVariables();
scriptLoader.addEventListener(Event.COMPLETE,handleLoadSuccessful); scriptLoader.addEventListener(IOErrorEvent.IO_ERROR,handleLoadError);
function write(write_to_file) {
scriptVars.req = "testing testing testing";
scriptRequest.method = URLRequestMethod.POST;
scriptRequest.data = scriptVars;
scriptLoader.load(scriptRequest); }
function handleLoadSuccessful($evt:Event):void
{
跡( 「消息發送。」);
}
功能handleLoadError($ EVT:IOErrorEvent):無效 { 跡( 「消息失敗。」); }
奇怪的是,這文章的Flash正確..但是當我上傳到我的網絡服務器,它不...任何想法?
感謝 亞歷克斯