Flex Blazeds ÖеÄRemoteClass Óë¶àModule¼äµÄÎÊÌâ
ÔÚÏîÄ¿ÖÐÓõ½Á˶à¸ömoduleʱ£¬ÔÚµÚÒ»´Î¼ÓÔØModuleÊÇ¿ÉÒԵġ£ÔÚµÚ¶þ´Î¼ÓÔØmoduleʱ»á³öÏÖת»»Ê§°Ü
½â¾ö·½·¨£º
ÈçÏÂΪ½â¾ö°ì·¨£ºÔÚÒªµ÷ÓÃÔ¶³Ì¶ÔÏóµÄApplicationÎļþÀïÃ棬¼ÓÉÏÈçÏÂÉùÃ÷Óï¾ä£º
import flash.net.registerClassAlias;
registerClassAlias("JAVA¶ËµÄÀàÈ«Ãû",ASÀàÃû);
Ïà¹ØÎĵµ£º
1.flex¶Ë
<mx:Button id="upload" label="ÉÏ´«Îļþ" click="ExternalInterface.call('openUpload');"/>
2ºǫ́
2.1 openUploadÊǺǫ́µÄjs½Å±¾(jsp)
function openUpload(){
var url="/OA/service/upload.jsp";
newWin=jscomNewWinOpenByS ......
http://www.adobe.com/cn/devnet/flex/articles/best_practices_pt2_07.html
Flex ×î¼Ñ×ö·¨ - µÚ 2 ²¿·Ö: ¿ª·¢×ö·¨
Flex ¿ª·¢×î¼Ñ×ö·¨»Ø¹Ë
ÕâЩ×ö·¨¿ÉÒÔÓ¦Óõ½ËùÓÐ Flex Ó¦ÓóÌÐò¡£Çë²é¿´ÕâЩ×ö·¨:
´´½¨ºÍʹÓà assets Ŀ¼
ʹÓà assets Ŀ¼ÖеÄ×ÓĿ¼
ʹÓà SWF Ŀ¼
ʹÓà images Ŀ¼
&n ......
×î½ü¸ãÁ˸öflexµÄСÍæÒâ¶ù£¬´óÖ¾ÍÊÇÓÃurlloaderÈ¥¶Á·þÎñÆ÷ÉϵÄxmlÎļþ£¬»ñµÃÊý¾Ýºó½«ÄÚÈÝ´æµ½Êý×éÀï¡£
±¾À´Ïë×Åͦ¼òµ¥µÄ£¬Ïë×ÅÕâ³ÌÐòÓ¦¸ÃÊÇ˳ÐòÖ´ÐÐÍ꣬Ï൱ȻµÄÒÔΪ¼àÌýʼþ»áÔÚ·µ»ØºóÔÙ¼ÌÐøÖ´ÐÐÏÂÃæµÄÓï¾ä£¬ËÖªµÀÉÏÀ´¾Í³ö´íÁË£¬ÔÚ¼àÌýʼþÀïµÄ´úÂëÊÇÒì²½Ö´Ðеģ¬Õâ¾Íµ¼ÖÂÖ÷³ÌÐòµÄÊý¾Ý²»Õý³££¬Ò²¾ÍÊDz»ÄÜÔÚ×Ô¼ºÏëÒªµÄλ ......
AMFÊÇAdobe¶À¼Ò¿ª·¢³öÀ´µÄͨÐÅÐÒ飬Ëü²ÉÓöþ½øÖÆѹËõ£¬ÐòÁл¯¡¢·´ÐòÁл¯¡¢´«ÊäÊý¾Ý£¬´Ó¶øΪFlash ²¥·ÅÆ÷ÓëFlash RemotingÍø¹ØͨÐÅÌṩÁËÒ»ÖÖÇáÁ¿¼¶µÄ¡¢¸ßЧÄܵÄͨÐÅ·½Ê½¡£ÈçÏÂͼËùʾ£º
AMF(Action Message Format)ÊÇÒ»ÖÖ binary formatµÄ×ÊÁÏÐÍ̬£¬Í¸¹ý AMF overHTTPµÄ·½Ê½½«flash¶Ë×ÊÁϱàÂëºó´«»Øserver£¬server¶ËµÄ ......
amf3,adobe´´Á¢µÄÊý¾Ý¸ñʽÓÉÓÚʹÓöþ½øÖÆ,ûÓÐÁËxmlµÈÈßÓàµÄ×Ö·ûÊý¾ÝÁ¿»áÉٺܶà!¶øÇҺܶà²âÊÔ±¨¸æ¾ù²â³öamf´«µÝЧ¹ûºÜ¸ß.
Õâ´ÎÊÇʹÓÃFlexµÄSocketÀàÓëjavaµÄ·þÎñ¶Ë½øÐÐͨÐÅ,
²½ÖèÊÇ:
¿Í»§¶ËÓÃsocketÀàÁ¬½Ójava·þÎñÆ÷,
ʹÓòéѯ×Ö·û´®½øÐÐÇëÇó,
java½«Êý¾Ý·âװΪhashmap,×îºó½«hashmapÓÃamfoutputstreamÊä³öÖÁflexµÄ¿Í» ......