2010-03-15 71 views
0

所有,連接的Flash AS2(或AS3)到BlazeDS的

我正在尋找在連接閃光燈(未Flex的)應用程序,以大火DS一些信息。

(谷歌搜索是令人驚訝的無助......)

Adob​​e的微型站點約BlazeDS的(http://opensource.adobe.com/wiki/display/blazeds/Overview)提到:

塊引用歡迎BlazeDS的! BlazeDS是基於服務器的Java遠程處理和Web消息傳遞技術,使開發人員能夠輕鬆連接到後端分佈式數據並實時將數據推送到Adobe®Flex™和Adobe AIR™應用程序,以實現更具響應性的富互聯網應用程序(RIA)經驗。

......其中明顯省略了「Flash」。

任何見解或指針將不勝感激。

乾杯, 馬特

回答

0

如果有人有興趣,這似乎工作...

import mx.remoting.Service; 
import mx.rpc.RelayResponder; 
import mx.rpc.FaultEvent; 
import mx.rpc.ResultEvent; 
import mx.remoting.PendingCall; 

myService = new Service([service url], null, [remote bean name]); 
var pc::PendingCall = myService.[method](); 
pc.responder = new RelayResponder(this, "onServiceData", "onServiceFault"); 

function onServiceData(msg:ResultEvent) { 
    trace ("Service result: " + msg.result); 
} 
function onServiceFault(rs:FaultEvent) { 
    trace ("Service faultstring: " + fault.fault.faultstring); 
} 

當然,更好的解決方案將不勝感激!

乾杯, 馬特Stuehler