出错的信息Error #2044: 未处理的 ioError:。 text=Error #2032: 流错误。 URL: http://localhost:8080/HelloWorldServlet?name=xu
at firstServer/greet()[D:\java\flex\firstServer\flex_src\firstServer.mxml:12]
at firstServer/__btn_click()[D:\java\flex\firstServer\flex_src\firstServer.mxml:24]
源码:
  <fx:Script>
<![CDATA[
import mx.controls.Alert;
internal function greet(){
new URLLoader( new URLRequest("http://localhost:8080/HelloWorldServlet?name=" + mytxt.text) )
.addEventListener(Event.COMPLETE, 
function(event : Event) : void
{
Alert.show(event.currentTarget.data);
btn.enabled = true;
}
);
btn.enabled = false;
}
]]>
</fx:Script>