软硬度:使用之间的区别的HTTPService和URLRequest [英] Flex : difference between using HTTPService and URLRequest

查看:180
本文介绍了软硬度:使用之间的区别的HTTPService和URLRequest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用之间的区别是什么的HTTPService 的URLRequest 从柔性网页,并要求你的数据与Servlet

What is the difference between using HTTPService and URLRequest for requesting your data from a flex page to servlet

推荐答案

的URLRequest 是请求对象包含它的使用更基本的加载器类型比的HTTPService,喜欢的URLLoader要加载的URL,后参数等一般。

URLRequest is the Request Object that contains the URL to load, the post parameters, etc. Usually it is used with more basic loader types than HTTPService, like URLLoader.

<一个href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/rpc/http/mxml/HTTPService.html"相对=nofollow>的HTTPService 直接取URL作为它的一个属性,所以它并不需要一个URLRequest。从技术上讲,你可以使用一个URLRequest提供的其他有效载荷,因为它是一个对象和的HTTPService的请求参数可以是任何对象。

HTTPService takes the URL directly as one of its properties, so it doesn't need a URLRequest. Technically, you could use a URLRequest to provide the rest of the "payload," since it is an Object and the request parameter of HTTPService can be any Object.

这篇关于软硬度:使用之间的区别的HTTPService和URLRequest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆