Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

FLEXÖÐTreeĬÈÏÕ¹¿ªËùÓнڵã

ÕâÀï·ÖÁ½ÖÖÇé¿ö£¬Ò»ÖÖÊÇÊý¾ÝÔ´ÔÚMXMLÎļþÖУ¬È磺
<mx:XML id="treeXML" format="e4x">
<root>
<node label="֪ͨͨ¸æ¹ÜÀí" data="0">
<node label="É걨֪ͨ" data="1" />
<node label="Ìî±íÐëÖª" data="1" />
<node label="É걨ָÄÏ" data="1" />
<node label="Á¢Ïîͨ¸æ" data="1" />
<node label="ÆäËü֪ͨͨ¸æ" data="1" />
<node label="ϵͳ°ïÖú" data="1" />
</node>
<node label="Óû§¹ÜÀí" data="0">
<node label="É걨µ¥Î»Óû§¹ÜÀí" data="2" />
<node label="¹é¿Ú²¿ÃÅÓû§¹ÜÀí" data="3" />
<node label="ÉóÅúÓû§¹ÜÀí" data="4" />
</node>
<node label="ϵͳÉèÖÃ" data="0">
<node label="²¿ÃÅÉèÖÃ" data="5" />
<node label="ÏîÄ¿Àà±ðÉèÖÃ" data="5" />
<node label="ÇøÓòÉèÖÃ" data="5" />
<node label="µ¥Î»Àà±ðÉèÖÃ" data="5" />
<node label="ÆóÒµÀàÐÍÉèÖÃ" data="5" />
<node label="¾­¼ÃÀàÐÍÉèÖÃ" data="5" />
<node label="ѧÀúÉèÖÃ" data="5" />
<node label="ÆóÒµÐÅÓõȼ¶ÉèÖÃ" data="5" />
</node>
</root>
</mx:XML>
Ò³Ãæµ÷Óãº
<mx:Tree id="myTree" dataProvider="{treeXML}" labelField="@label" showRoot="false" width="200" height="100%" />
ÕâÖÖÇé¿öÏ£¬Ö»ÒªÔÚÒ³ÃæÔØÈëʱcreationComplete="initApp()"È»ºóÓÃ
<mx:Script>
<!--[CDATA[

private function initApp():void {
for each(var item:XML in this.myTree.dataProvider)
this.myTree.expandChildrenOf(item,true);
}

]]-->
</mx:Script>
µ«ÊÇ»¹ÓÐÒ»ÖÖÇé¿ö£¬µ±Êý¾ÝÔ´²»°üº¬ÔÚMXMLÎļþÖÐʱ£¬Ò²¾ÍÊǵ±Êý¾ÝÔ´ÊÇ´Óºǫ́³ÌÐò»ñȡʱ£¬Ö±½ÓÓÃexpandChildrenOf(item,true)²»Æð×÷Ó㬻»Ò»ÖÖ·½Ê


Ïà¹ØÎĵµ£º

Java+FlexÕûºÏÓ¦Óüòµ¥Ê¾Àý (mx:RemoteObject)

1.java
Java´úÂë
package com;    
  
public class LoginDemo {    
        
    public String validate(String username,String password){    
   &nb ......

FlexǶÌ×ÈÝÆ÷µÄÉú³É´ÎÐò

֮ǰһֱûÔÚÒ⸸ÈÝÆ÷ºÍ×ÓÈÝÆ÷¸÷×ÔµÄÉú³É´ÎÐò£¬ÖªµÀÔÚÏîÄ¿ÖÐÓöµ½Ò»ÖÖcase:³õʼ»¯½çÃæʱ¸¸ÈÝÆ÷³õʼ»¯µÄÄÚÈÝÓÉ×ÓÈÝÆ÷Ïȳõʼ»¯ÔÙ´¥·¢£¬µ«ÊǸ¸ÈÝÆ÷±ØÐëÔÚ³õʼ»¯Ê±¾ÍÒѾ­¼ÓÉÏÁ˶Ô×ÓÈÝÆ÷µÄ¼à¿Ø¡£Õâ¾ÍÔì³ÉÒ»¶Ôì¶Ü£¬¼ÈÏëÏÈÉú³É×ÓÈÝÆ÷ÓÖÏëÏÈÉú³É¸¸ÈÝÆ÷¡£
ÏÈ×Ô¼ºÐ´¶Î´úÂë²âÊÔÒ»ÏÂÉú³É˳Ðò£¬¸¸ÈÝÆ÷
<?xml version="1.0" ......

Flex LogÄ£¿éÈëÃż°À©Õ¹

£¨Ò»£©ÈëÃÅ
Flex¼¯³ÉÒ»¸öLog¿ò¼Ü£¬¿ÉÒÔÍê³ÉºÜ¶àÓÃtrace()×ödebugʱÍê³É²»Á˵ŦÄÜ
Êä³ölogʱ¿ÉÒÔʵÏֵַȼ¶£¨¹²5+1¼¶£©£¬ÓùýÂËÆ÷Ö¸¶¨Êä³öµÄÀ࣬ÒÔ¼°Êä³ö·½Ê½£¨Ä¬ÈÏΪtrace£©
ÐèÒªÓõ½µÄÀà
¸ÃÀàλÓÚmx.logging°üÖУ¬
¹²ÐèÒªÈý¸öÀàºÍÒ»¸ö½Ó¿Ú
mx.logging.Log – Ö÷À࣬Óм¸¸ö¾²Ì¬·½·¨£¬Ìí¼Ó/ÒƳýTraceTargetºÍ»ñÈ ......

Flex±à³Ì×¢ÒâÖ®Flex Complier²ÎÊý

http://www.k-zone.cn/zblog/post/flex-compiler-parameter.html
ÏÂÃæµÄÁбíÌṩÁËmxmlcµÄһЩ¿ÉÑ¡²ÎÊý£º
ÊôÐÔ
ÃèÊö
accessible=true|false
ÊÇ·ñ¾ßÓпÉÀí½âÐÔ
actionscript-file-encoding
ÉèÖÃÎļþ±àÂë
advanced | mxmlc -help advanced
¼ìË÷mxmlc¸ß¼¶²ÎÊý
allow-source-path-overlap=true|false
ÑéÖ¤source-pat ......

Flex Êý¾ÝÒ×·¸´íÎó: ³£¼ûÎóÓúʹíÎó

¶ªÊ§¾²Ä¬´íÎó£¨SILENT ERROR£©
ÔÚijЩÇéÐÎÏ£¬°ó¶¨²Ù×÷Ëƺõ²»ÄÜÕý³£¹¤×÷£¬´ËʱÄã¿ÉÄܷdz£°ÃÄÕ²¢ÇÒ²»ÖªµÀÈçºÎ½øÐд¦Àí¡£
Óɰ󶨱í´ïʽÅ׳öµÄ¡¢»òÔڰ󶨿ò¼Üµ÷Óõİ󶨺¯ÊýÖгöÏÖµÄÒì³£ºÍ´íÎó¿ÉÒÔ±»¾²Ä¬²¶»ñ¡£Òò´Ë£¬Ä㽫²»»á¿´µ½ÔËÐÐʱÒì³££¬¶øÕâÔÚ Flash Player µÄµ÷ÊÔ°æ±¾ÖÐÊÇÄܹ»¿´µ½µÄ¡£Õâʱ£¬²»½ö°ó¶¨²Ù×÷²»Äܹ¤×÷£¬¶ø ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ