U Have Website We have Cash
If you have website put our banner on it, make money for each visitor
dollarsincome.com

想想

女人一定要有勇气,无论是对爱情也好,对生活也好。如果什么事总是畏首畏尾,那么人生就白白流过了.

导航

学习flash数据库--架构.net开发(待续)-1

'asp.net向flash传递数据类型,处理脚本:
import mx.rpc.ResultEvent;
function myApp_Result(re:ResultEvent):Void{
 trace(re.result);
 }
'调用服务端远程方法:
import mx.remoting.PendingCall;
var pc:PendingCall=myService.helloworld();
'结果处理函数
import mx.rpc.RelayResponder;
pc.responder=new RelayResponder(this,"getData_Result","getData_Fault");
function getData_Result(re:ResultEvent):Void{
 trace(re.result);
 }
'改变RecordSet对象的模式
import mx.remoting.RecordSet;
if(myMovieClip.deliveryMode.getData()=="page"){
 theRecordSet.setDeliveryMode("page",contact_grid.getRowCount(),1);
}else if(myMovieClip.deliveryMode.getData()=="fetch"){
 theRecordSet.setDeliveryMode("fetch",25);
}else{
 theRecordSet.setDeliveryMode("ondemode");
 }
'RecordSet既可以是从remoting返回的,也可以是本地的RecordSet;
UI组件显示RecordSet的内容
function getProducelist_Result(re:ResultEvent):Void{
 catalogListBox.dataProvider=re.result;
 }//re.result可以是任何的数据类型

posted on 2006-09-27 02:29  想想  阅读(277)  评论(0编辑  收藏  举报