a  simple  decoder of  amf0  and amf3