I am using ExternalInterface in Flex to retrieve AMF encoded string from Javascript. The problem is the AMF encoded string sometimes contains \u0000 which causes the ExternalInterface to return null instead of the encoded string from Javascript.
Any idea how to solve this?
Thanks in advance.
Encoding the pyamf AMF output to base64 will do the trick.
Here is the encoding part in python:
Here is the decoding part in AS3: