½«FlexÓëSpring¿ò¼Ü¼¯³É
Flex
ÊÇÒ»¸ö¿ªÔ´µÄÓ¦Óÿª·¢¿ò¼Ü£¬ÓÃÀ´¹¹½¨ÔËÐÐÔÚweb£¨Ê¹Óà Flash Player£©»òÕß×ÀÃæÉÏ£¨Ê¹ÓÃAdobe
AIR£©µÄ¸»InternetÓ¦Óá£AdobeµÄFlex¿ª·¢ÕßÖÐÐÄÓÐһƪÎÄÕÂÌÖÂÛÁ˹ØÓÚFlexÐÔÄܵÄ×î¼Ñʵ¼ù£¬°üÀ¨ÁËÈÝÆ÷µÄʹÓÃϸ½Ú£ºFlex×î´óµÄ
ÐÔÄÜ·çÏÕÀ´×ÔÓÚ¶ÔÈÝÆ÷µÄÀÄÓá£ÔÚAdobe FlexÖÐÓдóÁ¿¿ÉÑ¡µÄÌØÐÔ£¬ÄãÓ¦¸Ã¿¼ÂÇÔÚÄãµÄÓ¦ÓÃÖÐʹÓÃËüÃÇ¡£
Ëæן»InternetÓ¦ÓÃ(RIA)¼¼ÊõµÄ²»¶Ï³ÉÊ죬½«ÀàËÆÓÚAdobe FlexÕâÑùµÄRIAÓ¦ÓÃÓ뽡׳µÄ·þÎñÆ÷¶Ë¼¼Êõ½øÐм¯³É¾Í±äµÃÔ½À´Ô½ÖØÒªÁË¡£Java
¿ª·¢Õß×îϲ»¶µÄ·þÎñÆ÷¶Ë¿ò¼ÜÖ®Ò»Spring½«ÔÚÕâ¸ö¹ý³ÌÖаçÑÝ×ÅÖØÒªµÄ½ÇÉ«¡£
¡¡¡¡RIAvolutionize the WebµÄMarco
Casario½âÊ͵½ËûΪºÎ½¨ÒéBlazeDS³ÉΪSpringÓëFlex½áºÏµÄÆóҵϵͳʱ˵µÀ£º“SpringÊÇÒ»¸ö¿ªÔ´¿ò¼Ü£¬¿ÉÒÔÈÿª·¢ÈËÔ±¿ª·¢ÆðÀ´
¸ü¼ÓÇáËÉ¡£Èç¹ûʹÓñê×¼µÄJEE·½Ê½£¬ÄãÐèÒª±àд´óÁ¿ÎÞÓûòÕßÈßÓàµÄ´úÂ룬»¹¿ÉÄÜ»¨·Ñ´óÁ¿Ê±¼äȥʵÏÖJ2EEµÄÉè¼Æģʽ£¬¶øÕâЩģʽ½ö½öÊÇΪÁËÓ¦¶Ô¼¼ÊõÉÏ
µÄÏÞÖƶø²»ÊÇÕæÕýµÄ½â¾ö·½°¸¡£Spring¿ÉÒÔͨ¹ý¼ò»¯ÕâЩ¹ý³Ì¶ø½ÚÊ¡´óÁ¿Ê±¼ä¡£”
¡¡¡¡Christophe Coenraets½âÊÍÁËFlexÓëSpring¼¯³ÉµÄ»ù±¾ÔÀí£º
¡¡¡¡Spring
µÄ¿ØÖÆ·´×ª(Inversion of Control£¬ ¼´IoC
)
µÄÖ÷Ҫ˼Ïë¾ÍÊÇÈÃÈÝÆ÷ʵÀý»¯×é¼þ(²¢ÇÒ×¢ÈëÆäÒÀÀµ)¡£µ«ÊÇÔÚĬÈÏÇé¿öÏ£¬ÓÉFlex¿Í»§¶ËÔ¶³Ì·ÃÎʵÄ×é¼þÊÇÔÚ·þÎñÆ÷¶ËÓÉFlexÄ¿µÄÎļþʵÀý»¯
µÄ¡£ËùÒÔFlexÓëSpring¼¯³ÉµÄ¹Ø¼üÔÚÓÚÅäÖÃFlexÄ¿µÄÎļþÒÔʹÆäÄܹ»ÈÃSpringÈÝÆ÷À´¹ÜÀíʵÀý»¯µÄSpring
beans¡£FlexÊý¾Ý·þÎñÖ§³Ö¹¤³§µÄ¸ÅÄîÒÔ±ã¿ÉÒÔʵÀý»¯ÕâÀà¿Í»§»¯×é¼þ¡£¹¤³§µÄ×÷Óýö½öÔÚÓÚÏòFlexÄ¿µÄÎļþÌṩ׼±¸ºÃµÄ×é¼þʵÀý£¬¶ø²»ÊÇÈÃ
FlexÄ¿µÄÎļþ×Ô¼ºÈ¥ÊµÀý»¯ÕâЩ×é¼þ¡£
¡¡¡¡¹ØÓÚFlex
ÓëSpring¡¢IBATISºÍCairngormµÄ¼¯³É£¬Chris Giametta˵µÀ£º
¡¡¡¡ÎÒÏàÐÅ¿ÉÒÔ´´½¨Ò»¸öÒ»Öµġ¢Ä£¿é»¯µÄ¡¢¿ÉÖØÓõļܹ¹¡£Õâ¸ö¼Ü¹¹¼È¿ÉÒÔÖ§³ÖСÐÍÓ¦Óã¬Ò²¿ÉÒÔÖ§³Ö·Ç³£½¡×³
µÄÆóÒµ¼¶Ó¦Óá£ÏîÄ¿³É¹¦µÄÒ»¸ö¹Ø¼üÒªËØÔÚÓÚ´´½¨ÕâÑùÒ»¸ö¼Ü¹¹£ºÐÂÈËÄÜѸËÙͶÈë½øÈ¥£¬²¢ÇҺܿì¾ÍÄÜÉÏÊÖ¡£ÎÒ¾õµÃ½«FlexÓëSpring¡¢iBATISºÍ
Cairngorm¼¯³É¿ÉÒÔ°ïÖúÎÒѸËÙ¹¹½¨³öÒ»¸ö»ùÓÚģʽµÄ¡¢¿ÉÖØÓõļܹ¹¡£
¡¡¡¡Sébastien ArbogastÔÚ²»ÒÅÓàÁ¦µØ·¢±íһϵÁв©ÎÄ£¬ÒÔ²ûÊöÈçºÎ¹¹½¨È«Õ»Ê½Flex¡¢BlazeDSºÍSpring¼¯³É½â¾ö·½°¸¡£
¡¡¡¡ArbogastµÄÕâ¸öȫջʽ¼¯³É£¬´Óϵ½ÉÏ°üÀ¨ÈçÏÂÄÚÈÝ£ºJBoss
×÷ΪӦÓ÷þÎñÆ÷¡¢MySQL
×÷ΪÊý¾Ý´æ´¢¡¢Hibernate
Íê³
Ïà¹ØÎĵµ£º
PureMVCʵÏÖÁ˼òµ¥µÄMVC¿ò¼Ü£¬½«Ó¦Ó÷ÖΪmodel¡¢viewºÍcontrolÈý²¿·Ö¡£
ºÃ´¦ºÜ¶àÁË£¬½µµÍÁËÄ£¿éÖ®¼äµÄñîºÏÐÔ¡¢Ìá¸ßÁ˳ÌÐòµÄ¿Éά»¤ÐԺͿÉÀ©Õ¹ÐÔ¡£
fabricationÔÚPureMVC»ù´¡ÉÏ×öÁËÀ©Õ¹£¬¼ò»¯ÁËpureMVCµÄ¿ª·¢ÄѶȣ¬ÏÂÃæ¼òµ¥½éÉÜÒ»ÏÂfabricationµÄ¿ª·¢¹ý³Ì¡£
Ê×ÏÈ£¬¸ù¾ÝÐèҪʵÏÖorg.puremvc.as3.multicore.utilities.fabric ......
<mx:HSlider id="priceSlider" creationComplete="{HsilderChangeThumb(event)}"/>
<mx:Script>
<![CDATA[
private function HsilderChangeThumb(e:Event):void
{
var slider:HSlider = e.target as HSlider;
&nbs ......
ÔÚFlexÀïÃæ²»ÏñÔÚFlashÀïÃæËæÒâÖÆ×÷¶¯»ÁË£¬Flex¸üÇ÷ÏòÓÚÓ¦ÓóÌÐò£¬¶ø²»ÊǶ¯»ÖÆ×÷ÁË£¬ËùÒÔûÓÐÁËʱ¼äÖáµÄ¸ÅÄî¡£ÔÚFlexÖÐʹÓö¯»Ð§¹û£¬¿ÉÒÔÓÃFlex×Ô´øµÄEffect£¬»òÕß×ÔÒѶ¨ÖÆEffect£¬ÒòΪºÜ¶àÈ˶¼Ïë½èFlashÀïÃæµÄÒ»Ñù²Ù×÷Flex£¬±ÈÈçÔÚFlashÀïÃæ×öÒ»¸ö¶¯Ì¬°´Å¥ºÜÈÝÒ×£¬µ±Êó±êÒƶ¯µ½ÉÏÃæʱ£¬»áÓкܶ෢¹âµÄµãÅܳöÀ´£¨Ó«»ð³æÐ ......
FlexÖеı¾µØ¹²Ïí¶ÔÏó--SharedObject
±¾µØ¹²Ïí¶ÔÏóÓÐʱ±»³Æ×÷“Flash Cookie”£¬ËüÊÇÒ»¸öÊý¾ÝÎļþ£¬¿ÉÒÔÓÉËù·ÃÎʵÄÕ¾µãÔÚÄúµÄ¼ÆËã»úÉÏ´´½¨¡£ÔÚFlashÖÐÌṩÁËÏÂÃæµÄ²Ù×÷±¾µØ¶ÔÏóµÄ·½·¨£º
SharedObject.clear() ɾ³ý±¾µØ¹²Ïí¶ÔÏó£»
SharedObject.flush() Á¢¼´°Ñ¹²Ïí¶ÔÏóÊý¾ÝдÈë±¾µØÎļþ£»
SharedObject.getLoc ......
µÇ½ҳÃæ
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import flash.net.navigateToURL;
private function setCookie():void{
&nb ......