----
FLEX で サーバからXMLを取得して、そのXMLを解析して処理しようと思い、以下のようなコードで実行しました。
service = new HTTPService();
service.url = "http://example.com/sample" ;
service.method = "GET";
service.addEventListener("result", httpResult);
service.addEventListener("fault", httpFault);
service.send();
しかし、結果として文字列がほしいのに、オブジェクトになってしまいます。
調査の結果 HTTPService の resultFormat に text を設定することで、無事に文字列として取得できるようになりました。
service.resultFormat = "text" ;
な感じ
service = new HTTPService();
service.url = "http://example.com/sample" ;
service.method = "GET";
service.addEventListener("
service.addEventListener("
service.send();
しかし、結果として文字列がほしいのに、
調査の結果 HTTPService の resultFormat に text を設定することで、
service.resultFormat = "text" ;
な感じ
コメントする