Extending ActionScript classes to provide AsyncToken like behavior
Extending ActionScript classes to provide AsyncToken like behavior
http://corlan.org/2008/08/11/extending-actionscript-classes-to-provide-asynctoken-like-behavior/
1. Rob McKeown on August 11th, 2008 5:29 pm
@Rob McKeown
Good point.
Indeed, I would have a problem in this case. So, the way you should use MyLoader for multiple calls is to instantiate for each call if you plan to do multiple calls one after another.
Wouldn’t you have a problem if you used the same loader to make more than one async call given that it is possible that a second request could be sent before the first response comes back? Since the token is just being stored in the loader, any subsequent call would overwrite the previous value making it impossible to “link” the data to its request.
I think the AsyncToken in flex does not have that issue.