4. AMF = Action Message Format
neither “A”dobe nor “A”ctionscript(雖然它是由Adobe制定的)
5. wiki上的解釋
Action Message Format (AMF) is a binary format used to
serialize ActionScript objects. It is used primarily to
exchange data between an Adobe Flash application and a remote
service, usually over the internet.
12. 1. 使用RubyAmf plugin
http://github.com/victorcoder/rubyamf_plugin
2. 為展示目的,建立一個新的RoR project,並進到project中安裝plugin(以rails 2.3.8為例)
script/plugin install git://github.com/victorcoder/rubyamf_plugin.git
3. 安裝成功的話,可看見rubyamf的logo
http://127.0.0.1:3000/rubyamf/gateway/
4. 為展示目的,建立一個controller,並準備新增AMF service
class DemoamfController < ApplicationController
def callmeplease
render :amf => "hello from rubyamf : " + params[0]
end
end
5. 預設的呼叫方法為ControllerName.ActionName
例如: DemoamfController.callmeplease
參考資料:
http://blog.eddie.com.tw/2010/03/18/rubyamf
使用方法
13. Thank You!
2010/10/27
ADcube Network, Inc.
TEL +886-2-2370-0085 ext.501
FAX +886-2-2370-0125
9F., No.43, Sec. 1, Chongqing S. Rd., Zhongzheng District,
Taipei City 100, Taiwan (R.O.C.)
Welcome to visit http://www.adcube.com.tw for more information!