1

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?

Anonymous1
  • 3,877
  • 3
  • 28
  • 42

1 Answers1

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