Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Like this? Share it with your network

Share

AMF

on

  • 2,499 views

 

Statistics

Views

Total Views
2,499
Views on SlideShare
2,187
Embed Views
312

Actions

Likes
1
Downloads
4
Comments
0

4 Embeds 312

http://blog.eddie.com.tw 295
http://eddie_blog.dev 10
http://webcache.googleusercontent.com 4
http://static.slidesharecdn.com 3

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

AMF Presentation Transcript

  • 1. AMF
  • 2. http://blog.eddie.com.tw aquarianboy@ptt eddie@adcube.com.tw aquarianboy@plurk eddiekao@facebook
  • 3. AMF = Action Message Format neither “A”dobe nor “A”ctionscript( Adobe )
  • 4. 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.
  • 5. .NET - FluorineFx (LGPL) PHP - AMFPHP, Zend_Amf, CakeAMFPHP Python - PyAMF, DjangoAMF Perl - AMF::Perl Ruby - RubyAMF ... http://en.wikipedia.org/wiki/Action_Message_Format
  • 6. PHP
  • 7. 1. AMFPHP( 1.9 ) http://amfphp.sourceforge.net/ 2. http://127.0.0.1/test/amfphp/ 3. Service Browser(flex ) http://127.0.0.1/test/amfphp/browser 4. AMF gateway ( services ) <?php class callme { function callmeplease($text) { return $text; } } 5. service browser AMFPHP gateway.php $gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1"); $gateway->setCharsetHandler("utf8_decode", "UTF-8", "UTF-8"); PHP iconv $gateway->setCharsetHandler("iconv","UTF-8","UTF-8"); http://blog.eddie.com.tw/2008/10/12/amfphp-tutorial
  • 8. Django
  • 9. 1. PyAMF(Stable 0.51) http://pyamf.org/community/download.html 2. setup.py ez_install 3. django project http://www.eddie.com.tw/course/index.php/Django_index 4. django app AMF service from pyamf.remoting.gateway.django import DjangoGateway def amfdemo(req, text): return 'hello from pyamf : ' + text services = { 'callme.callmeplease': amfdemo, } AMFGateway = DjangoGateway(services, debug=True) 5. urls.conf url(r'^gateway/$', 'demoamf.dddd.views.AMFGateway')
  • 10. Ruby on Rails
  • 11. 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
  • 12. Thank You!