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

Flex中的Label实现鼠标手型及下划线

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical">
 <mx:Script>
  <![CDATA[
   import mx.controls.dataGridClasses.DataGridListData;
   import mx.controls.Alert;
   import mx.collections.ArrayCollection;
   [Bindable]
   private var myData:ArrayCollection = new ArrayCollection([{userName:"Gasol",country:"西班牙"},
                   {userName:"Nashi",country:"澳大利亚"},
                   {userName:"Yaoming",country:"中国"}]);
   
   internal function test(event:MouseEvent):void {
    Alert.show("internal click!"+event.target.data);
    var ld:DataGridListData = event.target.listData as DataGridListData;
    trace(ld.columnIndex);
   }
  ]]>
 </mx:Script>
 <mx:DataGrid dataProvider="{myData}">
  <mx:columns>
   <mx:DataGridColumn headerText="姓名">
    <mx:itemRenderer>
     <mx:Component>
      <mx:Label buttonMode="true" mouseChildren="false"
          click="outerDocument.test(event)"
          htmlText="&lt;u&gt;{data.userName}&lt;/u&gt;">
      </mx:Label>
     </mx:Component>
    </mx:itemRenderer>
   </mx:DataGridColumn>
   <mx:DataGridColumn headerText=


相关文档:

flex树形选择用户的实现

使用flex tree 和list实现如下选择用户的效果
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
                showCloseButton="true" creationComplete ......

Flex 页面跳转 页面布局

  1、使用navigateToURL,主要方式如下:var url:String = "http://localhost:8080/Flex_J2eeDemo/bin/Welcome.html";
                              &n ......

flex中list的利用

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
       width="550" height="400">
       
    <mx:Script>
        <![CDATA[
&n ......

Amfphp与Flex交互:读取mysql数据

服务器端代码,amfphp的services目录下建立readData.php文件,代码如下
<?php
    class ReadDB
    {
              function getData()
            &nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号