flash builder4 ÖÐͨ¹ýÏòµ¼Á¬½Óµ½blazeds µÄ·½·¨
ת×Ô:http://www.laolang.cn/back-end-develop/flash-builder-4-blazeds-db-application.html
1.ʹÓÃEclipse ½¨Á¢Ò»¸öJava Project¡£±àдºÃÔ¶³Ì·þÎñÀà(È總¼þ)¡£
2.ÏÂÔØDownload the BlazeDS binary distribution£¬½âѹµ½tomcatµÄwebappsĿ¼Ï¡£ÏÂÔØflex-rds-server.jar£¬ËüÊÇBlazeDS 4(¿ª·¢ÖÐ)ÖеÄÒ»¸ö°ü£¬ÊÇBlazeDS RDS·þÎñÆ÷±ØÐëµÄ¡£
´ò¿ª web.xml Îļþ£¬Ìí¼ÓRDSDispatchServletµÄÉùÃ÷ºÍÓ³Éä¡£ÕâÑùÎÒÃǾͿÉÒÔͨ¹ýÁ¬½ÓBlazeDSÏòµ¼µ¼ÈëBlazeDS·þÎñÁË¡£
<servlet>
<servlet-name>RDSDispatchServlet</servlet-name>
<display-name>RDSDispatchServlet</display-name>
<servlet-class>flex.rds.server.servlet.FrontEndServlet</servlet-class>
<init-param>
<param-name>useAppserverSecurity</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>10</load-on-startup>
</servlet>
<servlet-mapping id="RDS_DISPATCH_MAPPING">
<servlet-name>RDSDispatchServlet</servlet-name>
<url-pattern>/CFIDE/main/ide.cfm</url-pattern>
</servlet-mapping>
×¢Ò⣬»¹Òª½«useAppserverSecurity µÄvalueΪfalse±íʾ²»ÓÃʹÓÃRDS·þÎñÆ÷Éí·ÝÑé֤ʱ²»ÐèÒªÊäÈëÓû§ÃûÃÜÂë¡£
4.ÐÞ¸Äremoting-config.xml£¬ÅäÖúÃÔ¶³Ì·þÎñÄ¿±ê(destination)¡£½«Web Project²¿Êðµ½tomcat²¢Æô¶¯Ëü¡£
5.н¨Ò»¸ö Flex Project£¬ÔÚ“Ó¦Ó÷þÎñÆ÷ÀàÐ͔һÀ¸ÖÐÑ¡Ôñ“J2EE”ºÍ“BlazeDS”ºóµã»÷“ÏÂÒ»²½”¡£
6.ÔÚµ¯³ö´°ÌåÖнøÐÐÉèÖ㬵ã»÷“ÑéÖ¤ÅäÖà ”°´Å¥£¬ÈôÎÞ´íÎóÌáʾ£¬¼´¿É½øÈëÏÂÒ»²½ºóÖ±½Ó°´“Íê³É”¡£
7.´´½¨UI£ºÐ½¨HelloWorld.mxml£¬ÔÚÖ÷³ÌÐòÖзÅÖÃnameTextInput¡¢submitButtonºÍresultLabel¡£
8.ÅäÖ÷þÎñ£ºÔÚ“Êý¾Ý/·þÎñ”ÊÓͼ£¬ÎÒÃÇÀ´ÅäÖÃ֮ǰºǫ́·¢²¼µÄ RemoteClass£¬µã»÷“Á´½ÓÊý¾Ý/·þÎñ”¡£
ÔÚµ¯³ö´°ÌåÖÐÑ¡Ôñ BlazeDS £¬´ËʱÈç¹ûѯÎÊÄãRDSµÄÃÜÂ룬ÎÒÃÇ¿ÉÒÔÑ¡Ôñ²»ÐèÒªÃÜÂëÖ±½ÓÌø¹ýÕâ²½¡£
¼òµ¥ÉèÖÃһϷþÎñÃû¼°°üÃû£¬ÈçÏÂͼ¡£
Ïà¹ØÎĵµ£º
Flash AS ÈëÃŵ½¾«Í¨½Ì³Ì
±¾ÎÄÏêϸ½éÉÜFlash AS ÈëÃŵ½¾«Í¨½Ì³Ì
¡¡¡¡ÓÃFlashÖÆ×÷¶¯»£¬¹âƾʱ¼äÖáºÍͼ²ãÀ´ÑÝÒï»Ã棬¼´Ê¹¶¯»ÔÙ¾«²Ê£¬Ò²Ö»ÄÜÈùÛÉÍÕ߶¢×ÅÆÁÄ»£¬ÑØ×Åʱ¼äÏߵĽø¶È±»¶¯µÄÐÀÉÍ¡£Èç¹ûÒªÏ붯»¾ßÓн»»¥ÐÔ£¬¸ù¾Ý¹ÛÉÍÕßµÄÑ¡ÔñÀ´¿ØÖƲ¥·ÅµÄ˳Ðò»òÕß³ÊÏÖ²»Í¬µÄÄÚÈݾͷǵÃÒÀ¿¿Fla ......
LinuxÏ£¬64λµÄFirefox¡¢OperaµÈä¯ÀÀÆ÷ĬÈÏËÑË÷µ½µÄFlash²å¼þÊÇ32λµÄ£¬°²×°Ö®ºóÒ²²»ÄÜÕý³£¹¤×÷¡£
ÐèÒªÊÖ¹¤°²×°Ò»Ï¡£
1.ÏÂÔزå¼þ
ʹÓÃä¯ÀÀÆ÷ÏÂÔØ£º
µ½Adobeµ ......
×öÁËÒ»¸öµ¯³ö´°¿Ú£¬µã»÷ºó·¢ÏÖËüºÍflashÖغϵIJ¿·Ö£¬±»flash¸ÇסÁË£¬²éÁËһϽâ¾ö·½·¨£º
Ô´úÂëÈçÏ£º
<object classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000' id='obj6' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' border='0' width='266' height='1 ......
import flash.net.FileFilter;
import flash.net.FileReferenceList;
import fl.controls.Button;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.HTTPStatusEvent;
import flash.display.Loader;
import flash.net.URLRequest;
var ......
¡¡Ëæ×ÅFlashÐ͵¥Æ¬»úµÄÆÕ¼°£¬µ¥Æ¬»ú¼ÓÃܵļ¼ÊõÒѾÓÐÁ˽ϴóµÄ±ä»¯¡£ÏÂÃæ±¾ÎĽ«ÒÔMotorolaµÄHCS12ϵÁе¥Æ¬»úΪÀý£¬½éÉÜÒ»ÖÖµäÐ͵ļӡ¢½âÃÜ»úÖÆ£¬²¢×ÅÖØÌÖÂÛʹÓÃÃÜÂë¼Ó½âÃܵķ½·¨ÒÔ¼°ÏàÓ¦µÄÓû§½Ó¿Ú³ÌÐòÉè¼Æ˼·¡£
¡¡¡¡³§ÉÌÀûÓõ¥Æ¬»ú½øÐвúÆ·¿ª·¢Ê±£¬¶¼»á¹ØÐÄÆä´úÂëºÍÊý¾ÝµÄ±£ÃÜÐÔ¡£¿¼Âǵ½Óû§ÔÚ±àдºÍµ÷ÊÔ´úÂëʱËù¸¶³öµÄʱ ......