public function callService():void { myService.cancel(); var params:Object = new Object(); params.param1 = 'val1'; myService.send(params); }