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

[Flex 2] 02 Flex

###################
#
FlexÓëWebÉè¼Æ
###################
´ó¶àÊýÆóÒµ¼¶µÄWebÉè¼Æ¶¼ÐèÓÐ3²ã½á¹¹£º
    *
±íÏÖ²ã(Presentation
Tier)£ºÕâÒ»²ã¹¹½¨µÄÊÇÓû§¿´µ½µÄÄÚÈÝ¡£ÓÐʱºò£¬ÈËÃÇÒ²°ÑÕâÒ»²ã½Ð×öͼÐÎÓû§½çÃæ(graphical
user interface,GUI)¡£
    *
ÒµÎñÂß¼­²ã(Business
Logic
Tier)£ºÄ»ºó¹¤×÷¾Í·¢ÉúÔڴ˲㡣³ÌÐò´úÂë¾ÍÊÇÔÚÕâÀïÈ·¶¨Ê²Ã´¿ÉÒÔÁôÏÂÀ´¡¢Ê²Ã´²»¿ÉÒÔÁôÏÂÀ´ÒÔ¼°µ½ÆäËû·þÎñÆ÷ºÍÊý¾Ý¿âµÄÁ¬½Ó¡£ÕâÊÇÍê³ÉʵÖÊÐÔ¹¤×÷µÄµØ·½¡£
    *
¹Ç¸É²ã(Backbone
Tier)£º¸ù¾ÝÒµÎñÂß¼­²ãÖÐÉùÃ÷µÄ¹æÔòÀ´ÊÕ¼¯ºÍ·Ö·¢Êý¾ÝµÄÊý¾Ý¿â·þÎñÆ÷¾Í´¦ÔÚÕâÒ»²ã¡£

      ÈËÃÇÓÐʱºò°ÑÖîÈç´ËÀàµÄÉè¼Æ½Ð×ön-²ãÉè¼Æ¡£³ýÁ˸ղÅÁгöµÄ»ù±¾µÄ3²ãÉè¼Æ£¬ÓÐЩÉè¼Æ·½°¸»¹ÓжîÍâµÄ·þÎñÆ÷²ãºÍÊý¾Ý²ã¡£
    FlexÖ÷ÒªÊDzÎÓë±íÏÖ²ãµÄ½¨Éè¡£ÊÂʵÉÏ£¬ÈËÃdz£³£°ÑFlex³ÆΪ³ÊÏÖ·þÎñÆ÷¡£ËüµÄÖ÷Òª¹¦ÄÜÊÇÔËÓÃΪ´´½¨RIA(µÚ1ÕÂÓнéÉÜ)¶øÉè¼ÆµÄ¹¤¾ßÀ´´´½¨Óû§½»»¥¡£
###################
#
FlexÓ¦ÓóÌÐò¿ò¼Ü
###################
    FlexÓ¦ÓóÌÐò¿ò¼ÜÓÐÆä×ÔÉíµÄ²ã´Î½á¹¹¡£
      Î»ÓÚ×îÉÏ·½µÄÊÇMXMLºÍActionScript3.0¡£ÆäÒâÒå·Ç³£ÖØ´ó£¬ÒòΪËüÒâζ×ÅFlexʹÓÃÊÇWebÉè¼ÆÖеÄÁ½¸ö×îÁ÷ÐеŤ¾ß£ºXHTMLºÍÃæÏò¶ÔÏó±à³Ì(object-oriented
programming, OOP)¡£MXMLÀàËÆÓÚXHTML£¬ActionScript3.0Ôò×ñÊØÁËOOPµÄÄÇЩ×îÑϸñµÄ×¼Ôò¡£
      ÏÖÔÚ£¬Èç¹û¹âƾÕâÁ½ÑùÈÔ²»¹»µÄ»°£¬ÎÒÃÇ»¹¿ÉÒÔͬʱÔËÓÃMXMLºÍActionScript3.0¶ÔAdobe
Flash Player
9µÄÄÜÁ¦½øÐмÝÔ¦¡£ÕâÒâζ×ÅÎÒÃÇʵ¼ÊÉÏ»ñµÃÁË3·½ÃæµÄ×î¼Ñ×éºÏ£ºÒ»ÃÅÀàXHTMLµÄÓïÑÔ£¨MXML£©¡¢OOP(ActionScript3.0)ºÍFlashµÄÄÜÁ¦¡£3Õߺ϶øΪһ¡£
    Flex»¹×Ô´øÁËÒ»¸ö·á¸»µÄÀàÎļþ£¨Ô¤½¨³ÌÐò£©¼¯ºÏ£¬¸Ã¼¯ºÏ°üº¬Á˳ɹ¦¹¹½¨RIAËùÐèÒªµÄ´ó²¿·Ö¹¤¾ß(ÆäÖаüÀ¨ÓÃÀ´Á¬½Óµ½Êý¾ÝÔ´µÄFlex
Data
Services(FlexÊý¾Ý·þÎñ))¡£¼´£¬ÎÒÃÇÐèÒªµÄ´ó²¿·Ö¶«Î÷ÒѾ­¹¹½¨ºÃÁË£¬ÎÒÃÇÒª×öµÄ¾ÍÊÇÔÚÐèÒªµÄµØ·½µ÷ÓÃËü£¬²¢¼ÓÈë¸÷ÖÖÏëÒªµÄ×Ô¶¨ÒåÄÚÈÝ¡£Flash
Player»áÖªµÀÈçºÎ´¦ÀíÕâЩԤ½¨µÄÀàÎļþ£¬²¢Ê¹ÓÃËüÃǹ¹½¨³öÒ»¸öÄÜÓëÓû§½»»¥µÄRIA±íÏÖ¡£
1
MXML
    MXMLÊÇÒ»ÃÅ»ùÓÚXMLµÄÓïÑÔ£¬ËüÌṩÁËÒ»ÖÖ¼ò±ãµÄ·½·¨À´µ÷Óú͹ÜÀíÓ¦ÓóÌÐòµÄÊÓ¾õÔªËØ¡£Í¬Ñù£¬´ó²¿·ÖµÄÊÓ¾õÔªËض¼ÊÇÒѾ­Ô¤½¨ºÃ£¬µÈ×ÅÎÒÃÇÖ±½Ó


Ïà¹ØÎĵµ£º

flex ǰ̨µ¼³öExcel

/**=========main.mxml=========*/
/* µ¼³öexcel */
private function exp():void{
if(dgEnterprise.dataProvider==null){
Alert.show("Êý¾ÝΪ¿Õ£¬ÎÞ·¨µ¼³öexcel","ÓÑÇéÌáʾ");
}else{
ExportExccel.loadDGInExcel(dgEnterprise,"/ssfxSystem/excelexport.jsp?tableName=ÆóÒµÐÅÏ¢");
}
}
/**===== ......

FlexÓ¦ÓÃÆô¶¯±³ºóµÄ¹ÊÊÂ

       
ÊÕ²ØÀ´×ÔÔÆ×ÔÎÞÐÄË®×ÔÏС£
      Ê×ÏȽéÉÜÒ»ÏÂSystemManager. SystemManagerÊÇFlexÓ¦ÓõÄÖ÷¿ØÕß, Ëü¿ØÖÆ×ÅÓ¦Óô°¿Ú, ApplicationʵÀý, µ¯³ö´°¿Ú, cursors, ²¢¹ÜÀí×ÅApplicationDomainÖеÄÀà. SystemManagerÊÇFlashPlayerʵÀý»¯µÄµÚÒ»¸öÀà, Ë ......

Flexѧϰ±Ê¼Ç

ʲôÊÇCairngorm£¿
Cairngorm£¨ÖÐÎÄÃû£º“ÑÌË®¾§”£¿£©ÊÇÒ»¸öÇáÁ¿¼¶µÄFlex RIA³ÌÐò¿ª·¢¿ò¼Ü£¬´Ó¶øʹ³ÌÐò¿ÉÀ©Õ¹ÐÔ¡¢¿Éά»¤ÐÔ¶¼´ó´óÌá¸ß£¬Æä±¾Éí²¢²»ÊÇÒ»¸öÍêÕûµÄÆóÒµÓ¦Óã¬ËüÖ»ÊÇÌṩÁËÒ»¸ö¿ª·¢¹Ç¼Ü£¬Adobe³Æ֮ΪÌåϵ¡£
CairngormÌåϵ
Ö÷Òª°üÀ¨ÒÔϼ¸¸ö²¿·Ö£º
1¡¢VO£¨Value Object£©
IValueObject ºÍ ValueO ......

[Flex 2] 00 Introduction


===============================
               ͼÁé³ÌÐòÉè¼Æ´ÔÊ飨Web¿ª·¢ÏµÁУ©
===============================
  The Essential Guide to Flex 2 with ActionScript 3.0
                     &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ