Chris, I did not thoroughly test...Update these blocks in the AddressAutoComplete.mxml protected function results_click(event:MouseEvent):void
{
var o:Object = myResults.selectedItem;
if(o){
selectedAddress.text = o.Address;
myResults.visible = false;
myResults.height = 0;
dispatchEvent(new Event("addressSelected"));
stage.focus = null;
}
}
protected function keyUp(event:KeyboardEvent):void
{
//Calls webservice when input reaches the 2 character minimum and webservice is loaded
if (selectedAddress.text.length>2 && wsLoaded){
mySvc.addEventListener(ResultEvent.RESULT, searchResults);
mySvc.addEventListener(FaultEvent.FAULT, fail);
mySvc.findAddress(selectedAddress.text);
}
}
protected function init(event:FlexEvent):void
{
mySvc = new mx.rpc.soap.WebService();
mySvc.wsdl = "http://yourservice/xxxxx.asmx?wsdl";
mySvc.loadWSDL();
mySvc..addEventListener(LoadEvent.LOAD, load_listener);
}