<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>中文Flex例子 &#187; HTTPService</title>
	<atom:link href="http://blog.minidx.com/tag/httpservice/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex中如何利用HTTPService的send()将参数传递给HTTPService的例子</title>
		<link>http://blog.minidx.com/2008/10/31/1596.html</link>
		<comments>http://blog.minidx.com/2008/10/31/1596.html#comments</comments>
		<pubDate>Fri, 31 Oct 2008 01:27:37 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[HTTPService]]></category>
		<category><![CDATA[resultFormat]]></category>
		<category><![CDATA[send]]></category>
		<category><![CDATA[StringValidator]]></category>
		<category><![CDATA[validate]]></category>
		<category><![CDATA[ValidationResultEvent]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1596</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何利用HTTPService的send()，将参数传递给HTTPService。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.controls.Alert;
&#160; &#160; &#160; &#160; &#160; &#160; import mx.events.ValidationResultEvent;
&#160; &#160; &#160; &#160; &#160; &#160; import mx.utils.StringUtil;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function submit_click(evt:MouseEvent):void {
&#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/10/31/1596.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex中如何创建复数行文本内容的List的例子</title>
		<link>http://blog.minidx.com/2008/10/30/1590.html</link>
		<comments>http://blog.minidx.com/2008/10/30/1590.html#comments</comments>
		<pubDate>Thu, 30 Oct 2008 13:30:21 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[List]]></category>
		<category><![CDATA[HTTPService]]></category>
		<category><![CDATA[showBusyCursor]]></category>
		<category><![CDATA[variableRowHeight]]></category>
		<category><![CDATA[wordWrap]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1590</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何创建复数行文本内容的List。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;
&#160; &#160; &#160; &#160; creationComplete=&#34;init();&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.rpc.events.FaultEvent;
&#160; &#160; &#160; &#160; &#160; &#160; import mx.rpc.events.ResultEvent;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function init():void {
&#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/10/30/1590.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中解析Kuler RSS feed的例子</title>
		<link>http://blog.minidx.com/2008/07/29/1184.html</link>
		<comments>http://blog.minidx.com/2008/07/29/1184.html#comments</comments>
		<pubDate>Tue, 29 Jul 2008 12:47:26 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[HTTPService]]></category>
		<category><![CDATA[itemRenderer]]></category>
		<category><![CDATA[Kuler]]></category>
		<category><![CDATA[Namespace]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/29/1184.html</guid>
		<description><![CDATA[接下来的例子演示了Flex中载入Kuler RSS feed并对其进行解析，并将内容显示在DataGrid中。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整实现代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;
&#160; &#160; &#160; &#160; creationComplete=&#34;tempXML.send(httpServiceParams)&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.controls.dataGridClasses.DataGridColumn;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private var kulerNS:Namespace = new Namespace(&#34;http://kulerserv/services/rss/kulerRSS&#34;);
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function themeTitle_labelFunc(item:XML, [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/29/1184.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中利用HTTPService和服务器端脚本进行数据通信的例子</title>
		<link>http://blog.minidx.com/2008/07/23/1124.html</link>
		<comments>http://blog.minidx.com/2008/07/23/1124.html#comments</comments>
		<pubDate>Wed, 23 Jul 2008 14:20:32 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[FlashVars]]></category>
		<category><![CDATA[HTTPService]]></category>
		<category><![CDATA[lastResult]]></category>
		<category><![CDATA[send]]></category>
		<category><![CDATA[数据通信]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/23/1124.html</guid>
		<description><![CDATA[接下来的例子演示了从Flex中发送一个参数给服务器端的ColdFusion脚本，然后将接收到的返回值显示在Flex应用中。服务器端的脚本是一个简单的”Hello world” 类型的脚本，但是可以接受URL或者FORM内的值，所以可以通过发送GET或者POST的HTTP事件。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; creationComplete=&#34;httpService.send(myObj);&#34;&#62;
&#160;
&#160; &#160; &#60;!-- Parameters to send to remote script. --&#62;
&#160; &#160; &#60;mx:Object&#160;id=&#34;myObj&#34; name=&#34;peterd&#34; /&#62;
&#160;
&#160; &#160; &#60;mx:HTTPService&#160;id=&#34;httpService&#34;
&#160; &#160; &#160; &#160; &#160; &#160; url=&#34;http://www.flash-mx.com/mm/greeting.cfm&#34;
&#160; &#160; &#160; &#160; &#160; &#160; method=&#34;POST&#34;
&#160; &#160; &#160; &#160; &#160; &#160; resultFormat=&#34;flashvars&#34;&#160;/&#62;
&#160;
&#160; &#160; &#60;mx:Label&#160;text=&#34;{httpService.lastResult.welcomeMessage}&#34; /&#62;
&#160;
&#60;/mx:Application&#62;
下面是服务器端ColdFusion部分的代码：
&#60;cfsilent&#62;
&#60;cfsetting&#160;enablecfoutputonly=&#34;Yes&#34;&#62;
&#60;cfif&#160;IsDefined(&#34;URL.name&#34;)&#62;&#60;cfset Form.Name = URL.name /&#62;&#60;/cfif&#62;
&#60;cfif&#160;NOT [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/23/1124.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flex中利用HTTPService从FlashVars载入动态创建ActionScript暗点的例子</title>
		<link>http://blog.minidx.com/2008/07/21/1104.html</link>
		<comments>http://blog.minidx.com/2008/07/21/1104.html#comments</comments>
		<pubDate>Sun, 20 Jul 2008 21:44:12 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[CuePointManager.addCuePoint()]]></category>
		<category><![CDATA[FlashVars]]></category>
		<category><![CDATA[HTTPService]]></category>
		<category><![CDATA[VideoDisplay]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/21/1104.html</guid>
		<description><![CDATA[在前面Flex中如何从HTML容器中接受FlashVars动态创建ActionScript暗点的例子我们介绍过从HTML中接受FlashVars动态创建ActionScript暗点，接下来的例子演示了Flex中利用HTTPService从FlashVars载入动态创建ActionScript暗点。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;
&#160; &#160; &#160; &#160; creationComplete=&#34;httpService.send()&#34;&#62;
&#160;
&#160; &#160; &#60;mx:HTTPService&#160;id=&#34;httpService&#34;
&#160; &#160; &#160; &#160; &#160; &#160; url=&#34;cuepoints.txt&#34;
&#160; &#160; &#160; &#160; &#160; &#160; result=&#34;httpService_result(event)&#34;
&#160; &#160; &#160; &#160; &#160; &#160; resultFormat=&#34;flashvars&#34;&#160;/&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.rpc.events.ResultEvent;
&#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/21/1104.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 425/840 objects using disk

Served from: blog.minidx.com @ 2012-02-09 20:50:05 -->
