flex ÕýÔò±í´ïʽѧϰ×ÊÁÏ
flex ÕýÔò±í´ïʽѧϰ×ÊÁÏ
Ò»°ãÀ´Ëµ¸÷¸ö¿ª·¢»·¾³»òÕßÓïÑÔ¶ÔÓÚÕýÔò±í´ïʽµÄ
ʵÏÖ²»ÊÇÍêÈ«Ò»ÑùµÄ£¬µ«ÊDzî±ð¶¼·Ç³£Ï¸Î¢¡£AS3°´ÕÕECMA262±ê׼ʵÏÖÕýÔò±í´ïʽ£¬¸Ð¾õ°ïÖúÎĵµ¶ÔÕⲿ·Ö½éÉܵIJ»ÊǺܺ㬺ܶà¸ÅÄûÓн²Çå³þ£¬ÕâÀïÕÒµ½ÁËÒ»¸ö²»´íµÄѧϰ×ÊÁÏ£¬Èç¹û°ïÖúÎĵµÀïÃæÓп´²»¶®µÄ¿ÉÒԲο¼Ï£¡
½Ò¿ªÕýÔò±í´ïʽµÄÉñÃØÃæÉ´ ¹Ø±Õ¸ßÁÁ
[Ô´´ÎÄÕ£¬×ªÔØÇë±£Áô»ò×¢Ã÷³ö´¦£ºhttp://www.regexlab.com/zh/regref.htm
]
ÒýÑÔ
ÕýÔò±í´ïʽ£¨regular expression£©¾ÍÊÇÓÃÒ»¸ö“×Ö·û´®”À´ÃèÊöÒ»¸öÌØÕ÷£¬È»ºóÈ¥ÑéÖ¤ÁíÒ»¸ö“×Ö·û´®”ÊÇ·ñ·ûºÏÕâ¸öÌØÕ÷¡£±ÈÈç
±í´ïʽ“ab+” ÃèÊöµÄÌØÕ÷ÊÇ“Ò»¸ö 'a' ºÍ ÈÎÒâ¸ö 'b' ”£¬ÄÇô 'ab', 'abb', 'abbbbbbbbbb'
¶¼·ûºÏÕâ¸öÌØÕ÷¡£
ÕýÔò±í´ïʽ¿ÉÒÔÓÃÀ´£º£¨1£©ÑéÖ¤×Ö·û´®ÊÇ·ñ·ûºÏÖ¸¶¨ÌØÕ÷£¬±ÈÈçÑéÖ¤ÊÇ·ñÊǺϷ¨µÄÓʼþµØÖ·¡££¨2£©ÓÃÀ´²éÕÒ×Ö·û´®£¬´ÓÒ»¸ö³¤µÄÎı¾ÖвéÕÒ·ûºÏÖ¸¶¨ÌØÕ÷µÄ×Ö·û´®£¬±È²éÕҹ̶¨×Ö·û´®¸ü¼ÓÁé»î·½±ã¡££¨3£©ÓÃÀ´Ìæ»»£¬±ÈÆÕͨµÄÌæ»»¸üÇ¿´ó¡£
ÕýÔò±í´ïʽѧϰÆðÀ´ÆäʵÊǺܼòµ¥µÄ£¬²»¶àµÄ¼¸¸ö½ÏΪ³éÏóµÄ¸ÅÄîÒ²ºÜÈÝÒ×Àí½â¡£Ö®ËùÒԺܶàÈ˸оõÕýÔò±í´ïʽ±È½Ï¸´ÔÓ£¬Ò»·½ÃæÊÇÒòΪ´ó¶àÊýµÄÎĵµÃ»ÓÐ×öµ½ÓÉ
dzÈëÉîµØ½²½â£¬¸ÅÄîÉÏûÓÐ×¢ÒâÏȺó˳Ðò£¬¸ø¶ÁÕßµÄÀí½â´øÀ´À§ÄÑ£»ÁíÒ»·½Ã棬¸÷ÖÖÒýÇæ×Ô´øµÄÎĵµÒ»°ã¶¼Òª½éÉÜËüÌØÓеŦÄÜ£¬È»¶øÕⲿ·ÖÌØÓеŦÄܲ¢²»ÊÇÎÒÃÇ
Ê×ÏÈÒªÀí½âµÄ¡£
ÎÄÕÂÖеÄ
ÿһ¸ö¾ÙÀý£¬¶¼¿ÉÒÔµã»÷½øÈëµ½²âÊÔÒ³Ãæ½øÐвâÊÔ¡£Ïл°ÉÙ˵£¬¿ªÊ¼¡£
[ µã»÷ÏÂÔØ chm °æ±¾] - DEELX ÕýÔòÓï·¨£¬°üº¬ÆäËû¸ß¼¶Óï·¨µÄ chm °æ±¾¡£
£¨×¢Ò⣺ÏÂÔØµÄ chm °æ±¾ÊʺÏÓÃÀ´²éÔÄ£¬¶ø±¾ÎÄÊʺÏÓÃÀ´Ñ§Ï°£¬½¨Òé¼ÌÐøÔĶÁ¡££©
--------------------------------------------------------------------------------
1. ÕýÔò±í´ïʽ¹æÔò
1.1 ÆÕͨ×Ö·û
×Öĸ¡¢Êý×Ö¡¢ºº×Ö¡¢Ï»®Ïß¡¢ÒÔ¼°ºó±ßÕ½ÚÖÐûÓÐÌØÊⶨÒåµÄ±êµã·ûºÅ£¬¶¼ÊÇ"ÆÕͨ×Ö·û"¡£±í´ïʽÖеÄÆÕͨ×Ö·û£¬ÔÚÆ¥ÅäÒ»¸ö×Ö·û´®µÄʱºò£¬Æ¥ÅäÓëÖ®ÏàͬµÄÒ»¸ö×Ö·û¡£
¾ÙÀý1£º±í´ïʽ "c"£¬ÔÚÆ¥Åä×Ö·û´® "abcde" ʱ£¬Æ¥Åä½á¹ûÊÇ£º³É¹¦£»Æ¥Åäµ½µÄÄÚÈÝÊÇ£º"c"£»Æ¥Åäµ½µÄλÖÃÊÇ£º¿ªÊ¼ÓÚ2£¬½áÊøÓÚ3¡££¨×¢£ºÏ±ê´Ó0¿ªÊ¼»¹ÊÇ´Ó1¿ªÊ¼£¬Òòµ±Ç°±à³ÌÓïÑԵIJ»Í¬¶ø¿ÉÄܲ»Í¬£©
¾ÙÀý2£º±í´ïʽ "bc
Ïà¹ØÎĵµ£º
Frame Rate¶ÔFlex³ÌÐòÕ¼ÓÃϵͳ×ÊÔ´µÄ·ÖÎö£¬ÎÒÃÇͨ¹ýä¯ÀÀÆ÷²»Í¬¡¢Frame Rate²»Í¬µÄÇé¿öÏ£¬ÏµÍ³×ÊÔ´CPUµÄÀûÓÃÂʱȽϡ£
Frame RateµÄÉèÖãº
ĬÈÏFrame´«ÊäËÙÂÊÊÇ24£¬ÎÒÃÇ¿ÉÒÔÕâÑùÀ´ÉèÖã¬mxmlc -defaule-frame-rate 50 HelloWorld.mxml,ͨ¹ýÕâÒ»Óï¾äµÄÉèÖã¬
¿ÉÒÔʹFrame´«ÊäËÙÂÊΪ5 ......
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Zoom effect. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
">
<mx:Style source="style/style.css"/>
<mx:Scri ......
ÉÏ´Î˵ÁËÖ±½Ó°Ñ×ÖÌåǶÈëµ½flex³ÌÐòÖеķ½·¨£¬Õâ´ÎдһϽ«×ÖÌå±àÒë³Éswfºó¹©ÆäËüflex³ÌÐò¼ÓÔØÀ´µ÷Óõķ½·¨¡£
Ê×ÏÈ£¬Ð½¨Ò»¸öactionscriptµÄproject£¬È¡ÃûΪFlexFont£¬½«×ÖÌåÎļþ·Åµ½src/fontĿ¼Ï£¬Ö÷³ÌÐòΪ
FlexFont.asÎļþ£¬ÄÚÈÝÈçÏ£º
package {
import flash.display.Sprite;
public class FlexFont extend ......
ͨ¹ýFlexÖеÄTimer¿ÉÊÇʵÏÖÊý×ÖʱÖÓµÄЧ¹û£¬ÆäЧ¹ûͼÈçÏ£º
ʵÏֵĴúÂëÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<!--[CDATA[
import mx.formatters.DateFormatt ......
1¡¢Ô¤±¸ÖªÊ¶
FlexÊÇAdobeÌṩµÄ»ùÓÚFlash»·¾³µÄRIAÕ¹ÏÖ¼¼Êõ£¬Ö÷Òª²ÉÓÃMXML+Action ScriptÀ´±àд³ÌÐò¡¢½çÃ棬Ȼºóͨ¹ý±àÒëÆ÷±àÒë³Éflash¸ñʽµÄSWFÎļþ·¢²¼µ½ÍøÕ¾ÉÏ¡£
ʵÏָù¦ÄÜÐèÒª°²×°Flex SDK£¬¿ÉÒÔ´ÓAdobeÍøÕ¾ÉÏÃæÏÂÔØ£¬»òÕß°²×°Flex Builder plugin+EclipseÀ´¿ª·¢¡£
ͬʱÐèÒª¾ß±¸¼òµ¥µÄÕýÔò±í´ïʽ֪ʶ¡£
2¡¢½çÃæ²¼¾ ......