Assuming you are using mx:TileList, I think the answer is to implement IDropInListItemRenderer, which will give you an "owner" property which can be cast/coerced to be the TileList. And also, rowIndex and columnIndex. And from there you should be able to use TileList(owner).selectedIndex to determine if the renderer represents the selected item.
HTH, -Alex On 12/1/17, 10:15 PM, "zabdoul60460" <isa_lo...@yahoo.fr> wrote: >Hi, > >I create a tilelist with custom itemrender (image with checkbox) > > <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> > > ></mx:Canvas> > >My TileList has allowMultipleSelection enable. > >I'd to check CheckBox when item is selected by click or by selection >(continus or not) and if CheckBox.selected=true I'd like to show color >selection around selected item. > >Could you help me to do that ? > >Best regards > > > >-- >Sent from: >https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle >x-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C4a5ea >d2c3e884deb445108d53950e9ec%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6 >36477942044585531&sdata=ZBKchMst%2BB8QVLNHx2ub%2BHhlvJkd609rM1UOidLyuw8%3D >&reserved=0