zoukankan      html  css  js  c++  java
  • flex学习记录——加载图片

    <page:NoGraphDataGridPage id="searchResultCollectionDataGrid" width="652" height="380" totalRows="80">               
             <page:pageColumns>
               <mx:DataGridColumn headerText="图片" color="black" sortable = "false" dataField="area" textAlign="center" width="100">
                 <mx:itemRenderer>
                   <mx:Component>
                     <mx:Canvas>
                       <mx:Image x="70"  visible="{data.area == 0?true:false}" 
                            source="@Embed(source='myComponents/images/jx/yellow.png')"/>
                        <mx:Image x="70"  visible="{data.area == 1?true:false}" 
                            source="@Embed(source='myComponents/images/jx/yellow.png')"/>
                        <mx:Image x="70"  visible="{data.area == 2?true:false}" 
                            source="@Embed(source='myComponents/images/jx/red.png')"/>
                    </mx:Canvas>
                  </mx:Component>
                </mx:itemRenderer>
              </mx:DataGridColumn>                   
             </page:pageColumns>
                        
             </page:NoGraphDataGridPage>

    根据传过来的内容,加载不同的图片:

  • 相关阅读:
    codevs 1450 xth 的旅行
    Loj #6287 诗歌
    Codeforces 323C Two permutations
    Spoj MKTHNUM
    [TJOI2015]弦论
    Spoj SUBLEX
    bzoj 4338: BJOI2015 糖果
    bzoj 3462: DZY Loves Math II
    bzoj 2843: 极地旅行社
    清北学堂模拟赛d4t5 b
  • 原文地址:https://www.cnblogs.com/zhangchunxi/p/2771081.html
Copyright © 2011-2022 走看看