2013年5月22日

在HTML页面中嵌入flex(flash),并向flex传参(一)

摘要: 1 下载swfobject.js类库,加入到项目中,并在页面中导入2 调用无法正常加载flash地图 阅读全文

posted @ 2013-05-22 14:46 看天空的星星 阅读(344) 评论(0) 推荐(0) 编辑

自绘组件在infoWindow中显示(arcgis flex)

摘要: 1 自定义悬浮框<?xml version="1.0" encoding="utf-8"?><mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="80" height="30"> <fx:Dec 阅读全文

posted @ 2013-05-22 11:08 看天空的星星 阅读(455) 评论(0) 推荐(0) 编辑

在infoWindow中显示Geocode server(地理编码服务)

摘要: 定义locator标签<esri:Locator id="locator" url="http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer" locationToAddressComplete="onLocationToAddressComplete(event)" fault="myService_faultHandler(event)" concurrency="last"/>给点添加鼠标事件//给点 阅读全文

posted @ 2013-05-22 10:57 看天空的星星 阅读(256) 评论(0) 推荐(0) 编辑

HTTPService读取XML(Actionscript)

摘要: import mx.rpc.http.HTTPService;var configService:HTTPService = new HTTPService();configService.url = "javaServer.xml"; //XML路径configService.resultFormat = HTTPService.RESULT_FORMAT_TEXT; configService.addEventListener(ResultEvent.RESULT, configService_resultHandler); //回调函数 ... 阅读全文

posted @ 2013-05-22 10:46 看天空的星星 阅读(259) 评论(0) 推荐(0) 编辑

一个remoteobject调用多个java方法(Actionscript)

摘要: import mx.rpc.remoting.RemoteObject;var myJavaService:RemoteObject = new RemoteObject(); myJavaService.endpoint = configXML.port; //http://192.168.9.180:8080/suizhou_visit/messagebroker/amf myJavaService.destination = "demoservice"; myJavaService.showBusyCursor = true; myJavaService.addEve 阅读全文

posted @ 2013-05-22 10:39 看天空的星星 阅读(236) 评论(0) 推荐(0) 编辑

extjs grid renderer用法(转)

摘要: 今天在做项目时,需要在列表中的某列添加一个超链接,首先要取得当前选中行的数据,判断数据类型,然后链接到不同的页面,研究下。发现ExtJs提供了一个很强的方法如下:1 var cm = new Ext.grid.ColumnModel(2 [3 new Ext.grid.RowNumberer({ header: "", width: 20, align: 'center' }),4 { header: '', align: 'center', dataIndex: 'AccountAndRoseID', wid 阅读全文

posted @ 2013-05-22 10:32 看天空的星星 阅读(273) 评论(0) 推荐(0) 编辑

ExtJs ajax调用汇总(转)

摘要: 1 //异步ajax调用 2 /** 3 * 异步调用ajax,成功后返回值,作为回调函数的参数 调用失败会提示 4 * 5 * @param {} 6 * urlStr 7 * @param {} 8 * paramsObj 9 * @param {}10 * callbackFunc11 */12 function ajaxCall(urlStr, paramsObj, callbackFunc) {13 Ext.Ajax.request({14 url : ur... 阅读全文

posted @ 2013-05-22 09:29 看天空的星星 阅读(316) 评论(0) 推荐(0) 编辑

导航