¹ØÓÚFlex°²È«É³ÏäÎÊÌâµÄ½â¾ö
×î½üÓöµ½ÁËflex µÄ°²È«É³ÏäÎÊÌ⣬ÕÒÁ˺ܶà×ÊÁÏ·¢ÏÖ²»ÊǶ¼ÊǺÍÎÒ£¬ÎҵijÌÐòÐèÒªsocketÁ¬½Ó£¬¶ø´ó¶àÊý½²µÄ¶¼ÊÇ¿çÓòÎļþ¶ÁÈ¡µÄ¡£ÎÒÏÈ°ÑÁ½ÖÖ·½·¨¶¼×ܽá³öÀ´£º
¿çÓòÎļþ¶ÁÈ¡
·½·¨Ò»£ºÔÚÄ¿±ê·þÎñÆ÷Éϲ¼Êðcrossdomain.xmlÎļþ(ÎÒÓõĴ˷½·¨ºÜ¹ÜÓ㬷ÅÉϾÍûÎÊÌâÁË) ÐèÒªÔ¶³Ì·þÎñ¸ùĿ¼¶¨ÒåÓÐcrossdomain.xmlÎļþ£¬ÈçÏ£º
<?xml version="1.0" encoding="UTF-8" ?> <cross-domain-policy> <allow-access-from domain="*"/> </cross-domain-policy>
·½·¨¶þ£ºÊ¹ÓôúÀí£¬°ÑFlexÒª·ÃÎʵÄÔ¶³ÌÎļþͨ¹ýasp, php, jspµÈ½Å±¾¶ÁÈ¡µ½±¾µØ£¬È»ºóÔÙÓÉFlexÈ¥·ÃÎÊ£»
·½·¨Èý£ºÊ¹ÓÃAdobe flash player 9 ´ò¿ª³ÌÐòºó£¬µã»÷²Ëµ¥À¸ÖÐÎļþ->´´½¨²¥·ÅÆ÷...¼´Éú³ÉexeÎļþ£¬ÔËÐÐexeÎļþ¼´¿ÉÍ»ÆÆ°²È«ÏÞÖÆ£»
·½·¨ËÄ£º 1¡¢ÕÒµ½Õâ¸öÎļþ¼Ð£ºc:\Documents and Settings\<UserName>\Application Data\Macromedia\Flash Player\#Security 2¡¢ÔÚÆäϽ¨Á¢Ò»¸öÃûΪ"FlashPlayerTrust"µÄÎļþ¼Ð 3¡¢ÔÚ"FlashPlayerTrust"Îļþ¼ÐÏÂн¨Ò»TXTÎļþ£¬ÄÚÈÝÈçÏ£º c:\ d:\ e:\ f:\ 4¡¢½«¸ÃtxtÎļþÃüÃûΪ:"myTrustFiles.cfg" ÔÙ´ò¿ªÄãÓ²ÅÌÀïµÄSWFÎļþ,¾Í²»»á³öÏÖÄǸö·³È˵ݲȫÉèÖÃÌáʾ´°¿ÚÁË!
·½·¨Î壺 ÓÃHttpServiceËüĬÈÏÊÇÓÐProxyµÄ£¬ÐèÒªÅäÖÃflex-config.xml£¬ÀïÃæÓÐÒ»¶Î£º <http-service-proxy> <whitelist> ……………… </whitelist> </http-service-proxy>
Õâ¸öÊÇ°×Ãûµ¥£¬Ò»°ãÇé¿öÏÂÊÇ×¢Ê͵ôµÄ£¬Ò²¾ÍÊÇĬÈÏÖ»Óб¾µØµÄhttp://{localserver}/*ºÍhttps://{localserver}/*¿ÉÒÔ·ÃÎÊ¡£ÆäËûµÄÐèÒªÔÚflex-config.xmlÀïµÄ×ÔÐÐÐ޸ijÉÐèÒªµÄ¾Í¿ÉÒÔÁË¡£
·ÃÎʱ¾µØ×ÔÈ»²»»á¿çÓò£¬²»¹ýÄã¿Ï¶¨·ÃÎʾÖÓòÍøÆäËû»úÆ÷ÁË£¬ËùÒÔÊÇÒÀÕÕ°×Ãûµ¥¹æÔò£¬ÊôÓÚ¿çÓò
SocketɳÏäÎÊÌâ
ÔÚFlexÖÐʹÓ
Ïà¹ØÎĵµ£º
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<!--[CDATA[
import mx.rpc.ev ......
Ëæ×Å Adobe Flex ¼¼ÊõµÄ³ÉÊ죬ԽÀ´Ô½¶àµÄÆóÒµ¿ªÊ¼²ÉÓà Adobe Flex ¼¼Êõ¿ª·¢ RIA (Rich Internet Application)¡£ÔÚ³£¼ûµÄ RIA Ó¦ÓóÌÐò¼Ü¹¹ÖУ¬¿Í»§¶ËÓà Adobe Flex äÖȾ³öƯÁÁµÄ½çÃ棬¶øäÖȾ½çÃæËùÐèÒªµÄÊý¾ÝÔò´Ó·þÎñÆ÷¶ËµÄÓ¦ÓóÌÐò»ñÈ¡¡£ÔÚ Java EE ÁìÓò£¬·þÎñÆ÷¶ËµÄÓ¦ÓóÌÐòͨ³£ÊÇÔ ......
Æäʵ¶ÔÓÚÕâ¸öÌâÄ¿ÊDz»Ç¡µ±µÄ£¬ÒòΪflexÖÐÊÇûÓÐÒ³ÃæÕâ¸ö¸ÅÄîµÄ£¬Ò³ÃæÔÚflexÀïÃæÆäʵ¾ÍÊÇÒ»¸ö¸öµÄCanvas£¬vbox£¬
hboxµÈµÈÖ®ÀàµÄ¶«Î÷£¬¿´µ½µÄ²»Í¬Ò³ÃæµÄÇл»£¬¾ÍÊÇÕâЩԪËØÒ»²ã²ãµÄ¶Ñ»ý£¬»òÕßÌæ»»£¬µ«ÊÇΪÁ˺ÃÀí½â£¬»¹ÊdzÆ֮Ϊ
"Ò³ÃæÌøת"¡£ÆäʵÎÒÃÇ¿ÉÒԶԱȴ«Í³µÄC/S¿ª·¢Ä£Ê½£¬Ã»Ò³ÃæÌøת£¬Ö»Óд°ÌåºÍÔª¼þµÄÏÔʾºÍÒþ²Ø¡ ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script><!--[CDATA[import mx.collections.ArrayCollection;
public var a1:ArrayCollection = new ArrayCollection ([{ Region:"Region1",Territory:"Territory1",Ter ......
¾³£»áÉè¼ÆÒ»¸öÕâÑùµÄ¹¦ÄÜ£¬±ÈÈç¸ü¸Ä¸öÐÔÍ·Ïñ£¬Õâ¸ö¸öÐÔÍ·Ïñ×îÖÕÐèÒªÉÏ´«µ½·þÎñÆ÷µÄÎļþϵͳÖУ¬µ«ÊdzÌÐòÏ£ÍûÔÚÓû§Ñ¡ÔñºóÖ±½ÓÓиöÔ¤ÀÀ£¬È»ºóÓû§²Å½øÐÐÉÏ´«¡£Õâ¸ö¹¦Äܼ¼ÊõÉÏÆäʵ¾ÍÊÇÐèÒª¶Ô±¾µØµÄÎļþÄܽøÐжÁÈ¡¡£ÔÚflash player10ÖÐÓиöÀàFileReferenceµÄÀà¿ÉÒÔʵÏÖÕâ¸ö¹¦ÄÜ£¬¶øʵÏÖ¶ÔÎļþ¶ÁÈ¡µÄ½Ó¿ÚÊÇload( )º¯Êý£¬Òª×¢Òâ ......