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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -