Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÖеÄRemoteClass meta tagµÄʹÓÃ˵Ã÷

簡單µÄ來說£¬RemoteClassÊÇÔÚ編寫 ActionScript Class 檔時¸æÖª該 ActionScript Class ÊÇ對應µ½ÄÄ個遠¶¨¶ËµÄ Class 檔(·ÇActionScript),舉個Àý×Ó來說£¬ÈôÔÚ遠µØ¶ËÓÐ個 Java Object Ãû為 T ......

flex module ʵÀý

module ½Ó¿ÚÎļþ PictureWindowInterface.as
package
{
public interface PictureWindowInterface
{
function setSelectIndex(index:int):void
}

moudule Îļþ PictureWindow.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml ......

flex eventʵÀý

EventArgExtend.as
package myeventhelper
{
public class EventArgExtend
{
public function EventArgExtend()
{
}
public static function create(f:Function,...arg):Function //addEventListener×¢²áʼþ½øÐд«µÝ²ÎÊýµÄ·½·¨
{ //EventArgExtend.create(comB.onGetParentTotal,this)
......

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

ת×Ô http://www.51as.com/fms/fms3jiaochen.html 
Á¬½Óµ½FMS·þÎñÆ÷(Flash/FlexÁ½ÖÖʵÏÖ) - µÚ1ƪ:Connection
Ò» ¡¢FMSÓ¦¸Ã×öЩʲô 
     ±¾ÎÄÖÐËùʹÓõ½µÄFMSÊǷdz£¼òµ¥µÄ£¬Ö÷Òª¾Í¾ÍÊǽ¨Á¢Ò»¸öFMSÓ¦Ó㬷½·¨ºÜ¼òµ¥¡£ÕÒµ½Äã°²×°FMSµÄĿ¼Äã»á·¢ÏÖÀïÃæÓÐÒ»¸öappliationsµÄĿ¼¡£¶ÔµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ