- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
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
}));
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
}));
Views
Replies
0 Likes
Total Likes