flex datagrid ¶à¸öµ¥Ñ¡°´Å¥
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" layout="absolute" xmlns:ns1="com.component.*">
<mx:Script>
<![CDATA[
import com.component.DataHBox;
import com.component.GridDataObject;
import mx.collections.ArrayCollection;
import mx.controls.dataGridClasses.DataGridColumn;
import mx.controls.Alert;
[Bindable]
var xml:XML=
<root><data name='µÂÑôÊÐÎÀÉúÖ´·¨¼à¶½Ëù' pid='10777 ' czjb='2' flag="2"/>
<data name='̩ɽÉçÇøÎÀÉú·þÎñÖÐÐÄ' pid='10795 ' czjb='3' flag="3"/>
<data name='°Ë½ÇÕòÎÀÉúÔº' pid='10783 ' czjb='2' flag="2"/>
<data name='µÂÑôÊеڶþÈËÃñÒ½Ôº' pid='10770 ' czjb='3' flag="3"/>
<data name='Ñï¼ÎÕòÎÀÉúÔº' pid='10794 ' czjb='2' flag="2"/>
</root>;
[Bindable]
var arry:ArrayCollection=new ArrayCollection;
function test(evt:Event):void{
var s:DataHBox=DataHBox(evt.currentTarget);
Alert.show(grid.selectedItem.@name+":"+":"+grid.selectedItem.@index+":"+s.itemValue)
}
function init():void{
var length:int=xml.data.length();
var a:Array=[];
for(var i:int=0;i<length;i++){
var s:GridDataObject=new GridDataObject;
s.name=xml.data[i]
Ïà¹ØÎĵµ£º
Flex 4´ø¸øÎÒÃǵģ¬ÊÇȫеÄÃüÃû¿Õ¼ä¡£Á˽âÕâЩÃüÃû¿Õ¼ä±Ø¶¨ÊÇÒ»¼þºÃÊÂÇé¡£Flex 4ÓÐÈý¸ö·Ç³£ÖØÒªµÄÃüÃû¿Õ¼ä£¬·Ö±ðÊÇ£º
xmlns:fx=”http://ns.adobe.com/mxml/2009″
xmlns:mx=”library://ns.adobe.com/flex/halo”
xmlns:s=”library://ns.adobe.com/flex/spark”
1¡¢xmlns:fx=&rdqu ......
´ËÀýչʾÁËÈçºÎÔÚ Flex 4 ÖÐΪ Halo ¿Ø¼þÉèÖÃ¾ÉµÄ Halo Ƥ·ô£¬¶ø²»ÊÇÐ嵀 Spark Ƥ·ô¡£
<?xml version="1.0" encoding="utf-8"?>
<!-- http://www.slsay.com/archives/131 -->
<s:Application name="Spark_Halo_theme_test"
xmlns:fx="http://ns.adobe.com/mxml/2009"
&nbs ......
µÚÒ»Õ Flex ÊÇÈçºÎ¹¤×÷µÄ
¸Ã²¿·ÖÎĵµµÄÄÚÈÝÊÇΪÓû§Ìṩ¹ØÓÚ Adobe.Flex ¹¤×÷»úÖÆµÄÒ»¸ö¿ìËÙ×ÛÊö¡£Í¨¹ý±¾ÕÂ
½ÚµÄѧϰ£¬Äã¿ÉÒÔ´´½¨ÄãµÄµÚÒ»¸ö Flex Ó¦ÓóÌÐò£¬²¢½«ËüÓëÄãÒÔǰËùÊìϤµÄ Web ¿ª·¢¼¼Êõ
½øÐбȽϣ¬ÒÔÁì»á Flex µÄÄÚººÍ¾«Ëè¡£
µÚÒ»½Ú ¹¹½¨²¢ÔËÐÐ Flex Ó¦ÓóÌÐò
Flex ÊÇÒ»¸öÌṩ¿ª·¢Éè¼ÆºÍÔËÐÐÖ§³Öµ ......
flex´úÂ룺
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
<fx:Script>
<!--[CDATA[
i ......