XML: " + myXML[0].toXMLString()+ ".\n";
results[0] = XML(event.result).toXMLString();
}
public function onServiceFault1(event:FaultEvent):void {
trace("service fault: " + event.fault.faultString);
}
public function onServiceResult1(event:ResultEvent):void {
output.text += "-> XML: " + myXML[1].toXMLString() + ".\n";
results[1] = XML(event.result).toXMLString();
}
public function onServiceFault2(event:FaultEvent):void {
trace("service fault: " + event.fault.faultString);
}
public function onServiceResult2(event:ResultEvent):void {
output.text += "-> XML: " + myXML[2].toXMLString()+ ".\n";
results[2] = XML(event.result).toXMLString();
}
public function run():void {
results[0] = new Object;
results[1] = new Object;
results[2] = new Object;
myXML[0] = ;
myXML[1] = ;
myXML[2] = X;
hsXMLEncode0.send(myXML[0]);
hsXMLEncode1.send(myXML[1]);
hsXMLEncode2.send(myXML[2]);
MXUnitManager.delay = 6000;
MXUnitManager.addTests(this,["Test_XML0", "Test_XML1", "Test_XML2"],10000);
}
public function Test_XML0():void {
output.text += "-> Result: " + results[0] + "\n";
Assert.isTrue(results[0] == "", "should be ");
}
public function Test_XML1():void {
output.text += "-> Result: " + results[1]+ "\n";
Assert.isTrue(results[1] == "", "should be ");
}
public function Test_XML2():void {
output.text += "-> Result: " + results[2]+ "\n";
Assert.isTrue(results[2] == "X", "should be X");
}
]]>