FlexÓ¦ÓÃÆô¶¯±³ºóµÄ¹ÊÊÂ
ÊÕ²ØÀ´×ÔÔÆ×ÔÎÞÐÄË®×ÔÏС£
Ê×ÏȽéÉÜÒ»ÏÂSystemManager. SystemManagerÊÇFlexÓ¦ÓõÄÖ÷¿ØÕß, Ëü¿ØÖÆ×ÅÓ¦Óô°¿Ú, ApplicationʵÀý, µ¯³ö´°¿Ú, cursors, ²¢¹ÜÀí×ÅApplicationDomainÖеÄÀà. SystemManagerÊÇFlashPlayerʵÀý»¯µÄµÚÒ»¸öÀà, Ëü´æ´¢ÁËÖ÷Ó¦Óô°¿ÚµÄ´óСºÍλÖÃÐÅÏ¢, ±£´æÆä×Ó×é¼þ±ÈÈç:¸¡¶¯µ¯³ö´°¿ÚºÍģ̬´°¿ÚµÄºÛ¼£. ͨ¹ýSystemManager¿ÉÒÔ»ñµÃÄÚǶ×ÖÌå,ÑùʽºÍdocument¶ÔÏó.
×Ô¶¨ÒåµÄ¿ÉÊÓ»¯×é¼þ(UIComponentµÄ×ÓÀà)Ö»ÓÐÔÚµ÷ÓùýaddChild()ºó, ²Å»áÓÐÒ»¸öSystemManager¸³¸øËûÃÇ, ֮ǰÊÇNull. ËùÒÔÔÚ×Ô¶¨Òå¿ÉÊÓ»¯×é¼þµÄ¹¹Ô캯ÊýÖв»ÒªÊ¹ÓÃSystemManager.
ͨ³£, Application¶ÔÏó´´½¨Ê±, ·¢ÉúÈçÏÂʼþ:
1. ʵÀý»¯Application¶ÔÏó
2. ³õʼ»¯Application.systemManager
3. ApplicationÔÚ³õʼ»¯¹ý³Ì֮ǰ, ÅÉ·¢Ô¤³õʼ»¯Ê¼þ.
4. µ÷ÓÃcreateChild(). ´Ëʱ, ËùÓÐÓ¦ÓÃ×é¼þ±»´´½¨, ËùÓÐ×é¼þµÄcreateChild()±»µ÷ÓÃ.
5. ApplicationÅÉ·¢³õʼ»¯Ê¼þ, ±íÃ÷ËùÓеÄ×é¼þ³õʼ»¯Íê±Ï.
6. ÅÉ·¢creationCompleteʼþ
7. Application¶ÔÏóÌí¼Óµ½ÏÔʾÁбíÖÐ
8. ÅÉ·¢applicationCompleteʼþ
´ó¶àÊýÇé¿öÏÂ, ÎÒÃÇʹÓÃ<mx:Application>À´´´½¨application¶ÔÏó, µ«Èç¹ûʹÓÃActionScriptÀ´´´½¨µÄ»°, ÄÇô½¨Òé²»ÒªÔÚapplicationµÄ¹¹Ô캯ÊýÖд´½¨×é¼þ, ÍƼöÔÚcrateChildrenº¯ÊýÖÐ, Ö÷ÒªÊÇ´ÓÐÔÄÜ·½Ã濼ÂÇ.
Flash°üº¬µÄÊÇÒ»¸öʱ¼äÏßÉϵĶà¸öÖ¡, ¶øFlexµÄSWFÖ»°üº¬2¸öÖ¡. SystemManager, Preloader, DownloadProgressBarºÍÉÙÁ¿¹¤¾ßÀ඼ÔÚµÚÒ»Ö¡, ʣϵİüÀ¨Ó¦ÓôúÂë/ ÄÚǶ×ÊÔ´È«¶¼ÔÚµÚ¶þÖ¡ÖÐ. µ±Flash PlayerÏÂÔØÏÂÔØSWFʱ, Ö»Òª½ÓÊÕµ½µÚÒ»Ö¡ÄÚ×ã¹»µÄÊý¾Ý, ¾Í»áʵÀý»¯SystemManager, ÓÉËüÀ´´´½¨Preloader, È»ºó´´½¨DownloadProgressBar, ÕâÁ½¸ö¶ÔÏó»á²ì¿´Ê£Óà×ֽڵĴ«Êä¹ý³Ì. µ±µÚÒ»Ö¡µÄËùÓÐ×Ö½Ú´«ÊäÍê±Ïºó, SystemManager·¢ËÍenterFrameµ½µÚ¶þÖ¡, È»ºóÊÇÆäËûʼþ. ×îºóApplication¶ÔÏóÅÉ·¢applicationCompleteʼþ.
Ïà¹ØÎĵµ£º
Summary(¸ÅÊö)£º Adobe Flex µÄ dataGrid ÓкÜÇ¿´óµÄ¹¦ÄÜ£¬±ÈÈçItemRenderer,headerRendererµÈ£¬¿ÉÒÔ·½±ãµØʵÏÖ×Ô¼ºÏëÒªµÄ¹¦ÄÜ¡£µ«¶ÔdataGridÖ±½Ó±à¼²¢±£´æµ½Service¶Ë£¬¾ÍÓеãÂé·³ÁË¡£
Requirement(ÐèÇó)£º ¶ÔdataGrid½øÐе¥Î»¸ñ±à¼£¬ÈôÓб仯£¬±£´æµ½Service; ·ñÔò²»±£´æ¡£
Solution(½â¾ö·½°¸): ÔËÓÃDataGrid µÄ  ......
Summary:
ÔÚDataGridÖÐÏÔʾ²ã¼¶½á¹¹£¬googleÁËһϣ¬ÕÒµ½flexlibÖеÄTreeGrid¡£°ÑÔ´Âë¼ÓÔص½ÏîÄ¿ÖУ¬°´ÕÕÎĵµÈ¥ÊµÏÖÆ书ÄÜ¡£×îºó·¢ÏÖÓкöàbug£¬±ÈÈ綨λ²»×¼£¬ÎÞ·¨Í϶¯µÈÎÊÌ⡣ͨ¹ýÔĶÁºÍÐÞ¸ÄTreeGridÀ࣬ÕâЩbug¶¼½â¾öÁË¡£½Ó×ÅÎÞÒâÖз¢ÏÖ£¬ÅÅÐòÓÐÎÊÌâ¡£µã»÷ÁÐÍ·ÅÅÐò£¬·¢Ïֲ㼶½á¹¹±ä»ìÂÒÁË£¬Õâ¸öÎÊÌâ±È½ÏÑÏÖØ¡£ÒòΪcreat ......
/**=========main.mxml=========*/
/* µ¼³öexcel */
private function exp():void{
if(dgEnterprise.dataProvider==null){
Alert.show("Êý¾ÝΪ¿Õ£¬ÎÞ·¨µ¼³öexcel","ÓÑÇéÌáʾ");
}else{
ExportExccel.loadDGInExcel(dgEnterprise,"/ssfxSystem/excelexport.jsp?tableName=ÆóÒµÐÅÏ¢");
}
}
/**===== ......
1.½«flex±àÒëºóµÄ³ÌÐò²åÈëµ½asp.netÒ³Ãæ
flexµÄ×îÖÕÊä³ö¾ÍÊÇÒ»ÕÅÍøÒ³+Ò»¸öflash(.swfÎļþ)
Õâô˵ÄãÃ÷°×ÁË°É£¬Æäʵ¾ÍÊÇÓÃËûÉú³ÉµÄÍøÒ³µÄ·½Ê½°ÑÄǸö.swfÎļþ²åÈëµ½ÄãµÄasp.netÒ³Ãæ¾Í¿ÉÒÔÁË¡£
¼ÙÈçÄãµÄflex3ÏîÄ¿Ãû×Ö½ÐTestApp£¬×î¼òµ¥Ö±½ÓµÄ°ì·¨¾ÍÊÇ£¬
°Ñ"bin-debug"Ŀ¼Ïµģº
TestApp.html
TestApp.swf
AC_OETags.js ......
Ò»¡¢ÏÂÔØ eclpse 3.4
µØÖ·£ºhttp://archive.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/eclipse-SDK-3.4.2-win32.zip
Íê³Éºó£¬È¥ eclipse Àï¸üÐÂÈí¼þ£¬²Ëµ¥£º Help --- Software Updates µã Ganymede Update Site £¬Ñ¡ÖÐ Java Development £¬´Ë¶¯×÷Ϊ°²×° eclipse 3.4 ÀïµÄ Web ¿ª·¢²å¼þ£»
¶þ¡¢Ï ......