Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>How does Flash communicate with services / scripts on servers via AMF?</p> </blockquote> <p>Data is transferred over a TCP/IP connection. Sometimes an existing HTTP connection is used, and in other cases a new TCP/IP connection is opened for the AMF data. When the HTTP or additional TCP connections are opened, the sockets interface is probably used. The AMF definitely travels over a TCP connection of some sort, and the sockets interface is practically the only way to open such a connection.</p> <p>The "data" that is transferred consists of ECMA-script (Javascript(tm)) data types such as "integer", "string", "object", and so on.</p> <p>For a technical specification of how the objects are encoded into binary, Adobe has published a specification: <a href="http://opensource.adobe.com/wiki/download/attachments/1114283/amf3_spec_05_05_08.pdf" rel="nofollow noreferrer" title="AMF 3.0 Spec at Adobe.com">AMF 3.0 Spec at Adobe.com</a> </p> <p>Generally the way an AMF-using client/server system works is something like this:</p> <ol> <li>The client displays some user interface and opens a TCP connection to the server.</li> <li>The server sends some data to the client, which updates its user interface.</li> <li>If the user makes a command, the client sends some data to the server over the TCP connection.</li> <li>Continue steps 2-3 until the user exits.</li> </ol> <p>For example, if the user clicks a "send mail" button in the UI, then the client code might do this:</p> <pre>public class UICommandMessage extends my.CmdMsg { public function UICommandMessage(action:String, arg: String) { this.cmd = action; this.data = String; } }</pre> <p>Then later:</p> <pre> UICommandMessage msg = new UICommandMessage("Button_Press", "Send_Mail"); server_connection.sendMessage(msg); </pre> <p>in the server code, the server is monitoring the connection as well for incoming AMF object. It receives the message, and passes control to an appropriate response function. This is called "dispatching a message".</p> <p>With more information about what you are trying to accomplish, I could give you more useful details.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload