0
我试图在Flash AS2中发送GET请求,但似乎无法找到关于如何返回URL内容的任何信息。Flash CS6 AS2获取URL的内容GET请求
该URL将返回纯文本而没有任何HTML标记,因此该URL的HTML代码将看起来像纯文本Plain text like this
。我希望这返回作为一个字符串。
因此类似于:http://www.example.com/?name=John&age=19将返回Submitted
。
我需要的字符串作为AS2条件语句,像使用方法:
if(returnedVal == "Submitted"){
nextFrame();
} else {
error_message._visible = true;
}