可能的原因如下:
1、请求xml的文件地址是否正确
2、切记要把向asp、php、aspx等脚本文件的请求发送和向xml文件的请求发送充分考虑清楚,脚本文件可以接受任何参数,但xml文件在请求时尤其是在post情况下请求时,一定不要在URLRequest中夹带任何数据,请保持null
3、检查结果类型和内容类型,以下给出一些我定义的静态数据,请参照使用
public static const RESULT_FORMAT_FLASHVARS:String = "flashvars";
public static const RESULT_FORMAT_OBJECT:String = "object";
public static const RESULT_FORMAT_ARRAY:String = "array";
public static const RESULT_FORMAT_TEXT:String = "text";
public static const RESULT_FORMAT_XML:String = "xml";
public static const RESULT_FORMAT_E4X:String = "e4x";
public static const CONTENT_TYPE_JSON:String = "application/json";
public static const CONTENT_TYPE_XML:String = "application/xml";
public static const CONTENT_TYPE_FORM:String = "application/x-www-form-urlencoded";
public static const CONTENT_TYPE_SOAP_XML:String = "text/xml; charset=utf-8";
4、此处基本不用考虑策略文件的问题,策略文件一般只会引起安全错误SecurityErrorEvent.SECURITY_ERROR