The nice thing about this kind of connection, more widely known as a socket
connection, is that once it is established, the server side can send messages to the client without an
explicit request as for the push label. This kind of connection is optimal in multiplayer games where
multiple clients interact with a server and this must update the state of its clients as soon as new
information is available. Most web browsers do not integrate any socket protocol, but Flash does with its
XMLSocket class. haXe allows creating a socket communication directly from Flash or in JavaScript, too,
using a small Flash movie as a bridge.
The ha X e Remoting API
Flash security policy imposes some limitations about how a Flash movie can interact with other movies
or limit communications outside the current domain. To work around those limitations, you can set the
proper Flash settings visiting this page www.macromedia.com/support/documentation/en/
flashplayer/help/settings_manager04.html or adopting the appropriate security measures such
as specifying the allowed domains in a socket connection.
Pages:
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803