You understand that all data service calls are asynchronous?
I assume the code you posted is just excerpted lines? If that is really the way it is written, then that is the problem, and you do NOT understand that data service calls are asynchronous! Post a little more code, specifically the change hendler on the DG. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jason B Sent: Thursday, July 24, 2008 4:02 PM To: [email protected] Subject: [flexcoders] how to handle pausing or selecting an item on datagrid with a wait I'm trying to have action script handle selecting an item on the datagrid then loading a httpservice already defined. The code works in terms of selecting the item on the grid but only works on a second call ...it's almost like i need a pause in between the selectedIndex and the http service call. I also tried selecteditem but that doesnt work at all, at least i have it working on a second call but just wondering how to handle the call on the first try. stations_info_request.send(); //this sends off the http service station_searchgrid.selectedIndex=0; //this selects the item in the grid stationsearchgrid_click.send(); //this sends off the http service which gets a primary key from the selected item on the grid FAILS HERE !

