Skip to content

jold/CocoaAMF

 
 

Repository files navigation

CocoaAMF - Action Message Format

Description

Action Message Format (AMF) is a binary format used to serialize object graphs such as ActionScript objects and XML, or send messages between an Adobe Flash client and a remote service, usually a Flash Media Server or third party alternatives. The Actionscript 3 language provides classes for encoding and decoding from the AMF format. The format is often used in conjunction with Adobe's RTMP to establish connections and control commands for the delivery of streaming media. In this case, the AMF data is encapsulated in a chunk which has a header which defines things such as the message length and type (whether it is a "ping", "command" or media data).

CocoaAMF is a set of classes which can make AMF0 and AMF3 remote calls or act as a server to handle AMF requests.

Examples

For sending a remote call see SimpleRemotingCallExample. For setting up a server see ServerExample.

For testing an existing AMF server a more complex tool is provided, namely AMFClient, so be sure to check it out!

If you want to send custom classes from Cocoa make sure to implement the NSCoding protocol. You can encode keyed and non-keyed objects, where the latter means you're encoding an externalizable class.

While deserializing, if no class with the classname of the received object is found, CocoaAMF creates an instance of ASObject which will contain all attributes of that object and its classname as the ivar 'type'.

Thanks

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 97.7%
  • ActionScript 1.4%
  • Ruby 0.9%