As3 FileReference 下载动态 url 不发送可变数据;样本:
downloadXls.buttonMode=true;
import flash.net.FileReference;
import flash.events.Event;
var localRef:FileReference;
var fileRequest:URLRequest= new URLRequest("http://[sitename].com/xlsexport.php?id=456");
downloadXls.addEventListener(MouseEvent.CLICK,downloadXlsH);
function downloadXlsH(event:MouseEvent):void{
localRef = new FileReference();
localRef.addEventListener(Event.COMPLETE, completeHandler);
localRef.download( fileRequest, 'myfile.xls' );
}
function completeHandler(e:Event):void{
trace('OK. Dosya Kaydedildi.');
}
问题:http://[sitename].com/xls.php?id=456 id 变量不发送 xlsexport.php
代码只是“filename = xlsexport”变量产生一个变量我想发送一个不同的“id = 4545 & pass = 87665”