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

FlexÓë·þÎñÆ÷½»»¥Ö®Ò»£¨URLRequest +URLLoaderÓ¦Óã©

   ÓÉÓÚFlexÖ»ÊÇÒ»ÖÖ¿Í»§¶Ë¼¼ÊõÆä±¾Éí²¢²»ÄÜÖ±½ÓͬÊý¾Ý¿â½»»¥£¬ÔÚʵ¼ÊµÄÓ¦Óÿª·¢¹ý³ÌÖÐFlexÌṩÁËÈçURLRequest¡¢HTTPService¡¢RemoteObject¡¢WebServiceµÈÀàÒÔʵÏÖͬ·þÎñÆ÷µÄͨѶºÍÊý¾Ý½»»¥£¬ÏÂÃæ×öһЩ½éÉܺÍʵÀý½âÎö:
   1¡¢Ê¹ÓÃURLRequestÏò·þÎñÆ÷·¢ËÍÇëÇó£¬Ê¹ÓÃURLLoader½ÓÊÕ·þÎñÆ÷·µ»ØµÄÊý¾Ý:
    URLRequestÀà¿É²¶»ñµ¥¸ö HTTP ÇëÇóÖеÄËùÓÐÐÅÏ¢£¬¿ÉÒÔ½« URLRequest ¶ÔÏ󴫵ݸø Loader¡¢URLStream ºÍ URLLoader ÀàÒÔ¼°ÆäËû¼ÓÔزÙ×÷µÄ load() ·½·¨ÒÔÆô¶¯ URL ÏÂÔØ;ĬÈÏÇé¿öÏ£¬´«µÝ¸ø url ²ÎÊýµÄ URL ±ØÐëÓëÖ´Ðе÷ÓÃµÄ SWF ÎļþÔÚÍêÈ«ÏàͬµÄÓò£¬°üÀ¨×ÓÓò¡£Èç¹ûÒª´ÓÆäËüÓòÖмÓÔØÊý¾Ý£¬ÇëÔÚ³ÐÔØÊý¾ÝµÄ·þÎñÆ÷ÉÏ·ÅÖÃÒ»¸ö¿çÓò²ßÂÔÎļþ¡£ÓйØURLRequestÏêϸ¿É²Î¿´http://help.adobe.com/zh_CN/AIR/1.1/jslr/flash/net/URLRequest.html
   URLVariablesÀàÖ÷ÒªÓÃÀ´ÔÚÓ¦ÓóÌÐòºÍ·þÎñÆ÷Ö®¼ä´«Êä²ÎÊý±äÁ¿;Ïêϸ²é¿´:http://livedocs.adobe.com/flex/3_cn/langref/flash/net/URLVariables.html
   URLLoader ÀàÒÔÎı¾¡¢XML¡¢¶þ½øÖÆÊý¾Ý»ò URL ±àÂë±äÁ¿µÄÐÎʽ´Ó URL ·µ»ØÇëÇóµÄÊý¾ÝÏêϸÇë²Î¿´:http://livedocs.adobe.com/flex/3_cn/langref/flash/net/URLLoader.html
    Íê³ÉÒÔÏÂʾÀýÒªÒýÓõ½µÄFlex°ü:
import mx.rpc.events.FaultEvent;
import mx.collections.XMLListCollection;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLVariables;
import flash.net.URLRequestMethod;
import flash.events.Event;
import mx.utils.URLUtil;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import com.adobe.serialization.json.JSON;

   2¡¢Ó¦ÓÃʾÀýÒ»£ºÍ¨¹ýURLRequestºÍURLVariablesÏò·þÎñÆ÷·¢ËͲÎÊýÇëÇó²¢·µ»Ø·þÎñÆ÷Îı¾Êý¾Ý£¨ÒÔÏ·þÎñÆ÷¶Ë¶¼²ÉÓÃasp.net±àд£©
   ·þÎñÆ÷¶Ë´úÂë:
protected void Page_Load(object sender, EventArgs e)
{
//»ñÈ¡URLResuestÇëÇó»ØµÄ²ÎÊý ·µ»ØÊý¾ÝÓã»·Ö¸ôÒÔ·½±ãFlex¶ÔÊý¾Ý½øÐÐÐòÁл¯
string rs = String.Format("name={0};age={1};address={2}",Request.QueryString["name"],


Ïà¹ØÎĵµ£º

Flex ±¾µØ°²È«²ßÂÔÎÊÌâ

½ñÌìÔÚ×öÏîÄ¿µÄʱºòÓöµ½ÁËÒ»¸öÎÊÌ⣬·ÃÎÊxmlÎļþ¾ÍÊdzɹ¦²»ÁË¡£¿´ÁË¿´ÒÔǰд¹ýµÄ´úÂ붼¿ÉÒÔ£¬¶øÕâ¸öÏîÄ¿ÖÐΪʲô¾Í²»ÐÐÁËÄØ£¿×Ðϸ²é¿´ÁËĿ¼£¬ÊÇ°Ù˼²»µÃÆä½â°¡¡£
´íÎóÐÅÏ¢£º*** Security Sandbox Violation ***
Connection to file:///C|/loading.swf halted - not permitted from xxxx/data.xml¡£Õâ¸öxmlÊÇÔÚ¹¤³ÌÀïÃæsr ......

Flex×é¼þ(¶Ô»°¿ò)

java¿ª·¢µÄ×ÜÏ뾡¿ì°ÑflexºÍjava½áºÏÆðÀ´,ÎÒÒ²ÊÇ,µ«ÕâÈÝÒ׺öÊÓһЩ»ù´¡µÄ¶«Î÷,¸Õ°ÑflexºÍjavaÕûºÏµÄµÚÒ»²½×öÍê,ºöÈ»ÏëÔÚflexÒ³ÃæÖе¯³ö¸ö¶Ô»°¿ò,²»ÖªµÀÔõôдÁË,ÍøÉϲéÁË°ëÌì²Å³öÀ´.
Ô­À´ÕâÒ»¾ä»°¾Í¸ã¶¨ÁË
Alert.show(content,title,flags,parent,closeHandle,iconClass,defaultButtonFlag);
ÒÔÏÂÊÇÍøÉÏÕÒµ½×ÊÁÏ,¹©²Î¿¼. ......

½«Flex¼¯³Éµ½Java EEÓ¦ÓóÌÐòµÄ×î¼Ñʵ¼ù

¹¹½¨¸ßÐÔÄܵÄJ2EEÓ¦Óò»µ«ÐèÒªÁ˽ⳣÓõÄʵʩ¼¼ÇÉ¡£ÏÂÃæ½éÉÜ×î³£ÓõÄ10ÖÖÓÐЧ·½·¨£¬¿É°ïÖú¼Ü¹¹Éè¼ÆʦÃÇ¿ìËÙ³ÉΪÕâ·½ÃæµÄר¼Ò¡£
JavaÐÔÄܵĻù´¡—ÄÚ´æ¹ÜÀí
ÈκÎJavaÓ¦Ó㬵¥»úµÄ»òJ2EEµÄÐÔÄÜ»ù´¡¶¼¿É¹é½áµ½ÄãµÄÓ¦ÓÃÊÇÈçºÎ¹ÜÀíÄÚ´æµÄÎÊÌâ¡£JavaµÄÄÚ´æ¹ÜÀí°üÀ¨Á½¸öÖØÒªÈÎÎñ£ºÄÚ´æµÄ·ÖÅäºÍÄÚ´æµÄ»ØÊÕ¡£ÔÚÄÚ´æµÄ·ÖÅäÖУ¬Ä ......

FlexÓëJavascript»¥ÏàͨÐÅ

FlexÓëJavascript»¥ÏàͨÐÅ¡£
ÔÚFlexÖÐÓÐÕâôһ¸öÀࣺExternalInterface.ÔÚÕâ¸öÀàÖÐËü¸øÎÒÃÇ£ºcallºÍaddCallback
FlexÖÐAsµ÷ÓÃJsµÄ·½·¨ÊÇ£º
     1¡¢µ¼Èë°ü £¨import flash.external.ExternalInterface;£©
     2¡¢Ê¹ÓÃExternalInterface.call("Jsº¯ÊýÃû³Æ",²ÎÊý)½øÐе÷Óã¬Æä· ......

MyEclipse6.5ÓëFlex Builder 3ÕûºÏ°²×°·½·¨

MyEclipse6.5ÓëFlex Builder 3ÕûºÏ°²×°·½·¨
×î½üÏëѧϰÏÖÔÚ×îÈÈÃŵĸ»¿Í»§¶Ë¼¼Êõflex£¬ÓÚÊÇÏÂÔØÁËFlex Builder 3.0 For Eclipse plugin(FB3_WWEJ_Plugin.exe)×¼±¸°²×°.µ«ÊÇ°²×°ºóÆô¶¯Eclipse,ÕÒÁË°ëÌìҲûÕÒµ½Flex.¶øÇÒFlex Builder»á°ÑJREÒ²°²×°.¾õµÃÕâÑùºÜ²»Êæ·þ. ËùÒÔÎÒ×Ô¼ºÏëÁËÒ»¸ö°ì·¨£¬ÓÃMyEclispe6.5ÓëFlex Builder ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ