hi …
I have created a test servlet to call my servlet from flash. here is the code … its just for testing …
this.btnServ.addEventListener (MouseEvent.CLICK, onMouseClick);
this.txtText.text = "Test";
function onMouseClick(mouseEvent: MouseEvent):void
{
this.txtText.text = "Sending request to the servlet";
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, fnXmlLoaded);
this.txtText.text = "Sending call to : " + this.txtPath.text;
xmlLoader.load(new URLRequest(this.txtPath.text));
}
function fnXmlLoaded (e:Event):void {
this.txtText.text = new XML(e.target.data);
}
On button click i send the request to the servelet whos path is given in text field. For first call it works fine … but if i press the button again, it does not send my call to servlet again … … why?