¹ØÓÚflex×Ô´øµÄ±íµ¥ÑéÖ¤
ÏÂÃæËµÒ»ÏÂÎÒÀí½âºóµÄÓ÷¨°É¡£½ö½öÊǸö¼Ç¼À²……-¡£-Ã²ËÆÃ»Ê²Ã´¼¼Êõº¬Á¿¡£
Ê×ÏÈ£¬¸øvalidatorÆð¸öid²»Óöà˵À²£»
required ÊǸöbooleanÀàÐ͵ÄÖµ£¬´óÖµÄÒâ˼ÊÇ˵£¬ÑéÖ¤µÄÕâ¸öÖµÊDz»ÊDZØÐëµÄ£¨Õâ²»ÊÇ·Ï»°Â²»ÊDZØÐëµÄ£¬ÎÒ¸ÉÂïÒªÑéÖ¤……£©ºÃ°É£¬ÉèÖÃΪtrue£»
requiredFieldError Õâ¸ö¶«Î÷ºÜºÃÓ㬾ÍÊÇ´íÎóÌáʾ¿òÄÚµÄÎÄ×ÖÃèÊö¡£Ò»°ãʱºòĬÈϵͼÊÇÓ¢Îĵ쬏æËßÄã"This field is required."-¡£-ÎÒÓ¢ÎIJ»ºÃ£¬»¹ÊǸijÉÖÐÎĵİɣ»
source ×ÖÃæÀí½âÊÇÔ´µÄÒâ˼ÊǰɅ…ËüÊÇ˵£¬ÄãÒªÑéÖ¤Äĸö×é¼þ£¬ÇÃÈëÕâ¸ö×é¼þµÄid¾Í¿ÉÒÔÁË£»
property ºÜÓÐÓõĶ«Î÷£¬ÒòΪÎÒlinksetnameÊǸöTextInput£¬ÄÇôÎÒÑéÖ¤µÄ¾ÍÊÇËüÀïÃæµÄÎÄ×ÖÄÚÈÝ£¬Ò²¾ÍÊÇÊôÓÚtextÀàÐÍÁË£»
trigger ´¥·¢Æ÷£¬ÊÇÖ¸£¬ÄãÒªÈÃËÀ´´¥·¢Õâ¸öÑéÖ¤£¬Õâ¸öÖµÊÇÄã´¥·¢×é¼þµÄid£¬ÎҵĴ¥·¢Æ÷affirmÊǸöbutton£»
triggerEvent Õâ¸öÖµµÄÒâ˼ÊÇÄãÒªÔÚʲôʼþÏÂÀ´´¥·¢Õâ¸öÑéÖ¤£¬ÎÒµÄaffirmÊǸöbutton£¬ËùÒÔÎÒÏ£ÍûËüÔÚµã»÷£¨click£©µÄʱºòÀ´´¥·¢Õâ¸öÑéÖ¤¡£
µ½´Ë£¬Ò»¸ö¼òµ¥µÄÎı¾¿òÊÇ·ñÊäÈëÎÄ×ÖµÄÑéÖ¤OK¡£
µ«ÊÇ£¬ÎÒµÄÒ³Ãæ²»¹âÖ»ÓÐÎı¾¿ò¶øÒÑ£¬ÓÐÒ»¸öΰ´óµÄdatagrid£¬ÎÒÏ£ÍûËüÄܶÔdatagridÀïÃæÊÇ·ñÓÐÖµÒ²ÄܽøÐÐÅжϣ¬ÓÚÊÇ£¬¾ÍÏëµ½£¬ÔÚ¶Ô datagrid½øÐÐÑéÖ¤µÄʱºò½«property µÄÖµ¸ÄΪdataprovide£¬¶ÔdatagridµÄÊý¾ÝÔ´½øÐÐÑéÖ¤£¬Èç¹ûΪ¿ÕµÄÇé¿öÏ£¬¾ÍÌáʾ£¬datagridÀïÃæµÄÊý¾ÝΪ¿Õ¡£ÈçÏÂͼ£º
<mx:Validator id="addlinkValid" required="true"
requiredFieldError="±ØÐëҪѡÔñ¶ÔÓ¦µÄÁ´Â·ÐÅÏ¢"
source="{alreadyAddLink}" -->´Ë´¦ÊÇdatagridµÄid
property="dataProvider" -->ÕâÊÇÎÒÒªÑéÖ¤datagridµÄdataprovideµÄÒâ˼
trigger="{affirm}" -->´¥·¢Æ÷»¹ÊÇÈ·Èϰ´Å¥
triggerEvent="click"/>
Ïà¹ØÎĵµ£º
Spring IoCµÄÖ÷Ҫ˼ÏëÊÇʹÓÃÈÝÆ÷À´ÊµÀý»¯×é¼þ£¨²¢¸ø×é¼þ×¢ÈëËùÒÀÀµµÄ£©¡£µ«ÊÇÒ»°ãÇé¿öÏ£¬ÓÉFlex¿Í»§¶ËËùÔ¶³Ì·ÃÎʵÄ×é¼þÊÇÔÚ·þÎñÆ÷ÖÐÓÉBlazedsÀ´ÊµÀý»¯µÄ¡£Òò´ËÅäÖÃBlazeDSÀ´ÈÃSpringÈÝÆ÷¸ºÔðʵÀý»¯Spring beans¡£BlazeDSÖ§³Ö¹¤³§µÄ¸ÅÄîÀ´Ê¹µÃÕâÖÖ×Ô¶¨Òå×é¼þ¿ÉÒÔʵÀý»¯¡£¹¤³§µÄ×÷Óýö½öÊÇÏòBlazeDSÌá¹©Ò ......
֮ǰһֱûÔÚÒ⸸ÈÝÆ÷ºÍ×ÓÈÝÆ÷¸÷×ÔµÄÉú³É´ÎÐò£¬ÖªµÀÔÚÏîÄ¿ÖÐÓöµ½Ò»ÖÖcase:³õʼ»¯½çÃæÊ±¸¸ÈÝÆ÷³õʼ»¯µÄÄÚÈÝÓÉ×ÓÈÝÆ÷Ïȳõʼ»¯ÔÙ´¥·¢£¬µ«ÊǸ¸ÈÝÆ÷±ØÐëÔÚ³õʼ»¯Ê±¾ÍÒѾ¼ÓÉÏÁ˶Ô×ÓÈÝÆ÷µÄ¼à¿Ø¡£Õâ¾ÍÔì³ÉÒ»¶Ôì¶Ü£¬¼ÈÏëÏÈÉú³É×ÓÈÝÆ÷ÓÖÏëÏÈÉú³É¸¸ÈÝÆ÷¡£
ÏÈ×Ô¼ºÐ´¶Î´úÂë²âÊÔÒ»ÏÂÉú³É˳Ðò£¬¸¸ÈÝÆ÷
<?xml version="1.0" ......
´«Í³µÄÔÚFlex¹¤³ÌÖÐÌí¼ÓModuleµÄ·½·¨ÊÇ£ºÔÚFlashBuilderÖÐÓÒ¼ü¹¤³ÌĿ¼->Porperties->Flex Modules, È»ºó¾Í¿ÉÒÔadd/edit/removeÐèÒªµÄmoduleÁË£¬
µ«ÎÊÌâ ÊÇÎÞÂÛÌí¼Ó¶àÉÙmodule¶¼Òªµã»÷add°´Å¥Ò»¸öÒ»¸öÌí¼Ó! ÏñÎÒÃǵÄÏîĿһ¸ödemo¾ÍÓÃÁ˺ü¸Ê®¸ömodule£¬Ò»¸öÒ»¸öÌí¼Ó¿ÉÒª·³ËÀÁË
ÍøÉÏËÑ‘ÅúÁ¿Ìí¼Ómodule&rsquo ......
1£ºhttp://bbs.9ria.com/viewthread.php?tid=44441
2£ºhttp://help.adobe.com/en_US/flex/using/WSA95C9644-B650-4783-B5C0-D2C7F95A23E3.html#WS46970071-A39D-49de-B881-66F639787305
3£ºhttp://flex4jiaocheng.com/blog/268
4£ºhttp://www.k-zone.cn/zblog/post/flash-builder-gumbo-customer-sparkskin.html
5£ºhtt ......
ǰһÕóÔÚÂÛ̳ÉÏ¿´µ½Ò»¸öÐֵܣ¬ÏëÔÚFlex ChartÖÐΪͼÀýÉèÖÃ3DЧ¹û,½ü¼¸Ìì²éÕÒÁËЩ×ÊÁÏ£¬¶¯ÊÖ×öÁ˸öDEMO¹©´ó¼Ò²Î¿¼!
DEMOÑÝʾµØÖ·http://xingjunli.webs.com/flash/flexChartDemo.swf,ÏÈÀ´¸öͼƬ¿´¿´×îÖÕЧ¹û:
Ïà¹ØÖªÊ¶µã
1¡¢Í¼±íʹÓÃµÄ ......