Prev | Current Page 788 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Furthermore, when proxy objects are used, the compiler can check for
type correctness and coherent use of the remote methods available using Remoting.
??‘
??‘
??‘
??‘
??‘
Part II: Server Side, JavaScript, and Flash: Oh My!
426
Remote Connection and Local Connection
By using Remoting it is possible to communicate to a remote location over a network connection using
the HTTP protocol or a socket connection, or to communicate locally between different components
in the same context, usually a web page.
On the server side of a remote connection, you can use a Neko application or an Action Message Format
(AMF) server, such as AMFPHP. The client side can involve Flash, JavaScript, or Neko.
When the communication is local you can have either JavaScript or Flash at the server or client side.
A Flash - to - Flash communication is also meaningful and supported because it is not uncommon to have
several Flash movies in the same context and the need to make them talk.
Synchronous and Asynchronous Communications
When a channel of communication is open and a request submitted, the client can act in one of two
possible ways: It waits until a response is received or continues with the normal execution and triggers a
proper method when the communication produces a result.


Pages:
776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800