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

¹ØÓÚ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"/>         


Ïà¹ØÎĵµ£º

Flex ʱ¼ä¸ñʽ»¯ (ת»»)

ÔÚFlexÓ¦ÓÃÖг£³£ÐèÒªÒÔÒ»¶¨µÄ¸ñʽÀ´ÏÔʾʱ¼ä£¬ÒÔÏÂÊÇÒ»ÖÖ×ö·¨¡£
Ê×ÏÈ´´½¨Ò»¸öDateFormatter ¿Ø¼þ
<mx:DateFormatter id="df" formatString="YYYY-MM-DD JJ:NN:SS"/>
formatString="YYYY-MM-DD JJ:NN:SS"Ö¸¶¨ÁËʱ¼äµÄ¸ñʽΪ2009-6-20 19:02:27£¬ÕâÀï¿ÉÒÔÉèÖóÉ×Ô¼ºÐèÒªµÄ¸ñʽ¡£
È»ºóд¸öº¯Êý
    ......

Bug!Flex֡Ƶ×Ô¶¯1000!

ÓÃFlex4¼ÓÔØFlex3µÄ×é¼þʱ£¬·¢ÏÖÁËÕâ¸öÎÊÌ⣺
µ±ÓÃsparkÌí¼ÓÒ»¸ömx×é¼þʱ²»»áÓÐÎÊÌ⣬µ«µ±Õâ¸ömx×é¼þÖл¹ÓÐÆäËû×é¼þ
ÀýÈç<mx:HBox><mx:Canvas/></mx:HBox>±»Ìí¼Óµ½<s:Group></s:Group>
(×¢£ºÍ¨¹ýAS´úÂëʹÓÃaddElement()Ìí¼Ó£¬¶ø²»ÊÇÖ±½Óдµ½mxmlÖÐ)
stage.frameRate»á˲¼ä´ïµ½1000£¡
Ö® ......

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ