« Return to Thread: Can I decode the AMF individually in AS2?
Hi, ThijsThanks for your kindly response.I have to confess that I have downloaded the "remote" component.Maybe I am too stupid to find anything that I am looking for.I tried to grep some keywords like "amf","deserialize" and study those scripts.But still can not figure out how to do.Any hint is appreciated.Regards,iap2009/5/14 Thijs Triemstra | Collab <lists@...>
Hi lap,in Actionscript 1 and 2 the Flash Remoting components are responsible for AMF encoding/decoding afaik.You can grab them from this page [1] and the source is included. If you want to use them with Flash CS3 (or newer) check out this page [2].I didn't know you could send raw AMF0 data using XMLSocket, cool to know.hth,Thijs
On 13 May 2009, at 05:00, Iap wrote:_______________________________________________Hi,We have a flash movie (swf) which uses the XMLSocket and the JSON to communicate with a Twisted-based TCP server.We realized that the ActionScript-JSON is the bottleneck in the communication.The time consumed by decoding the JSON data in AS2 increases exponentially.We consider to replace the JSON with AMF0.This is where the pyAMF comes into play.We found an excellent example of Twisted-based solution to utilize the pyAMF in the server side.But can not figure out how to adapt the client/swf side.In our case, the client side connects the server by XMLSocket , not by http.We have tested that XMLSocket can receive binary AMF0 data (encoded by pyAMF).We need a encoder/decoder-only class in AS2.In AS3, the decoding and encoding seems to be handled by the flash.net.Socket (with read/writeObject()) internally,My question is that, in AS2, who handles the encoding and decoding of the AMF0 data?Thanks in advance.Iap
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users
_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users
_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users
« Return to Thread: Can I decode the AMF individually in AS2?
| Free embeddable forum powered by Nabble | Forum Help |