天生我才必有用

Flash Remoting and AMF

Posted in Flex, Flash & AS    作者:Ray    2008年三月19日

Flash Remoting 是一种基于HTTP request/response的数据通讯技术,而AMF正是Flash Remoting所使用的二进制消息协议(Binary messaging protocol)。由于采用了二进制方式,通讯的数据量减少,从而通讯的性能也有所提高。同时AMF也是Flash Player专用协议,如果需和其它语言进行互通,则必须使用一些SDK来进行此资料的解析。

以下是AMF和其他语言的接口实现:

使用Flex获取Flash player的版本信息

Posted in Flex, Flash & AS    作者:Ray    2008年三月17日

如何使用Flex来获取Flash player的信息呢:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Label text="Flash Player Version: {flash.system.Capabilities.version},
    Debug Player: {flash.system.Capabilities.isDebugger}"/>
</mx:Application>

以上例子选自”O’Reilly Press – Programming Flex2

运行结果: 

[flash http://ray.imiddle.net/flash/check_player.swf w=300 h=200]

Flexible Rails: Flex 3 on Rails 2

Posted in 读书    作者:Ray    2008年一月15日

flexible-rails.jpg

TITLE : Flexible Rails: Flex 3 on Rails 2 (Paperback)
AUTHOR : by Peter Armstrong (Author)
PUBLISHER : Manning Publications publisher
ISBN : 1933988509
EDITION : 1st
PUB DATE : January 15, 2008
LANGUAGE : English

Introduction :

Flexible Rails is a unique, application-based guide for using Ruby on Rails 2 and Adobe Flex 3 to build rich Internet applications (RIAs). It is not an exhaustive Ruby on Rails or Flex reference. Instead, it is an extensive tutorial in which the reader builds multiple iterations of an interesting RIA using Flex and Rails together. Author Peter Armstrong walks readers through eleven iterations in which the sample application–pomodo–is variously built, refactored, debugged, sliced,
diced and otherwise explored from every conceivable angle with respect to Ruby on Rails and Adobe Flex. The book unfolds both the application and the Flex-on-Rails approach side-by-side.