Avatar

Correct answer by
Level 4
AsyncToken is one way to go. Here's an example where an
AsyncToken is used. Note that inline functions are being used for
result and fault handing but you can break these to seperate
functions as well.



var fillToken:AsyncToken = dsDataService.fill(arrayList);

fillToken.addResponder(new AsyncResponder(

function (result:Object, token:Object=null):void

{

// Do something with the result

},

function (error:Object, token:Object=null):void

{

// Do something with the error

}));

View solution in original post