<?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>DigiTechLog Dot Com &#187; PyAMF</title>
	<atom:link href="http://digitechlog.com/tag/pyamf/feed" rel="self" type="application/rss+xml" />
	<link>http://digitechlog.com</link>
	<description>Adobe AIR、Flex、Flash、Java</description>
	<lastBuildDate>Tue, 08 Nov 2011 12:46:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PyAMF: PythonのためにAdobeのFlash Playerに対応しているサポートアクションメッセージ形式（ AMF ）を提供する</title>
		<link>http://digitechlog.com/2009/10/04/pyamf-an-amf-actionscript-message-format-decoder-and-encoder-for-python.html</link>
		<comments>http://digitechlog.com/2009/10/04/pyamf-an-amf-actionscript-message-format-decoder-and-encoder-for-python.html#comments</comments>
		<pubDate>Sat, 03 Oct 2009 15:26:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Project]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[PyAMF]]></category>

		<guid isPermaLink="false">http://digitechlog.com/2009/10/04/pyamf-an-amf-actionscript-message-format-decoder-and-encoder-for-python.html</guid>
		<description><![CDATA[この前はPHPからAMFメソッドを呼び出すライブラリ「SabreAMF: FlexをPHP5と連携させるフレームワーク」などと．NETの「FluorineFx: Flexと.NET間でAMF通信できるライブラリ」を紹介しましたね。フリーなオブジェクト指向プログラミング言語Pythonは、動的な型付け、ガベージコレクション、マルチパラダイム、モジュール、クラス、オブジェクト等の言語の要素が内部からアクセス可能であり、リフレクションを利用した記述が可能など幾つか特徴があるので、Google App EngineもPythonがサポートされています。 
PythonからAMF通信できますか。今回紹介PyAMFとは、オープンソースプロジェクトとして、PythonのためにAdobeのFlash Playerに対応しているサポートアクションメッセージ形式（ AMF ）を提供しています。
 
  
PyAMFにより、Flash、Flex またはAIRで、Pythonによって起動しているWebサーバとリッチインターネットアプリケーション(RIA)クライアント間のAMFベースの通信を可能になります。Google App Engine Webアプリケーション向けの新たなAMFゲートウェイも導入されました。
この前にも紹介したことがあり、AMFはリモートプロシージャーコール(RPC)を、 HTTP/HTTPSまたはRTMP/RTMPSプロトコルを介して転送されるコンパクトなバイナリ表現にエンコードする。PyAMFは、 GAEバックエンドと共にFlexベースのRIAアプリケーションの開発を可能にし、RIAをGoogleクラウドコンピューティングプラットフォームに配置する。
以下はPyAMFの使用方法を簡単で紹介します。
・PyAMFのインストール
easy_installで、もしくはできなければダウンロードしてきてsetup.py installでもいい
easy_install pyamf
・AMFの配備
デフォルトのまま利用する場合は8000のportはあけておく必要があります。
以下のコマンドでserver.xmlを起動します。
python server.py
正常だったら、http://IPアドレス:8000/にAMFでアクセスすることが可能になります。
・クライアントからの接続確認
FlashDevelopを使って、簡単にRemoteObjectで接続してみて、http://pyamf.org/wiki/HelloWorld/Flex のサンプルに従って「Hello World」のサンプルを作れます。どう？簡単でしょう？  
【関連リンク】
http://pyamf.org/ 公式サイト
Related Posts

s2x: Flashのcookieファイル(*.sol)とXMLフォーマットの互换用Pythonスクリプトソース
リッチインターネットアプリケーション (RIA) 実行環境「Adobe AIR 1.5」のLinux版を公開した
python-crawler：Pythonのクローラーライブラリ
8 Adobe ActionScriptのチュートリアルフラッシュ
GPLFlash: GNU/Linux上でAdobeのFlashムービーを再生しよう
15+綺麗な車に関するアドビPhotoShopの.PSDファイル
5個アドビFlashメニューとナビゲーションのチュートリアル
トップ７個アドビAIRビデオアプリケーション

]]></description>
			<content:encoded><![CDATA[<p>この前はPHPからAMFメソッドを呼び出すライブラリ「<a href="http://digitechlog.com/2009/08/28/sabreamf-is-a-flash-remoting-server-and-client-for-php.html">SabreAMF: FlexをPHP5と連携させるフレームワーク</a>」などと．NETの「<a href="http://digitechlog.com/2009/09/30/fluorine-flash-remoting-for-dot-net.html">FluorineFx: Flexと.NET間でAMF通信できるライブラリ</a>」を紹介しましたね。フリーなオブジェクト指向プログラミング言語Pythonは、動的な型付け、ガベージコレクション、マルチパラダイム、モジュール、クラス、オブジェクト等の言語の要素が内部からアクセス可能であり、リフレクションを利用した記述が可能など幾つか特徴があるので、Google App EngineもPythonがサポートされています。 </p>
<p>PythonからAMF通信できますか。今回紹介PyAMFとは、オープンソースプロジェクトとして、PythonのためにAdobeのFlash Playerに対応しているサポートアクションメッセージ形式（ AMF ）を提供しています。</p>
<p><a href="http://digitechlog.com/wp-content/uploads/2009/10/pythonlogomasterv3trans.png"><img title="python-logo-master-v3-trans" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="216" alt="python-logo-master-v3-trans" src="http://digitechlog.com/wp-content/uploads/2009/10/pythonlogomasterv3trans_thumb.png" width="480" border="0" /></a> </p>
<p><span id="more-611"></span>  </p>
<p>PyAMFにより、Flash、Flex またはAIRで、Pythonによって起動しているWebサーバとリッチインターネットアプリケーション(RIA)クライアント間のAMFベースの通信を可能になります。Google App Engine Webアプリケーション向けの新たなAMFゲートウェイも導入されました。</p>
<p>この前にも紹介したことがあり、AMFはリモートプロシージャーコール(RPC)を、 HTTP/HTTPSまたはRTMP/RTMPSプロトコルを介して転送されるコンパクトなバイナリ表現にエンコードする。PyAMFは、 GAEバックエンドと共にFlexベースのRIAアプリケーションの開発を可能にし、RIAをGoogleクラウドコンピューティングプラットフォームに配置する。</p>
<p>以下はPyAMFの使用方法を簡単で紹介します。</p>
<p><strong>・PyAMFのインストール</strong></p>
<p>easy_installで、もしくはできなければダウンロードしてきてsetup.py installでもいい</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Gray;">easy_install pyamf</span></li></ol></div>
<p><strong>・AMFの配備</strong></p>
<p>デフォルトのまま利用する場合は8000のportはあけておく必要があります。</p>
<p>以下のコマンドでserver.xmlを起動します。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Gray;">python server.py</span></li></ol></div>
<p>正常だったら、http://IPアドレス:8000/にAMFでアクセスすることが可能になります。</p>
<p><strong>・クライアントからの接続確認</strong></p>
<p>FlashDevelopを使って、簡単にRemoteObjectで接続してみて、<a title="http://pyamf.org/wiki/HelloWorld/Flex" href="http://pyamf.org/wiki/HelloWorld/Flex">http://pyamf.org/wiki/HelloWorld/Flex</a> のサンプルに従って「Hello World」のサンプルを作れます。どう？簡単でしょう？ <img src='http://digitechlog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>【関連リンク】</strong></p>
<p><a title="http://pyamf.org/" href="http://pyamf.org/">http://pyamf.org/</a> 公式サイト</p>
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://digitechlog.com/2009/02/22/s2x-is-a-python-script-that-allows-the-sol-file-format-represented-as-xml.html" title="s2x: Flashのcookieファイル(*.sol)とXMLフォーマットの互换用Pythonスクリプトソース">s2x: Flashのcookieファイル(*.sol)とXMLフォーマットの互换用Pythonスクリプトソース</a></li>
<li><a href="http://digitechlog.com/2008/12/20/rich-internet-application-ria-runtime-adobe-air-15-linux-platform-is-relaeased.html" title="リッチインターネットアプリケーション (RIA) 実行環境「Adobe AIR 1.5」のLinux版を公開した">リッチインターネットアプリケーション (RIA) 実行環境「Adobe AIR 1.5」のLinux版を公開した</a></li>
<li><a href="http://digitechlog.com/2011/11/03/python-crawler%ef%bc%9apython%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa.html" title="python-crawler：Pythonのクローラーライブラリ">python-crawler：Pythonのクローラーライブラリ</a></li>
<li><a href="http://digitechlog.com/2010/06/06/8-helpfull-adobe-flash-actionscript.html" title="8 Adobe ActionScriptのチュートリアルフラッシュ">8 Adobe ActionScriptのチュートリアルフラッシュ</a></li>
<li><a href="http://digitechlog.com/2009/12/01/gplflash-another-alternative-flash-runtime.html" title="GPLFlash: GNU/Linux上でAdobeのFlashムービーを再生しよう">GPLFlash: GNU/Linux上でAdobeのFlashムービーを再生しよう</a></li>
<li><a href="http://digitechlog.com/2009/11/02/collection-of-15-beautiful-adobe-photoshop-psd-files-for-car.html" title="15+綺麗な車に関するアドビPhotoShopの.PSDファイル">15+綺麗な車に関するアドビPhotoShopの.PSDファイル</a></li>
<li><a href="http://digitechlog.com/2009/10/31/5-useful-aadobe-flash-menu-and-navigation-tutorials.html" title="5個アドビFlashメニューとナビゲーションのチュートリアル">5個アドビFlashメニューとナビゲーションのチュートリアル</a></li>
<li><a href="http://digitechlog.com/2009/07/25/top-7-adobe-air-apps-for-videos-you-should-know.html" title="トップ７個アドビAIRビデオアプリケーション">トップ７個アドビAIRビデオアプリケーション</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://digitechlog.com/2009/10/04/pyamf-an-amf-actionscript-message-format-decoder-and-encoder-for-python.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

