Flexʼþ»úÖÆ»ù´¡(¶þ)
4. Àí½âʼþ½×¶Î(Event Phases) ÎÒÃÇ°Ñʼþ´¥·¢Ô´·ÖΪÁ½ÀࣺһÀàÊÇÄÇЩÏÔʾÔÚ½çÃæÖеÄÔªËØÅ׳öµÄʼþ£¬Ò»ÀàÊÇÄÇЩ²»ÔÚ½çÃæÖÐÏÔʾµÄÔªËØÅ׳öµÄʼþ¡£ºÜ¼òµ¥£¬¾Ù¸öÀý×Ó£ºµÚÒ»ÀàÈçURLLoader¶ÔÏóÈ¥loadͼƬ»òÆäËû×ÊÔ´ËùÅ׳öµÄÈçcompleteʼþ£¬¾ÍÊôÓÚµÚÒ»Àà¡£½çÃæÉϵÄÒ»¸ö°´Å¥ËùÅ׳öµÄclickʼþ¾ÍÊǵڶþÀ࣬Ëü»á´¥·¢Ò»¸öʼþÁ÷£¬Òý·¢Ò»ÏµÁеÄʼþ£¬ËüÓÖ·ÖÈý¸ö½×¶Î£º²¶»ñ(capture)£¬Ö´ÐÐ(target) ºÍðÅÝ(bubble)£¬¹ÃÇÒÕâÑù±í´ïÕâÈý¸ö½×¶Î¡£ ²¶»ñ½×¶Î(capture) ÔÚÕâ¸ö½×¶Î£¬Flash Player»áÈ¥²éÕÒʼþµÄ´¥·¢Ô´£¬ËüÊÇͨ¹ý¸ùÏÔʾԪËØ(root display object)Öð²ãÏòÏÂÑ°×Ù£¬Ö±µ½ÕÒµ½Ê¼þµÄ·¢ÆðÔ´Í·£¬ÈçÄãÔÚbuttonÉÏclickºó£¬Flash PlayerÕÒµ½µÄʸÃbutton¶ÔÏó¡£ÔÚÕâ¸ö½×¶Î¼àÊÓÆ÷(listener)ĬÈÏÊDz»»áÊÕµ½ÈκÎÏûÏ¢µÄ(ĬÈÏÖ»ÔÚtargetºÍbubble½×¶ÎÊÕµ½ÏûÏ¢)¡£Èç¹ûÄãÏëÔÚ²¶»ñ½×¶ÎÈÃlistenerÊÕµ½ÏûÏ¢²¢ÓÐËù¶¯×÷£¬ÄÇôÄã¿ÉÒÔÔÚ×¢²áµÄʱºò¸Ä±äµÚÈý¸ö²ÎÊýΪtrue£¬ÈçÏÂÃæµÄ·½·¨£ºobject.addEventListener(MouseEvent.CLICK, onClick, true); ¸Ã½×¶ÎÌýÆðÀ´ºÜÄ°Éú£¬ÊÂʵÉÏËüºÜÉÙʹÓᣵ«ËüÈ´ÔÚʼþÁ÷ÖаçÑݺÜÖØÒªµÄ½ÇÉ«¡£Ëü¿ÉÒÔÔÚʼþµ½´ï×ÓÔªËØ(child elements)֮ǰ±»application²¶»ñ£¬µ±È»Ò²¾Í¿ÉÒÔ×è ֹʼþµ½´ï×ÓÔªËØ¡£ Ä¿±êÖ´Ðн׶Î(target) ÔÚÕâ¸ö½×¶ÎÊÇʼþµÄÖ´Ðн׶Σ¬Ò²¾ÍÊÇÎÒÃdz£ÓõÄÓÃÀ´´¦ÀíʼþÁ÷µÄ´úÂë¡£ ðÅݽ׶Î(bubble) ×îºóµÄÕâ¸ö½×¶ÎÆäʵ¾ÍÊǵÚÒ»¸ö½×¶ÎµÄÄæÏò¹ý³Ì¡£Ëü¾ÍÊÇÔÚʼþ´úÂëÖ´ÐÐÍê±Ïºóͨ¹ý×ÓÔªËØÖð¼¶Ïò¸¸ÔªËØ·¢³ö¸Ãʼþ£¬Ò»Ö±µ½¸ùÔªËØ¡£ÔÚÕâ¸ö½×¶ÎÄã²»ÐèÒªÌرðµÄΪ¼àÌýÆ÷Ö¸¶¨Ê²Ã´£¬ÄãÖ»ÒªÕý³£µÄ×¢²áʼþ¾Í¿ÉÒÔÁË¡£¼àÌýÆ÷»áÔڸý׶ÎÊÕµ½Í¨Öª¡£µ«Ç°ÌáÊǸÃʼþÊÇÄܹ»bubbleµÄ¡£ 5. ʼþµÄÓÅÏȼ¶(Event Prioriy) ʼþÓÅÏȼ¶ÎÒÃÇÓõĺÜÉÙ£¬µ«Àí½âËüÈ´ºÜÖØÒª£¬µ«ÄãÌí¼ÓÒ»¸öʼþµÄʱºòÄã¿ÉÒÔÉèÖüàÌýÆ÷µÄÓÅÏȼ¶£¬ÓÅÏȼ¶Ô½¸ß£¬ÄãµÄ¼àÌýÆ÷º¯Êý»áÔ½Ôç±»µ÷Óõ½¡£µ±È»Á½¸öÓÅÏȼ¶ÏàͬµÄ¼àÌýÆ÷ÊǸù¾ÝËûÃDZ»Ìí¼ÓµÄ˳ÐòÀ´¾ö¶¨ÓÅÏȼ¶µÄ¡£Õâ¸öÓÅÏȼ¶Ö¸µÄÊÇÔÚͬһ¸öʼþ½×¶Î(Èçcapture,target,or bubble).Ò»´Î£¬Ê¼þ´¦ÀíµÄÓÅÏȼ¶ÊÇÏÈ¿´½×¶ÎÔÙ¿´ÓÅÏȼ¶µÄ¡£ 6. ÈõÒýÓÃ(Weak Reference) ÈõÒýÓÃʱʼþ´¦ÀíÖзdz£ÖØÒªµÄ¸ÅÄî¡£ÒªÀí½âËüΪʲôÕâôÖØÒª£¬ÄãÊ×ÏÈÒªÀí½âFlash PlayerÊÇÈçºÎ½øÐÐÀ¬»ø»ØÊÕµÄ(garbage collection). ¹ËÃû˼Ò壬À¬»ø»ØÊÕ¾ÍÊÇ»ØÊÕÄÇЩ²»ÔÙʹÓõÄ×ÊÔ´£¬Ö÷ÒªÊÇÄÚ´æ×ÊÔ´£¬·ñÔò»áÖÂϵͳ±ÀÀ£¡£ Flash PlayerÊÇͨ¹ýÒýÓüÆÊýÆ÷(reference counting)ÒÔ¼°±ê¼ÇÓëÇå³ý
Ïà¹ØÎĵµ£º
FlexÖÐImage¼ÓÔØͼƬ³ö´íʱÏÔʾĬÈÏͼƬµÄ·½·¨Ö÷ÒªÓÐÒÔϼ¸ÖÖ£º
·½·¨Ò»£ºÀûÓà brokenImageSkin ·ç¸ñÏÔʾһ¸öĬÈϵÄͼ£¬Ö»ÐèÉèÖÃCSS¾ÍÐÐÁË£¬ÈçÏ£º
<mx:Style>
Image {
brokenImageSkin: Embed("assets/404.jpg");
}
</m ......
½ñÌìÔÚÐÞ¸ÄÒ»¸öÓÎÏ·bugÎÊÌâµÄʱºòÓöµ½µÄ
ÕâÓÎÏ·±¾À´ÊÇÖÐÎÄ°æµÄ£¬ºóÀ´±»·Òë³ÉÓ¢ÎÄÁË£¬Ó¢ÎĵÄ×Ö·û´®µÄ³¤¶ÈÒ»°ã¶¼»á±ÈÖÐÎĵÄ×Ö·û¶àµÄ£¬ËùÒԺܶàÇé¿öÏÂÒª¼Ó¹ö¶¯ÌõÁË
½ñÌìÓÖÓиöÏÔʾÎÄ×Ö²»È«µÄ£¬Ô±¾ÓõÄÊÇtext±êÇ©µÄÄǸö²»ÄÜÏÔʾ¹ö¶¯ÌõËùÒÔÓÃtextareaÌæ»»µôÁË£¬¿ÉÊǾ¹È»Ã»Óз´Ó¦²»ÏÔʾ¹ö¶¯Ìõ
ÓôÃÆ£¡£¡£¡£¡
ÎÒÌí¼ÓÁË ......
¹ÙÍøÐÅÏ¢£º(API:http://flexlib.googlecode.com/svn/trunk/docs/index.html)
HowToContribute
How you can contribute code to FlexLib
IntroductionLicenseBefore you submit codeFlexBuilderProject page to learn how to check out the project into Flex Builder. Read HowToBuild to learn how to compile ......
ÏÖÔÚ¸»webÓ¦ÓÃÒѾÊǸö´óÇ÷ÊÆ£¬Ô½À´Ô½¶àµÄ´«Í³¿Í»§¶ËÓ¦Óö¼Ïà¼Ì±»webÓ¦ÓÃËùÌæ´ú¡£µ«ÊǼøÓÚwebÓ¦ÓõÄÈõ½»»¥ÐÔ£¬ºÜ¶àÒµÎñ¸ºÔð¡¢ÈË»ú½»»¥Ç¿µÄÓ¦Óô¿js»¹ÊDz»ÄܺܺÃʤÈΣ¬Õâ¿ÖÊÇÄ¿Ç°»¹Óкܶà»îÔ¾csÓ¦ÓôæÔÚµÄÒ»¸öÖ÷ÒªÔÒò¡£Ç°²»¾Ã£¬¹«Ë¾Ò²ÔÚ×ö¼èÄѵÄÑ¡ÔñwebÓ¦ÓÃǰ̨¿ª·¢¿ò¼ÜÑ¡ÐÍÎÊÌ⣬×îº ......
Root folder
Õâ¸öĿ¼Ӧ¸ÃÌîдtomcatĿ¼Ï£¬ÄǸöjavaÏîÄ¿µÄËùÔÚλÖã¬Èç¹ûΪ´í£¬»á³öÏÖ“ Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.”ËüÌáʾ¸ÃĿ¼WEB-INF²»´æÔÚflex-config.xml»òservice-config.xmlÎļþ£¬Èç¹ûÊÇÒ»¸öÕý³£µÄjavaÏîÄ¿£¬¾Í»áÓÐÕâ¸öÎļ ......