学习flash数据库--架构.net开发(待续)-1
2006-09-27 02:29
267 查看
'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可以是任何的数据类型
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可以是任何的数据类型
相关文章推荐
- ASP.NET C#学习二(数据库开发)
- ACCP学习旅程之-----使用C#开发数据库应用程序(第六章 用ADO.NET连接数据库)
- 【ASP.NET开发】ASP.NET(MVC)三层架构知识的学习总结
- 黑马程序员_学习日记45_612数据库开发及ADO.Net(SQL语言)
- [转载]学习笔记《.NET框架程序设计(修订版)》--第一章 Microsoft .NET框架开发平台体系架构(1)
- ACCP学习旅程之-----使用C#开发数据库应用程序(第七章 用ADO.NET查询和操作数据库)
- 【ASP.NET开发】ASP.NET(MVC)三层架构知识的学习总结 分类: ASP.NET 2012-09-27 17:09 1985人阅读 评论(1) 收藏
- 黑马程序员_学习日记46_614数据库开发及ADO.Net(约束、数据检索)
- asp.net,C#,sqlserver,数据库,iis,js,异常,兼容,搜索,性能,备份,编辑器,存取分离,lucene,SEO优化,产品,运营,MVC,三层架构,nhibernate,microsoft,freamwork,网站开发联盟群号:
- 【ASP.NET开发】ASP.NET(MVC)三层架构知识的学习总结
- 黑马程序员_学习日记47_615数据库开发及ADO.Net(连接字符串、SqlDataReader对象、连接池)
- 黑马程序员_学习日记49_618数据库开发及ADO.Net(多条件搜索、case…when…语句、索引Index、子查询、分页、Join语句)
- [转载]学习笔记《.NET框架程序设计(修订版)》--第一章 Microsoft .NET框架开发平台体系架构(2)
- 数据库开发及ADO.NET学习笔记(二)
- 【ASP.NET开发】ASP.NET(MVC)三层架构知识的学习总结
- 黑马程序员_学习日记48_616数据库开发及ADO.Net(带参数的Sql语句、数据库与文本文件导入导出、省市联动、资料管理器、DataSet (ado.net断开式数据访问)、SQLHelper)
- 黑马程序员_学习日记50_619数据库开发及ADO.Net(临时表、表变量、视图、变量、if…else…和while、事务、存储过程、触发器)
- 【ASP.NET开发】ASP.NET(MVC)三层架构知识的学习总结
- ASP.NET ZERO 学习 —— (7) 开发手册之基础架构
- 黑马程序员_学习日记51_621数据库开发及ADO.Net(游标、动态sql)