box-o-sand/flex-practice/03a3-crud-static/static-employees.as

21 lines
382 B
ActionScript
Raw Normal View History

2010-02-18 18:32:20 +00:00
import mx.rpc.events.ResultEvent;
private var params:Object;
[Bindable]
private var result:XML;
private function initApp():void{
employeesService.cancel();
params= new Object();
}
public function resultHandler(event:ResultEvent):void {
result = XML( event.result);
}
public function fill():void{
viewstack1.selectedIndex=1;
employeesService.send(params);
}