0

I managed (thanks to an example I saw in adobe labs) to host in my webpage an swf, and through Cirrus I could establish a connection between two different users, that worked like a charm, BUT, I had to pass through msn the peer ID in order to establish that connection.

I know that this part must be resolved by a webservice.. but, how can I make one, and, more important, how does it work?

Thanks!

4

1 回答 1

0

我会告诉你如何用 PHP 做到这一点

1)首先你需要一个网站或在线“本地主机”(在 WAMP 上提供在线选项)

2)在 FLEX 中使用 HTTPService ,将您的 nearID 传递给 PHP 脚本,并使该脚本将该值写入后端。(MySQL)

3)当您的朋友连接到您的站点时,执行与步骤 2 相同的操作。

4) 使用 PHP 脚本再次从后端交换您的 ID。

现在您将被连接。

于 2011-12-01T19:05:57.070 回答