Reputation: 33
I have a global settings class, and i want to switch a var (to 1) in this class, when i call the send function and switch this var (to 0), when the result event dispatched.
I created a class, extends HTTPService..i can override the send function (override public function send(parameters:Object=null):AsyncToken), but how can i override the function, which call when the result arrived?
Thank you in advance for the answers!
Upvotes: 1
Views: 532
Reputation: 14221
I recommend you to use events but not to extend HTTPService
. So if you read documentation you can see three events which solves your problem: invoke
, result
and fault
. Just subscribe to them.
Upvotes: 3