flex - how to identify a selected object in tilelist? -
i have tilelist, dynamically loaded xml file pictures, how do when click on picture in label gave name?
<mx:tilelist id="tilelist" alternatingitemcolors="[#ffffff,#eeeeee]" dataprovider="{xmllistcoll}" itemrenderer="tilelistitemrenderer" columncount="3" columnwidth="100" rowcount="2" rowheight="100" direction="horizontal" verticalscrollpolicy="on"/>
in tilelist call function
itemclick="somthingselected();" public function somthingselected():void{ trace( this.tilelist.selecteditem.@id ) } "id" attribute in xml dataprovider or whatever want be
Comments
Post a Comment