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

FLEXÖеÄFluorineÍø¹ØÓëWebServiceµÄÇø±ð

ÒòΪÎÞÂÛÊÇFLEX£¬»¹ÊÇSilverlight¡¢AJAX£¬ËûÃǶ¼ÎÞ·¨Ö±½Ó²Ù×÷Êý¾Ý¿â£¨¾Ý×îÐÂÏûÏ¢£¬Î¢ÈíÓÐÁËMicrosoft .NET RIA Services£¬Ëü¿ÉÒÔÖ±½Ó²Ù×÷Êý¾Ý¿â£¬ÎÒÆÚ´ý×ÅËýÄÜÔÚVS2010ÖгöÏÖ£©£¬Í¨³£ÓÃWEBSERVICEµÈÖмäÈ˵ķ½Ê½À´½øÐÐSOAPЭÒéµÄµÄÎı¾´«Ê䣬ЧÂʺܵͣ¨´ó¼ÒÊÔһϾͻáÖªµÀ¼òÖ±ÎÞ·¨ÈÌÊÜ£©£¬FLEXΪÁ˼ӿ촫ÊäËٶȣ¬ÓÚÊÇÖƶ¨ÁËAMF¡£¶¨ÒåÈçÏ£º
AMFÊÇAction Message FormatЭÒéµÄ¼ò³Æ£¬AMFЭÒéÊÇAdobe¹«Ë¾×Ô¼ºµÄЭÒ飬Ö÷ÒªÓÃÓÚÊý¾Ý½»»¥ºÍÔ¶³Ì¹ý³Ìµ÷Óã¬ÔÚ¹¦ÄÜÉÏÏ൱ÓÚWebService£¬µ«ÊÇAMFÓë WebServiceÖеÄXML²»Í¬µÄÊÇAMFÊǶþ½øÖÆÊý¾Ý£¬¶øXMLÊÇÎı¾Êý¾Ý£¬AMFµÄ´«ÊäЧÂʱÈXML¸ß¡£AMFʹÓÃHTTP·½Ê½´«Ê䣬ĿǰÖ÷ÒªÊÇÓÃÓÚActionScriptÖУ¬¼´ÊµÏÖFlexºÍServerÖ®¼äµÄͨÐÅ¡££¨Òý×Ô£ºhttp://fykyx521.javaeye.com/blog/455837£©
¾Ý˵£¬AMFÊÇWEBSERVICEËٶȵÄ10±¶¡£
¿çÓòÎÊÌ⣺
AMFÔÚFLEXºÍ.NETÖмäµÄ½â¾ö·½°¸ÊÇʹÓÿªÔ´µÄFluorineFx£¬µ«ÆäȱµãÊDz»ÄÜ¿çÓò£¬¼´£¬ÄãÉú³ÉµÄSWFÎļþ±ØÐëºÍ.NET³ÌÐò·ÅÔÚÒ»¸ö·þÎñÆ÷Ï¡£½ñÌì¿´µ½ÁËÓà crossdomain.xml À´ÊµÏÖ¿çÓòµÄ·½·¨£¨Òý×Ô£ºhttp://www.mzwu.com/article.asp?id=975£©¡£¸ÃXMlÎļþÐè·ÅÔÚ.NET WEB³ÌÐòµÄ¸ùĿ¼Ï£¬XMLÄÚÈÝÐÎʽÈçÏ£º
<?xml version="1.0"?>
<cross-domain-policy>
  <allow-access-from domain="www.friendOfFoo.com" />
  <allow-access-from domain="*.foo.com" />
  <allow-access-from domain="105.216.0.40" />
</cross-domain-policy>
ÏÂÃæÊǶþÕßÔÚFLEXÖеľßÌåÇø±ð¡£
Fluorine:
FLEXµ÷ÓÃFluorine£¬ÊÇд£º
<mx:RemoteObject id="sss" destination="fluorine" source="ÃüÃû¿Õ¼ä.Àà" >
   <!-- ÏÂÃæµÄnameÊÇÔÚ.NETÖÐдµÄ·½·¨»òº¯ÊýÃû -->
   <mx:method name="getL" result="showN(event)" />
</mx:RemoteObject>
¶øµ÷ÓÃWebServiceÊÇд£º
1¡¢ÔÚ <mx:Application  xmlns:mx="http://adobe.com" creationComplete="WS.GetData.send();">
ÕâÆäÖеÄGetData¾ÍÊÇĬÈϵķ½·¨£¬µ÷ÓòÎÊýÔÚÆäÏ¿ÉÒÔ¼ÌÐøд¡£
2¡¢ÏÂÃæд£º
<mx:WebService id="WS" wsdl="http://localhost/ser/service.asmx?WSDL" >
    <mx:operation name="GetData" resultFormat="Object" />
</mx:WebService>
µ«ÔÚͨ³£µÄWebService£¬ÊÇÕâÑùÓõģº
Ϊwebservice.slnµÄ½


Ïà¹ØÎĵµ£º

Àí½â flex actionscript

as ²»ÔÊÐíoverload...¼´¶ÔÓÚͬһ¸öº¯ÊýÃû²»ÄÜÓв»Í¬µÄ²ÎÊýÁбíºÍ·µ»ØÖµ
ÀàÖеÄgeter ºÍ setter ÓëÆäËûµÄ·½·¨Ò»Ñù,³ýÁË
1.getº¯ÊýûÓвÎÊý,²¢ÇÒ±ØÐëÓзµ»ØÖµ,²¢ÇÒ±ØÐëÓÐget¹Ø¼ü×Ö
2.setº¯Êý±ØÐëÓвÎÊý²¢ÇÒûÓзµ»ØÖµ,²¢ÇÒ±ØÐëÓÐset¹Ø¼ü×Ö
Java´úÂë
public function get sampleProperty( ):Str ......

Flex ÍøÕ¾

http://www.belgacomtv.be/
http://www.xsteel.net/
http://veryhw.com/
http://www.redlei.com/test/redlei/
[url]http://www.cssflex.com/[/url]
[url]http://www.millionclouds.com/[/url]
[url]http://www.anywhere.fm/player/[/url]
[url]http://youyee.org/viewpoint/[/url]
[url]http://flexbox.mrinalwadhw ......

flexÖÐÈçºÎ¶ÔÊý¾ÝµÄÏÔʾ¸ñʽ½øÐÐÉèÖÃ

ÆäʵÕâ¾ÍÊǸöÊý¾ÝÏÔʾµÄÎÊÌ⣬¾­³£ÎÒÃǵÄԭʼÊý¾Ý²¢²»ÊÇ×îÖÕÏÔʾ¸øÓû§µÄ£¬¶øÊÇÒÔÁíÒ»ÖÖ·½Ê½ÏÔʾ£¬±ÈÈçÐÔ±ð¼ÙÉèÔÚºǫ́Êý¾ÝÒÔboolean±äÁ¿À´±£´æ£¬¼´trueΪÄУ¬falseΪŮ£¬ÄÇô½çÃæ¾ÍÐèÒª´¦Àí°Ñtrue±ä³ÉstringµÄ“ÄД¡£¶ÔÓÚ¸ñʽת»»Ò»°ãflexÄãÃÇʹÓÃFormatterÀ࣬µ±È»FormatterÀàÊDZȽϳéÏóµÄÀ࣬Ȼºó¸ü¾ßÌåµÄÈçCu ......

FlexÉèÖÃä¯ÀÀÆ÷±êÌâ

ÔÚFlexÏÂÉèÖÃÒ³Ãæä¯ÀÀÆ÷±êÌâTitle¹¤ÓÐÁ½ÖÖ·½Ê½£º
1£¨ÍƼö´Ë·½·¨£©.ÀûÓÃBrowserManagerÀàÉèÖÃTitle£º
BrowserManager.getInstance().setTitle("***ÐÅϢϵͳ");
¿ÉÒÔ½«ÉÏÃæÒ»ÐдúÂëдÔÚϵͳµÄ³õʼ»¯º¯ÊýÖÐ
2.ÔÚApllicaaction±êÇ©ÏÂÉèÖÃpageTitleÊôÐÔ£º
  <mx:Application xmlns:mx="http://www.adobe.com/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ