Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex 什么';flex3中LoadVars的等效值是多少?_Apache Flex_Actionscript - Fatal编程技术网

Apache flex 什么';flex3中LoadVars的等效值是多少?

Apache flex 什么';flex3中LoadVars的等效值是多少?,apache-flex,actionscript,Apache Flex,Actionscript,如何在Flex3中执行上述操作 更新 如何使用urloader?和HTTPService一起使用 var lv = new LoadVars(); var r = new LoadVars(); lv.action = "update"; r.onLoad = function(success) { //do further logic here } lv.sendAndLo

如何在Flex3中执行上述操作

更新


如何使用
urloader

和HTTPService一起使用

    var lv = new LoadVars();
    var r = new LoadVars();
    lv.action = "update";
            r.onLoad = function(success) 
    {
                //do further logic here
            }
    lv.sendAndLoad("http://example.net/service.php", r, "POST");
使用URLLoader

var vo:Object = new Object;
    vo.action = "update";
    s = new HTTPService();
    s.url = "http://example.net/service.php"
    s.method = "POST";
    s.resultFormat = "e4x"; //or xml or whatever
    s.send(vo);
    s.addEventListener(ResultEvent.RESULT,onLoad);

如何使用URLLoader?
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest("url here");
var vars:URLVariables = new URLVariables();     
vars.action = "update";
request.data = vars;
request.method = URLRequestMethod.POST;
loader.load(request);
loader.addEventListener(Event.COMPLETE,onComplete);