Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个由 HTTPService 对象作为 POST 请求发送的数据对象,但我希望能够访问结果处理程序中的数据对象。做这个的最好方式是什么?
var token:AsyncToken = httpService.send(); token.yourPropertyName = yourObject;
AsyncToken 是一个动态对象,因此您可以在运行时添加属性。然后,在您的结果处理程序中,您使用以下命令访问令牌:
event.token.yourPropertyName