易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关文档:

Flex:上传图片前预览

<?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画直线示例

<img src="{{----}}13730" mce_src="{{----}}13730"/><span id="__caret">_</span><?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationCo ......

FLEX no.3

--------------ex3_01_solution  -----------------------Using text controls
在嵌套的EmployeeOfTheMonth中
    <s:Scroller width="100%">
       
  <!-- Use a RichEditableText control -->
     &nbs ......

Flex与服务器交互之一(URLRequest +URLLoader应用)

   由于Flex只是一种客户端技术其本身并不能直接同数据库交互,在实际的应用开发过程中Flex提供了如URLRequest、HTTPService、RemoteObject、WebService等类以实现同服务器的通讯和数据交互,下面做一些介绍和实例解析:
   1、使用URLRequest向服务器发送请求,使用URLLoader接收服务器返回的数据:
& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号