On Thu, May 28, 2009 at 11:28 PM, Laurence MacNeill
<[email protected]> wrote:
> I think he means he wants to work on the data from within the calling
> function, rather than having to go to a result-handler function to use the
> data? I didn't know that was possible, but I'm pretty new to Flex, so
> perhaps it's just something I've not yet experienced.
That's not possible. Very annoying at times. The best you can do is to
set up an inline event handler:
component.loadData();
component.addEventListener("complete", function (e:*):void {
// process data
});
I try to avoid that though in all but the rarest cases. It makes the code messy.
Manish