<?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>Anistar RIA Blog &#187; Flash Remoting</title>
	<atom:link href="http://blog.riaproject.com/tag/flashremoting/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.riaproject.com</link>
	<description>Rich Internet Application 知識誌</description>
	<lastBuildDate>Wed, 21 Dec 2011 05:43:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>在 ActionScript3.0 中實現與 ColdFusion 交換資料 (Flash Remoting)</title>
		<link>http://blog.riaproject.com/actionscript/151.html</link>
		<comments>http://blog.riaproject.com/actionscript/151.html#comments</comments>
		<pubDate>Tue, 14 Aug 2007 10:31:14 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Flash Remoting]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=151</guid>
		<description><![CDATA[以前在ActionScript 2.0中，Macromedia有提供專門給FlashRemoting用的套件，但是在ActionScript 3.0出來滿一年多以來，並未像之前一樣提供NetService.as用，那代表ActionScript 3.0從此跟FlashRemoting絕緣了嗎？那可必一定，其實就算不用透過NetServices也有解決的辦法，那就是NetConnection這個類別。 其實這個早該就要講了，但是事情實在太多了，說以今天想起來來作一個簡單的示範，下次我們再來試試看其他種Server程式語言要如何透過FlashRemoting來與ActionScript 3.0結合在一起。 只要有使用過 Flash Media Server 的人對 NetConnection 一定不陌生，尤其是被我教過 Flash Media Server 的學生更是記憶猶新，沒辦法，每個東西都要先從 NetConnection 開始實作起，所以這次我們建立一個 helloworld.cfc 簡單的讓它傳回 Hello AS3 給 ActionScript 3.0 就可以了，至於其他應用就交給大家自己去實做囉，請先建立一個 helloworld.cfc 檔放置在 webroot/comp/helloworld.cfc 並實作個 sayHello 的 method 程式範例如下： &#60;cfcomponent&#62;  &#60;cffunction name="sayHello" access="remote" returntype="string"&#62;   &#60;cfreturn "Hello AS3"&#62;  &#60;/cffunction&#62; &#60;/cfcomponent&#62; 從程式碼中應該不難了解這支程式的用途，再來實作一個 ActionScript 3.0 的主程式，只要簡單的呼叫並接收回傳的資料就可以了，用法與呼叫 SSAS 的 Remote Method 是完全一樣的，只是在使用 Flash [...]]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/151.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Flash 安全性與使用者驗證 &#8211; FlashRemoting</title>
		<link>http://blog.riaproject.com/actionscript/19.html</link>
		<comments>http://blog.riaproject.com/actionscript/19.html#comments</comments>
		<pubDate>Mon, 12 Mar 2007 03:46:24 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash Remoting]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/2007/03/12/flashremoting-login/</guid>
		<description><![CDATA[[此文章僅供ActionSctipt2.0 參考]  在Flash有許多種連接外部資料的方法，例如您可以用以下的方法： Text XML WebServices FlashRemoting RTMP 當然，在這些方法中，最安全也最方便的，就是FlashRemoting了，而FlashRemoting之所以會比其他方法要來的好的原因，就在於資料傳送可以動態壓縮，資料型態也能自動轉換，這對程式撰寫上有很大的優勢，當然對於資料的安全性(存取遠端服務上的權限也會較為容易控制與管理)，那個該如何做呢？ 以往在傳統網站中，若是要保持與Session的連線，透過的就是用瀏覽器中的Cookie來記憶Session id,但是在Flash中可沒有這個東西，讓我又要如何透過HTTP表頭來把資料給傳遞出去呢？其實用的就是Service.Connection.setCredentials這個方法，舉個例子來說，若我們要產生連線，則可以將帳號密碼設在setCredentials中來產生新的連線，若是要取消，只要設定空字串就可以了，請看下方的案例： check_btn.addEventListener("click", checkHandler); function checkHandler():Void { //呼叫服務 var pc:PendingCall = myService.checkLogin(); pc.responder = new RelayResponder(_root, "checkDone", "riaFail"); } login_btn.addEventListener("click", loginHandler); function loginHandler():Void { if (account_txt.text != "" &#38;&#38; passwd_txt.text != "") { //真正在做login myService.connection.setCredentials(account_txt.text, passwd_txt.text); //順便檢查是否登入成功,並回結果 var pc:PendingCall = myService.login(); pc.responder = new RelayResponder(_root, "loginDone", [...]]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/19.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

