Network Game by Adobe Air programming in Adobe Flash

自作多情 提交于 2019-12-25 09:00:42

问题


I want to create a simple game (Adobe Air) based on 2 players using ActionScript 3.
Let's assume I want to create online chess game.
So that I can play with my friend at work, at home, from anywhere via internet.

Should I use flash server? Or something similar for this purpose, or there is simpler way to connect 2 players and make fully functional interaction between them?
I need to know, where to start.

Any online tutorials, sample codes will really help me.

Thank you!


回答1:


You can use Flash Media Server or notorious multiuser servers. Some random names for you to search: Union (formerly Unity), Electroserver, SmartFoxServer, Mesmotronic, RED5, etc.




回答2:


I think it's possible to create a socket server using AIR2, so it would be possible to connect directly to another player. However, this requires that the host has an external IP, which is not the case in most work/home networks. It would be better to build a proper TCP/IP server (either using FMS or some other system - I would look at nodeJS or java).



来源:https://stackoverflow.com/questions/8654368/network-game-by-adobe-air-programming-in-adobe-flash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!