flex ʹÓÃwebservices дµÄÌìÆøÔ¤±¨
×¢Ò⣺±¾»ú±ØÐëÁ¬½Ó»¥ÁªÍø
Ч¹ûͼ£º
Ô´ÂëÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" creationComplete="init()">
<mx:Panel width="620" height="455" layout="absolute" title="ÌìÆøÔ¤±¨" fontSize="12">
<mx:HRule x="10" y="78" width="570"/>
<mx:Label x="44" y="50" text="½ñ Ìì" width="67" fontWeight="bold" color="#030303"/>
<mx:Label x="474" y="50" text="ºó Ìì" width="67" fontWeight="bold" color="#030303"/>
<mx:Label x="247" y="50" text="Ã÷ Ìì" width="67" fontWeight="bold" color="#030303"/>
<mx:Canvas x="10" y="88" width="168" height="315" borderStyle="solid" borderColor="#111AC6">
<mx:Label x="10" y="10" width="146" id="lblDate"/>
<mx:Label x="10" y="38" width="146" height="24" id="lblwd"/>
<mx:Label x="10" y="70" id="lblfl" width="146" height="29"/>
<mx:Image x="10" y="120" width="70" height="65" id="imgToday"/>
<mx:Image x="88" y="120" width="70" height="65" id="imgToday2"/>
<mx:TextArea x="10" y="197" width="148" height="106" id="taDetail" editable="false"/>
</mx:Canvas>
<mx:Canvas x="204" y="88" width="173" height="315" borderStyle="solid" borderColor="#111AC6">
<mx:Label x="10" y="10" width="138" id="lblDate1"/>
<mx:Label x="10" y="38" width="136" height="24" id="lblwd1"/>
<mx:Label x="10" y="70" id="lblfl1" width="136" height="29"/>
<mx:Image x="10" y="120" width="70" height="65" id="imgTomorrow"/>
<mx:Image x="88" y="120" width="70" height="65" id="imgTomorrow2"/>
<mx:TextArea x="10" y="197" width="148" height="106" id="taDetail1" editable="false"/>
</mx:Canvas>
<mx:Canvas x="403" y="88" width="175" height="315" borderStyle="solid" borderColor="#111AC6">
<mx:Label x="10" y="10" width="138" id="lblDate2"/>
<mx:Label x="10" y="38" width="136" hei
Ïà¹ØÎĵµ£º
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.collections.ArrayCollection;
......
FlexÓëJavascript»¥ÏàͨÐÅ¡£
ÔÚFlexÖÐÓÐÕâôһ¸öÀࣺExternalInterface.ÔÚÕâ¸öÀàÖÐËü¸øÎÒÃÇ£ºcallºÍaddCallback
FlexÖÐAsµ÷ÓÃJsµÄ·½·¨ÊÇ£º
1¡¢µ¼Èë°ü £¨import flash.external.ExternalInterface;£©
2¡¢Ê¹ÓÃExternalInterface.call("Jsº¯ÊýÃû³Æ",²ÎÊý)½øÐе÷Óã¬Æä· ......
<?xml version="1.0" encoding="utf-8"?>
<!-- http://yecon.blog.hexun.com/31030831_d.html -->
<!-- http://www.slsay.com -->
<Application name="FileReference_load_test"
xmlns="http://ns.adobe.com/mxml/2009"
xmlns:mx="library:adobe/flex/halo"
xmlns:net= ......
³£ÓõÄFlex´úÂë×ܽá
1.Ë¢ÐÂä¯ÀÀÆ÷
¡¡¡¡navigateToURL(new URLRequest("javascript:location.reload();"),"_self")
¡¡¡¡2.¹Ø±Õä¯ÀÀÆ÷
¡¡¡¡navigateToURL(new URLRequest("javascript:window.close()"),"_self");
¡¡¡¡3.´ò¿ªÒ»¸öÐÂä¯ÀÀÆ÷´°¿Ú
¡¡¡¡navigateToURL(new URLRequest('ht ......
ÓÉÓÚFlexÖ»ÊÇÒ»ÖÖ¿Í»§¶Ë¼¼ÊõÆä±¾Éí²¢²»ÄÜÖ±½ÓͬÊý¾Ý¿â½»»¥£¬ÔÚʵ¼ÊµÄÓ¦Óÿª·¢¹ý³ÌÖÐFlexÌṩÁËÈçURLRequest¡¢HTTPService¡¢RemoteObject¡¢WebServiceµÈÀàÒÔʵÏÖͬ·þÎñÆ÷µÄͨѶºÍÊý¾Ý½»»¥£¬ÏÂÃæ×öһЩ½éÉܺÍʵÀý½âÎö:
1¡¢Ê¹ÓÃURLRequestÏò·þÎñÆ÷·¢ËÍÇëÇó£¬Ê¹ÓÃURLLoader½ÓÊÕ·þÎñÆ÷·µ»ØµÄÊý¾Ý:
& ......