More than
one object can be registered on the server. The handleRequest() method detects if the request comes
from a Remoting Connection object and if this is the case, it tries to invoke the corresponding method.
If the request is not of this kind, the method returns true and eventually the server script can try to
handle the request differently. This mechanism allows reusing of the same script to deal with Remoting
requests and standard page requests in the same script and producing just one Neko file.
Part II: Server Side, JavaScript, and Flash: Oh My!
434
Flash to AMF Server
An Action Message Format Server (AMF server) is a kind of server that implements the Adobe protocol
of communication for Flash movies. When connecting to such a server, Flash can send and receive
ActionScript objects and types. Because the Neko HTTP server is a superior solution, haXe does not
provide a server implementation of AMF but provides the code to implement the client - side part of the
communication. It is self - evident that some types like enums are not available in this context because an
AMF server cannot support them.
Pages:
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815