as 3.0 URLRequest时用URLVariables传参

package {
import flash.display.Sprite;
import flash.net.navigateToURL;
import flash.net.URLRequest;
import flash.net.URLVariables;
public class URLVariablesExample extends Sprite {
public function URLVariablesExample() {
var url:String = "http://www.[yourDomain].com/application.jsp";
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.exampleSessionId = new Date().getTime();
variables.exampleUserLabel = "guest";
request.data = variables;
navigateToURL(request);
}
}
}

 

参考:

http://help.adobe.com/zh_CN/FlashPlatform/reference/actionscript/3/flash/net/URLVariables.html

你可能感兴趣的:(传参,AS,3.0,URLRequest,URLVariables)