Forcing AMF files to parse in the main thread