Action Script 3 BSON implementation