Prev | Current Page 818 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

js??? > < /script >
< /body >
< /html >
Sometimes in Proxy < Class > , the Class cannot or must not be compiled in the client output. It is
then needed to use conditional compilation to avoid misuses; an alternative solution is to provide an
Interface that can be implemented by the Class ; the Proxy < Interface > can use it instead of the
concrete Class .
Figure 15-1
Chapter 15: Putting It All Together with haXe Remoting
443
TicTacToe Game
In the SocketConnection description, it has been said that this kind of connection is ideal in the
realization of multiplayer games. To conclude this chapter with a practical example of multiuser
interaction, a Flash client and Neko server are built to play the famous TicTacToe game. Figure 15 - 2
illustrates a possible interaction between a Flash movie embedded in a web page and one executed as a
standalone player. Notice that to allow the communication between a local Flash movie and a remote
server, it is necessary to change the Flash Player security settings explicitly selecting the movie that can
perform the remote calls.


Pages:
806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830