Luar's Flash Playground:Multiuser範例
Multiuser範例 (03-05-2003)

這是一個Multiuser最簡單範例(Chat Playground),在一個空間裡,代表你名字的方塊可以自由走動,並且跟在這房間裡的其他人交談。

注意:
由於這只是簡單範例,登入名稱並沒有核證及重覆檢查,後來的相同名字會替代了較早前的名字;還有方塊間沒有Z-Sorting。

avatars.jpg

[示範][源文件]

安裝方法:
下載後在applications Folder下建立一個叫avatars的Folder,將所有東西unzip到此,打開avatars.swf或avatars.htm便可。

2005-2-25更新
範例檔的main.asc更新了,原文中:

application.users_so.setProperty(newClient.name, null);
application.users_so.send("killClient", newClient.name)
更改為:
application.users_so.send("killClient", newClient.name)
application.users_so.setProperty(newClient.name, null);

因為在Windows版FlashCom中,SO寫入進度比發出killClient命令慢,因此Client那邊已經將用戶殺掉,才發生SO.onSync;

但是在Linux版FlashCom中,SO寫入後才發生killClient命令;在Client那邊,在SO.onSync時,收到的用戶位置資料已經不再存在,因此畫面出現用戶走上左上角的Bug。

本文章由發表。
意見
"; print "沒有意見。
 "; } ?>
  • 貴站點資料很好!:)

    LiuYang於04-05-2003發表

  • I had download it but there is no avatars.swf or avatars.htm in the zip file! Can you check it? thanks!

    由lamfan於01-03-2004發表

  • Sorry I check the file the link is ok!

    由lamfan於01-03-2004發表

  • I had try to play it, it's really good and can you wrote a detail part to introduce your work? because I really want to learn more about it thanks!

    由lamfan於01-03-2004發表

  • 我按send按鈕為什麼沒反應?

    pxp於19-04-2004發表

同組文章