2017-11-30 6 views
-1

私はカスタムレンダラーでTileListを作成します。as3カスタムitemrenderのtilelist

<s:BorderContainer 
        id="bcImage" 
        width="120" 
        height="99%" 
        borderVisible="true" 
        borderStyle="solid" 
        borderColor="#B3B3B3" 
        borderWeight="1" 
        cornerRadius="2" 
        backgroundAlpha=".8" 
        backgroundColor="#F8F8FF" 
        dropShadowVisible="true" 
        > 




    <mx:Canvas id="cvsImage" width="100%" click="cvsImage_clickHandler(event)"> 

     <s:HGroup width="100%" paddingBottom="0" paddingTop="5" > 
      <s:CheckBox id="cbImgSelect"/> 
      <s:Label x="23" y="3" width="82" fontSize="11" fontWeight="normal" text="{data.imDate}" 
        textAlign="right" color="#000000"/>  
     </s:HGroup> 


     <mx:Image id="iconCanvas" x="10" y="20" width="99" height="99" horizontalAlign="center" 
        maintainAspectRatio="true" scaleContent="true" 
        verticalAlign="middle" mouseDown="iconCanvas_mouseDownHandler(event)" 
        > 

     </mx:Image> 
    </mx:Canvas> 

    <s:BorderContainer width="100%" y="124" height="25" bottom="1" left="3" right="3" 
         backgroundColor="#FFFFFF" id="bcTitre" borderAlpha="0" > 
     <s:VGroup width="100%" y="124" height="25" bottom="0" left="0" right="0" 
        paddingBottom="0" paddingTop="0" gap="0" click="iconCanvasLabel_mouseUp(event)"> 
      <s:Label text="{data.imType}" height="50%" fontSize="10" paddingBottom="1" id="lType" 
        fontWeight="normal" width="99%" textAlign="center" toolTip="{data.imType}"/> 
      <s:Label text="{data.imStade}" fontSize="10" textAlign="center" paddingTop="1" 
        fontWeight="normal" width="99%" id="lStade" toolTip="{data.imStade}"/> 

     </s:VGroup> 
    </s:BorderContainer> 


</s:BorderContainer> 

私のTileListコントロールは、allowMultipleSelectionが可能です。

アイテムをクリックして選択した場合(Continusかどうかで)チェックボックスをチェックし、CheckBox.selected = trueの場合、選択したアイテムの周りに色の選択を表示したいと思います。

どうすればよろしいですか?

敬具

答えて

0

私がヨーヨーは以下の方法で検討することができたとし 間違っている、あなたは反対側から問題を解決しようとしているようだ:そう]チェックボックスをfalseにmouseEnabled

  • セットすべてのリスト項目は
  • changingイベントをインターセプトし、

    のようなものを実行して、デフォルトの選択の動作を変更するをクリックしてトリガしていること
  • バインド]チェックボックスが選択されたレンダラを助けるため1つの

+0

おかげで状態を選択します – Flex60460

関連する問題