<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[李勇]]></title> 
<link>http://www.kevinliyong.com/index.php</link> 
<description><![CDATA[当爱在靠近]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[李勇]]></copyright>
<item>
<link>http://www.kevinliyong.com/read.php?174</link>
<title><![CDATA[FLEX httpserviec POST传值]]></title> 
<author>kevinliyong &lt;kevinliyong@163.com&gt;</author>
<category><![CDATA[FLEX]]></category>
<pubDate>Tue, 12 Aug 2008 07:11:58 +0000</pubDate> 
<guid>http://www.kevinliyong.com/read.php?174</guid> 
<description>
<![CDATA[ 
	<p>用户名称：liyong<br />密&nbsp;&nbsp; 码&nbsp;&nbsp; ：123456<br /><br />演示地址：<a href="upload/flex/httpservice_2008_08_12/httpservice.html" target="_blank"></a><a href="upload/flex/httpservice_2008_08_12/httpservice.html" target="_blank"><a href="http://www.kevinliyong.com/upload/flex/httpservice_2008_08_12/httpservice.html" target="_blank">http://www.kevinliyong.com...</a></a><br /><br />代码如下：<br /><br /><br /><span style="color: #ff0000">httpservice.mxml&nbsp;&nbsp; 代码如下：<br /></span><br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />&lt;mx:Application xmlns:mx=&quot;<a href="http://www.adobe.com/2006/mxml"><a href="http://www.adobe.com/2006/mxml" target="_blank">http://www.adobe.com/2006/...</a></a>&quot; layout=&quot;absolute&quot;&gt;<br />&lt;mx:HTTPService showBusyCursor=&quot;true&quot;<br /> id=&quot;getuser&quot; result=&quot;getuserproc();&quot;<br /> url=&quot;<a href="upload/flex/httpservice_2008_08_12/user.php"><a href="http://www.kevinliyong.com/upload/flex/httpservice_2008_08_12/user.php" target="_blank">http://www.kevinliyong.com...</a></a>&quot; method=&quot;post&quot;&gt;<br />&lt;mx:request&gt;<br /> &lt;username&gt;<br />&nbsp;&nbsp;&#123;this.username.text&#125;<br /> &lt;/username&gt;<br /> &lt;password&gt;<br />&nbsp;&nbsp;&#123;this.password.text&#125;<br /> &lt;/password&gt;<br />&lt;/mx:request&gt;<br />&lt;/mx:HTTPService&gt;<br />&lt;mx:Script&gt;<br /> &lt;![CDATA[<br />&nbsp;&nbsp;import mx.controls.Alert;<br /> <br />&nbsp;&nbsp;public function getuserproc():void<br />&nbsp;&nbsp;&#123;<br />&nbsp;&nbsp; var returnValue:String=getuser.lastResult.result.kevin;<br />&nbsp;&nbsp; if(returnValue==&quot;ok&quot;)<br />&nbsp;&nbsp; &#123;<br />&nbsp;&nbsp; Alert.show(&quot;您成功的登录了&quot;,&quot;提示信息&quot;,Alert.OK,this,null,null,Alert.YES);<br />&nbsp;&nbsp; &#125;<br />&nbsp;&nbsp; else<br />&nbsp;&nbsp; &#123;<br />&nbsp;&nbsp; Alert.show(&quot;您的登录失败了&quot;,&quot;提示信息&quot;,Alert.OK,this,null,null,Alert.YES);<br />&nbsp;&nbsp; &#125;<br />&nbsp;&nbsp;&#125;<br /> ]]&gt;<br />&lt;/mx:Script&gt;<br /> &lt;mx:Label x=&quot;26&quot; y=&quot;24&quot; text=&quot;用户名：&quot; fontSize=&quot;15&quot;/&gt;<br /> &lt;mx:Label x=&quot;31&quot; y=&quot;56&quot; text=&quot;密&nbsp;&nbsp;码：&quot; fontSize=&quot;15&quot;/&gt;<br /> &lt;mx:TextInput x=&quot;84&quot; y=&quot;27&quot; fontSize=&quot;12&quot; id=&quot;username&quot;/&gt;<br /> &lt;mx:TextInput x=&quot;84&quot; y=&quot;59&quot; fontSize=&quot;12&quot; displayAsPassword=&quot;true&quot; id=&quot;password&quot;/&gt;<br /> &lt;mx:Button x=&quot;84&quot; y=&quot;101&quot; label=&quot;登录&quot; click=&quot;getuser.send()&quot; fontSize=&quot;12&quot; fontWeight=&quot;normal&quot;/&gt;<br /> <br />&lt;/mx:Application&gt;<br /><br /><br /><br /><br /><span style="color: #ff3300">user.php 代码如下：</span><br /><br />&lt;?php<br />$username = $_POST['username'];<br />$password = $_POST['password'];<br />if($username == 'liyong' AND $password == '123456')<br />&#123;<br /> echo &quot;&lt;result&gt;&quot;;<br />&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;&lt;kevin&gt;ok&lt;/kevin&gt;&quot;;<br />&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;&lt;/result&gt;&quot;;</p><p>&#125;<br />else<br />&#123;<br /> echo &quot;&lt;result&gt;&quot;;<br />&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;&lt;kevin&gt;error&lt;/kevin&gt;&quot;;<br />&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;&lt;/result&gt;&quot;;<br />&#125;<br />?&gt;</p><br/>Tags - <a href="http://www.kevinliyong.com/tag.php?tag=flex" rel="tag">flex</a> , <a href="http://www.kevinliyong.com/tag.php?tag=httpserviec" rel="tag">httpserviec</a>
]]>
</description>
</item><item>
<link>http://www.kevinliyong.com/read.php?171</link>
<title><![CDATA[FLEX读取XML文件]]></title> 
<author>kevinliyong &lt;kevinliyong@163.com&gt;</author>
<category><![CDATA[FLEX]]></category>
<pubDate>Thu, 07 Aug 2008 04:37:55 +0000</pubDate> 
<guid>http://www.kevinliyong.com/read.php?171</guid> 
<description>
<![CDATA[ 
	<br/>演示地址：<a href="http://www.kevinliyong.com/upload/flex/XML_to_FLEX_2008_08_07/index.html" target="_blank">http://www.kevinliyong.com/upload/flex/XML_to_FLEX_2008_08_07/index.html</a><br/>下载：<a href="attachment.php?fid=21">点击这里下载文件</a><br/>解压密码：<a href="http://www.kevinliyong.com" target="_blank">www.kevinliyong.com</a><br/><br/>test.xml<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&nbsp;&nbsp;<br/>&lt;user&gt;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&lt;name&gt;<a href="http://www.kevinliyong.com&lt;/name&gt;&nbsp;&nbsp;" target="_blank">www.kevinliyong.com&lt;/na...</a><br/>&lt;/user&gt;&nbsp;&nbsp;<br/></div></div><br/><br/>main.mxml<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br/>&lt;mx:Application xmlns:mx=&quot;<a href="http://www.adobe.com/2006/mxml&quot;&nbsp;&nbsp;&nbsp;&nbsp;" target="_blank">http://www.adobe.com/2006/...</a><br/>&nbsp;&nbsp;layout=&quot;absolute&quot;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;creationComplete=&quot;feed.send();&quot;&gt;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&lt;mx:Script&gt;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;![CDATA[&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;internal function show():void&#123;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mx.controls.Alert.show(feed.lastResult.user.name); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text1.text=feed.lastResult.user.name;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;]]&gt;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&lt;/mx:Script&gt;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&lt;mx:HTTPService id=&quot;feed&quot; url=&quot;test.xml&quot; useProxy=&quot;false&quot;/&gt;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&lt;mx:Text x=&quot;116&quot; y=&quot;150&quot; text=&quot;Text&quot; width=&quot;325&quot; id=&quot;text1&quot;/&gt;<br/>&nbsp;&nbsp;&lt;mx:Button x=&quot;116&quot; y=&quot;176&quot; label=&quot;Button&quot; click=&quot;show();&quot;/&gt;&nbsp;&nbsp;<br/>&lt;/mx:Application&gt;<br/></div></div><br/>Tags - <a href="http://www.kevinliyong.com/tag.php?tag=flex" rel="tag">flex</a>
]]>
</description>
</item><item>
<link>http://www.kevinliyong.com/read.php?170</link>
<title><![CDATA[FLASH调用BLOG日志]]></title> 
<author>kevinliyong &lt;kevinliyong@163.com&gt;</author>
<category><![CDATA[FLEX]]></category>
<pubDate>Wed, 06 Aug 2008 04:07:38 +0000</pubDate> 
<guid>http://www.kevinliyong.com/read.php?170</guid> 
<description>
<![CDATA[ 
	<p>插入Flash,Flash地址为: <br /><a href="http://www.kevinliyong.com/api/kevinliyong.swf?blog_url=www.kevinliyong.com&amp;forum_id=1" target="_blank">http://www.kevinliyong.com...</a>,2,3,4,5,8,10,11,12,20&amp;types=all</p><p>[注]<br />Flash高和宽分别设置为 222 234</p><p>[参数说明]<br />forum_id 为显示当前分类下的日志，如想显示两个或者两个以上分类的日志，请用&quot;,&quot;将分类id隔开，例如&quot;1,2,3,4&quot;<br />types 是否显示全部日志，可以为空，如果设置为&ldquo;all&rdquo;则forum_id的参数将被忽略。<br /><br />显示效果为：<br /><br /><embed src="http://www.kevinliyong.com/api/kevinliyong.swf?blog_url=www.kevinliyong.com&forum_id=1,2,3,4,5,8,10,11,12,20&types=all" width="222" height="234" type="application/x-shockwave-flash" play="true" loop="true" menu="true"></embed></p><br/>Tags - <a href="http://www.kevinliyong.com/tag.php?tag=flex" rel="tag">flex</a> , <a href="http://www.kevinliyong.com/tag.php?tag=flash" rel="tag">flash</a>
]]>
</description>
</item><item>
<link>http://www.kevinliyong.com/read.php?167</link>
<title><![CDATA[adobe flex]]></title> 
<author>kevinliyong &lt;kevinliyong@163.com&gt;</author>
<category><![CDATA[FLEX]]></category>
<pubDate>Sat, 02 Aug 2008 12:54:36 +0000</pubDate> 
<guid>http://www.kevinliyong.com/read.php?167</guid> 
<description>
<![CDATA[ 
	学习FLEX的点点滴滴！<br /><br />首先推荐几个学习的网站：<br /><br /><a href="http://blog.minidx.com/"><a href="http://blog.minidx.com/" target="_blank">http://blog.minidx.com/</a></a><br /><a href="http://www.cittle.com/blog/?page_id=63"><a href="http://www.cittle.com/blog/?page_id=63" target="_blank">http://www.cittle.com/blog...</a></a><br /><a href="http://www.flexcoders.cn/"><a href="http://www.flexcoders.cn/" target="_blank">http://www.flexcoders.cn/</a></a><br/>Tags - <a href="http://www.kevinliyong.com/tag.php?tag=flex" rel="tag">flex</a>
]]>
</description>
</item>
</channel>
</rss>