¹ØÓÚflexÖÐtreeµÄʼþ£¬Õ¹¿ªÊ¼þ
	
    
    
	£¨1£©treeµã»÷ʼþpublic function handleList(ev:ResultEvent)
		{
			sourceList=ev.result as ArrayCollection;
		}
		 private function tree_itemClick(evt:ListEvent):void { 
            var item:Object = Tree(evt.currentTarget).selectedItem;
            if (pmtree.dataDescriptor.isBranch(item)) {
                pmtree.expandItem(item, !pmtree.isItemOpen(item), true);
            }
           Alert.show(item["id"].toString());
        }
 
 
(2) ×Ô¶¯Õ¹¿ª
Tree. openItems=Êý¾ÝÔ´;  ¼´¿É
(3) FlexÖÐÈçºÎÀûÓÃdataDescriptorºÍlabelFunctionÊôÐÔ£¬ÒÔ¼°hasChildren()ºÍgetChildren()º¯ÊýÉèÖÃTreeÖаüº¬×Ó½Úµã¸öÊý¡£1.	<?xml version="1.0" encoding="utf-8"?> 
2.	<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
3.	        layout="vertical" 
4.	        verticalAlign="middle" 
5.	        backgroundColor="white"> 
6.	  
7.	    <mx:Script> 
8.	        <!--[CDATA[ 
9.	            private function tree_labelFunc(item:XML):String { 
10.	                var label:String = item.@label; 
11.	                if (tree.dataDescriptor.hasChildren(item)) { 
12.	                    label += " (" + tree.dataDescriptor.getChildren(item).length + ")"; 
13.	                } 
14.	                return label; 
15.	            } 
16.	        ]]--> 
17.	    </mx:Script> 
18.	  
19.	    <mx:XML id="treeDP"> 
20.	        <root> 
21.	            <node label="i) One" /> 
22.	            <node label="i) Two" /> 
23.	            <node label="i) Three" /> 
24.	            <node label="i) Four"> 
25.	                <node label="ii) One" /> 
26.	                <node label="ii) Two" /> 
27.	                <node label="ii) Three"> 
28.	                    <node label="iii) One" /> 
29.	                    <node label="iii) Two" /> 
30.	                </node> 
31.	                <node label="ii) Four" /> 
32.	            </node> 
33.	         
    
     
	
	
    
    
	Ïà¹ØÎĵµ£º
        
    
    <?xml version="1.0" encoding="utf-8"?>
<mx:Application fontSize="12" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
 <mx:Script>
  <![CDATA[
   public var treeXml: XML = <nodes name="ËùÓÐ">
 &n ......
	
    
        
    
    flex¸÷×é¼þ¶ÔÓ¦µÄÑùʽÊôÐÔÉÏ2007-10-2515:47¸÷×é¼þ¶ÔÓ¦µÄÑùʽÊôÐÔ
themeColorÖ÷ÌâÑÕÉ«£ºÈç¹û¶ÔÉ«²ÊÑùʽÅäÖò»Ïë¹ý¶àµÄÈ¥ÉèÖõϰ£¬themeColorÊÇÒ»¸öÑ¡Ôñ¡£Ëü¿É
ÒÔÈÃÄãÑ¡ÔñÒ»ÖÖ»ù±¾É«²Ê£¬È»ºó×é¼þµÄ±ß¿ò£¬Íâ¹ÛµÈÉ«²Ê½«»áÒÔ´ËÉ«²ÊΪ»ù´¡¹¹³ÉÒ»×éȱʡµÄÑùʽ£¬×é¼þ¾ù¿ÉʹÓôËÑùʽÊôÐÔ¡£
Application×é¼þÑùʽÊôÐÔ
background ......
	
    
        
    
    import flash.display.DisplayObject;
import mx.core.Application;
import mx.managers.PopUpManager;
var win:TestWindows= PopUpManager.createPopUp(DisplayObject(Application.application),TitleWindows,true) as TitleWindows;
PopUpManager.centerPopUp(win); ......
	
    
        
    
    Ò»¡¢¹úÍâÕ¾µã
1.×ÊÔ´ Àà
Adobe Flex 2 Component Explorer £º ¹Ù·½µÄ£¬Õ¹Ê¾Á˸÷ÖÖ×é¼þ µÄÓ÷¨ £¬ÈëÃÅ ±Ø¿´¡£
CFlex £ººÜºÃµÄÒ»¸öFlex×ÊÔ´Õ¾µã£¬°üÀ¨½Ì³Ì £¬ÐÂÎÅ£¬×ÊÔ´Õ¾µã…… Ö»ÊÇÒ³ÃæÓеãÔÓÂÒ£¬´ó¼ÒÒ»°ã¿´ÓÒ±ßÄÇÒ»À¸¾ÍÐÐÁË¡£
FlexBox £ºÒ»¸öÊÕ¼¯ ÁËÍøÉϺܶ࿪Դ ×é¼þµÄÕ¾µã£¬Êǽø½×ѧϰ µÄºÃ°ïÊÖ¡£
Flex ......
	
    
        
    
    firefoxϵ±flashÉèÖòÎÊý wmode Ϊ transparent »òÕß Opaque ʱºòÎı¾¿òÖÐÊäÈëÖÐÎÄ»á³öÏÖÎÊÌâ¡£
µÍ°æ±¾µÄfirefoxÖÐÎÞ·¨ÊäÈëÖÐÎÄ£¬¸ß°æ±¾ÖÐÔò³öÏÖÂÒÂë¡£
ÂÒÂëÓëflashºÍÒ³Ãæ±àÂ뷽ʽ¶¼Ã»ÓйØÏµ£¬ÊÇfirefoxµÄbugÔì³ÉµÄ¡£
½â¾ö·½·¨Ö»ÓÐʹÓÃwmodeµÄĬÈÏÖµ£¬µ«ÊÇÕâÑùʹµÃflashÔÚÕû¸öÒ³ÃæµÄ×îÉϲ㣬divµÈ¶¼»á±»ÆäÕÚµ²×¡¡£
¼Ç ......