細心看看Flex Enterprise Services 2的介紹,會發現RemoteObject被納入為功能之一: Flex provides three ways of sending and receiving data using remote procedure calls (RPC). These are the HTTPService, WebService, and RemoteObject tags. The first two can be used by any application built in Flex Builder 2. The RemoteObject tag requires an additional server, such as Flex Enterprise Services, to process the RemoteObject requests. 原文 在其他文檔,多次強調,如果你想用Flash Remoting,此功能不在Flex Builder 2中,必須配合Flex Server。
Cold Fusion用家還好,可以用Flex 2 ColdFusion Adapter。
最簡單而言之,如果你想用<USD1000 Flex Builder 2開發你的RIA,你只可以用HTTPService和WebService,你要用Flash Remoting連接外面那些AMFPHP, OpenAMF等,你暫時是沒有方法的! The server component of Flex 2 isn't available in the alpha release of the Flex Framework that's included with Flex Builder — so there's no more Flash Remoting gateway for the RemoteObject, HTTPService, and WebService MXML tags. Currently, the RemoteObject tag is not functional. You can still use the HTTPService and WebService tags but only from trusted domains. This means that the resource must be on a server that is in the same domain as the Flex application or from a server that has a crossdomain.xml file, or you can throw together your own proxy. Look at this article on accessing data for more info. 原文 將來待Flex Enterprise Services 2和Server Component之一的RemoteObject放出來後,大家才有機會測試一下。但是Macromedia已經留下伏筆,想用Remoting,這是Server功能之一,Remoting Gateway等設定,都要在flex-services.xml設定;如果Macromedia不放出Client side Flash Remoting Component(就像給Flash IDE使用那些),看來大家別妄想用Flex Builder 2,享受它的Flex Framework 2帶來MXML, Components和Data Binding上方便,配合其他免費Remoting Services開發無需Server,在任何Server部署SWF之RIA。
都話Macromedia冇咁好死o架啦 凸-_-凸 |