Does someone know how to use AMF in cocos2d-x, I use http AMF server, but I don’t know how to do in cocos2d-X
I heard some one has used it in commercial games, but I don’t know the details.Firstly I think you need to find a c++ library to encode/decode AMF format.
As far as I know, there is no good open-source libraries for AMF3 written in C/C**. You should use JSON instead or write your own implementation.I have the same problem, so I’m writing my own AMF3 encoder/decoder.Take a look for iPhone implementation of CocoaAMF. It’s written in Objective-C and could be ported to C** with minimum efforts.
I find AMFcPlusPlus , I think it’s useful,AMFcPlusPlus only have AMFdata parse, not have AMF Header , fortunately Header parse not hard .
I use jsoncpp now , but I think I will add AMF in the furture.