FlexWebService.mxml
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
private var com:String ;
private var cio:String ;
public function addCompany():void {
com = company.text ;
cio = ceo.text ;
ws.put(com,cio);
}
public function seeCeo():void {
var str:String;
str = company.text;
ws.get(str);
}
public function showInfo(event:ResultEvent):void {
var str:String;
str = event.result.toString();
Alert.show(str,"凯旋",2);
}
]]>
paddingTop="10" paddingLeft="10" paddingRight="10">
阅读(792) | 评论(0) | 转发(0) |