Apologies if this question has been answered before, but I am a newbie to flex (and to web programming in general).
I have a situation where I need to make calls to two different remote objects (ColdFusion queries) where one query depends on the results of the other. Call 1 needs to be completed before Call 2 can execute. How do you figure out when Call 1 has retrieved all its data, so that Call 2 can be processed? Is some sort of event dispatched? I've tried executing call two after loading the data from Call 1 into an Array Collection, but it always results in the following error: Cannot access a property or method of a null object reference. which I assume is because the data returned hasn't yet been bound to the model. I can get the two calls to work when I manually dispatch the event (with a Button click) after I see the results returned from Call 1 in a datagrid, but this is not an ultimate solution, since this needs to happen without user input. Any suggestions? I'm completely befuddled. If you need more info or want to see the code, let me know. Thanks.

