Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Á¬½Óµ½FMS·þÎñÆ÷(Flash/FlexÁ½ÖÖʵÏÖ)

ת×Ô http://www.51as.com/fms/fms3jiaochen.html 
Á¬½Óµ½FMS·þÎñÆ÷(Flash/FlexÁ½ÖÖʵÏÖ) - µÚ1ƪ:Connection
Ò» ¡¢FMSÓ¦¸Ã×öЩʲô 
     ±¾ÎÄÖÐËùʹÓõ½µÄFMSÊǷdz£¼òµ¥µÄ£¬Ö÷Òª¾Í¾ÍÊǽ¨Á¢Ò»¸öFMSÓ¦Ó㬷½·¨ºÜ¼òµ¥¡£ÕÒµ½Äã°²×°FMSµÄĿ¼Äã»á·¢ÏÖÀïÃæÓÐÒ»¸öappliationsµÄĿ¼¡£¶ÔµÄ£¬Ëü¾ÍÊǹÜÀíFMSÓ¦ÓõÄĿ¼£¬½øÈë¸ÃĿ¼ÔÚÀïÃ潨Á¢Ò»¸öÎļþ¼Ð¾ÍOK£¬ÎÒ½¨Á¢µÄÎļþ¼ÐΪ"firstFMS"¡£
¶þ¡¢FlashÁ¬½Óµ½FMS·þÎñÆ÷
     Ê×ÏȽ¨Á¢Ò»¸öFlashÎļþ£¨ActionScript 3.0£©²¢½«Æä±£´æÔÚij¸öĿ¼(×Ô¼º¾ö¶¨°É)ÖС£È»ºó´ò¿ª×é¼þÃæ°å(¿ÉÒÔ°´Ctrl+F7)´Ó×é¼þÃæ°åÖÐÍÏקһ¸öbutton×é¼þµ½¸Õ½¨Á¢ºÃµÄFlashµÄÎę̀£¨Ò²¾ÍÊÇFlashÏÔʾ¶«Î÷µÄÄÇÒ»¿éµØ·½£©£¬È»ºóͨ¹ýÊôÐÔÃæ°å£¨¿ÉÒÔ°´Ctrl+F3£©½«¸ÕÍÏק³öµÄbuttonÈ¡¸öÃû×Ö(FlashÖнÐËûΪʵÀýÃû,Îę̀ÖеÄÿһ¸ö×é¼þ¾ÍÊÇÒ»Ïà¶ÔÓ¦µÄ¶ÔÏóµÄʵÀý)£¬ÎÒÈ¡µÄÊÇbtnConnFMS¡£
     Íê³ÉÉÏÃæÁ½²½ºó»Øµ½Îę̀£¬Êó±êÔÚÎę̀Öпհ×λÖõã»÷һϣ¬È»ºóͬÑù´ò¿ªÊôÐÔÃæ°å£¬Äã»á·¢ÏÖÏÖÔÚµÄÊôÐÔÃæ°åºÍÏÈÇ°µÄÓÐЩ²»Ò»Ñù£¬ÔÚ·¢²¼Ñ¡ÏîÏÂÕÒµ½“Àà”£¬ÕâÀïÎÒÌîдµÄΪ“ConnFMS”£¬±íʾÎÒ½«ÒªÍ¨¹ýConnFMS.asÕâ¸öÀàÎļþÀ´¶Ôµ±Ç°µÄÕâ¸öFlash½øÐбàÂë¡£
     ÉÏÃæ³ÐŵÁËÓÉConnFMS.asÀ´¸ºÔðFlashµÄ±àÂ빤×÷£¬ÄǸÃÔõô×öÄØ£¿½¨Á¢Ò»¸öActionScriptÀàÎļþ£¬±£´æÔÚ֮ǰ±£´æFlashÎļþµÄͬһĿ¼¾ÍOK£¬¼ÇסÕâ¸öÀàÎļþÒ»¶¨ÊÇ“ConnFMS.as”¡£ÏÂÃæÊÇConnFMS.asµÄÍêÕû´úÂ룺
 package 
 { 
      import flash.net.NetConnection; 
      import flash.net.NetStream; 
      import flash.display.MovieClip; 
      import flash.net.Responder; 
      import flash.events.MouseEvent; 
      import flash.events.NetStatusEvent; 
      import flash.events.AsyncErrorEvent; 
      
     public class ConnFMS extends MovieClip 
     { 
         private var nc:NetConnection; 
          


Ïà¹ØÎĵµ£º

FLEXÄÚ´æÓÅ»¯¼¼Çɼ¯ºÏ

FLEXÄÚ´æÊÍ·ÅÓÅ»¯Ô­Ôò
1. ±»É¾³ý¶ÔÏóÔÚÍⲿµÄËùÓÐÒýÓÃÒ»¶¨Òª±»É¾³ý¸É¾»²ÅÄܱ»ÏµÍ³µ±³ÉÀ¬»ø»ØÊÕ´¦Àíµô£»
2. ¸¸¶ÔÏóÄÚ²¿µÄ×Ó¶ÔÏó±»ÍⲿÆäËû¶ÔÏóÒýÓÃÁË£¬»áµ¼Ö´Ë×Ó¶ÔÏ󲻻ᱻɾ³ý£¬×Ó¶ÔÏ󲻻ᱻɾ³ýÓֻᵼÖÂÁ˸¸¶ÔÏ󲻻ᱻɾ³ý£»
3. Èç¹ûÒ»¸ö¶ÔÏóÖÐÒýÓÃÁËÍⲿ¶ÔÏ󣬵±×Ô¼º±»É¾³ý»òÕß²»ÐèҪʹÓôËÒýÓöÔÏóʱ£¬Ò»¶¨Òª¼ÇµÃ° ......

Flex×Ô¶¨Òå·Ç·¨×Ö·û»òÊý×Ö¼ì²â·½·¨

½ñÌìÓÃFlexÓïÑÔдÁ˸ö¼ì²é·Ç·¨×Ö·û£¬ºÍÊý×ֵķ½·¨£¬¹²´ó¼Ò½»Á÷
ÉÔ΢¸ÄһϾÍÄÜÓõ½.NET»òJavaÓïÑÔÖÐ
 
 public class CheckString
 {
  //ÅжÏÓû§ÊÇ·ñÊäÈë·Ç·¨×Ö·û
  public static  function CheckStr(strValue:String):Boolean
   {
    ......

Flash as3 ×Ô¶¨ÒåReadXMLÀà¶ÁÈ¡xml ¡¾Ô­´´¡¿

¼òµ¥µÄÀ࣬¼ò»¯×Ô¼º¶ÁÈ¡xmlµÄ¹ý³Ì
ReadXML.as
package
{
import flash.display.Sprite;
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.system.System;
import flash.events.EventDis ......

flash °²È«²ßÂÔ½²½â

ÔÚ Adobe Flash Player Éý¼¶µ½ 9.0.124 ºó£¬ÓÉÓÚ°²È«²ßÂÔ¸ü¸Ä£¬Ô­À´ Socket »ò XmlSocket µÄÓ¦ÓÃÀïµÄ http ·½Ê½¼ÓÔØ°²È«²ßÂÔµÄÊֶβ»ÄܼÌÐøʹÓ᣸ü¸ÄÈçÏ£º
 
1, Ê×Ïȼì²âÄ¿±ê·þÎñÆ÷µÄ 843 ¶Ë¿ÚÊÇ·ñÌṩ°²È«²ßÂÔ
2, Èç¹û 1 ûÓмì²âµ½²ßÂÔ£¬Ôò¼ì²â actionscript ÊÇ·ñʹÓÃÁË Security.loadPolicyFile(xmlsocket:/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ