flexºÍsocketͨÐŵĿçÓòÎÊÌâ½â¾ö·½°¸
flexºÍC++·þÎñÆ÷ͨÐÅ¡£ÒòΪ°²È«É³Â©ÎÊÌ⣬µ±swfλÓÚA·þÎñÆ÷£¬C++·þÎñÆ÷³ÌÐòλÓÚB·þÎñÆ÷ʱ¡£
ÕâʱswfºÍB·þÎñÆ÷½¨Á¢Socket½¨Á¢Á¬½Ó»á²úÉú¿çÓòÎÊÌâ¡£
½â¾ö·½·¨ÈçÏÂ
swf½¨Á¢socketʱ»áÏÈ·¢ÆðÒ»¸öÇëÇó¿çÓòÎļþµÄÇëÇó:"<policy-file-request/>"
·þÎñÆ÷½ÓÊÕµ½ºó·¢ËÍ×Ö·û´®
<?xml version="1.0"?>
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"\>
<allow-access-from domain="IPµØÖ·»ò*" to-ports="socket´ò¿ªµÄ¶Ë¿Ú" />
</cross-domain-policy>
²¢¹Ø±ÕÕâ¸ö·¢À´¿çÓòÇëÇóµÄ¶Ë¿Ú¡£
´ó¹¦¸æ³É£¡
²Î¿¼£ºhttp://hi.baidu.com/cjmxp/blog/item/815fdd88d40e3c93a4c27236.html
Ïà¹ØÎĵµ£º
ÔÚflexÖУ¬Ò»°ãÖ±½ÓÔÚÉè¼ÆʱдremoteobjectµÄ»°£¬Õâ¸öÊDZȽÏÆÕ±éÁË£¬µ«ÓеÄʱºò£¬ÐèÒªÔÚAS´úÂëÖж¯Ì¬ÉèÖÃ
remoteobject,Õâ¸ö±È½ÏÉÙ¼û£¬ËùÒÔС½áѧϰ֮£º
Çé¾°ÊÇ£¬µ±Ò³Ãæ¼ÓÔØʱ£¬´úÂëн¨Á¢Ò»¸öremoteobject£¬È»ºóÉèÖÃÆä·½·¨ºÍµ÷ÓòÎÊý£¬×îºó°Ñµ÷Ó÷µ»ØµÄ½á¹û£¨ÊÇJAVAÖеÄÒ»¸öLIST£©£¬°ó¶¨µ½
Ò»¸örepeater¿Ø ......
http://www.adobe.com/cn/devnet/flex/articles/best_practices_pt2_07.html
Flex ×î¼Ñ×ö·¨ - µÚ 2 ²¿·Ö: ¿ª·¢×ö·¨
Flex ¿ª·¢×î¼Ñ×ö·¨»Ø¹Ë
ÕâЩ×ö·¨¿ÉÒÔÓ¦Óõ½ËùÓÐ Flex Ó¦ÓóÌÐò¡£Çë²é¿´ÕâЩ×ö·¨:
´´½¨ºÍʹÓà assets Ŀ¼
ʹÓà assets Ŀ¼ÖеÄ×ÓĿ¼
ʹÓà SWF Ŀ¼
ʹÓà images Ŀ¼
&n ......
//»ñµÃÆÁÄ»µÄ·Ö±æÂÊ
var
x:Number=Capabilities.screenResolutionX;
var
y:Number=Capabilities.screenResolutionY;
Alert.show(
"x="
+x+
"y="
+y);
µÚ¶þÖÖ·½·¨
Alert.show(stage.fullScreenWidth+
"=="
+stage.fullScreenHeight);
//»ñµÃstage£¨¹¤×÷Çø£ ......
½øÈëÄêÄ©£¬ÏîÄ¿Ò²¿ª·¢µÃ²î²»¶àÁË£¬Ö»ÊÇż¶ûÐèÒª³ö²î°²×°ÎÒÃÇϵͳ£¬µ±È»³ö²îÊÇÄÐÈËÃǵÄÊ£¬Ò²¾Í²»»áÈÃÎÒ³ö²îÁË£¬Òò¶ø×î½üʱ¼ä±È½Ï³äÔ££¬¾Í½è´Ë»ú»áѧϰÁËÒ»ÏÂFlex¡£¸Õ¿ªÊ¼Ñ§£¬ÊǸù¾ÝFlex3ȨÍþÖ¸ÄϵÄÊÓƵ½Ì³ÌÀ´µÄ£¬µÚÒ»½²Ñ§ÍêÁË£¬¸Ð¾õ»¹±È½ÏÈÝÒ×£¬µÚ¶þ½²Ò»Ö±Ã»ÏÂÏÂÀ´£¬ËùÒÔÏȶԵÚÒ»½²Ñ§µÄ×ö¸ö±Ê¼Ç¡£
Ò»¡¢Ð½¨¹¤³Ì£ºFile&mdas ......
ÕâÊÇÒ»¸ö¼òµ¥µÄ¹¤×÷Á÷Éè¼ÆÆ÷Ä£ÐÍ£¬»¹²»ÄÜÓÃÓÚʵ¼ÊÏîÄ¿£¬Ö»ÊǸöÈËÐËȤ×öһЩ¼¼ÊõѧϰÓë³¢ÊÔ¡£Éè¼ÆÆ÷Ö§³ÖһЩ¹¤×÷Á÷»ù±¾×é¼þµÄ»æÖÆ£¬Èç½Úµã¡¢Â·ÓÉÏß·µÈµÈ¡£
Õû¸öÉè¼ÆÆ÷ÊÇ´¿Flex¼¼ÊõʵÏÖ£¬Î´ÓëÊý¾Ý¿â½Ó¿Ú¡£²ÉÓÃFlex Builder 3.0¿ª·¢£¬Í¨¹ýʵ¼ù¶ÔFlexÒÔϼ¼ÊõÓÐÁ˸ü½øÒ» ......