I have a data object that gets sent as a POST request by an HTTPService object, but I want to be able to access the data object in the result handler. What is the best way to do this?
Asked
Active
Viewed 1,058 times
1 Answers
1
var token:AsyncToken = httpService.send();
token.yourPropertyName = yourObject;
AsyncToken is a dynamic object so you can add properties at runtime. Then, in your result handler, you acces the token with :
event.token.yourPropertyName

Florian F
- 8,822
- 4
- 37
- 50