Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2300978
  • 博文数量: 321
  • 博客积分: 3440
  • 博客等级: 中校
  • 技术积分: 2992
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-24 09:08
个人简介

我就在这里

文章分类

全部博文(321)

文章存档

2015年(9)

2014年(84)

2013年(101)

2012年(25)

2011年(29)

2010年(21)

2009年(6)

2008年(23)

2007年(23)

分类: 项目管理

2011-10-19 13:46:05

主要是重写drawRowBackground 如下

 



  
            override  protected function drawRowBackground(s:Sprite, rowIndex:int,
                                            y:Number, height:Number, color:uint, dataIndex:int):void
       {
          if(dataIndex < dataprovider.length){
           color = uint(dataprovider[dataIndex].color);
          }
                                      
         super.drawRowBackground(s,rowIndex,y,height,color,dataIndex);
       }
     ]]>
     

  
   
   
   
  

  
   
      
        dd
        10 
        0xFFAA00
      

    
        aa
        200 
        0x00FF12
      

      
        cc
        110 
        0x5500FF
      

   

  
 

 

效果如下

效果

 

阅读(5647) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~