flex datagrid .net
==============flex===========
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="Service.GetCustomers.send();" width="689" height="592">
<mx:WebService id="Service" wsdl="http://localhost:4702/flex/Service.asmx?WSDL" useProxy="false">
<mx:operation name="GetCustomers">
</mx:operation>
</mx:WebService>
<mx:DataGrid x="25" width="100%" y="10" dataProvider="{Service.GetCustomers.lastResult.Tables.customer.Rows}">
<mx:columns>
<mx:DataGridColumn headerText="ID" dataField="id"/>
<mx:DataGridColumn headerText="±êÌâ" dataField="title"/>
<mx:DataGridColumn headerText="ÄÚÈÝ" dataField="content"/>
<mx:DataGridColumn headerText="ʱ¼ä" dataField="time"/>
<mx:DataGridColumn headerText="ÀàÐÍ" dataField="type"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
=========flex=======================
==========.net===================
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Data
Imports System.Data.SqlClient
'ÈôÒªÔÊÐíʹÓà ASP.NET AJAX ´Ó½Å±¾Öе÷ÓÃ´Ë Web ·þÎñ£¬ÇëÈ¡Ïû¶ÔÏÂÐеÄ×¢ÊÍ¡£
' <System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org
Ïà¹ØÎĵµ£º
.treeStyte{
selectionColor: #417597;
/* È¥µôĬÈÏͼ±ê */
folderClosedIcon: ClassReference(null);
folderOpenIcon: ClassReference(null);
&nbs ......
--------web.xmlÎļþ
<listener>
<listener-class>flex.messaging.HttpFlexSession</listener-class>
</listener>
--------Java´úÂë
public class GetSeesion {
/**
* ÉèÖÃsession
* */
public ......
ÔÚFlexÀïÃæ²»ÏñÔÚFlashÀïÃæËæÒâÖÆ×÷¶¯»ÁË£¬Flex¸üÇ÷ÏòÓÚÓ¦ÓóÌÐò£¬¶ø²»ÊǶ¯»ÖÆ×÷ÁË£¬ËùÒÔûÓÐÁËʱ¼äÖáµÄ¸ÅÄî¡£ÔÚFlexÖÐʹÓö¯»Ð§¹û£¬¿ÉÒÔÓÃFlex×Ô´øµÄEffect£¬»òÕß×ÔÒѶ¨ÖÆEffect£¬ÒòΪºÜ¶àÈ˶¼Ïë½èFlashÀïÃæµÄÒ»Ñù²Ù×÷Flex£¬±ÈÈçÔÚFlashÀïÃæ×öÒ»¸ö¶¯Ì¬°´Å¥ºÜÈÝÒ×£¬µ±Êó±êÒƶ¯µ½ÉÏÃæʱ£¬»áÓкܶ෢¹âµÄµãÅܳöÀ´£¨Ó«»ð³æÐ ......
ÐèÒª3¸öÎļþ¡£Ò»¸öÊÇÑùʽÀ࣬һ¸öÑùʽÎļþ£¬Ò»¸öÊÇmxmlÎļþ¡£
¡ñMyToolTip.as
package{
import mx.core.UITextField;
import mx.skins.halo.ToolTipBorder;
import mx.controls.ToolTip;
public class MyToolTip extends ToolTipBorder {
override ......
//»ñµÃÆÁÄ»µÄ·Ö±æÂÊ
var x:Number=Capabilities.screenResolutionX;
var y:Number=Capabilities.screenResolutionY;
Alert.show("x="+x+"y="+y);
µÚ¶þÖÖ·½·¨
Alert.show(stage.fullScreenWidth+"=="+stage.fullScreenHeight);
//»ñµÃstage£¨¹¤×÷Çø£©µÄ¿í¡¢¸ß
Alert.show(stage.stageWidth+"=="+stage.stageHei ......