问题
I am new to Haxe.
I want to try to run the example from here:
http://old.haxe.org/doc/flash/chat
but I do not know how to run.
I just type
haxe app.hxml
and I have no idea how to continue.
Could someone tell me how to run it?
回答1:
Running haxe app.hxml
creates two files: server.n
and client.swf
.
Double click server.bat
(which just starts the server via neko server.n
). Now any number of clients can connect to the server. For testing, just run the client.hx
twice with the standalone Flash Player. After you've entered a user name in each window, any message you submit on either client will appear on the other client as well.
来源:https://stackoverflow.com/questions/35071564/how-to-run-the-haxe-server-and-client-example