JavaFX£¬FlexºÍSilverlightºáÏò¶Ô±È
һλFlexºÍJavaFXµÄRIA¿ª·¢ÕßÔÚ±¾ÆªÎÄÕÂÖжÔFlex£¬JavaFXºÍSilverlightµÄ¹¦ÄܺÍÓÅȱµã¸÷×Ô×ö³öÁËÆÀÂÛ¡£JavaFX1.1ÓÚ½ñÄê2Ô·¢²¼£¬2.0°æµÄ·¢²¼Ò²ÕýÔڼƻ®ÖС£
Flex, JavaFX, Silverlight…
̹°×À´Ëµ£¬ÔÚ¿ª·¢Õâ¸öÓ¦ÓÃÆڼ䣬ÎÒÔÚÄÚÐÄÒ»Ö±ÔڱȽÏÓÃJavaFX×öÓëÓÃAdobe Flex×öͬÑùµÄÊÂÇé¡£
¼òµ¥ËµÀ´£¬ÔÚ½ñÌ죬 Flex±ÈJavaFX¸ßЧµÃ¶à¡£µ«ÎÒÃǵüÇסÎÒÃÇÊÇÔÚÓÃFlex°æ±¾3ÓëJavaFX°æ±¾1½øÐжԱȡ£Èç¹ûÄãÁ˽âÈçºÎ¿ª·¢SwingÓ¦Óã¬Äã¿ÉÄܾͻáÄþÔ¸¼ÌÐøÓÃSwing£¬¶ø²»ÊÇʹÓÃÎÒÃÇÔÚÕâ¸öPet Store°æ±¾ÖÐÊÖ¹¤´´½¨µÄJavaFX 1.0°ü×°Àà¡£
JavaFX 1.0 ×î´óÎÊÌâÊÇËü²»°üÀ¨ÈκÎÓÃÓÚWEB¿ª·¢µÄÓû§½çÃæ×é¼þ¡£Á¬¼òµ¥µÄ³¬Á´½Ó×é¼þ¶¼Ã»ÓÐ,¸ü²»ÓÃ˵Êý¾ÝÍøÂç»òÕßÊ÷Áбí×é¼þ¡£ÎÒÈÏΪÕâûÓÐÆäËûÔÒò£¬Ö»Äܹé¾ÌÓÚSun¹«Ë¾ÔÚ¿ª·¢´ËÐÂÓû§½çÃ湤¾ßʱֻͶÈëÁËÌ«ÉÙµÄʱ¼äÓëÓÐÏÞµÄÈËÁ¦×ÊÔ´¡£
ÐÒÔ˵ÄÊÇ£¬Sun¼´½«·¢²¼JavaFX2.0 °æ±¾£¬Ëü´øÓÐÍêÕûµÄÓû§½çÃæ×é¼þ¡¢ÈÝÆ÷¡¢µ¼º½ÌõºÍ²¼¾Ö¿ØÖÆ¡£Î¢Èí½ö½öֻΪÐû²¼×Ô¼º×ö³öÓëFlexÏàËƲúÆ·£¬¾ÍÔÚ2007Äê·¢²¼Á˹¦Äܲ»È«µÄ Silverlight1.0,Ö±µ½Ò»Äêºó£¬È«¹¦ÄܵÄSilverlight2.0²Å¿ÉÓ᣺ÃÏûÏ¢ÊÇJava¿ª·¢ÕßÒѾ¿ªÊ¼½¨ÔìËûÃÇ×Ô¼ºµÄ¿ª·ÅÔ´Âë×é¼þ¿â£ºJfxtras¡£
ÁíÒ»·½Ã棬ÎÒ¿´µ½Ò»Ð©¹¦ÄÜʧÓÚFlex¶øÊÕÓÚJavaFX¡£
ÀýÈ磬ActionScript²»Ö§³Ö¶àÏ̡߳£ÕâÔÚÓëÔ¶³ÌÕ¾µãͨѶʱ²»³ÉÆäÎÊÌâ-ËùÓеÄÔ¶³Ìµ÷Óö¼ÊÇͬ²½µÄ£¬²¢ÇÒʹÓûص÷»úÖÆ°Ñ·þÎñÆ÷Êý¾ÝÁ÷´«Ë͵½¿Í»§»ú¡£µ«ÊÇ£¬Èç¹ûÄãÐèҪд»òÕßʹÓÃÒ»¸öÖ´ÐÐÔÚ¿Í»§¶ËµÄCPUÃܼ¯¼ÆËãJava¿âʱ£¬ÎÒÈÏΪJava¾Í»áʤ¹ýActionScript¡£Á½ÖÖÓïÑÔµÄÓï·¨Ï൱½Ó½ü£¨¼ûhttp://flexblog.faratasystems.com/?p=115£©¡£
JavaFXÖ§³Öeval()º¯Êý£¬¿ÉÒÔÔÚÔËÐйý³ÌÖбàÒë²¢Ö´ÐÐһС¶Î´úÂë¡£Flex²¢²»Ö§³ÖÕâÒ»¹¦ÄÜ¡£
Êý¾ÝË«Ïò°ó¶¨ÒÑÔÚJavaFXʵÏÖ£¬µ«FlexÔ¤¼Æµ½°æ±¾4²ÅÖ§³Ö¡£
ÎÒ¼û¹ýһЩ¶ÔÓÚFlexÓëJavaFX ÍøÂçÐÒéµÄ»ù×¼²âÊÔ¡£×î½üµÄ²âÊÔÖ»ÊÇÌṩÁË¿Í»§»úÓë·þÎñÆ÷¼äµÄXMLºÍRESTÊý¾Ý½»»»¡£µ±È»£¬ÄãÄܱàдJavaÌ×½Ó×Ö»òÕß°ü×°Ò»¸öRMI¿Í»§µ½ JavaFX£¬Õâ»á±ÈActionScriptʵʱÏûÏ¢ÐÒé¿ìÂð£¿ÎÒÃDz»ÖªµÀ¡£»òÕßÄãÄÜÔÚJAVA AppletºÍ·þÎñÆ÷¶ËJava×Ö·ûÁ÷¼äÓÃHTTPͨµÀͨѶ¡£Õâ»á±ÈʹÓÃAMF£¬Ò»ÖÖ»ùÓÚHTTPµÄ¶þ½øÖÆÐÒé¿ìÂð£¿ÎÒÃÇÒ²²»ÖªµÀ¡£
ÔÚ¿ª·¢Òƶ¯Ó¦ÓÃʱJavaFX Ïû³ýÁËÐí¶à¸´ÔÓÐÔ¡£Ëü³Ðŵ¿ÉÒÔ²»ÓÃJava SE¿ª·¢×ÀÃæÓ¦Ó㬿ÉÒÔ²»ÐèÒªÓÃJava ME¿ª·¢Òƶ¯Ó¦Ó×JavaFX¾ÍÊÇÄãµÄΨһÐèÒªµÄ½â¾ö·½°¸¡£JavaFXÒƶ¯¿ª·¢ÌṩÁËÓ²¼þ¼ÓËÙ¡£¼Çס£¬JavaÔÚÒƶ¯É豸ÖÐÒ
Ïà¹ØÎĵµ£º
http://elromdesign.com/blog/2010/03/10/test-driven-development-tdd-with-flexunit-4-complete-tutorial/
±¾À´ÊÇ´òËãÍêÕûµÄ·ÒëÍê³ÉÕâƪ²©Îĵģ¬Ò»±ß·Ò룬һ±ß̸̸×Ô¼º¶ÔÇý¶¯²âÊÔ¿ª·¢µÄÀí½â¡£ µ±È»ÎÒµÄÀí½âºÍÔÎÄ×÷ÕßµÄÀí½â²»Ò»¶¨Ò»Ñù£¬µ«ÊÇÖÁÉÙ£¬ÎÒÃǶ¼³ÐÈÏ¿ª·¢µÃÊDzâÊÔÇý¶¯µÄ¡£ È»¶øCSDNµÄ²©¿ÍϵͳÊÇʵÔÚ²»ÄÜÀí½â¡¾Î ......
FlexÖÐImage¼ÓÔØͼƬ³ö´íʱÏÔʾĬÈÏͼƬµÄ·½·¨Ö÷ÒªÓÐÒÔϼ¸ÖÖ£º
·½·¨Ò»£ºÀûÓà brokenImageSkin ·ç¸ñÏÔʾһ¸öĬÈϵÄͼ£¬Ö»ÐèÉèÖÃCSS¾ÍÐÐÁË£¬ÈçÏ£º
<mx:Style>
Image {
brokenImageSkin: Embed("assets/404.jpg");
}
</m ......
Ò» ÍøÕ¾
1 ÔÚÏßͼƬ´¦Àí¹¤¾ßÍøÕ¾http://www.flauntr.com/
¡£
2 ¹Ù·½ÍøÕ¾µÄÀý×Ó http://examples.adobe.com/flex3/componentexplorer/explorer.html
3 ¹Ù·½AS3ѧϰ×ÊÁÏÍøÕ¾ http://www.adobe.com/devnet/actionscript/
4 Õâ¶ùÍƼöÒ»¸öÍøÖ·£¬²»½ö¿ÉÒÔ¶ÔÆäËüµÄÊý¾ÝÀàÐͽøÐÐѧϰ£¬»¹Óлù´¡µÄÓï·¨£¬·Ç³£²»´í£º
  ......
Ô´ÌùµØÖ· http://www.riachina.com/showtopic.aspx?topicid=8556#
ÓÉÓÚLocalconncetionµÄijЩÏÞÖÆ(һ̨¿Í»§Ö»¿ÉÒÔʹÓÃÌض¨Ãû×ÖµÄÒ»¸öÁ¬½Ó£¬ÕâÑùµÄ³ÌÐòÈç¹û¿ªÁ½¸ö´°¿Ú¾Í»á·¢ÉúÒì³£)£¬½ñÌìÏÐ×ÅûÊÂ×öÁËÒ»¸öÕâÑùµÄÊÔÑé¡£ÈÃFlash CS3ºÍFlexµÄ´úÂë¿ÉÒÔÏ໥µ÷Óã¬ÎªÁËÏÔʾЧ¹û£¬ÔÚË«·½µÄ½çÃæ·Ö±ð·ÅÖÃÁËÒ»¸öÎı¾ÊäÈë¿òºÍÒ»¸ö°´Å¥¡ ......
Ö»ÊǼòµ¥ÊµÏÖÁËһϼÆËã¡£Ö÷ÒªÊÇÁ·ÏÂÊÖ¡£
ʵÏÖÁËÊó±ê¸ú¼üÅ̵ÄʼþÏìÓ¦¡£
-----------------------------
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
width="198" height="224" fontSize="12" themeColor="#4D8853" borderColor="#B1C2CE" backgroundGradientAlphas="[1.0, 1. ......